body::before {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/background.png');
  background-size: cover;
  background-position: center;
  opacity: 0.45; /* настраивай прозрачность */
  z-index: -1;
}


.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, #fff9c4, #f8bbd0);
  color: #4a4a4a;
  padding: 20px 30px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  flex-wrap: wrap;
}

.header-left {
  font-family: 'Poppins', sans-serif; /* строгий современный шрифт */
  font-size: 1.2em;
  font-weight: bold;
  background: linear-gradient(135deg, #fff9c4, #f8bbd0); /* плавный градиент */
  color: #4a3dbf;
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: inline-block;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.header-left:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(123, 104, 238, 0.3);
}

.header-center {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.header-center a {
  color: #4a3dbf;          /* основной цвет сайта */
  font-weight: 600;
  text-decoration: none;
  padding: 10px 15px;
  border: 2px solid #4a3dbf;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
  display: inline-block;
}

.header-center a:hover,
.header-center a:focus {
  background-color: #1f6e6b; /* чуть темнее основной цвет */
  color: #ffffff;
  text-decoration: none;
}



/* Адаптивность */
@media (max-width: 700px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }

  .header-left {
    margin-bottom: 10px;
    font-size: 1em;
  }

  .header-center {
    justify-content: flex-start;
    gap: 15px;
    flex-wrap: wrap;
  }

  .header-center a {
    font-size: 0.95em;
  }
}



.cta-button {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  font-size: 1em;
  font-weight: 600;
  color: #7b68ee;
  background-color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.cta-button:hover {
  background-color: #f0f0ff;
  transform: scale(1.05);
}

.about-photo {
  display: flex;
  flex-wrap: nowrap;       /* не переносим фото и текст в строке */
  align-items: flex-start; /* выравнивание по верхнему краю — поменяй, если надо */
  gap: 30px;
}

/* если хочешь, чтобы фото было прижато к низу блока */
.about-photo {
  align-items: flex-end;   /* прижмёт содержимое по нижнему краю */
}

.profile-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  margin-top: 0; /* убираем 100px */
}



/* Подключи Inter в <head>, если ещё не подключал */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');


.about-text {
  font-family: 'Inter', sans-serif;
  background-color: #f8e4f4;
  border: 2px solid #ffd8dc; /* цвет рамки из шапки */
  border-radius: 30px;       /* скруглённые углы */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  padding: 12px 20px;
  margin: 0 auto 24px;
  max-width: 700px;
}

h2 {
  margin-bottom: 8px; /* или 4px, чтобы заголовок был ближе к тексту */
}

.about-text p {
  font-size: 1em;
  line-height: 1.65;
  color: #333333;
  margin-top: 0;
  margin-bottom: 0em;
  font-weight: 500;
  max-width: 600px;
}


.about-text h2 {
  margin-top: 0;
  margin-bottom: 6px;
}



.about-image {
  flex-shrink: 0;
  width: 300px;
  /* height: 300px; */ /* закомментируем */
  display: flex;
  align-items: flex-end; /* прижмём содержимое вниз */
}



.profile-photo {
  width: 300px;
  height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 50%; /* делает изображение круглым */
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  background-color: white;
  margin-top: 100px; /* <- добавлен отступ сверху */
}




h2 {
  color: #7b68ee;
  border-bottom: 2px solid #dcdcdc;
  padding-bottom: 5px;
  margin-top: 40px;
}

.cards {
  display: flex;
  flex-wrap: nowrap; /* все карточки в один ряд, без переноса */
  gap: 15px;
  margin-top: 20px;
  overflow-x: auto; /* добавим горизонтальный скролл на маленьких экранах */
  padding-bottom: 10px; /* чтобы не "слипался" скролл */
}

.card {
  background: #fffafc;
  border: 2px solid #f5c2c7;
  border-radius: 30px;
  padding: 20px 25px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  min-width: 280px; /* фиксированная минимальная ширина для карточки */
  flex: 0 0 auto; /* фиксированная ширина, не сжимаемая */
  text-align: center;
  font-weight: 600;
  color: #4a4a4a;
  font-family: 'Inter', sans-serif;
  transition: transform 0.2s, box-shadow 0.3s ease;
}

.card:hover {
  background-color: #fef6f9;
  box-shadow: 0 6px 18px rgba(123, 104, 238, 0.25);
  transform: translateY(-5px);
}

.card i {
  font-size: 2.5em;
  color: #7b68ee;
  margin-bottom: 10px;
}

.card h3 {
  margin: 10px 0 8px;
  font-size: 1.25em;
  color: #4a3dbf;
  font-weight: 700;
}

.card p {
  font-weight: 400;
  font-size: 1em;
  color: #555;
  margin-top: 0;
}


@media (max-width: 700px) {
  .about-photo {
    flex-wrap: wrap;          /* на мобильных переносим фото под текст */
  }

  .about-text,
  .about-image {
    flex: 1 1 100%;
    width: 100%;
    height: auto;
  }

  .profile-photo {
    height: auto;
  }
}

@media (max-width: 600px) {
  .card {
    flex: 1 1 100%;
  }
}

footer {
  text-align: center;
  font-size: 0.9em;
  color: #aaa;
  padding: 20px;
  margin-top: 60px;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  margin-top: 15px;
}

.contact-item {
  flex: 1 1 30%;
  background-color: white;
  color: #333;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  transition: transform 0.2s, background-color 0.2s;
}

.contact-item i {
  font-size: 1.4em;
  color: #7b68ee;
}

.contact-item:hover {
  transform: translateY(-3px);
  background-color: #f0f0ff;
}

.cta-button i {
  margin-left: 8px;
  transition: margin-left 0.3s;
}

.cta-button:hover i {
  margin-left: 15px;
}

.cta-button {
  /* уже есть переход, добавим тень и чуть лучшее масштабирование */
  box-shadow: 0 4px 10px rgba(123, 104, 238, 0.3);
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: #e6e0ff;
  transform: scale(1.1);
  box-shadow: 0 6px 15px rgba(123, 104, 238, 0.5);
}

html {
  scroll-behavior: smooth;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

@media (max-width: 480px) {
  header {
    padding: 20px 10px;
  }
  header h1 {
    font-size: 1.5em;
  }
  .cta-button {
    width: 100%;
    text-align: center;
  }
  .about-photo {
    flex-direction: column;
    gap: 20px;
  }
  .profile-photo {
    width: 100%;
    height: auto;
  }
}

.about-photo {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.trust-section {
  margin-top: 50px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.trust-section h2 {
  color: #7b68ee;
  margin-bottom: 25px;
  font-weight: 600;
  border-bottom: 2px solid #dcdcdc;
  padding-bottom: 8px;
}

.reviews {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-bottom: 40px;
}

.review {
  display: flex;
  align-items: center;
  background: #fff;
  box-shadow: 0 1px 6px rgba(123, 104, 238, 0.15);
  border-radius: 12px;
  padding: 16px 20px;
  flex: 1 1 280px;
  min-height: 120px;
  color: #444;
  font-size: 1em;
  transition: box-shadow 0.3s ease;
}

.review:hover {
  box-shadow: 0 4px 14px rgba(123, 104, 238, 0.25);
}

.review-icon {
  flex-shrink: 0;
  font-size: 40px;
  color: #7b68ee;
  margin-right: 16px;
}

.review-text p {
  margin: 0;
  font-style: italic;
  line-height: 1.4;
}

.review-author {
  margin-top: 10px;
  font-weight: 600;
  font-style: normal;
  color: #7b68ee;
  text-align: right;
  display: block;
  font-size: 0.9em;
}


.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}

.partners-logos img {
  max-height: 10px;
  filter: grayscale(80%);
  transition: filter 0.3s ease;
  cursor: default;
}

.partners-logos img:hover {
  filter: grayscale(0);
}


.logos-container {
  display: flex;
  flex-wrap: wrap;            /* Перенос логотипов */
  justify-content: center;    /* Центрирование */
  align-items: center;
  gap: 15px;
  margin-top: 30px;
  padding: 0 10px;
  max-width: 100%;            /* Ограничение ширины */
  box-sizing: border-box;     /* Учитывать padding в ширине */
  overflow-x: hidden;         /* Защита от горизонтального скролла */
}

.logos-container img {
  height: 35px;
  max-width: 100px;           /* Максимальная ширина — меньше 140px */
  width: auto;
  background: white;
  padding: 8px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  object-fit: contain;
  display: block;
}

/* Мобильная версия */
@media (max-width: 480px) {
  .logos-container img {
    height: 24px;
    max-width: 80px;
    padding: 5px;
  }
}

/* Класс для анимации появления снизу */
.fade-in {
  opacity: 0;
  transform: translateY(10px); /* Сдвиг вниз */
  animation: fadeIn 0.6s ease-out forwards; /* Анимация */
}

/* Ключевые кадры для появления */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0); /* Возврат на место */
  }
}

/* Плавающая кнопка WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.3s;
}

.whatsapp-float:hover {
  background-color: #128c4a;
  text-decoration: none;
  color: white;
}

.whatsapp-wrapper {
  position: fixed;
  bottom: 100px;
  right: 30px;
  z-index: 1001;
}

.whatsapp-tooltip {
  background-color: #25d366;
  color: white;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 15px;
  opacity: 1;
  position: absolute;
  bottom: 75px;
  right: 0;
  white-space: normal;
  max-width: 280px;
  width: max-content;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  z-index: 1001;
  line-height: 1.5;
}

/* Скрыть подсказку на мобильных устройствах */
@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: none;
  }
}

.whatsapp-wrapper:hover .whatsapp-tooltip {
  opacity: 1;
  pointer-events: auto;
}



.copy-btn {
  cursor: pointer;
  font-size: 1.2em;
  color: #7b68ee;
  margin-left: 10px;
  transition: color 0.2s;
}
.copy-btn:hover {
  color: #4a3dbf;
}
.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}


#services {
  padding: 40px 20px;
  text-align: center;
}

.services-row {
  display: flex;
  flex-wrap: wrap;       /* карточки переносятся на новую строку */
  gap: 20px;             /* отступы между карточками */
  justify-content: center; /* центрируем карточки */
  overflow-x: auto;      /* горизонтальный скролл, если карточки не помещаются */
  padding-bottom: 10px;  /* небольшой отступ снизу для скролла */
}

.service-card {
  flex: 1 1 250px;       /* карточка занимает минимум 250px, но может растягиваться */
  max-width: 300px;      /* ограничение максимальной ширины */
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
  text-align: center;
}



.service-card i {
  font-size: 2em;
  color: #7b68ee;
  margin-bottom: 10px;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}



.breadcrumbs ol {
  list-style: none;
  display: flex;
  gap: 8px;
  padding: 0;
  margin: 1em 0;
}

.breadcrumbs li+li::before {
  content: "›";
  margin: 0 8px;
  color: #7b68ee;
}

.breadcrumbs a {
  color: #7b68ee;
  text-decoration: none;
  font-weight: 600;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs li[aria-current="page"] {
  font-weight: 700;
  color: #7b68ee;
}

.main-navigation ul {
  list-style: none;         /* Убираем маркеры списка */
  margin: 0;
  padding: 0;
  display: flex;            /* Горизонтальное меню */
  gap: 20px;                /* Отступы между пунктами */
  align-items: center;
}


.main-navigation a {
  text-decoration: none;   /* Убираем подчеркивание */
  color: #2c3e50;          /* Цвет текста */
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s, color 0.3s;
}

.main-navigation a:hover,
.main-navigation a:focus {
  background-color: #25d366; /* Зеленый (как у WhatsApp) при наведении */
  color: white;
  outline: none;
  text-decoration: none;
  cursor: pointer;
}
