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

body {
  font-family: Arial, sans-serif;
  color: #222;
  background: #fff;
}

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: #0f172a;
  z-index: 1000;
}

.header-inner {
  max-width: 1200px;
  margin: auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
}

/* Desktop nav */
.desktop-nav {
  display: flex;
  gap: 20px;
}

.desktop-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
}

.desktop-nav a:hover {
  color: #fff;
}

/* Header button */
.header-btn {
  background: #2563eb;
  color: #fff;
  padding: 10px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
}
/* ===== BURGER BUTTON ===== */
.burger {
  display: none;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
}

.burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

.burger span:nth-child(1) { top: 0; }
.burger span:nth-child(2) { top: 9px; }
.burger span:nth-child(3) { top: 18px; }
/* ===== HERO ===== */
.hero {
  margin-top: 80px;
  background: linear-gradient(135deg, #020617, #1e293b);
  color: #fff;
  padding: 80px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.hero p {
  font-size: 16px;
  opacity: 0.9;
}

.hero-buttons {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 15px;
}

.btn {
  padding: 14px 22px;
  border-radius: 8px;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.btn.call {
  background: #22c55e;
}

.btn.whatsapp {
  background: #3b82f6;
}

/* ===== SECTIONS ===== */
section {
  max-width: 1200px;
  margin: auto;
  padding: 60px 20px;
}

/* ===== SERVICES ===== */
.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.service-item {
  background: #f8fafc;
  padding: 20px;
  border-radius: 10px;
  text-decoration: none;
  color: #111;
}

.service-item h3 {
  margin-bottom: 10px;
}



/* ===== CONTACT ===== */
footer {
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 20px;
}

/* ===== MOBILE SIDE MENU ===== */
#menuOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 900;
}

#menuOverlay.active {
  opacity: 0.6;
  pointer-events: auto;
}

#sideMenu {
  position: fixed;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100%;
  background: #0f172a;
  color: #fff;
  transition: 0.3s;
  z-index: 1000;
  padding: 20px;

  overflow-y: auto;
}

#sideMenu.active {
  left: 0;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.side-logo {
  font-size: 20px;
  font-weight: bold;
}

#closeMenu {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}

#sideMenu .side-nav a {
  display: block;
  color: #ffffff !important;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 16px;
  opacity: 1 !important;
  visibility: visible !important;
  position: relative;
z-index: 1001;
}
#sideMenu .side-nav a:hover {
  color: #38bdf8 !important;
}

.side-contact {
  margin-top: 30px;
  font-size: 14px;
}

.side-btn {
  display: inline-block;
  margin-top: 15px;
  background: #22c55e;
  color: #fff;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1023px) {
  .desktop-nav,
  .header-btn {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
/* === PROJECTORAMA HORIZONTAL SLIDER === */
/* === PROJECTORAMA STYLE GALLERY === */

.gallery-section {
  margin: 60px auto;
  max-width: 1200px;
}

.gallery-wrapper {
  overflow: hidden;
}
.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-track img {
  width: 100%;
  max-width: 360px;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 14px;
}

/* === MOBILE === */
@media (max-width: 768px) {
  .gallery-track img {
    width: 85vw;
    height: 85vw;
  }
}
/* ===== WORKING GALLERY ===== */

.proj-gallery {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

.proj-track {
  display: flex;
  gap: 16px;
  transition: transform 0.3s ease;
  touch-action: pan-y;
}

.proj-track img {
  flex: 0 0 auto;
  width: 320px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
}

/* arrows */
.proj-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
}

.proj-nav.prev { left: 10px; }
.proj-nav.next { right: 10px; }

/* MOBILE */
@media (max-width: 768px) {
  .proj-track img {
    width: 90vw;
    height: 60vw;
  }
/* === MOBILE SIDE MENU === */

#sideMenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #0f7a3a; /* ЗЕЛЁНЫЙ */
  color: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 20px;
}

#sideMenu.active {
  right: 0;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.side-logo {
  font-size: 22px;
  font-weight: bold;
}

#closeMenu {
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

.mobile-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-nav a:hover {
  opacity: 0.8;
}


/* === MOBILE SIDE MENU === */

#sideMenu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #0f7a3a; /* ЗЕЛЁНЫЙ */
  color: #fff;
  z-index: 1001;
  transition: right 0.3s ease;
  padding: 20px;
}

#sideMenu.active {
  right: 0;
}

.side-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.side-logo {
  font-size: 22px;
  font-weight: bold;
}

#closeMenu {
  background: none;
  border: none;
  font-size: 26px;
  color: #fff;
  cursor: pointer;
}

.mobile-nav a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.mobile-nav a:hover {
  opacity: 0.8;
}



#menuOverlay.active {
  opacity: 1;
  pointer-events: all;
}
#menuOverlay.active {
  opacity: 1;
  pointer-events: all;
}
/* ===== MOBILE MENU FIX ===== */
@media (max-width: 768px) {

  /* показываем бургер */
  .burger {
    display: flex !important;
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10001;
  }

  .burger span {
    display: block;
    width: 26px;
    height: 3px;
    background: #fff;
    margin: 4px 0;
  }

  /* скрываем desktop меню */
  .desktop-nav {
    display: none !important;
  }

  /* боковое меню */
  #sideMenu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100%;
    background: #fff;
    z-index: 10000;
    transition: right 0.3s ease;
  }

  #sideMenu.active {
    right: 0;
  }

  /* overlay */
  #menuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    z-index: 9999;
  }

  #menuOverlay.active {
    opacity: 1;
    pointer-events: all;
  }
}
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .header-btn {
    display: none;
  }

  .burger {
    display: block;
  }
}
/* === FORCE FIX MOBILE MENU TEXT === */

#sideMenu {
  position: fixed !important;
  top: 0;
  left: -320px;
  width: 320px;
  height: 100vh;
  background: #0f172a !important;
  z-index: 9999 !important;
  overflow-y: auto;
}

#sideMenu.active {
  left: 0;
}

#sideMenu * {
  color: #ffffff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#sideMenu a {
  display: block !important;
  color: #ffffff !important;
  font-size: 16px !important;
  margin-bottom: 15px;
  position: relative;
  z-index: 10000 !important;
}

#menuOverlay {
  z-index: 9000 !important;
}
.contact-section {
  padding: 60px 20px;
  background: #f7f7f7;
  text-align: center;
}

.contact-section h2 {
  font-size: 28px;
  margin-bottom: 15px;
}

.contact-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
}

.contact-box {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-box a {
  font-size: 18px;
  font-weight: 600;
  color: #0b3c5d;
  text-decoration: none;
}

.contact-box a:hover {
  text-decoration: underline;
}
/* CONTACT */
.contact-section {
  padding: 70px 20px;
  background: #f5f7f8;
}

.contact-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.contact-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 30px;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* FORM */
.contact-form {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-form input,
.contact-form textarea {
  padding: 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

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

.contact-form button {
  background: #28c76f;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 14px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #22b463;
}

/* INFO CARDS */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.info-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.info-card a {
  color: #28c76f;
  text-decoration: none;
  font-weight: 600;
}
/* =========================
   CONTACT SECTION
========================= */

.contact-section {
  padding: 80px 20px;
  background: #f6f8f7;
}

.contact-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: #1f2937;
}

.contact-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* FORM */
.contact-form {
  background: #ffffff;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 16px;
}

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

.contact-form button {
  width: 100%;
  padding: 16px;
  background: #22c55e;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background: #16a34a;
}

/* INFO BLOCKS */
.contact-info {
  display: grid;
  gap: 20px;
}

.info-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.info-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.info-card p,
.info-card a {
  font-size: 16px;
  color: #374151;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* ===== GALERIA REALIZACJI ===== */

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.realizacje-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
}

/* планшеты */
@media (max-width: 1024px) {
  .realizacje-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* телефоны */
@media (max-width: 600px) {
  .realizacje-grid {
    grid-template-columns: 1fr;
  }

  .realizacje-grid img {
    height: auto;
  }
}
/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 95%;
  object-fit: contain;
}

.lb-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 50px;
  cursor: pointer;
  padding: 10px;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

@media (max-width: 768px) {
  .lb-btn {
    font-size: 36px;
  }
}
.real-info p {
  margin: 0;
  color: #666;
}* ===== GALERIA REALIZACJI ===== */
.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.realizacje-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.realizacje-grid img:hover {
  transform: scale(1.03);
}

/* telefon */
@media (max-width: 600px) {
  .realizacje-grid img {
    height: 220px;
  }
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
/* === DESKTOP FIX === */

/* HERO текст */
.hero h1,
.hero p,
.hero .hero-buttons {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ВЕСЬ основной контент */
section,
.form-section,
.map-section,
.gallery-section,
.services-section {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
/* карта */
iframe {
  max-width: 100%;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
}
.hero-trust {
    margin-top: 12px;
    font-size: 14px;
    color: #cfcfcf;
    text-align: center;
}
/* ============================= */
/* DESKTOP FIX – НЕ ТРОГАТЬ ВЫШЕ */
/* ============================= */

/* Ограничиваем ширину сайта */
body {
  max-width: 1200px;
  margin: 0 auto;
}

/* Общий контейнер для секций */
section {
  padding-left: 16px;
  padding-right: 16px;
}

/* Галерея – нормальный вид на ноутбуке */
.gallery,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Фото в галерее */
.gallery img,
.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* Увеличение текста на больших экранах */
@media (min-width: 1024px) {
  body {
    font-size: 18px;
    line-height: 1.6;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 24px;
  }

  p {
    font-size: 18px;
  }
}
/* ===== DESKTOP FIX: галерея + текст ===== */
@media (min-width: 1025px) {

  /* Галерея: уменьшаем визуально фото */
  .realizacje-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
  }

  .realizacje-grid img {
    height: 200px;        /* БЫЛО 260px → стало компактно */
    object-fit: cover;
  }

  .realizacje-grid img:hover {
    transform: scale(1.01); /* меньше зума */
  }

  /* Основной текст */
  body {
    font-size: 18px;
    line-height: 1.6;
  }

  /* Заголовки */
  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 32px;
  }

  h3 {
    font-size: 22px;
  }

  /* Текст под галереей и в секциях */
  section p,
  .services-section p,
  .real-info p {
    font-size: 18px;
  }
}
/* ===== FINAL DESKTOP OVERRIDE ===== */
@media (min-width: 1025px) {

  .realizacje-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 1100px;
    margin: 0 auto;
  }

  .realizacje-grid img {
    height: 180px !important;
    object-fit: cover;
    transform: none !important;
  }

  body {
    font-size: 18px !important;
  }

  section p,
  .services-section p,
  .real-info p {
    font-size: 18px !important;
  }
/* === FIX: галерея не растягивает экран === */

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

.realizacje-grid img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}
  h1 { font-size: 40px !important; }
  h2 { font-size: 30px !important; }
  h3 { font-size: 22px !important; }
}
/* ===== FIX GALERIA REALIZACJE ===== */

.realizacje-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.realizacje-grid img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

/* zabezpieczenie dla wszystkich obrazów */
img {
  max-width: 100%;
  height: auto;
}
.realizacje-grid {
  max-width: 1200px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 0 15px;
}

.realizacje-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 12px;
}
/* ===== OVERLAY FOR SERVICE PANEL ===== */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 998;
  transition: opacity 0.3s ease;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.seo-section{
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
  line-height: 1.6;
}

.seo-section h2{
  margin-bottom: 15px;
}
#closeMenu {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  z-index: 9999;
  padding: 10px;
}
/* 🔥 фикс мобильного меню */
.mobile-menu,
#sideMenu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 280px;
  z-index: 9999;
}

/* затемнение фона */
#menuOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9998;
}

/* крестик */
#closeMenu {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
  z-index: 10000;
  padding: 10px;
}
.mobile-menu{
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100%;
  background: #0b1220;
  transition: right .3s ease;
  z-index: 9999;
}

.mobile-menu.active{
  right: 0;
}

body.menu-open{
  overflow: hidden;
}
/* ===== MOBILE MENU FIX (FINAL) ===== */

/* само меню */
.sideMenu,
.menu,
.nav-menu {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  width: 280px !important;
  max-width: 85vw !important;
  height: 100vh !important;
  background: #000 !important;
  z-index: 9999 !important;
  transform: translateX(100%) !important;
  transition: transform 0.3s ease !important;
  overflow-y: auto !important;
}

/* открытое меню */
.sideMenu.open,
.menu.open,
.nav-menu.open,
.sideMenu.active,
.menu.active,
.nav-menu.active {
  transform: translateX(0) !important;
}

/* крестик закрытия */
.close,
#closeMenu,
.menu-close {
  position: absolute !important;
  top: 15px !important;
  right: 15px !important;
  z-index: 10000 !important;
  cursor: pointer !important;
}

/* чтобы ничего не перекрывало */
body.menu-open {
  overflow: hidden;
}
/* ===== MOBILE MENU FIX FINAL ===== */

.sideMenu{
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  max-width: 85vw;
  height: 100vh;
  background: #000;
  z-index: 99999;
  transform: translateX(100%);
  transition: transform .3s ease;
  overflow-y: auto;
}

.sideMenu.open{
  transform: translateX(0);
}

/* затемнение фона */
.menuOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}


/* затемнение фона */
#menuOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}

#menuOverlay.active{
  opacity: 1;
  pointer-events: auto;
}
/* блокировка скролла */
body.menu-open{
  overflow: hidden;
}
