html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #FDFCF8;
}

/* Додаємо фон для основного контенту, який не зливається з шапкою і підвалом */
main {
  flex: 1 0 auto;
  background: #FDFCF8;
  position: relative;
  z-index: 1;
}

.main-wrapper {
  position: relative;
  width: 100%;
  z-index: 100;
  background-size: auto;
}

/* Додаємо контейнер для тексту поверх фото у верхньому лівому куті */
.main-wrapper .header-text-overlay {
  position: absolute;
  top: 16px;
  left: 24px;
  color: #fff;
  padding: 8px 18px;
  border-radius: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  z-index: 101;
  pointer-events: auto; /* дозволяємо кліки */
  letter-spacing: 0.5px;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}

.main-wrapper .header-text-overlay > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 600px) {
  .main-wrapper .header-text-overlay {
    gap: 22px;
    left: 1px;
    top: 1px;
    padding: 6px 8px;
    font-size: 1rem;
  }
}

.main-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

.header-content, .footer-content {
  margin: 0 auto;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #000;
}

.main-content{
  padding: 30px;
}
/* Додаємо відступи для тексту в main */
.main-content, .main-content-left, .main-content-right {
  padding-left: 32px;
  padding-right: 32px;
  box-sizing: border-box;
}

@media (max-width: 900px) {
  .main-content, .main-content-left, .main-content-right {
    padding-left: 16px;
    padding-right: 16px;
  }
}

.footer {
  margin-top: auto;
  background: aliceblue;
  position: relative;
  bottom: 0;
  left: 0;
  color: #000000;
}



.footer-left, .footer-right {
  display: flex;
  flex-direction: column;
  gap: 4px;
}




.imgs {
  background-color: aliceblue;
  border-radius: 30px;

  
}
@media (max-width: 700px) {
  .imgs{
    padding: 0px;
    background: #FDFCF8;
  }
  
}

.imgs img {
  max-width: 670px !important;
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 30px;
}


/* --- Десктоп: фото і текст в рядок --- */
.img_left, .img_right {
  display: flex;
  align-items: center;
  gap: 0px;
  margin-bottom: 32px;
  width: 100%;
}

.img_left {
  flex-direction: row;
  justify-content: flex-end;
}

.img_right {
  flex-direction: row;
  justify-content: flex-start;
}

.text-content_left, .text-content_right, .text-content_right_video {
  height: 570px;
  font-size: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: center; /* Додаємо для вертикального центрування */
  text-align: center;
  background-color: aliceblue;

  border-radius: 30px 0px 0px 30px;
}
.text-content_left{
  border-radius:0px 30px 30px 0px;
}
.text-content_right{
  border-radius:30px 0px 0px 30px;
}
@media (max-width: 700px){
  .text-content_left, .text-content_right, .text-content_right_video {
    border-radius: 0px 0px 30px 30px;
    padding: 0;
    margin: 0;
}
}
.img_right .text-content_right, .img_right .text-content_right_video {
  align-items: flex-start;
  text-align: left;
  max-width: 600px;
  flex-shrink: 0;
}

.img_left .text-content_left {
  align-items: flex-end;
  text-align: right;
  max-width: 600px;
  flex-shrink: 0;
}

.content-list {
  padding-left: 20px;
  list-style-type: disc;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
}

.content-list li {
  color: #000000;
  font-size: 1.3rem;
  margin-bottom: 10px; /* збільшено відступ між елементами */
  padding-left: 0;
  background: none;
  border: none;
  
}

.content-text {
  color: #000000;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
}
.content-text-p{
  color: #000000;
  line-height: 1.6;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
}
.img_left img, .img_right img {
  max-width: 380px;
  width: 100%;
  height: 570px;
  border-radius: 30px; 
  flex-shrink: 0;
  display: block;
}

.img_left video, .img_right video {
  max-width: 310px;
  width: 100%;
  height: 570px;
  flex-shrink: 0;
  display: block;
  -o-object-fit: cover;
  object-fit: cover;
  border-radius: 0 30px 30px 0;
}

.img_right img {
  border-radius:0 30px 30px 0;
}
.img_left img{
  border-radius:30px 0 0 30px;
}
.img_right img {
  margin-left: 0;
}

.img_left img {
  margin-right: 0;
}

/* --- Мобільний: фото завжди зверху, текст завжди під фото --- */
@media (max-width: 700px) {
  .img_left, .img_right {
    flex-direction: column !important;
    align-items: center;
    gap: 0; /* прибираємо відступ між фото і текстом */
  }
  .img_left img, .img_right img {
    max-width: 100%;
    width: 100%;
    margin: 0 !important; /* прибираємо всі відступи */
    display: block;
    order: 0;
    border-radius: 30px 30px 0px 0px;
    height: auto;
  }
  .img_left video, .img_right video {
    max-width: 100%;
    width: 97%;
    margin: 0 !important; /* прибираємо всі відступи */
    display: block;
    order: 0;
    border-radius: 30px 30px 0px 0px;
  }
  .img_left .text-content_left,
  .img_right .text-content_right {
    width: 100%;
    max-width: 100%;
    text-align: center !important;
    align-items: center !important;
    margin: 0 !important; /* прибираємо всі відступи */
    order: 1;
    border-radius: 0px 0px 30px 30px; /* заокруглення знизу */
  }
  .img_right  .text-content_right_video {
    width: 97%;
    max-width: 97%;
    text-align: center !important;
    align-items: center !important;
    margin: 0 !important; /* прибираємо всі відступи */
    order: 1;
    border-radius: 0px 0px 30px 30px; /* заокруглення знизу */
  }
  /* Примусово порядок: img завжди перший, текст завжди другий */
  .img_left img, .img_right img {
    order: 0;
  }
  .img_left .text-content_left, .img_right .text-content_right , .img_right .text-content_right_video {
    order: 1;
  }
  .content-list {
    padding-left: 16px;
    text-align: center;
    display: inline-block;
  }
}

.workin_photo{
  color: #000000;
  margin: 0 auto;
  text-align: center;
  display: block;
  width: 100%;
  padding: 30px;
}

.icon {
  display: flex;
  align-items: center;
  gap: 3px;
  vertical-align: middle;
}
.icon a {
  color: #000; /* або бажаний колір */
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}
