/* ============= INDEX.PHP ============= */

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  color: white;
  overflow-x: hidden;
  background: linear-gradient(
    270deg,
    #83002a,
    #720027,
    #931f39,
    #660021,
    #83002a
  );
  background-size: 60% 60%;
  animation: gradientShift 25s ease infinite;
  will-change: transform, opacity;
}

}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}



.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: #2e2e2e;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo img {
  height: 50px;
}

.logo span {
  font-size: 24px;
  font-weight: bold;
  color: #d62a7d;
}

.nav a {
  margin-left: 20px;
  padding: 10px 20px;
  text-decoration: none;
  color: white;
  background-color: #1a1a1a;
  border-radius: 20px;
  transition: background 0.3s;
}

.nav a:hover,
.nav a.active {
  background-color: #d62a7d;
  color: white;
}

.main-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 40px;
  position: relative;
}

/* === ОБНОВЛЁННЫЙ БЛОК === */
.text-block {
  position: relative;
  max-width: 500px;
}

.logo-container {
  position: relative;
  display: inline-block;
}

.foton-logo {
  width: 200%;
  max-width: 720px;
  display: block;
}

.overlay-text {
  position: absolute;
  top: 70%;
  left: 55%;
  transform: translateY(-50%);
  color: white;
  z-index: 2;
}

.overlay-text .subtitle {
  color: #ff2e8b;
  font-size: 24px;
  margin: 0 0 10px 0;
}

.overlay-text .description {
  font-size: 16px;
  line-height: 1.4;
  margin: 0;
}
/* === КОНЕЦ БЛОКА === */

.camera-block {
  position: relative;
}

.scroll-animate {
  position: relative;
  transition: transform 0.1s linear;
  will-change: transform;
  max-width: 500px; 
}


.camera-block img {
  max-width: 550px;
}

.bubble {
  position: absolute;
  background-color: white;
  color: black;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}


.bubble.top-right {
  top: 20px;
  right: -20px;
}

.bubble.bottom-left {
  bottom: 30px;
  left: -80px;
}

.bubble.bottom-right {
  bottom: -20px;
  right: -30px;
}

/* === НАШИ УСЛУГИ === */
.services {
  text-align: center;
  padding: 80px 20px;
  position: relative;
}

.services-title {
  font-size: 50px;
  margin-bottom: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

.services-title i {
  color: #d62a7d;
}
.services-images {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 20px;
  position: relative;
}

.services-img {
  position: relative;
  top: 10%;
  left: 30%;
}

.phone-img {
  position: absolute;
  left:72%;
  top: 50%;
  object-fit: cover;
  height: 180%;
}

/* === НАШИ РАБОТЫ === */
.our-works {
  padding: 80px 20px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.works-title {
  font-size: 2.5em;
  margin-bottom: 50px;
  margin-top: 12%;
  color: #d62a7d;
  font-weight: bold;
}

.works-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Квадраты в блоке Наши работы */
.work-square {
  position: relative;
  width: 250px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(214, 42, 125, 0.7);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  font-size: 20px;
  color: white;
  background-color: #444;
  text-align: center;
  transition: transform 0.3s ease;
}

.work-square img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 95%;
  height: 95%;
  object-fit: cover;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.work-square .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.45);
  z-index: 1;
}

.work-square .text-container {
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  user-select: none;
  padding: 0 15px;
}

.work-square .contact-btn {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  background: transparent;
  color: white;
  border: 2px solid white;
  padding: 10px 25px;
  border-radius: 30px;
  font-size: 1em;
  cursor: pointer;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 3;
  user-select: none;
  pointer-events: none;
}

.work-square:hover {
  transform: scale(1.05);
}

.work-square:hover .text-container {
  transform: translateY(-25px);
}

.work-square:hover .contact-btn {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* === СЛАЙДЫ === */
.slider-section {
  width: 100%;
  padding: 60px 0;
  background-color: #1e1e1e;
  display: flex;
  justify-content: center;
}

.slider-section {
  width: 100%;
  padding: 60px 0;
  background-color: #2e2e2e;
  display: flex;
  justify-content: center;
}

.slider-container {
  position: relative;
  width: 90%;
  max-width: 800px;
  height: 70vh;
  min-height: 400px;
  overflow: hidden;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image {
  position: absolute;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  border-radius: 10px;
}

.slider-image.active {
  opacity: 1;
  z-index: 1;
}

/* === СОМНЕНИЯ? === */
.doubt-button-wrapper {
  text-align: center;
  margin-top: 1rem;
}

.doubt-button {
	margin-top: 3rem;
  display: inline-block;
  padding: 14px 28px;
  font-size: 1.2rem;
  font-family: 'Oswald', Arial, sans-serif;
  color: white;
  background-color: rgb(203, 26, 84);
  text-decoration: none;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.doubt-button:hover {
  background-color: #a81554;
  transform: translateY(-2px);
}


/* === ОТЗЫВЫ === */
.reviews {
  padding: 60px 20px;
  background: #fff;
  text-align: center;
}

.reviews-title {
  color: #d62a7d;
  font-size: 2.5rem;
  margin-bottom: 40px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.reviews-widget-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
}

.yandex-widget {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  margin: 0 auto;
  max-width: 560px;
}

.yandex-link {
  display: none; /* Скрываем стандартную ссылку */
}

/* Адаптивность */
@media (max-width: 768px) {
  .yandex-widget {
    height: 600px !important;
  }
  
  .yandex-widget iframe {
    height: 600px !important;
  }
}

@media (max-width: 480px) {
  .reviews-title {
    font-size: 2rem;
    margin-bottom: 30px;
  }
  
  .yandex-widget {
    border-radius: 10px;
  }
}

/*КОНТАКТЫ */
.contacts-wrapper {
	background-color: #000;
	width: 100vw;
	margin-top: auto; 
	padding: 20px 0;
	color: white;
	margin-bottom: -40px;
}

.contacts {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: 'Oswald', Arial, sans-serif;
}

.contacts__title {
  color: #fff;
  font-size: 2.5rem;
}

.contacts__avatar img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin-bottom: 0.75rem;
}

.contacts__name {
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.contacts__role {
  color: #bbb;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.contacts__info {
  margin-bottom: 1.5rem;
}

.contacts__link {
  display: inline-block;
  margin: 0 0.75rem;
  color: rgb(203, 26, 84);
  text-decoration: none;
  font-size: 1rem;
}

.contacts__link:hover {
  text-decoration: underline;
}

.contacts__social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0.5rem;
  border-radius: 50%;
  background-color: #fff;
  color: rgb(203, 26, 84);
  text-decoration: none;
  font-size: 1.3rem;
}

.contacts__social-link:hover {
  background-color: rgb(203, 26, 84);
  color: #fff;
}