:root {
    --bg-light: #f5f4f4;
    --bg-dark: #0d1b2a;
    --text-dark: #0d1b2a;
    --text-light: #ffffff;
    --accent-yellow: #ffd500;
  }
  

/* === Основи === */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
  }
  
  body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    transition: background-color 0.3s, color 0.3s;
    background-color: var(--bg-light);
    color: var(--text-dark);
  }

.visually-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
}



  input[name="company"] {
    transition: border-color 0.3s ease;
  }

  /* === Контейнер === */
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
  }
  
  header,
  footer {
    background-color: var(--bg-dark);
    color: var(--text-light);
  }
  

  /* === Header === */
  .site-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #0d1b2a;
    color: white;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.3rem;
    text-transform: uppercase;
    color: #ffd500;
  }
  
  .logo span {
    color: white;
  }
  
  .main-nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    padding: 0;
    margin: 0;
  }
  
  .main-nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: color 0.2s;
  }
  
  .main-nav a.active,
  .main-nav a:hover {
    color: #ffd500;
  }
  
  
  /* === Відео-фон === */
  .video-background {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }
  
  .video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

.youtube-link {
  position: absolute;
  bottom: 20px;
  right: 30px;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  padding: 8px 14px;
  font-size: 14px;
  text-decoration: none;
  border-radius: 0px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.youtube-link:hover {
  background: #ff0000;
  color: white;
}

.youtube-icon {
  height: 16px;
  filter: brightness(0) invert(1);
}


  
  /* === Hero === */
  .hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    color: white;
    text-shadow: 1px 1px 4px #000;
    margin-bottom: 20px;
  }
  
  .scroll-down {
    font-size: 2rem;
    color: #ffd500;
    text-decoration: none;
  }
  
  /* === Секції === */
  .section {
    padding: 80px 20px;
    background: white;
    transition: background 0.3s, color 0.3s;
  }
  
 
  
  .section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 50px;
    position: relative;
  }
  
  .section-title::after {
    content: "";
    display: block;
    width: 60px;
    height: 4px;
    background: #ffd500;
    margin: 12px auto 0;
  }
  
  /* === Послуги === */
  .service-cards {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .card {
    width: 300px;
    background: #f1f1f1;
    border-radius: 0px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
.card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

  
  .card h3 {
    margin: 15px 0 10px;
    color: #0d1b2a;
  }
  
  .card p {
    padding: 0 15px 20px;
    font-size: 0.95rem;
  }
  
  /* === Про нас === */
.about-parallax-wrapper {
  display: flex;
  width: 100%;
  height: 50vh; /* половина екрану */
  min-height: 300px;
}




  
  .about-parallax-text {
    flex: 1;
    padding: 80px;
    background-color: #f5f4f4;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }
  
  .about-content {
    max-width: 600px;
    width: 100%;
  }
  
  .about-content h2 {
    font-size: 32px;
    margin-bottom: 20px;
    color: #0d1b2a;
    position: relative;
  }
  
.about-content h2 {
  position: relative;
  text-align: center;
}

.about-content h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: #ffd500;
  margin: 10px auto 0; /* авто вирівнювання по центру */
}

  
  .about-content p {
    font-size: 17px;
    color: #2b2b2b;
    line-height: 1.7;
  }
  
.about-parallax-image {
  flex: 1;
  min-height: 400px;
  height: 50vh;
  background-image: url('assets/about.png'); /* або свій шлях */
  background-position: right;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}


  @media (max-width: 970px) {
  .about-parallax-wrapper {
    flex-direction: column;
    height: auto; /* даємо змінну висоту на мобільному */
  }

  .about-parallax-image {
    height: 250px;
    background-attachment: scroll; /* щоб не глючило на iOS */
  }

  .about-parallax-text {
    justify-content: center;
    padding: 40px 20px;
  }

  .about-content {
    text-align: center;
  }
}

  
  
  /* Статистика */
  .about-stats-true {
    background: #ffd500;
    padding: 60px 0;
  }
  
  .stats-grid-true {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    text-align: center;
    flex-wrap: wrap;
  }
  
  .stat-item {
    flex: 1 1 200px;
  }
  
  .stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #000;
  }
  
  .stat-label {
    margin-top: 10px;
    font-size: 16px;
    color: #333;
  }
  

  
  /* === Проєкти === */
  .project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .project-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0px;
  }

  
  
  /* === Клієнти === */
  .clients {
    background: #f9f9f9;
  }
  
  .client-logos {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    padding: 20px 0;
  }
  
  .client-logos img {
    height: 80px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s;
  }
  
  .client-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
  }
  
  /* === Контакти з картою === */

.contact-link {
  color: inherit;
  font-weight: bold;
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.contact-link:hover {
  color: #cfad00;
  text-decoration: underline;
}


  
  .contact-info {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 20px;
    color: #0d1b2a;
  }
  
  .contact-info p {
    margin: 5px 0;
    font-weight: 500;
  }
  
  .contact-info a {
    color: inherit;
    text-decoration: none;
  }
  
  .contact-info a:hover {
    text-decoration: underline;
  }
  

.contact-section {
    padding: 0;
    margin: 0;
  }
  
  .contact-map iframe {
    width: 100%;
    height: 700px;
    display: block;
    border: none;
  }
  
  .contact-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0px 20px 50px 20px;
    background-color: #f5f5f5;
  }
  
  .contact-form-container h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 30px;
    color: #0d1b2a;
  }
  
  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 12px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
  }
  
  .contact-form textarea {
    width: 100%;
    resize: vertical;
    margin-bottom: 20px;
  }
  
  .contact-form button {
    background-color: #0d1b2a;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .contact-form button:hover {
    background-color: #ffd500;
    color: #000;
  }
  
  
.client-type-selector-buttons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
  align-items: center;
  font-size: 14px;
  grid-column: span 1;
}

.client-type-selector-buttons label {
  background-color: #eee;
  padding: 10px 18px;
  border: 1px solid #ccc;
  border-radius: 4px;
  cursor: pointer;
  user-select: none;
  color: #0d1b2a;
}

.client-type-selector-buttons input[type="radio"]:checked + label {
  background-color: #ffd500;
  border-color: #ffd500;
  color: #000;
  font-weight: 600;
}


@media (max-width: 768px) {
  .client-type-selector-buttons {
    flex-direction: column;
    align-items: flex-start;
  }
}

  
  
  /* === Футер === */
  .site-footer {
    background: #0d1b2a;
    color: white;
    text-align: center;
    padding: 20px 10px;
  }
  
  /* === Модальне вікно === */
  .modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }
  
  .modal-content {
    background: white;
    color: black;
    padding: 20px 30px;
    border-radius: 0px;
    text-align: center;
    max-width: 400px;
    width: 90%;
  }
  
  .modal-content button {
    margin-top: 20px;
    background: #0d1b2a;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 0px;
    cursor: pointer;
  }

  body.modal-open,
  html.modal-open {
   overflow: hidden !important;
   height: 100vh !important;
  }



  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 стовпці стабільно */
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
  }


  .category-selector {
  display: flex;
  flex-direction: column;
  grid-column: span 2;
}

.category-selector label {
  margin-bottom: 6px;
  font-weight: 500;
  color: #0d1b2a;
}

.category-selector select {
  padding: 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.category-selector select:focus {
  border-color: #ffd500;
  outline: none;
}

  @media (max-width: 768px) {
  .project-grid {
    grid-template-columns: 1fr; /* по одному елементу в ряд */
  }
}

  
  .project-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    display: block;
    border-radius: 0px;
  }
  
  .project-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
  }
  
  .project-item:hover img {
    transform: scale(1.05);
  }
  
  .project-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
  }
  
  .project-item:hover .project-overlay {
    opacity: 1;
  }
  
  .project-item.show-overlay .project-overlay {
  opacity: 1;
}

  
  /* === Мобільна адаптація === */
  @media (max-width: 768px) {
    .main-nav ul {
      flex-direction: column;
      background: #0d1b2a;
      position: absolute;
      top: 100%;
      right: 0;
      display: none;
    }
  
    .main-nav.open ul {
      display: flex;
    }
  }
  