/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f4f6f8;
  color: #1f2933;
  padding-top: 40px; /* desktop: top-bar*/
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* ================= TOP BAR (DESKTOP ONLY) ================= */
.top-bar {
  background: #111827;
  color: #e5e7eb;
  font-size: 0.85rem;
  position: fixed;
  top: 0;
  left: 0;
  height: 40px;
  width: 100%;
  z-index: 2000;
}

.top-bar-content {
  max-width: 1100px;
  margin: auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ================= HEADER ================= */
.main-header {
  background: #1f2933;
  position: sticky;
  top: 40px; /* под top-bar */
  z-index: 1000;
}

.header-content {
  max-width: 1100px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 1.4rem;
  font-weight: bold;
  text-decoration: none;
}

.logo-img {
  height: 40px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 3000;
}

.main-nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-weight: 500;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 2px;
  background: #fbbf24;
  transition: width 0.3s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* ================= HERO ================= */
.hero {
  height: 100vh;
  background: url("images/hero.jpg") center / cover no-repeat;
  position: relative;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
}

.hero-content {
  position: relative;
  z-index: 1;
  height: 100%;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.hero h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
  max-width: 700px;
}

/* ================= BUTTON ================= */
.btn-primary {
  background: #fbbf24;
  color: #111827;
  padding: 14px 32px;
  font-weight: bold;
  text-decoration: none;
  border-radius: 4px;
  transition: background 0.3s, transform 0.2s;
}

.btn-primary:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

/* ================= SECTIONS ================= */
.solutions,
.projects,
.contact {
  padding: 80px 0;
}

.section-subtitle {
  text-align: center;
  color: #6b7280;
  max-width: 720px;
  margin: 0 auto 60px;
}

/* ================= SOLUTIONS ================= */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.solution-card {
  position: relative;
  min-height: 350px;
  border-radius: 6px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.solution-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.solution-content {
  position: relative;
  z-index: 2;
  padding: 25px;
  color: #fff;
}

.bg-house { background-image: url("images/solutions/metal-house.jpg"); }
.bg-hall { background-image: url("images/solutions/hall.jpg"); }
.bg-fence { background-image: url("images/solutions/fence.jpeg"); }
.bg-structure { background-image: url("images/solutions/structure.jpg"); }
.bg-nonferrous { background-image: url("images/solutions/nonferrous.jpg"); }
.bg-automation { background-image: url("images/solutions/automation.jpg"); }

/* ================= PROJECTS ================= */
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.project-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;

  overflow: auto;
  z-index: 9999;
}

.lightbox.active {
 display:flex ;
}

.lightbox-img {
  max-width: 100%;
  max-height: 100%;
object-fit: contain;

touch-action: pinch-zoom;
}

.lightbox-close,
.lightbox-arrow {
  position: absolute;
  color: #fff;
  cursor: pointer;
}

.lightbox-close {
  top: 30px;
  right: 40px;
  font-size: 40px;
}

.lightbox-arrow {
  top: 50%;
  font-size: 50px;
  transform: translateY(-50%);
}

.lightbox-arrow.left { left: 30px; }
.lightbox-arrow.right { right: 30px; }


/* ================= CONTACT ================= */
.contact {
  background: #ffffff;
  padding: 80px 0;
}

.contact h2 {
  text-align: center;
  margin-bottom: 10px;
}

.contact-sub {
  text-align: center;
  margin-bottom: 40px;
  color: #6b7280;
}

.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

/* ================= FOOTER ================= */
.footer {
  background: #111827;
  color: #e5e7eb;
  text-align: center;
  padding: 20px;
  font-size: 0.85rem;
}

.footer a {
  color: #fbbf24;
  text-decoration: none;
}

/* ================= MOBILE ================= */
@media (max-width: 768px) {

  .menu-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1f2933;
    display: none;
    flex-direction: column;
    padding: 15px 0;
  }

  .main-nav a {
    margin: 12px 0;
    text-align: center;
  }

  .main-nav.active {
    display: flex;
  }

  .logo span {
    font-size: 1.1rem;
  }

  .logo-img {
    height: 32px;
  }
}
  
/* ================= PROCESS (FIX) ================= */
.process {
  background: #111827;
  color: #ffffff;
  padding: 80px 0;
}

.process h2 {
  text-align: center;
  margin-bottom: 15px;
}

.process .section-subtitle {
  text-align: center;
  color: #d1d5db;
  max-width: 720px;
  margin: 0 auto 50px;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.process-step {
  text-align: center;
  padding: 30px 20px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  background: rgba(255,255,255,0.03);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  border-radius: 50%;
  background: #fbbf24;
  color: #111827;
  font-weight: bold;
  font-size: 1.1rem;
}


.floating-phone-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;

  position: fixed;
  bottom: 20px;
  left: 20px;

  width: 58px;
  height: 58px;

  background-color: #fbbf24;
  color: #111827;

  font-size: 26px;
  line-height: 1;

  border-radius: 50%;
  text-decoration: none;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  z-index: 9999;

  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-phone-btn:hover {
  transform: scale(1.05);
}

.floating-phone-btn:active {
  transform: scale(0.92);
}
.contact-phones {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.contact-phones a {
  font-size: 1.1rem;
  font-weight: bold;
  color: #111827;
  text-decoration: none;
  transition: color 0.2s ease;
}

.contact-phones a:hover {
  color: #fbbf24;
}
@media (min-width: 768px) {
  .contact-phones {
    flex-direction: row;
    justify-content: center;
    gap: 30px;
  }
}
/* ================= CONTACT FORM ================= */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.95rem;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fbbf24;
}

.contact-form button {
  background: #fbbf24;
  color: #111827;
  padding: 14px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
  background: #f59e0b;
  transform: translateY(-2px);
}

/* MOBILE FIX */
@media (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

.solutions h2,
.projects h2 {
  text-align: center;
  margin-bottom: 30px;
}
body.lightbox-open {
  overflow: hidden;
 
}
