/* Подключение шрифтов через Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;600;700&display=swap');

/* Основные стили для body */
body {
    font-family: 'Open Sans', sans-serif;  /* Основной шрифт для тела сайта */
    background-color: #ffffff;  /* Белый фон */
    padding-top: 63px; /* Оставляем место для фиксированного меню */
}

/* БЛОК С ШАПКОЙ ===================================================== */
/* Стили для навигационной панели */
.navbar-brand {
    font-family: 'Open Sans', sans-serif;  /* Шрифт для бренда */
    font-size: 28px;  /* Размер шрифта для бренда */
    color: #04AA6D !important;  /* Цвет текста для бренда */
}

.navbar.fixed-top {
    position: fixed;  /* Закрепляем меню */
    top: 0;           /* Отступ сверху */
    left: 0;
    width: 100%;
    z-index: 1000;    /* Убираем перекрытие другими элементами */
    padding-top: 15px; /* Чтобы был отступ от верхнего края экрана */
}

.navbar-dark .navbar-nav .nav-link {
    font-family: 'Open Sans', sans-serif;  /* Шрифт для ссылок навигации */
    color: #ffffff !important;  /* Белый цвет для текста ссылок */
    padding-left: 15px;  /* Отступ слева */
    padding-right: 15px;  /* Отступ справа */
}
/* ============================================================================= */

/* Стили для заголовков h1, h2, h3, h4, h5, h6 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Raleway', sans-serif;  /* Шрифт для заголовков */
    font-weight: 600;  /* Жирность текста */
    opacity: 0;  /* Изначальная непрозрачность, скрыто */
    transform: scale(0.95);  /* Начальный масштаб, чуть уменьшены */
    animation: scaleFadeIn 0.8s ease-out forwards;  /* Анимация появления */
}

/* Стили для абзацев */
p {
    font-family: 'Open Sans', sans-serif;  /* Шрифт для абзацев */
    font-size: 16px;  /* Размер шрифта для абзацев */
    color: #000000;  /* Цвет текста абзацев */
}

/* Анимация для заголовков */
@keyframes scaleFadeIn {
    to {
        opacity: 1;  /* Устанавливаем полную непрозрачность */
        transform: scale(1);  /* Устанавливаем нормальный размер */
    }
}

/* Стили для шапки сайта (header) */
.hero-header {
    height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
                url("/images/newpages/google-and-yandex.jpg") no-repeat center center / cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
  }
  
  .hero-content {
    animation: scaleFadeIn 1.2s ease-out forwards;
    opacity: 0;
    transform: scale(0.8);
  }
  
  @keyframes scaleFadeIn {
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  .hero-content h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
  }
  
  .hero-content p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.2rem;
	color: #ffa400; /* <-- добавлено */
  }
  
  @media (max-width: 768px) {
    .hero-content h1 {
      font-size: 2rem;
    }
  
    .hero-content p {
      font-size: 1rem;
      padding: 0 10px;
    }
  }
  
  
  /* Анимация появления */
  .hero-header .container {
    animation: fadeInUp 1.2s ease-out;
  }
  
  @keyframes fadeInUp {
    from {
      transform: translateY(30px);
      opacity: 0;
    }
    to {
      transform: translateY(0);
      opacity: 1;
    }
  }

/* Стили для кнопок */
.btn {
    font-family: 'Open Sans', sans-serif;  /* Шрифт для кнопок */
    font-size: 16px;  /* Размер шрифта для кнопок */
}

/* Стили для всех ссылок */
a {
    text-decoration: none;  /* Убираем подчеркивание */
}

/* Дополнительные настройки для изображений */
img {
    max-width: 100%;  /* Ограничиваем максимальную ширину изображений */
    height: auto;  /* Автоматически регулируем высоту */
}

/* Стили для контейнеров */
.container {
    width: 100%;
    max-width: 1140px;  /* Максимальная ширина контейнера */
    margin: 0 auto;  /* Выравнивание контейнера по центру */
    padding: 0 15px;  /* Отступы с боков */
}
/* БЛОК С ОПИСАНИЕМ ===================================================== */
/* Стили для контекстного рекламного блока */
#context-advertising {
    background-color: #f8f9fa;  /* Светлый фон */
}
#context-advertising h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #000;
}
/* Стили для h5 в блоках */
#context-advertising .card-title {
    color: #ffa400;  /* Оранжевый цвет для заголовков */
}
#context-advertising .card {
    border-radius: 10px;  /* Округлые углы карточек */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);  /* Тень для карточек */
}

#context-advertising .card-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

#context-advertising .card-text {
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    color: #5b5b5b;
}
/* ============================================================================= */

/* БЛОК С ФОТО ПРИМЕРАМИ ===================================================== */
/* Стили для картинок, если нужно немного стилизовать */
.card-img-top {
    object-fit: cover;  /* Обрезаем изображения, чтобы они заполнили блок */
    height: 250px;       /* Устанавливаем фиксированную высоту */
}
.custom-title {
    color: #ffa400 !important; /* Фирменный оранжевый */
    font-weight: 600;          /* По желанию — можно усилить жирность */
    font-size: 1.25rem;        /* Оставим базовый размер, но при желании регулируется */
    margin-bottom: 0.75rem;    /* Немного пространства снизу */
  }
  
/* ============================================================================= */

/* Стили для виджета позвонить 
=============================================================================*/
.call-widget {
    position: fixed;
    bottom: 50px;
    right: 40px;
    z-index: 9999; /* Увеличиваем z-index */
}

.call-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #04AA6D; /* Зеленый-с прокрутки */
    color: white;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    position: relative;
}

.call-button:hover {
    transform: scale(1.1);
}

.call-button img {
    width: 45px; /* Изменяем размер иконки */
    height: 45px; /* Изменяем размер иконки */
    vertical-align: middle; /* Выравниваем иконку по вертикали */
}

.tooltip {
    position: absolute;
    background-color: black;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    top: 50%; /* Центрируем по вертикали */
    left: -210px; /* Располагаем слева от кнопки с отступом */
    transform: translateY(-50%); /* Центрируем по вертикали */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.call-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}
/* Медиа-запрос для мобильных устройств (ширина экрана до 768px) */
@media (max-width: 768px) {
    .call-button {
        width: 60px; /* Уменьшаем ширину кнопки */
        height: 60px; /* Уменьшаем высоту кнопки */
    }

    .call-button img {
        width: 35px; /* Уменьшаем ширину иконки */
        height: 35px; /* Уменьшаем высоту иконки */
    }

    .tooltip {
        left: -200px; /* Корректируем положение подсказки */
    }
}
/* ПРАЙС+ТАРИФЫ */
.pricing-section {
  padding: 60px 20px;
  background: #f9f9f9;
}
.pricing-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #000;
}

.pricing-card {
  background: #ffffff;
  color: #212529;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  border: 6px solid transparent;
  border-image: linear-gradient(to right, #04AA6D, #000000) 1;
  transition: transform 0.3s ease;
}

.pricing-card:hover {
  transform: scale(1.02);
}

.plan {
  margin-top: 20px;
}

.toggle-btn {
  width: 100%;
  background: linear-gradient(to right, #04AA6D, #000000);
  color: #fff;
  border: none;
  padding: 12px 20px;
  font-size: 18px;
  font-family: 'Open Sans', sans-serif;
  cursor: pointer;
  border-radius: 10px;
  text-align: left;
  transition: background 0.3s;
}

.toggle-btn:hover {
  background: linear-gradient(to right, #000000, #04AA6D);
}

.plan-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s ease;
  padding-left: 15px;
  background: #2b2f33;
  border-radius: 10px;
  margin-top: 10px;
  color: #fff; /* ← ЭТО ДОБАВЬ */
}

.plan-details ul {
  padding: 15px;
  list-style: none;
  margin: 0;
}

.plan-details li {
  padding: 5px 0;
  border-bottom: 1px solid #444;
}

/* блок с seo  */
.seo-intro-block {
  background-color: #f9f9f9;
  padding: 40px 20px;
  border-top: 2px solid #ddd;
  text-align: center;
}

.seo-intro-block h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #000;
}

.seo-intro-block p {
  font-size: 1.1rem;
  color: #333;
  max-width: 800px;
  margin: 0 auto 20px;
  line-height: 1.6;
}

.seo-btn {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.seo-btn:hover {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

/* Часто задаваемые вопросы */
.faq-section {
  background-color: #f8f9fa;
  border-radius: 20px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.faq-section h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  font-family: 'Open Sans', sans-serif;
  color: #000;
}

.accordion {
  max-width: 800px;
  margin: 0 auto;
}

.accordion-item {
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.accordion input[type="checkbox"] {
  display: none;
}

.accordion-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: linear-gradient(to right, #04AA6D, #000000);
  color: white;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}

.accordion-title:hover {
  background: linear-gradient(to right, #068f5b, #000000);
}

.accordion-title i {
  transition: transform 0.3s;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  padding: 0 20px;
  transition: max-height 0.6s ease-out, padding 0.3s ease; /* Плавность открытия */
}

.accordion input:checked ~ .accordion-content {
  max-height: 500px; /* Увеличено значение для плавного раскрытия */
  padding: 15px 20px;
}

.accordion input:checked ~ .accordion-item .accordion-title i {
  transform: rotate(180deg);
}
/* ============================================================================= */
/* ПОДВАЛ */
.footer-section {
  background-color: #000000;
  border-radius: 0 0 0 0;
  padding-bottom: 15px;
  color: #ffffff;
}

.footer-logo {
  max-width: 180px;
  height: auto;
}

.footer-link {
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  text-decoration: underline;
  color: #06d78d;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.footer-social-icons {
  display: inline-block;
  padding: 10px 20px;
  border: 3px solid transparent;
  border-image: linear-gradient(to right, #04AA6D, #000000) 1;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-width 0.3s ease;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.footer-social-icons a {
  color: #ffffff;
  margin: 0 8px;
  font-size: 22px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social-icons a:hover {
  color: #04AA6D;
  transform: scale(1.2);
}

.footer-liveinternet {
  margin-top: 10px;
}

.footer-section p {
  color: #ffffff;
}

.footer-section a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Копирайт */
.footer-copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 15px;
  margin-top: 30px;
}

.footer-copy-text {
  color: #ffffff;
}

.footer-copy-text a {
  color: #04AA6D;
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  position: relative;
  display: inline-block;
}

.footer-copy-text a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 2px;
  background-color: #3399ff;
  transition: width 0.3s ease;
}

.footer-copy-text a:hover {
  color: #3399ff;
  transform: scale(1.05);
}

.footer-copy-text a:hover::after {
  width: 100%;
}