
/* Base Reset & Globals */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  background: url('background.jpg') no-repeat center center fixed;
  background-size: cover;
  background-color: #000;
  color: #f8f8f8;
  overflow-x: hidden;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.95);
  color: #fff;
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 12px;
  height: 70px;
  flex-wrap: nowrap;
}

.logo {
  font-size: 0.3em;
  color: #fff;
}

.phone-number {
  font-size: 1em;
  color: #ffcc00;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Nav */
nav {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

nav a {
  color: #fff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
}

nav a:hover {
  color: #ffaa00;
  text-shadow: 0 0 8px rgba(255, 170, 0, 0.7);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 0;
  background-color: #ffaa00;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* Main Layout */
main {
  padding: 120px 20px 40px 20px;
  position: relative;
  z-index: 1;
}

section {
  max-width: 1000px;
  margin: 60px auto;
  padding: 60px 30px;
  background: rgba(0, 0, 0, 0.65);
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
  transition: all 0.5s ease;
  opacity: 0;
  transform: translateY(30px);
}

section.visible {
  opacity: 1;
  transform: translateY(0);
}

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&display=swap');

/* Targeting all section H2 titles */
section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2em;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 
    0 0 6px rgba(255, 215, 0, 0.8),
    0 0 10px rgba(255, 215, 0, 0.5),
    0 0 14px rgba(255, 215, 0, 0.3);
  text-align: center;
  letter-spacing: 0.5px;
}


section h2 i {
  margin-right: 10px;
}

/* Hero */

.hero {
  text-align: center;
  margin-top: 190px; /* more balanced */
  padding: 60px 30px; /* same as all sections */  
}



.hero p {
  font-size: 1.1em;
  color: #ddd;
  margin-bottom: 30px;
}


.cta-button {
  padding: 14px 28px;
  font-size: 1em;
  background: #ffaa33;
  color: #000;
  font-weight: bold;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 0 12px rgba(255, 170, 51, 0.5);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #ff8800;
  color: white;
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(255, 136, 0, 0.8);
}

/* Grid Gallery */
.grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.grid img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
}

.grid img:hover {
  transform: scale(1.06);
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

form input, form textarea {
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-size: 1em;
  background: #222;
  color: #fff;
  outline: none;
}

form button {
  padding: 14px;
  background-color: #ff6600;
  color: white;
  border: none;
  font-weight: bold;
  font-size: 1em;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  background-color: #cc5200;
}

/* Footer */
footer {
  text-align: center;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  padding: 20px 0;
  font-size: 0.9em;
  border-top: 1px solid rgba(255,255,255,0.1);
}

/* Scroll to Top Button */
#topBtn {
  display: none;
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 99;
  font-size: 18px;
  background-color: #00334d;
  color: white;
  padding: 12px 16px;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#topBtn:hover {
  background-color: #005577;
}

@media (max-width: 768px) {
body {
  background: none !important;
}


  body::after {
    display: none !important;
  }
}


/* Video background for mobile */
#mobileVideoBackground {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -101;
  pointer-events: none; /* prevents interaction blocking */
}

.video-overlay {
  width: 100vw;
  height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  z-index: -100;
}

/* Optional animated blur */
@keyframes blurPulse {
  0%, 100% {
    filter: blur(2px);
  }
  50% {
    filter: blur(5px);
  }
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 768px) {
  .logo-img {
    height: 36px;
  }

.logo-text {
  font-size: 1.5em;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
  text-shadow:
    0 0 6px rgba(255, 215, 0, 0.8),
    0 0 12px rgba(255, 215, 0, 0.5),
    0 0 16px rgba(255, 215, 0, 0.3);
}



.phone-numbers {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.phone-numbers a {
  font-size: 1em;
  font-weight: bold;
  color: #ffcc00;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.8);
}

.phone-numbers a:hover {
  color: #ffe066;
}

.logo-bg {
  background-color: white;
  padding: 4px;
  border-radius: 50%; /* круглое обрамление */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2); /* мягкая тень */
  width: 52px;
  height: 52px;
}


.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.phone-numbers-stacked {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* or center if preferred */
  gap: 4px;
  font-size: 0.95em;
}

.phone-numbers-stacked a {
  color: #ffcc00;
  font-weight: bold;
  text-decoration: none;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.8);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

    

.contact-item {
  margin-bottom: 20px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}

.contact-links a,
.contact-link {
  color: #ffcc00;
  text-decoration: none;
  font-weight: bold;
  text-shadow: 0 0 6px rgba(255, 204, 0, 0.8);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.contact-links a:hover,
.contact-link:hover {
  color: #ffe066;
}

.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-top: 20px;
}


.product-card:hover {
  transform: translateY(-5px);
}

.product-card {
  background: rgba(255, 255, 255, 0.05); /* subtle glass effect */
  padding: 20px;
  border-radius: 10px;
  box-shadow: none;
  border-left: 4px solid #007BFF;
  transition: transform 0.3s ease;
}

.product-card h3 {
  font-size: 1.2em;
  margin-bottom: 15px;
  color: #ffffff;
  text-align: center;
  text-transform: uppercase;
}


.product-images {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.product-images img {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

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

}


@media (min-width: 769px) {
  .logo-img {
    height: 64px; /* Or any larger value you prefer */
  }

  .logo-bg {
    width: 70px;
    height: 70px;
  }
}


.our-work {
  text-align: center;
  padding: 60px 20px;
    background-color: #111; /* ВРЕМЕННО, чтобы увидеть раздел */
}







.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* строго 2 в ряд */
  gap: 16px;
  justify-items: center;
}

.category-card {
  width: 100%;
  max-width: 250px;
  background: #111;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 0 8px rgba(255, 204, 0, 0.4);
}

.category-card:hover {
  transform: scale(1.05);
}

.category-card img {
  width: 100%;
  aspect-ratio: 16 / 9; /* горизонтальное соотношение сторон */
  object-fit: cover;
  display: block;
}


.category-card p {
  padding: 10px;
  color: #ffcc00;
  font-weight: bold;
  background: #000;
  margin: 0;
}







body.modal-open {
  overflow: hidden;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: flex-start; /* фикс: не центрируем по вертикали */
  overflow-y: auto;
  padding-top: 75px;
  padding-bottom: 40px;
}


.modal-content {
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  width: 100%;
  max-width: 1000px;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 10px;
  margin: 40px 10px;
  max-height: 90vh;       /* 🔹 фикс высоты */
  overflow-y: auto;       /* 🔹 включаем вертикальный скролл */
}



.modal.show {
  display: flex;
}





.modal.show .modal-content {
  transform: scale(1);
}





.modal-content .close {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  color: #ffcc00;
  cursor: pointer;
}

#gallery-content {
  display: flex;
  flex-direction: column;
  gap: 50px;
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 16px;
  box-sizing: border-box;
}


#gallery-content img {
  width: 100px;
  height: 75px; /* больше размер картинки */
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease;
}




#gallery-content img:hover {
  transform: scale(1.05);
}



.gallery-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
  color: #ffcc00;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}


.fullscreen-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.95);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.fullscreen-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

.close-fullscreen {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 40px;
  color: #ffcc00;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
}


.back-button {
  margin-top: 30px;
  padding: 12px 24px;
  background-color: #ffcc00;
  border: none;
  font-weight: bold;
  font-size: 1em;
  color: #000;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.back-button:hover {
  background-color: #e6b800;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  padding: 10px;
}

.video-card {
  width: calc(50% - 20px); /* две в ряд с отступами */
  max-width: 240px;
  aspect-ratio: 9 / 16;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(0,0,0,0.3);
}




.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
}

.video-modal video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.video-modal.show {
  display: flex;
}

.close-video-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #ffcc00;
  cursor: pointer;
  text-shadow: 0 0 8px rgba(255, 204, 0, 0.8);
  z-index: 10001; /* добавь если нужно */
}

