:root {
  --accent: #1f5fbf;
  --dark: #0f1724;
  --muted: #6b7280;
  --bg: #f7f9fb;
  --maxw: 1100px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

* {
  box-sizing: border-box;
  margin: 0;  
  padding: 0;
}


/* ==== ОБЩИЕ СТИЛИ ==== */
body {
  background: var(--bg);
  color: #111;
  line-height: 1.45;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 24px;
}

.section h2 {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

/* ==== HEADER ==== */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 105px;
  height: 75px;
  background: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.logo img {
  width: 85px;
  height: auto;
  display: block;
}

nav a {
  margin-left: 16px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--accent);
}

/* ==== HERO ==== */
.hero {
  padding: 40px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  margin-bottom: 12px;
}

.hero p {
  color: var(--muted);
  margin-bottom: 18px;
}

.cta {
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s;
}

.cta:hover {
  background: #164c9a;
}

/* ==== ПРОДУКЦИЯ - ДИНАМИЧЕСКИЙ БАННЕР ==== */
.products-section {
  background: linear-gradient(135deg, #1f5fbf, #2a78d7, #1f5fbf);
  border-radius: 16px;
  padding: 40px 20px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.products-section h2 {
  text-align: center;
  font-size: 30px;
  margin-bottom: 30px;
  color: #fff;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.4);
}

.products-banner {
  display: flex;
  overflow: hidden;
  position: relative;
}

.products-list {
  display: flex;
  animation: scrollProducts 20s linear infinite;
}

.product-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  margin: 0 15px;
  min-width: 300px;
  font-size: 16px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.product-item:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.2);
}

@keyframes scrollProducts {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}
/* Стили для кнопок социальных сетей */
.social-buttons {
  display: flex;
  gap: 12px;
  margin: 20px 0;
  flex-wrap: wrap;
}

.instagram-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: linear-gradient(45deg, #405DE6, #5851DB, #833AB4, #C13584, #E1306C, #FD1D1D);
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 120px;
}

.instagram-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.4);
  color: white;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 120px;
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  color: white;
}


/* ==== PRODUCT FLEX СЕТКА ==== */
.product-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.product-card {
  position: relative;
  background-size: cover;
  background-position: center;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: scale(1.03);
}

phone-number {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif !important;
  font-size: 16px;
  font-weight: 500;
  color: #1f5fbf;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 6px 0;
}

.phone-number::before {
  content: "📞";
  font-size: 14px;
  filter: hue-rotate(180deg);
}

.phone-number:nth-child(2)::before {
  content: "📱";
}

.phone-number:nth-child(3)::before {
  content: "📲";
}





.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: rgba(255,255,255,0.85);
  color: #1e293b;
  font-weight: 600;
  padding: 12px;
  text-align: center;
}

.product-card:hover .overlay {
  background: rgba(251,191,36,0.9);
  color: #fff;
}

/* ==== ABOUT COMPANY ==== */
.about-company-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.analysis-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.analysis-text {
  flex: 1;
  min-width: 300px;
}

.geo-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
}

.geo-text {
  flex: 1;
  min-width: 300px;
}

.geo-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.geo-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.analysis-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.analysis-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==== ПАРТНЕРЫ ==== */
#partners {
  background: #f7f2eb;
  padding: 60px 20px;
}

#partners h2 {
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 30px;
  text-align: center;
}

.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.partner-logo {
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-logo img {
  max-width: 120px;
  max-height: 60px;
  object-fit: contain;
}

.partner-logo:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==== ТЕХНОЛОГИЧЕСКИЕ ПРЕИМУЩЕСТВА ==== */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.adv-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.adv-card:hover {
  transform: translateY(-5px);
}

.adv-card h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

/* ==== МЕСТОРОЖДЕНИЯ - ТАБЛИЦА ==== */
.resources-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.resources-table th, .resources-table td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: left;
}

.resources-table th {
  background-color: var(--accent);
  color: white;
}

/* ==== ГАЛЕРЕЯ ==== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
  margin: 40px 0;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 220px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* ==== LIGHTBOX ДЛЯ ГАЛЕРЕИ ==== */
#lightbox {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0, 0, 0, 0.85) !important;
  justify-content: center !important;
  align-items: center !important;
  z-index: 9999 !important;
  cursor: pointer !important;
}

#lightbox img {
  max-width: 90% !important;
  max-height: 90% !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5) !important;
  transition: transform 0.3s ease !important;
}

/* ==== КАРТОЧКИ С СИНИМИ ЛИНИЯМИ ==== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 6px solid var(--accent); /* СИНЯЯ ЛИНИЯ */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
}

.card h3 {
  color: var(--accent);
  margin-bottom: 8px;
}

/* ==== SERVICES ==== */
#services {
  background: #f7f2eb;
  padding: 60px 20px;
  border-top: 6px solid var(--accent);
}

#services h2 {
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 20px;
  position: relative;
}

#services h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  background: var(--accent);
  margin-top: 8px;
  border-radius: 2px;
}

#services p.muted {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card strong {
  display: block;
  font-size: 20px;
  color: var(--accent);
  margin-bottom: 10px;
}

.card p.small.muted {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* ==== Анализ рынка ==== */
#market-analysis {
  background: #f7f2eb;
  padding: 60px 20px;
}

.analysis-card {
  background: white;
  border-left: 6px solid var(--accent); /* СИНЯЯ ЛИНИЯ */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: auto;
}

.analysis-card h3 {
  color: var(--accent);
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 20px;
}

.analysis-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

/* ==== География добычи ==== */
#geography {
  background: #f2eee7;
  padding: 60px 20px;
}

.geo-card {
  background: white;
  border-left: 6px solid var(--accent); /* СИНЯЯ ЛИНИЯ */
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  max-width: 900px;
  margin: auto;
}

.geo-card p {
  font-size: 16px;
  color: #555;
  line-height: 1.7;
}

.geo-card ul {
  list-style: inside disc;
  margin-top: 10px;
  color: #555;
}

/* ==== ТАБЛИЦА ПРОДУКЦИИ ==== */
.product-table table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
  border-radius: 10px;
  overflow: hidden;
}

.product-table th {
  text-align: left;
  background-color: var(--accent);
  color: #fff;
  font-size: 18px;
  padding: 15px;
}

.product-table td {
  padding: 15px;
  border-bottom: 5px solid #e0e0e0;
  text-align: left;
  color: #0f1724;
}

/* ==== Достижения и проекты ==== */
#achievements {
  background: #f7f2eb;
  padding: 60px 20px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.project {
  background: white;
  border-left: 6px solid var(--accent); /* СИНЯЯ ЛИНИЯ */
  border-radius: 12px;
  padding: 20px;
  font-size: 16px;
  color: #333;
  font-weight: bold;
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ==== LANGUAGE SWITCHER ==== */
.lang-switcher {
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 10px !important;
}

.lang-switcher button {
  background: #ffffff !important;
  border: 1px solid #d1d1d1 !important;
  border-radius: 12px !important;
  padding: 6px 16px !important;
  cursor: pointer !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
  transition: all 0.3s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.lang-switcher button:hover {
  background: #f0f0f0 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15) !important;
}

.lang-switcher button:active {
  transform: translateY(0) !important;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
}

/* ==== ФОРМА КОНТАКТОВ ==== */
.contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-info p {
  margin-bottom: 12px;
}

.contact-info strong {
  color: var(--accent);
}

.contact-info iframe {
  margin-top: 20px;
  width: 100%;
  height: 250px;
  border-radius: 8px;
  border: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}


.contact-form {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-form input,
.contact-form textarea {
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  background: var(--accent);
  color: #fff;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #164c9a;
}

/* ==== WHATSAPP КНОПКА ==== */
.whatsapp-contact {
  text-align: center;
  width: 100%;
  margin-top: 20px;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: white;
  font-weight: bold;
  padding: 14px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}


.whatsapp-button:hover {
  background: #1ebe57;
  transform: translateY(-2px);
}

.whatsapp-button::before {
  content: "📱";
}

/* ==== ФУТЕР ==== */
footer {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 0;
  border-top: 1px solid #e5e7eb;
}

/* ==== МОБИЛЬНАЯ АДАПТАЦИЯ ==== */
/* ==== МОБИЛЬНАЯ АДАПТАЦИЯ ==== */
/* ==== МОБИЛЬНАЯ АДАПТАЦИЯ ==== */
@media (max-width: 600px) {
  /* === HEADER - ЦЕНТРИРОВАНИЕ === */
  header {
    padding: 10px 0 !important;
  }
	  .social-buttons {
    flex-direction: column;
  }
  
  .instagram-button,
  .whatsapp-button {
    width: 100%;
    text-align: center;
  }
  
  .brand {
    gap: 12px !important;
  }
  
  .logo {
    width: 70px !important;
    height: 50px !important;
  }
  
  nav {
    flex-direction: column;
    gap: 6px !important;
  }
  
  nav a {
    font-size: 14px !important;
    padding: 8px 12px !important;
    text-align: center;
    background: rgba(31, 95, 191, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  nav a:hover {
    background: rgba(31, 95, 191, 0.1);
    transform: translateY(-2px);
  }

  /* === УМЕНЬШЕНИЕ ОТСТУПОВ МЕЖДУ СЕКЦИЯМИ === */
  .section {
    margin-bottom: 20px !important;
    padding: 8px 0 !important;
  }

  .wrap {
    padding: 12px !important;
  }

  /* === ЦЕНТРИРОВАНИЕ ЗАГОЛОВКОВ СЕКЦИЙ === */
  .section h2 {
    text-align: center !important;
    font-size: 20px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
  }

  /* === PRODUCT FLEX СЕТКА 2x2 === */
  .product-flex {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  
  .product-card {
    height: 140px !important;
  }

  /* === ДОСТИЖЕНИЯ И ПРОЕКТЫ - СЕТКА 2x2 === */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  /* === GRID 3 - ОДНА КОЛОНКА ДЛЯ ПРОСТРАНСТВА === */
  #home .grid-3 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 15px !important;
    align-items: stretch !important;
    margin: 20px 0 !important;
  }

  #home .grid-3 .card {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 20px 15px !important;
    box-sizing: border-box !important;
    height: auto !important;
    min-height: 120px !important;
    margin: 0 3px !important;
  }

  #home .grid-3 .card h3 {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }

  #home .grid-3 .card .muted {
    white-space: normal !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    padding: 0 3px !important;
  }

  /* === ОБЩИЕ CARDS === */
  .card {
    padding: 20px 15px !important;
    margin: 12px 0 !important;
    border-left: 4px solid #1f5fbf !important;
  }

  .card p {
    font-size: 14px !important;
    line-height: 1.4 !important;
    white-space: normal !important;
  }

  /* === GALLERY === */
  .gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 20px 0 !important;
  }

  .gallery img {
    width: 100% !important;
    height: 140px !important;
    border-radius: 8px !important;
  }

  /* === WHATSAPP BUTTON === */
  .whatsapp-button {
    font-size: 16px !important;
    padding: 12px 20px !important;
    border-radius: 10px !important;
    display: inline-block !important;
    text-align: center !important;
    margin: 10px 0 !important;
  }

  /* === CTA BUTTONS === */
  .cta,
  button {
    font-size: 16px !important;
    padding: 12px 18px !important;
    margin: 8px 0 !important;
  }
}

/* === ДЛЯ ОЧЕНЬ УЗКИХ ЭКРАНОВ === */
@media (max-width: 400px) {
  .wrap {
    padding: 10px 8px !important;
  }
  
  .product-flex {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }
  
  .product-card {
    height: 120px !important;
  }

  .achievements-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .projects-grid img {
    height: 90px !important;
  }

  #home .grid-3 .card {
    padding: 15px 12px !important;
    min-height: 110px !important;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gallery img {
    height: 120px !important;
  }
}