/* Основни настройки */
body {
  font-family: "Open Sans", sans-serif;
  background: #e0e0e0;
  margin: 0;
  padding: 0;
  color: #333;
}

body, p, li {
  font-family: "Open Sans", sans-serif;
}

h1, h2, h3 {
  font-family: "Montserrat", sans-serif;
}

/* ===== HEADER: лого вляво, заглавие и бутони вдясно ===== */
.header-flex {
  display: flex;
  align-items: center;       /* подравнява логото и текста по вертикала */
  justify-content: center;   /* центрира целия блок в страницата */
  gap: 30px;                 /* разстояние между логото и текста */
  padding: 30px 40px;
  background-color: #222;
  color: white;
}

.logo {
  max-width: 120px;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 0 8px rgba(0,0,0,0.3);
  margin-right: 20px;
}

.header-right {
  display: flex;
  flex-direction: column;   /* заглавие над бутоните */
  align-items: flex-start;  /* заглавието остава вляво */
}

.header-right h1 {
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  margin: 0 0 25px;
  color: white;
  text-align: left;

  /* добавено за стабилност */
  min-height: 60px;       /* фиксира височината на заглавието */
  display: flex;
  align-items: center;    /* центрира текста вертикално в блока */
}

.header-right nav {
  width: 100%;
  display: flex;
  justify-content: center;   /* центрира бутоните */
  margin-top: 5px;           /* малко разстояние от h1 */
}

.header-right nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
  padding: 0;
  margin: 0 auto;            /* гарантира центриране */
}

.header-right nav li {
  display: inline-block;
}

.header-right nav a {
  display: inline-block;
  padding: 10px 20px;
  background-color: #005a9c;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.header-right nav a:hover {
  background-color: #003f6b;
}

.header-right nav a.active {
  background-color: green;
}



/* ===== INTRO секция ===== */
.intro {
  width: 50%;
  margin: 40px auto;
  padding: 20px;
  background: url("images/metal-bg.webp") no-repeat center center;
  background-size: cover;
  position: relative;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  z-index: 1;
}

.intro * {
  position: relative;
  z-index: 2;
  color: #fff;
}

.intro h2,
.intro h3 {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-indent: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.intro p {
  font-size: 1.2rem;
  line-height: 1.8;
  margin-bottom: 20px;
  text-indent: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ===== ABOUT секция ===== */
.about {
  width: 30%;
  margin: 40px auto;
  padding: 30px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
}

.about h2, .about h3, .about p {
  color: #fff;
  text-align: center;
}

/* ===== Форма за контакти ===== */
.input-group {
  position: relative;
  width: 90%;
  margin: 15px auto;
}

.input-group .icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #005a9c;
}

.input-group input,
.input-group textarea {
  width: 100%;
  padding: 10px 10px 10px 40px;
  border: 2px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
  border-color: #005a9c;
  box-shadow: 0 0 6px rgba(0,90,156,0.4);
  outline: none;
}

form button {
  display: block;
  margin: 20px auto;
  padding: 10px 25px;
  background-color: #005a9c;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #003f6b;
}

.contact {
  width: 40%;              /* по-тясно каре за контакти */
  max-width: 600px;
  margin: 40px auto;
  padding: 25px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  text-align: center;
}
.contact h2, .contact p {
  color: #fff;
}

/* ===== Списъци ===== */
.custom-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 20px;
  max-width: 700px;
  text-align: left;
}

.custom-list li {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 12px;
  position: relative;
  padding-left: 28px;
}

.custom-list li::before {
  content: "➤";
  position: absolute;
  left: 0;
  color: #005a9c;
  font-size: 1.2rem;
  font-weight: bold;
}

.custom-list.check li {
  font-style: italic;
}

.custom-list.check li::before {
  content: "✓";
  color: green;
  font-size: 1.3rem;
}

/* Слайдшоу */
.slideshow {
  width: 50%;              /* по-тясно */
  margin: 40px auto;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  /* малко по-тъмно сиво от фона на страницата (#e0e0e0) */
  background-color: #000; /* черен фон */
  padding: 15px;
}

/* Снимки в слайдшоуто */
.slides img {
  width: 100%;
  height: auto;
  display: none;
  max-height: 400px;
  object-fit: cover;

  /* фона на страницата е контур около снимките */
  border: 4px solid #e0e0e0;
  border-radius: 8px;

  /* леко вътрешно засенчване */
  box-shadow: inset 0 0 10px rgba(0,0,0,0.3);
}

/* Миниатюри */
.thumbnails {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.thumbnails img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.thumbnails img.active {
  opacity: 1;
  transform: scale(1.1); /* леко уголемяване на активната */
}

.thumbnails img:hover {
  opacity: 1;
}

/* Линкове към галерии */
.gallery-links {
  text-align: center;
  margin: 20px auto;
}

.gallery-links ul {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.gallery-links li {
  margin: 0;
}

.gallery-links a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #003f6b, #005a9c); /* тъмно синьо по подразбиране */
  color: #fff;
  text-decoration: none;
  border: 1px solid #003f6b;
  border-radius: 6px;
  font-weight: bold;
  position: relative;          /* за блясъка */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

/* блясък отгоре */
.gallery-links a::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  border-radius: 5px;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
}

.gallery-links a:hover {
  background: linear-gradient(to bottom, #4da3ff, #0070d1); /* светло синьо при hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.5);
}

.gallery-links a:active {
  background: linear-gradient(to bottom, #6bb8ff, #3399ff); /* още по-светло при натискане */
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

/* Галерии */
.service-content {
  width: 90%;
  max-width: none;
  margin: 40px auto 20px;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
  color: #222;
  border: 0;
  box-shadow: none;
}

.service-content h2,
.service-content h3 {
  color: #003f6b;
  text-align: left;
}

.service-content h2 {
  margin: 0 0 20px;
  font-size: 1.8rem;
}

.service-content h3 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
}

.service-content p,
.service-content li {
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-content ul {
  margin: 0 0 20px;
  padding-left: 24px;
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.service-actions a {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.primary-action {
  background: #1e7e34;
  color: #fff;
}

.secondary-action {
  background: #005a9c;
  color: #fff;
}

.service-actions a:hover {
  filter: brightness(1.12);
}

.gallery {
  width: 90%;
  margin: 40px auto;
}

.gallery h3 {
  text-align: center;
  color: #005a9c;
  margin-bottom: 20px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border: 3px solid #000;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Галерийни бутони */
.gallery-buttons {
  position: sticky;
  top: 0;
  background: #000;
  padding: 15px 0;
  z-index: 1000;
  text-align: center;
}

.gallery-buttons ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.gallery-buttons a {
  display: inline-block;
  padding: 10px 20px;
  background: linear-gradient(to bottom, #003f6b, #005a9c);
  color: #fff;
  text-decoration: none;
  border: 1px solid #003f6b;
  border-radius: 6px;
  font-weight: bold;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

.gallery-buttons a::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  border-radius: 5px;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
}

.gallery-buttons a:hover {
  background: linear-gradient(to bottom, #4da3ff, #0070d1);
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.5);
}

.gallery-buttons a:active {
  background: linear-gradient(to bottom, #6bb8ff, #3399ff);
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.gallery-buttons a.active-gallery {
  background: linear-gradient(to bottom, #28a745, #1e7e34);
  border: 1px solid #1e7e34;
  color: #fff;
  font-weight: bold;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

/* Lightbox контейнер */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  text-align: center;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(255,255,255,0.5);
}

.lightbox .close {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 40px;
  color: #fff;
  cursor: pointer;
}

.lightbox .prev,
.lightbox .next {
  position: absolute;
  top: 50%;
  font-size: 50px;
  color: #fff;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  transform: translateY(-50%);
}

.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }

.lightbox .prev:hover,
.lightbox .next:hover {
  color: #28a745; /* зелено при hover */
}

/* ===== FOOTER ===== */
footer {
  background-color: #111;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  margin-top: 40px;
}

footer .footer-content p {
  margin: 5px 0;
  font-size: 0.9rem;
}
/* Горна лента: лого + заглавие */
.branding {
  background: #222;
  color: #fff;
}
.header-top {
  width: 80%;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;        /* вертикално подравняване */
  justify-content: center;    /* центрира групата */
  gap: 0;                     /* без празно пространство */
  min-height: 180px;
}
.logo {
  width: 120px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
   margin-right: 10px;
}
.header-top h1 {
   margin: 0;
  font-family: 'Dancing Script', cursive;
  font-size: 2.2rem;
  line-height: 1.3;
  color: #fff;
  text-align: left;
}

/* Долна лента: навигация */
.nav-bar {
  background: #1b1b1b;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}
.nav-bar nav ul {
  width: 80%;          /* вместо 60% */
  max-width: 1000px;   /* вместо 700px */
  margin: 0 auto;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding: 0;
}
.nav-bar nav a {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(to bottom, #003f6b, #005a9c); /* тъмно синьо по подразбиране */
  color: #fff;
  border: 1px solid #003f6b;   /* контур */
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  position: relative;          /* за блясъка */
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}

/* блясък отгоре */
.nav-bar nav a::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  height: 40%;
  border-radius: 5px;
  background: rgba(255,255,255,0.25);
  pointer-events: none;
}

.nav-bar nav a:hover {
  background: linear-gradient(to bottom, #4da3ff, #0070d1); /* светло синьо при hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0,0,0,0.5);
}

.nav-bar nav a:active {
  background: linear-gradient(to bottom, #6bb8ff, #3399ff); /* още по-светло при натискане */
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.nav-bar nav a.active {
  background: linear-gradient(to bottom, #28a745, #1e7e34); /* зелено за активния */
  border: 1px solid #1e7e34;
  box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}


/* ===== INTRO и ABOUT ===== */
.intro, .about {
  width: 75%;          /* вместо 60% */
  max-width: 900px;    /* вместо 700px */
  margin: 40px auto;
}


  .intro p {
    font-size: 1rem;
    line-height: 1.5;
    text-indent: 15px;
  }

  .custom-list li {
    font-size: 1rem;
  }
/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Хедър */
  .header-flex,
  .header-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .header-right {
    align-items: center;
  }

  .header-right h1,
  .header-top h1 {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 15px;
  }

  /* Навигация */
  .nav-bar nav ul,
  .header-right nav ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    height: auto;
  }

  .nav-bar nav a,
  .header-right nav a {
    width: 90%;
    text-align: center;
  }

  /* Галерийни бутони */
  .gallery-links ul,
  .gallery-buttons ul {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .gallery-links a,
  .gallery-buttons a {
    width: 90%;
    text-align: center;
  }

  /* Секции */
  .intro,
  .about,
  .contact,
  .slideshow,
  .gallery {
    width: 95%;
    margin: 20px auto;
    padding: 15px;
  }

  .intro h2,
  .intro h3,
  .intro p {
    font-size: 1rem;
    line-height: 1.5;
    text-indent: 10px;
  }

  /* Галерия */
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: auto;
    max-height: 250px;
  }

  .service-content {
    width: 95%;
    margin: 20px auto;
    padding: 0;
  }

  .service-content h2 {
    font-size: 1.45rem;
  }

  .service-actions {
    flex-direction: column;
  }

  .service-actions a {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }

  /* Формата за контакти */
  .input-group {
    width: 100%;
  }

  form button {
    width: 90%;
    font-size: 1rem;
  }

  /* Миниатюри */
  .thumbnails {
    flex-wrap: wrap;
    justify-content: center;
  }

  .thumbnails img {
    width: 70px;
    height: 50px;
  }

  /* Footer */
  footer {
    padding: 15px 10px;
    font-size: 0.9rem;
  }
}
@media (max-width: 768px) {
  /* Основна навигация */
  .nav-bar nav ul,
  .header-right nav ul {
    flex-direction: column;   /* подрежда бутоните вертикално */
    align-items: center;
    gap: 10px;
    height: auto;
  }

  .nav-bar nav a,
  .header-right nav a {
    width: 90%;               /* бутоните заемат почти цял ред */
    text-align: center;
  }
}
