/* Navbar като в Bethany */
/* Начално състояние */

section:not(#contact) {
  scroll-margin-top: 80px; /* височината на navbar-а */
}
html {
  scroll-behavior: smooth;
}



.custom-navbar {
  background: transparent !important;
  box-shadow: none !important;
  transition: background 0.35s, box-shadow 0.25s, padding 0.3s;
  padding-top: 24px !important;
  padding-bottom: 0 !important;
}

.nav-inner {
  background: #fff;
  box-shadow: 0 2px 24px rgba(179,210,105,0.08);
  border-radius: 1.5rem;
  margin: 0 auto;
  min-height: 70px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 1200px;
  transition: border-radius 0.3s, box-shadow 0.3s, max-width 0.3s;
}

/* Sticky при скрол */
.custom-navbar.sticky {
  background: #fff !important;
  box-shadow: 0 2px 16px rgba(179,210,105,0.10) !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.custom-navbar.sticky .nav-inner {
  border-radius: 0;
  max-width: 100%;
  box-shadow: none;
}

.navbar .logo {
  max-width: 160px;
  height: auto;
}

.navbar .nav-link {
  font-weight: 500;
  color: #000 !important;
  margin-left: 12px;
  margin-right: 12px;
  position: relative;
  transition: color 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link:hover {
  color: #b3d269 !important;
}

.navbar .btn-success,
.navbar .btn-atexo {
  border-radius: 24px;
  padding: 6px 28px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.04rem;
  box-shadow: 0 2px 12px rgba(33,140,93,0.09);
  background: #b3d269 !important;
  color: #fff !important;
  transition: background 0.2s, color 0.2s;
}

.navbar .btn-success:hover,
.navbar .btn-atexo:hover {
  background: #b3d269 !important;
  color: #fff !important;
}

/* Hero секция */
.home-hero {
  min-height: 100vh;
  background: url('img/cover.jpeg') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px;
}

.home-hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(25,40,35, 0.65);
  z-index: 1;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.home-hero .logo {
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.15));
}

/* Падинги за всички секции */
section {
  padding: 80px 0;
}

/* Фон за секциите */
.bg-dark {
  background: #272f2f !important;
}

.bg-light {
  background: #f6f7f7 !important;
}

/* Отзиви (Testimonial) */
.blockquote {
  background: #ffffff;
  border-left: 4px solid #b3d269;
  padding: 20px 24px;
  margin: 0 0 24px 0;
  border-radius: 10px;
  box-shadow: 0 4px 32px rgba(30,120,90,0.04);
}

/* Accordion */
.accordion-button:not(.collapsed) {
  background: #b3d269;
}

/* Responsive navbar и секции */
@media (max-width: 991px) {
  .nav-inner {
    border-radius: 1rem;
    padding: 8px 8px;
  }
  .navbar .btn-success,
  .navbar .btn-atexo {
    margin-top: 10px;
    margin-bottom: 8px;
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 768px) {
  .home-hero {
    min-height: 60vh;
    padding: 32px 0 0 0;
  }
  section {
    padding: 48px 0;
  }
}

.contact-section {
  background: #fff;
}

.contact-info, .contact-form {
  background: #f7f9f8;
  border-radius: 1.3rem;
  box-shadow: 0 4px 28px rgba(33,140,93,0.08);
}

.contact-info i,
.contact-info svg {
  font-size: 1.4em;
  color: #b3d269;
}

.contact-form .form-control {
  border-radius: 0.8rem;
  border: 1.5px solid #d3e3dd;
  box-shadow: none;
  transition: border-color 0.2s;
}

.contact-form .form-control:focus {
  border-color: #218c5d;
  box-shadow: 0 2px 12px rgba(33,140,93,0.09);
}

.contact-form button[type="submit"] {
  border-radius: 28px;
  color: #b3d269;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-size: 1.08rem;
}
.contact-form .form-control, .contact-form .form-check-input {
  border-radius: 0.8rem;
  border: 1.5px solid #d3e3dd;
  box-shadow: none;
  transition: border-color 0.2s;
}
.contact-form .form-control:focus {
  border-color: #218c5d;
  box-shadow: 0 2px 12px rgba(33,140,93,0.09);
}
.contact-form .form-check-input:checked {
  background-color: #218c5d;
  border-color: #218c5d;
}
.contact-form .form-check-label {
  font-weight: 500;
}

.btn-main {
  background: #b3d269 !important;
  color: #fff !important;   /* ТЕКСТЪТ Е БЯЛ по начало */
  border-radius: 32px;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 36px;
  box-shadow: 0 4px 20px rgba(179,210,105,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-main:hover, .btn-main:focus {
  background: #97b852 !important; /* по-тъмно зелено */
  color: #000 !important;         /* ТЕКСТЪТ СТАВА ЧЕРЕН при hover */
}
.about-img-wrapper {
  position: relative;
  display: inline-block;
  max-width: 470px;
}

.about-img {
  border-radius: 1.3rem;
  box-shadow: 0 8px 36px rgba(179,210,105,0.19);
  border: 4px solid #fff;
}

.about-badge {
  position: absolute;
  bottom: 14px;
  left: 18px;
  background: #b3d269;
  color: #fff;
  padding: 8px 22px;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1.08rem;
  box-shadow: 0 4px 18px rgba(179,210,105,0.10);
  display: flex;
  align-items: center;
}

.about-badge i {
  font-size: 1.2em;
}

.map-wrapper {
  flex-grow: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.map-wrapper iframe {
  flex: 1 1 auto;
  width: 100%;
  min-height: 220px;
  height: 100%;
  max-height: none;
}

.btn-main.btn-square {
  background: #b3d269 !important;
  color: #fff !important;
  border-radius: 8px;          /* по-малко за по-квадратен вид */
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px 32px;
  box-shadow: 0 4px 20px rgba(179,210,105,0.13);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  border: none;
}
.btn-main.btn-square:hover,
.btn-main.btn-square:focus {
  background: #97b852 !important;
  color: #000 !important;
}
.btn-main, .btn-main:active, .btn-main:visited {
  border-radius: 8px !important;
}

#testimonials {
  padding-bottom: 140px!important; /* стандартно е 80px → +60px разстояние */
}


#faq .accordion {
  border-radius: 1.3rem;
  overflow: hidden;              /* Изглежда по-стегнато */
}

#faq .accordion-button {
  background: #f7f9f8;
  border-radius: 1.3rem !important;
  color: #222 !important;       
  font-weight: 400 !important;     /* Не болднат */
  font-size: 0.98rem;              /* По-малък текст */
  transition: background 0.18s, color 0.18s;
  box-shadow: none;
  border: none;
  margin-bottom: 0;                /* За сигурност */
  padding-top: 1rem;               /* По-компактно */
  padding-bottom: 1rem;
}
#faq .accordion-button:not(.collapsed) {
  background: #f7f9f8 !important;
  color: #b3d269 !important;   
  font-weight: 400 !important;     /* Не болднат и при отваряне */
}
#faq .accordion-body {
  background: #fff;
  border-radius: 1.1rem;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
  color: #323232;
  font-size: 1.02rem;
}
#faq .accordion-button:focus {
  box-shadow: 0 0 0 2px rgba(179,210,105,0.23);
}

.cta-section-shuffle {
  margin-top: 64px;
  margin-bottom: 64px;
}

.cta-bg {
  position: relative;
  height: 340px;                /* Точна височина! */
  min-height: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
  background: url('img/team.jpg') center center/cover no-repeat;
  display: flex;
  align-items: stretch;
  background-attachment: fixed;
}

.cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(40,40,40,0.46);
  z-index: 1;
}

.cta-content {
  position: relative;
  z-index: 2;
  height: 100%;                /* Да заеме цялата височина на родителя */
  width: 100%;
  min-height: 340px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;         /* Подравняване по средата вертикално */
  padding: 0 14vw !important;
}

.cta-text {
  max-width: 700px;
}

.btn.btn-cta-outline {
  background: transparent;
  border: 3px solid #fff;
  color: #fff;
  border-radius: 40px;
  font-size: 1.35rem;
  font-weight: 500;
  transition: background 0.22s, color 0.22s, border-color 0.22s;
  min-width: 260px;
  box-shadow: 0 2px 16px rgba(30,30,30,0.06);
  padding: 12px 40px;
}

.btn.btn-cta-outline:hover, .btn.btn-cta-outline:focus {
  background: #b3d269;
  color: #fff;
  border-color: #b3d269;
}
@media (max-width: 1400px) {
  .cta-content { padding: 0 7vw; }
}
@media (max-width: 991px) {
  .cta-bg, .cta-content { min-height: 200px; height: auto; }
  .cta-content { flex-direction: column; align-items: flex-start; padding: 36px 6vw!important; }
  .cta-btn-wrapper { width: 100%; text-align: left; margin-top: 24px; }
  .cta-section-shuffle { margin-top: 36px; margin-bottom: 36px; }
}

 
 html { scroll-behavior: smooth; }
    section { padding: 80px 0; }
    .logo { max-width: 320px; }
    .navbar { box-shadow: 0 2px 8px rgba(0,0,0,0.05);}
    .bg-dark { background: #272f2f!important;}
    .accordion-button:not(.collapsed) { background: #b3d269; }

.how-we-work-section .work-step {
  transition: box-shadow 0.22s, transform 0.22s;
  cursor: pointer;
}
.how-we-work-section .work-step:hover {
  box-shadow: 0 8px 40px rgba(179,210,105,0.18);
  transform: translateY(-8px) scale(1.025);
  background: #f0f7e4;
}
.how-we-work-section .step-icon i {
  /* Иконата да е по-видима */
  filter: drop-shadow(0 2px 10px rgba(179,210,105,0.11));
}
#testimonials .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Swiper Wrapper и Slide */
.testimonial-swiper {
  /*overflow: visible !important;*/
  padding-bottom: 40px;
}

.testimonial-swiper .swiper-wrapper {
  display: flex;
  align-items: stretch;
}

.testimonial-swiper .swiper-slide {
  display: flex;
  align-items: stretch;
  height: auto;
}

/* --- КАРТА ОТЗИВ --- */
.testimonial-card {
  background: #fff;
  border-radius: 1.3rem;
  box-shadow: 0 4px 28px rgba(179,210,105,0.08);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 270px;
  width: 100%;
  padding-top: 1.8rem;
  padding-bottom: 1.2rem;
  position: relative;
}

/* Кавичка */
.quote-mark {
  position: absolute;
  top: 0.7rem;
  left: 1.2rem;
  font-size: 2.8em;
  color: #b3d269;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  opacity: 1.6;
  z-index: 2;
}

.testimonial-content {
  font-size: 0.98rem;
  color: #242e21;
  text-align: justify;
  font-style: italic;
  margin-top: 0.8rem;
  margin-bottom: 0.5rem;
  min-height: 120px;
  padding-left: 2.5rem;
  padding-right: 34px;
}

.testimonial-author {
  font-size: 0.95rem;
  color: #50594a;
  margin-top: 0.8rem;
  padding-left: 2.5rem;
  padding-right: 25px;
}

/* Стрелки */
.testimonial-swiper .swiper-button-next,
.testimonial-swiper .swiper-button-prev {
  color: #b3d269;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(179,210,105,0.12);
  width: 35px;
  height: 35px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  border: 1.5px solid #e4edd4;
  transition: background 0.18s, color 0.18s, border 0.18s;
  
}

.testimonial-swiper .swiper-button-next::after,
.testimonial-swiper .swiper-button-prev::after {
  font-size: 16px;
}

.testimonial-swiper .swiper-button-next:hover,
.testimonial-swiper .swiper-button-prev:hover {
  background: #b3d269;
  color: #fff;
  border-color: #b3d269;
}

.testimonial-swiper .swiper-button-next {
  right: 10px;
}
.testimonial-swiper .swiper-button-prev {
  left: 10px;
}

/* 2 карти на ширина */
@media (max-width: 1200px) {
  #testimonials .container {
    max-width: 820px;
  }
}

/* 1 карта на мобилен */
@media (max-width: 991px) {
  #testimonials .container {
    max-width: 540px;
  }
  .testimonial-swiper .swiper-button-next,
  .testimonial-swiper .swiper-button-prev {
    top: 99%;
    left: 50%;
    right: auto;
    transform: translate(-50%, 0);
    margin-left: 24px;
  }
  .testimonial-swiper .swiper-button-next {
    left: calc(50% + 24px);
    transform: translate(0, 0);
  }
}

/* 100% ширина на мобилен */
@media (max-width: 600px) {
  #testimonials .container {
    max-width: 99vw;
    padding: 0 4vw;
  }
}

/* Да няма хоризонтален скрол */
body {
  overflow-x: hidden;
}

.faq-arrow-img {
  display: block;
  margin-top: 16px;
  opacity: 0.6!important;
  max-width: 150px!important;  /* коригирай размера според дизайна */
  margin-top: 60px; 
  margin-left: auto; 
  margin-right: auto; 
  display: block;
  width:110px; 
  height:150px; 
}
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
footer {
  margin-top: auto;
}

/* --- Cookie Banner (общи стилове) --- */
.cookie-banner {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 22px;
  z-index: 9999;
}

.cookie-banner .cookie-card {
  background: #2d352f; /* мек тъмнозелен фон */
  color: #fff;
  max-width: 840px;
  margin: 0 auto;
  border-radius: 1rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
  padding: 16px 18px;
}

.cookie-banner .cookie-row {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 768px) {
  .cookie-banner .cookie-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.cookie-banner .cookie-left {
  display: flex;
  align-items: flex-start;
}

.cookie-banner .cookie-emoji {
  font-size: 2rem;
  line-height: 1;
  margin-right: 14px;
}

.cookie-banner .cookie-text {
  font-size: 1rem;
  line-height: 1.55;
}

.cookie-banner .cookie-text a {
  color: #b3d269;
  text-decoration: underline;
  font-size: 0.95rem;
}

.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-cookie-primary,
.btn-cookie-outline {
  appearance: none;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn-cookie-primary {
  background: #b3d269;
  color: #fff;
}

.btn-cookie-primary:hover,
.btn-cookie-primary:focus {
  filter: brightness(0.95);
}

.btn-cookie-outline {
  background: transparent;
  border: 2px solid #b3d269;
  color: #fff;
}

.btn-cookie-outline:hover,
.btn-cookie-outline:focus {
  background: rgba(179,210,105,0.08);
  border-color: #c0dc7e;
}

/* за финeс на outline варианта, който вече имаш */
#cookieReject.btn-outline-light:hover,
#cookieReject.btn-outline-light:focus {
  background: transparent !important;
  color: #fff !important;
  border-color: #b3d269 !important;
}

.cookie-card-narrow {
  background: #272f2f;
  color: #fff;
  max-width: 820px!important;  /* тук си задаваш желаната ширина */
  margin: auto;
}

/* Еднаква ширина за бутоните в cookie банера */
.cookie-actions button {
  min-width: 120px;   /* можеш да коригираш (110–130px) според дизайна */
  text-align: center;
}

/*Размер снимки секция Услуги*/
.service-card-img {
  width: 100%;
  max-width: 500px;
  height: 300px;
  object-fit: cover;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}

/*Стил за услуги - детайли*/
.service-menu-nav {
  font-family: 'Montserrat', Arial, sans-serif;
}

.service-menu-item {
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
  padding: 9px 0 9px 0;
  font-size: 1.12rem;
  font-weight: 500;
  position: relative;
  transition: background 0.18s, box-shadow 0.18s;
  background: transparent;
  z-index: 1;
}

.service-menu-line {
  width: 5px;
  height: 38px;
  background: #ccc;
  border-radius: 8px;
  display: inline-block;
  margin-right: 18px;
  transition: background 0.18s, height 0.2s;
}

.service-menu-item.active .service-menu-line {
  background: #b3d269;
  height: 44px;
}

.service-menu-item.active {
  background: #fff;
  box-shadow: 0 6px 32px rgba(179,210,105,0.12);
  border-radius: 16px;
  margin-left: -12px;
  z-index: 3;
}

.service-menu-title {
  flex: 1;
  color: #181e1f;
  transition: color 0.16s;
}

.service-menu-item.active .service-menu-title {
  color: #b3d269;
}
.service-menu-box {
  background: #fff;
  border-radius: 1.3rem;
  box-shadow: 0 4px 28px rgba(179,210,105,0.11);
  padding: 20px 12px 20px 16px;
}
@media (max-width: 991px) {
  .service-menu-box {
    border-radius: 1rem;
    padding: 8px;
  }
}

.services-banner {
  margin-bottom: 0;
  padding-top: 0;
}
.banner-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 1.2rem 1.2rem 0 0;
}

.text-shadow {
  text-shadow: 0 6px 30px rgba(0,0,0,0.19);
}

/*Hero секция за външната страница за Услуги*/
.services-hero {
  min-height: 100vh;
  background: url('img/service-details.png') center center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 80px; /* Ако navbar е fixed */
  padding-bottom: -1000px;
}

.services-hero::after {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 100%; height: 100%;
  background: rgba(25,40,35, 0.65); /* Може да смениш цвета */
  z-index: 1;
}

.services-hero .container {
  position: relative;
  z-index: 2;
}
.text-justify {
  text-align: justify !important;
}

.custom-navbar {
    background: transparent !important;
	box-shadow: none !important;
	transition: background 0.35s, box-shadow 0.25s, padding 0.3s;
	padding-top: 24px !important;
	padding-bottom: 0 !important;
  }
  .custom-navbar.scrolled {
    background: #fff !important;
    box-shadow: 0 3px 32px 0 rgba(70, 96, 70, 0.12);
    border-radius: 0;
    margin: 0;
    max-width: 100vw;
    width: 100vw;
    left: 0;
    right: 0;
  }
  body {
    background: #f7f9f8;
  }
  .services-hero {
    min-height: 40vh;
    background: url('img/service-details.png') center center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 100px;
  }
  .services-hero::after {
    content: "";
    position: absolute;
    left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(25,40,35, 0.62);
    z-index: 1;
  }
  .services-hero .container {
    position: relative;
    z-index: 2;
	padding-top: 40px;
  }
  .flag-icon {
  border: 1.5px solid #333;    /* Зеленикаво жълто, или "#333" за неутрален */
}
#mainNavbar {
  padding-top: 24px;
  padding-bottom: 24px;
  transition: padding 0.22s cubic-bezier(.5,1,.6,1);
}

/* Когато е full-width (fixed-top), направи падинга по-малък */
#mainNavbar.fixed-top {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

#mainNavbar.fixed-top .container-xl,
#mainNavbar.fixed-top .nav-inner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* Подравняване на "Виж повече" линка в картите услуги */
.card-body {
  display: flex;
  flex-direction: column;
}

.card-body a {
  margin-top: auto; /* избутва линка в долната част */
  display: inline-block;
}

/* Унифициране на иконите в картите Услуги */
.card-title img,
.card-title i {
  width: 28px;   /* еднаква ширина */
  height: 28px;  /* еднаква височина */
  object-fit: contain; /* да не се разтегля */
  margin-right: 8px;   /* разстояние до текста */
  flex-shrink: 0;      /* да не се смаляват */
}

/* Masonry – галерия към Резервни части (запазва оригиналното ratio) */
#masonryParts.masonry {
  column-count: 5;
  column-gap: 1.2rem;
}
#masonryParts .masonry-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
}
#masonryParts .tile {
  position: relative;
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.08);
  transition: transform .18s ease, box-shadow .2s ease;
  background: #f2f4f3;
}
#masonryParts .tile:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.12);
}
#masonryParts .thumb {
  width: 100%;
  height: auto;         /* важно: запазва оригиналното съотношение */
  display: block;
  object-fit: contain;  /* няма crop */
}
#masonryParts figcaption {
  font-size: .95rem;
  color: #4b5649;
  margin-top: .45rem;
  padding-left: .2rem;
}

/* Без фиксирани aspect-ratio */
#masonryParts .size-s .tile,
#masonryParts .size-m .tile,
#masonryParts .size-l .tile {
  aspect-ratio: auto;
}

/* Overlay */
#masonryParts .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
  color: #fff;
  opacity: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: .8rem 1rem;
  transition: opacity .18s ease;
}
#masonryParts .tile:hover .overlay { opacity: 1; }
#masonryParts .overlay span { font-weight: 600; }

/* Breadcrumb стил */
.breadcrumb { font-size: .95rem; }
.breadcrumb .breadcrumb-item a {
  color: #6e7a6f;
  text-decoration: none;
}
.breadcrumb .breadcrumb-item a:hover {
  color: #b3d269;
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  #masonryParts.masonry { column-count: 4; }
}
@media (max-width: 992px) {
  #masonryParts.masonry { column-count: 3; }
}
@media (max-width: 768px) {
  #masonryParts.masonry { column-count: 2; }
}
@media (max-width: 560px) {
  #masonryParts.masonry { column-count: 1; }
}

/* Лайтбокс – по-малък прозорец */
#galleryModalParts .modal-dialog {
  max-width: 70vw;   /* 70% от ширината на екрана */
}
#galleryModalParts .modal-content {
  border-radius: 1rem;
  overflow: hidden;
}
#galleryModalParts .modal-body {
  padding: 0;
  text-align: center;
}
#lightboxImgParts {
  max-width: 100%;
  max-height: 75vh;  /* 75% от височината на екрана */
  height: auto;
  width: auto;
  margin: 0 auto;
  display: block;
}

/* Responsive за лайтбокс */
@media (max-width: 992px) {
  #galleryModalParts .modal-dialog { max-width: 82vw; }
}
@media (max-width: 576px) {
  #galleryModalParts .modal-dialog { max-width: 92vw; }
}
/* Размер на модала (по-малък) */
#galleryModalParts .modal-dialog { max-width: 70vw; }
@media (max-width: 992px){ #galleryModalParts .modal-dialog { max-width: 82vw; } }
@media (max-width: 576px){ #galleryModalParts .modal-dialog { max-width: 92vw; } }

/* Стрелки в модала */
#galleryModalParts .gl-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:44px; height:44px; border-radius:50%;
  border:0; outline:0; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
  font-size:28px; line-height:1; color:#fff;
  background:rgba(0,0,0,.45);
  backdrop-filter:saturate(120%) blur(1px);
  z-index:2; opacity:.85; transition:opacity .15s ease, background .15s ease;
}
#galleryModalParts .gl-nav:hover{ opacity:1; background:rgba(0,0,0,.6); }
#galleryModalParts .gl-prev{ left:.6rem; }
#galleryModalParts .gl-next{ right:.6rem; }

#services-details p {
  text-align: justify;
  color: #000;
}
/* Текст + странична мини-галерия */
.service-main-with-teaser .teaser-side.sticky-md { position: sticky; top: 90px; }
.teaser-card{
  background:#f7f8f6; border-radius:14px; padding:1rem;
  box-shadow:0 6px 24px rgba(0,0,0,.06);
}
.teaser-card h6{ color:#2e312f; }
.t-btn{
  background:#b3d269; color:#1f261e; border:0; font-weight:600; border-radius:10px;
  box-shadow:0 3px 10px rgba(179,210,105,.35);
}
.t-btn:hover{ background:#a2c450; color:#0f120f; }

/* Мозайка 2×2 */
.teaser-grid{
  display:grid; grid-template-columns:repeat(2,1fr); gap:.5rem;
}
.t-tile{
  position:relative; border-radius:10px; overflow:hidden; display:block;
  box-shadow:0 6px 18px rgba(0,0,0,.08);
}
.t-tile img{
  width:100%; height:100%; object-fit:cover; display:block; transition:transform .25s ease;
  aspect-ratio: 1 / 1; /* квадратни превюта */
}
.t-tile:hover img{ transform: scale(1.06); }
.t-more::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.45) 100%);
}
.t-count{
  position:absolute; right:.4rem; bottom:.35rem; background:rgba(0,0,0,.65);
  color:#fff; font-size:.85rem; font-weight:700; padding:.15rem .45rem; border-radius:8px;
}

/* По-компактно на мобилен – мозайката пада под текста */
@media (max-width: 991.98px){
  .service-main-with-teaser .teaser-side.sticky-md{ position: static; }
}
/* Видео в лявата колона на Галерия */
.gallery-video {
  border-radius: 16px;
  overflow: hidden;                    /* заоблените ъгли да важат за плейъра */
  box-shadow: 0 6px 28px rgba(0,0,0,0.12);
  background: #000;
  max-width: 85%;          /* по-тясно от колоната */
  margin-left: 0;          /* подравнено вляво */
}

/* Черен фон за „letterbox“ ефект (черни ленти) */
.video-shell {
  background: #000;
  border-radius: 16px;
  overflow: hidden;
}

/* Унификация на вградените плейъри */
.video-shell iframe,
.video-shell video {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #000;                    /* подсигурява черен бекграунд */
  object-fit: contain;                 /* пази пропорциите → черни ленти отстрани при нужда */
}

/* По-компактна дистанция под навигацията на по-тесни екрани */
@media (max-width: 991px) {
  .gallery-video { margin-top: 12px; }
}

.gallery-video video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;     /* пази пропорциите + черни ленти */
  background: #000;
  border-radius: 16px;
}

/* Типография в съдържанието на услугите */
.service-content-group p,
.service-content-group ul,
.service-content-group li {
  font-size: 1.08rem;
  line-height: 1.65;
  color: #222;
}

/* Ако някъде има инлайн font-size, изравни го */
.service-content-group p[style*="font-size"],
.service-content-group ul[style*="font-size"],
.service-content-group li[style*="font-size"] {
  font-size: 1.08rem !important;
}
/* ===== Mobile tweaks & safety (<=576px) ===== */
@media (max-width: 576px){
  /* Navbar */
  .navbar .logo { max-width: 140px !important; }
  .navbar .btn-main { width: 100%; text-align: center; margin-top: 10px; }
  .navbar .nav-link { padding-top: 8px; padding-bottom: 8px; }

  /* Hero */
  .home-hero { min-height: 60vh; padding-top: 48px; }
  .home-hero .container h1 { font-size: 1.8rem; line-height: 1.2; }
  .home-hero .container p  { font-size: 1rem;  margin-bottom: 1rem; }
  .home-hero .btn-main { padding: 10px 24px; font-size: 1rem; }

  /* About */
  .about-img { border-width: 3px; border-radius: 1rem; }

  /* Services cards */
  .service-card-img { height: 200px; }

  /* How we work */
  .how-we-work-section .work-step { transform: none; }
  .how-we-work-section .work-step:hover { transform: translateY(-4px) scale(1.01); }

  /* Testimonials */
  .testimonial-swiper .swiper-button-next,
  .testimonial-swiper .swiper-button-prev { display: none; }

  /* CTA */
  .cta-bg { min-height: 220px; height: auto; background-attachment: scroll; }
  .cta-content { padding: 24px 6vw !important; }
  .btn.btn-cta-outline { min-width: 200px; font-size: 1.1rem; padding: 10px 28px; }

  /* Contacts */
  .contact-section iframe { height: 250px; }
  .contact-form .form-control { font-size: 0.98rem; }
  .contact-form .btn-main { width: 100%; }

  /* FAQ */
  #faq .accordion-button { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .faq-arrow-img { width: 80px; height: 110px; margin-top: 24px; }

  /* Cookie banner – покрива и двата markup варианта */
  #cookieBanner .cookie-card,
  #cookieBanner .container {
    max-width: 94vw !important;
    border-radius: 12px !important;
  }
  #cookieBanner .btn,
  #cookieBanner button { padding: 8px 14px; min-width: 120px; }

  /* Общи секции */
  section { padding: 42px 0; }

  /* Без хоризонтален скрол */
  html, body { overflow-x: hidden; }
}

/* ===== Small tablets (577–768px) ===== */
@media (min-width: 577px) and (max-width: 768px){
  .navbar .logo { max-width: 160px; }
  .home-hero .container h1 { font-size: 2.1rem; }
  .service-card-img { height: 240px; }
  .contact-section iframe { height: 300px; }
  section { padding: 56px 0; }
}

/* ===== Swiper breakpoint safety ===== */
@media (max-width: 600px){
  .testimonial-swiper { padding-bottom: 28px; }
}
/* --- Fix: Testimonials / Swiper auto height & layout --- */
.testimonial-swiper { width: 100%; }
.testimonial-swiper .swiper-wrapper { align-items: stretch; }
.testimonial-swiper .swiper-slide { height: auto; }
.testimonial-card { height: 100%; } /* картата изпълва слайда */

/* Видео – когато го местим на мобилен, да ляга красиво */
@media (max-width: 991.98px){
  .gallery-video { 
    max-width: 100%;      /* да запълва колоната */
    margin: 12px 0 16px;  /* въздух около него */
  }
}
.testimonial-content {
  flex-grow: 1;   /* пълни свободното пространство */
  display: flex;
  align-items: flex-start;  /* текстът започва отгоре */
}

.testimonial-author {
  margin-top: auto;  /* избутва автора най-долу */
}
