/* =====  index.html ===== */

/* ===== RESET ===== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  background: #2f3234;
  color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 55px;
  z-index: 1000;
}

.header .logo {
  font-size: 1.5em;
  font-weight: bold;
}
.logo-link {
  text-decoration: none; /* прибирає підкреслення */
  color: inherit; /* наслідує колір від батька .logo */
  font-size: inherit; /* залишає розмір шрифту як у .logo */
  font-weight: inherit;
}
.logo-cnc {
  font-size: 12px;
}

/* ===== NAVIGATION ===== */
.nav-links a {
  color: white;
  margin-left: 50px;
  text-decoration: none;
  font-size: 22px;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
}

/* ===== SECTION ===== */
.section {
  width: 100%;
  max-width: 80vw;
  margin: auto;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  width: 100%;
  height: 65vh; /* на весь екран */
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* правильне кадрування */
  object-position: center;
  display: block;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4));
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 800px;
  padding: 20px;
}

.hero-text h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
}

.hero-text p {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-top: 10px;
}

/* ===== INFO SECTION ===== */
.info_title {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  max-width: 80vw;
}
.info_title {
  position: relative;
  padding: 80px 20px;
  /* background-image: url("images/D7LOGO.png"); */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 500px auto; /* регулюй розмір */
}

.info_title h1 {
  font-size: 2.2em;
  margin-bottom: 50px;
  text-align: center;
}

.info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 50px 0;
}

.info > div {
  background: rgba(255, 255, 255, 0.85);
  padding: 30px 20px;
  border-radius: 15px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.info > div:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.info img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}
.info_back_logo {
  position: absolute;
  width: 20px;
  height: 20px;
  opacity: 0.35;
}

.info h3 {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: #222;
}

.info p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.5;
}

/* ===== GALLERY ===== */
.gallery-wrapper {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  border-radius: 50%;
  user-select: none;
}

.gallery-arrow.left {
  left: 10px;
}
.gallery-arrow.right {
  right: 10px;
}

.gallery-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.gallery {
  overflow: hidden;
  width: 100%;
  padding: 0 10px;
}

.gallery-scroll {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  scroll-snap-type: x mandatory;
  padding: 10px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-scroll img {
  flex: 0 0 auto; /* фото не стискаються і не ростуть */
  min-height: 350px; /* збільшена максимальна висота фото */
  min-width: 350px; /* збільшена максимальна висота фото */
  height: auto; /* автоматична висота, щоб зберегти пропорції */
  width: auto; /* ширина під пропорції */
  object-fit: contain; /* фото повністю видно, нічого не обрізається */
  border-radius: 8px;
  scroll-snap-align: start;
  background-color: #f0f0f0; /* фон для порожніх полів */
}

.gallery-scroll::-webkit-scrollbar {
  display: none;
}

.gallery-scroll > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.gallery-scroll img {
  flex: 0 0 100%;
  height: 200px;
  width: clamp(220px, 80vw, 300px);
  object-fit: cover;
}

/* ===== CONTACT & FOOTER ===== */
.contact-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
  justify-content: space-between;
  align-items: flex-start;
}

.contact-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-info h2,
.contact-info p {
  width: 100%;
  text-align: center;
}

.contact-map {
  flex: 1;
  min-width: 300px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.contact-map iframe {
  width: 100%;
  max-width: 100%;
  height: 300px;
  border-radius: 10px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  width: 100%;
}

.social-links a {
  display: inline-flex;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: white;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.social-links img {
  width: 24px;
  height: 24px;
}

.social-links a:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.footer {
  background: #2f3234;
  color: white;
  text-align: center;
  padding: 40px;
  margin-top: 40px;
}

/* ===== LANGUAGE SWITCH ===== */
.language-switch {
  color: white;
  font-size: 0.9em;
  margin-right: 20px;
}

.language-switch button {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
}

.language-switch button:hover {
  text-decoration: underline;
}

/* ===== ADAPTIVE / MEDIA QUERIES ===== */
@media (max-width: 1024px) {
  .section {
    max-width: 100%;
  }
  .info {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: fixed;
    top: 60px;
    left: -250px;
    width: 250px;
    height: 100%;
    background: #222;
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    transition: left 0.3s ease;
    z-index: 999;
  }
  .nav-links a {
    margin: 0;
    padding: 10px 0;
    border-top: 1px solid #444;
  }
  .nav-links.active {
    left: 0;
  }
  .info {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.2em;
  }
  .hero-text p {
    font-size: 0.9em;
  }
}

@media (min-width: 600px) {
  .gallery-scroll img {
    flex-basis: 50%;
  }
}
@media (min-width: 900px) {
  .gallery-scroll img {
    flex-basis: 33.3333%;
  }
}
@media (min-width: 1200px) {
  .gallery-scroll img {
    flex-basis: 25%;
  }
}

/* Малі екрани - stack вертикально */
@media (max-width: 999px) {
  .contact-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .contact-info {
    width: 100%;
    text-align: center;
  }

  .contact-map {
    width: 90%;
    max-width: 600px;
    margin-top: 20px;
  }
}

/* Великі екрани - contact-map праворуч */
@media (min-width: 1000px) {
  .contact-wrapper {
    flex-direction: row;
    align-items: flex-start;
  }

  .contact-info {
    text-align: left;
    align-items: flex-start;
    flex: 1;
  }

  .contact-map {
    width: 50%; /* займає праву половину */
    max-width: 550px;
    margin-top: 0;
  }
}

/* =====  offer.html ===== */

/* ===== SERVICES SECTION ===== */

.info_title {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 30px 20px;
  max-width: 1000px;
  margin: auto;
  text-align: center;
}

.info_title h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #222;
}

/* ===== pictures ===== */
/* Загальний стиль контейнера */
.box-img {
  display: flex;
  flex-direction: column; /* за замовчуванням стовпцем для мобільних */
  gap: 20px; /* відстань між блоками */
  padding: 20px;
}

/* Стиль для окремих блоків */
.box-img > div {
  background-color: #f9f9f9; /* світлий фон для блоків */
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Стиль зображень */
.offer-image {
  width: 100%;
  max-width: 300px; /* обмеження максимальної ширини */
  height: 200px; /* фіксована висота для однакових розмірів */
  object-fit: cover; /* зберігає пропорції, обрізає зайве */
  margin: 10px 0;
  border-radius: 5px;
}

/* Заголовки */
.box-img h3 {
  text-align: center;
  margin-bottom: 30px;
}

/* Медіа-запит для великих екранів */
@media screen and (min-width: 1000px) {
  .box-img {
    flex-direction: row; /* блоки в ряд */
    justify-content: space-between; /* розподіл по ширині */
  }

  .box-img > div {
    flex: 1; /* блоки однакової ширини */
    margin: 0 10px; /* відстань між блоками */
  }
}

.text-offer p {
  padding: 0 50px;
  text-align: start;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .info_title h1 {
    font-size: 2em;
  }
}

/* =====  contact.html ===== */

.contact-form-box {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  width: 100%;
  margin: 30px auto 0 auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.consent-wrap {
  display: flex;
  flex-direction: row;
}
.consent-wrap label {
  margin-left: 5px;
  font-size: 12px;
}

.form-group label {
  font-weight: bold;
  color: #222;
}

.form-group input,
.form-group textarea {
  padding: 10px 15px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
  transition: border 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #007bff;
}

.submit-btn {
  padding: 12px 25px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background-color: #0056b3;
}
.contact-form-box .required {
  color: red;
  font-weight: bold;
}

.contact-form-box .form-note {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #555;
}
.form-group label {
  display: flex; /* Робимо текст і зірочку на одному рядку */
  align-items: center; /* Вирівнювання по центру вертикалі */
  gap: 4px; /* Відстань між текстом і * */
  font-weight: bold;
  color: #222;
}

.required {
  color: red; /* Червоний колір зірочки */
  font-weight: bold;
  font-size: 1rem;
  margin-left: 5px;
}
.label-wrap {
  display: flex;
}

/* Адаптивність */
@media (max-width: 768px) {
  .contact-form-box {
    padding: 0 20px;
  }
  .gallery-arrow {
    display: none;
  }
}
/* =====  about.html ===== */

.text-about {
  padding: 0 10px;
  text-align: start;

  font-size: 1.05rem;
  line-height: 1.9;
  letter-spacing: 0.3px;
  color: #2b2b2b;
}
.text-about p {
  margin-bottom: 1em;
}

.text-about strong {
  color: #0077ff;
  font-weight: 600;
}

.text-about a {
  color: #0077ff;
  text-decoration: none;
}

.text-about a:hover {
  text-decoration: underline;
}
