*, *::before, *::after {
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

/* === ШРИФТ === */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800;900&display=swap');

body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f9f9f9;
}

/* === HEADER === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  background: transparent;
  padding: 0 20px;
}

/* Контейнер навигации */
.navbar-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: linear-gradient(90deg, #f9f9f9, #f3f7ff);
  border-radius: 16px;
  padding: 16px 30px;
  max-width: 1400px;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

/* Левая часть */
.left-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}

.name {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

/* Навигационные ссылки */
.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 400;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

/* Правая часть — Мессенджеры */
.right-section {
  display: flex;
  align-items: center;
}

/* Иконки мессенджеров */
.messenger-icons {
  display: flex;
  gap: 14px;
}

.messenger-icons a i {
  font-size: 24px; /* увеличено на 20% */
  color: #007bff;
  transition: transform 0.3s ease, color 0.3s ease;
}

.messenger-icons a:hover i {
  transform: scale(1.2);
  color: #0056b3;
}

/* Бургер-иконка */
.burger {
  display: none;
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  cursor: pointer;
  color: #007bff;
  background: none;
  border: none;
  z-index: 1000;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .navbar {
    top: 0;
    padding: 0;
    flex-direction: column;
    align-items: stretch;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  }

  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    border-radius: 0;
    width: 100%;
    box-shadow: none;
  }

  .burger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 16px;
    margin-top: 60px;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .right-section {
    display: none;
  }

  .messenger-icons.mobile-only {
    display: flex;
    flex-direction: row;
    gap: 14px;
    margin-top: 10px;
  }
}

/* === Desktop / Mobile Switches === */
.desktop-only {
  display: flex !important;
}

.mobile-only {
  display: none !important;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
    flex-direction: row;
    gap: 14px;
    margin-top: 10px;
  }
}



/* === Левая часть === */
/* Основной стиль */
.left-section {
  display: flex;
  flex-direction: column;
}

.role {
  font-size: 13px;
  color: #007bff;
  text-decoration: none;
}

.name {
  font-size: 20px;
  font-weight: 500;
  margin: 0;
}

.typewriter {
  font-size: 28px;
  font-weight: 400;
  color: #007bff;
  margin-top: 20px;
  min-height: 40px;
}

.cursor {
  display: inline-block;
  width: 1px;
  background: #007bff;
  animation: blink 0.8s infinite;
  margin-left: 3px;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-links a {
  text-decoration: none;
  color: #111;
  font-weight: 400;
  font-size: 16px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 14px;
}

.messenger-call {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #007bff;
}

.messenger-call a i {
  font-size: 20px;
  color: #007bff;
  transition: transform 0.3s ease;
}

.messenger-call a:hover i {
  transform: scale(1.3);
  color: #0056b3;
}

.burger {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 768px) {
  .navbar {
    top: 0;
    padding: 0;
  }

  .navbar-container {
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0;
    max-width: 100%;
    box-shadow: none;
    padding: 20px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 20px;
    margin-top: 20px;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .burger {
    display: block;
    margin-left: auto;
  }

  .right-section {
    margin-top: 15px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* === БЛОК: СПЕЦИАЛИСТ ПО РЕКЛАМЕ === */
.ad-specialist-section {
  padding: 220px 10px 0;
  position: relative;
  background-color: #f9f9f9;
  overflow: hidden;
}

.ad-specialist-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}

.ad-specialist-text {
  max-width: 800px;
  text-align: center;
  margin: 0 auto;
}

.ad-specialist-text h1 {
  font-size: 36px;
  color: #007bff;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 25px;
}

.ad-specialist-text .education {
  font-size: 20px;
  font-weight: 300;
  color: #000;
  margin-bottom: 50px;
}

.ad-button {
  display: inline-block;
  background: linear-gradient(90deg, #007bff, #339cff);
  color: #fff;
  font-size: 22px;
  font-weight: 600;
  text-decoration: none;
  padding: 22px 46px;
  border-radius: 24px;
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.3);
  transition: all 0.3s ease;
  margin-top: 70px;
  border: none;
  cursor: pointer;
}

.ad-button:hover,
.ad-button:focus,
.ad-button:active {
  background: linear-gradient(90deg, #0056b3, #007bff);
}

/* ИКОНКА ПОД КНОПКОЙ */
.icon-under-button {
  display: flex;
  justify-content: center;
  margin: 20px 0 16px;
}

.icon-under-button img {
  width: 40px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  animation: bounce 1.5s infinite;
}

/* ЦЕНА */
.ad-specialist-text .price {
  font-size: 33px;
  color: #007bff;
  font-weight: 700;
  margin-top: 0;
}

.ad-specialist-image {
  flex: 1 1 auto;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  position: relative;
  z-index: 1;
  margin-bottom: -80px;
}

.ad-specialist-image img {
  max-width: 480px;
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transform: scale(1.32) translateX(-7%) translateY(-6%);
  transform-origin: center;
}
 
/*
.ad-specialist-image::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background: linear-gradient(to bottom, rgba(249, 249, 249, 0) 0%, #f9f9f9 100%);
  z-index: 2;
  pointer-events: none;
}
*/

/* АНИМАЦИЯ ИКОНКИ СТРЕЛКИ */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

/* === СЕКЦИЯ УСЛУГ === */
.services-section {
  padding: 30px 20px;
  padding-top: 7vh;
  padding-bottom: 10vh;
  background-color: #ffffff;
  text-align: center;
  position: relative;
}

.services-section h2 {
  font-size: 38px;
  font-weight: 400;
  color: #000;
  margin-bottom: 10px;
  animation: fadeInUp 0.6s ease-out forwards;
  position: relative;
}

.services-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 4px;
  background-color: #007bff;
  margin: 16px auto 0;
  border-radius: 2px;
}

.services-section .subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #555;
  margin-bottom: 50px;
  animation: fadeInUp 0.8s ease-out forwards;
}

/* Анимация появления */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.services-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.1);
}

.service-item i {
  font-size: 36px;
  color: #007bff;
  flex-shrink: 0;
  margin-top: 5px;
  transition: color 0.3s ease;
}

.service-item:hover i {
  color: #0056b3;
}

.service-text {
  display: flex;
  flex-direction: column;
}

.service-text h3 {
  font-size: 18px;
  color: #007bff;
  font-weight: 600;
  margin: 0 0 8px;
}

.service-text p {
  font-size: 16px;
  color: #000;
  margin: 0;
}

/* АДАПТИВ */
@media (max-width: 992px) {
  .services-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin-top: 15px;
  }

  .nav-links.nav-active {
    display: flex;
  }

  .burger {
    display: block;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .right-section {
    margin-top: 10px;
    justify-content: flex-start;
  }

  .ad-specialist-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .ad-specialist-text {
    max-width: 100%;
  }

  .services-container {
    grid-template-columns: 1fr;
  }

  /* 🎯 Управляемый адаптив для заголовков */
  .heading-title {
    font-size: 38px;     /* например, было 36px — стало меньше */
  }

  .heading-subtitle {
    font-size: 28px;     /* например, было 20px */
  }
}

/* === СЕКЦИЯ: Градиентная перегородка === */
.gradient-divider {
  height: 100px; /* Высота перегородки */
  background: linear-gradient(90deg, #f9f9f9 0%, #e0f0ff 50%, #f9f9f9 100%);
  opacity: 0.5;
  margin: 0 auto;
  width: 100%;
}

/* === СЕКЦИЯ: Преимущества === */
.why-me-section {
  position: relative;
  padding: 100px 20px;
  background-color: #fff;
  overflow: hidden;
}

.why-title {
  text-align: center;
  font-size: 38px;
  font-weight: 600;
  color: #111;
  margin-bottom: 60px;
  font-family: 'Poppins', sans-serif;
}

/* Сетка под 6 блоков */
.why-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.why-card {
  background: #fff;
  border-radius: 16px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.why-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.08);
}

.why-card img {
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
}

.why-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #111;
}

.why-card p {
  font-size: 16px;
  color: #444;
  line-height: 1.5;
}

/* АНИМАЦИЯ ТОЧЕК и ЛИНИЙ */
.why-me-section::before,
.why-me-section::after {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background-image: 
    radial-gradient(circle at 20% 30%, #007bff 6px, transparent 8px),
    radial-gradient(circle at 80% 50%, #007bff 4px, transparent 6px),
    radial-gradient(circle at 40% 80%, #007bff 5px, transparent 7px),
    linear-gradient(135deg, rgba(0, 123, 255, 0.15) 1px, transparent 1px);
  background-size: 400px 400px, 300px 300px, 350px 350px, 40px 40px;
  animation: moveBackground 60s linear infinite;
  z-index: 0;
  opacity: 0.35;
}

@keyframes moveBackground {
  0% { transform: translate(0, 0); }
  50% { transform: translate(30px, 20px); }
  100% { transform: translate(0, 0); }
}

@media (max-width: 992px) {
  .why-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .why-cards {
    grid-template-columns: 1fr;
  }

  .why-title {
    font-size: 38px;
    margin-bottom: 30px;
  }

  .why-subtitle {
    font-size: 28px;
    margin-bottom: 40px;
  }

  .why-card {
    padding: 30px 20px;
  }
}
/* === СЕКЦИЯ: Показатели === */

.results-section {
  background: linear-gradient(135deg, #015cbe, #0067d6, #007bff);
  padding: 100px 20px;
  text-align: center;
  color: #fff;
}

/*
.results-section {
  background-image: 
      linear-gradient(90deg, rgba(0, 123, 255, 0.95), rgba(0, 123, 255, 0.90)), 
    url('img/fon1.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  text-align: center;
  padding: 100px 20px;
}
*/
/* Заголовок блока */
.results-heading {
  margin-bottom: 60px;
  text-align: center;
}

.results-heading .results-title {
  font-size: 38px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
  font-family: 'Poppins', sans-serif;
}

.results-heading .results-line {
  width: 60px;
  height: 4px;
  background: #fff;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.results-heading .results-subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #ffffffcc;
  font-family: 'Poppins', sans-serif;
}

/* Сетка карточек */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Карточка */
.result-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 20px 20px 60px;
  backdrop-filter: blur(6px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards;
}

.result-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.result-card h3 {
  font-size: 60px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1;
  color: #fff;
}

.result-card p {
  font-size: 16px;
  line-height: 1.6;
  color: #ffffffcc;
  margin: 0;
}

/* Счётчик */
.counter {
  font-size: inherit;
  font-weight: inherit;
  display: inline-block;
  transition: all 0.4s ease-out;
}

/* Анимация появления */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-card:nth-child(1) { animation-delay: 0.2s; }
.result-card:nth-child(2) { animation-delay: 0.4s; }
.result-card:nth-child(3) { animation-delay: 0.6s; }
.result-card:nth-child(4) { animation-delay: 0.8s; }

/* АДАПТИВ */
@media (max-width: 768px) {
  .results-heading .results-title {
    font-size: 38px; /* было 30px — стало чуть крупнее */
  }

  .results-heading .results-subtitle {
    font-size: 28px; /* было 18px — читается лучше */
  }

  .result-card h3 {
    font-size: 42px;
    margin-bottom: 6px;
  }

  .result-card p {
    font-size: 14px;
  }
}

/* === Блок карта мира === */
.global-marketing {
  /*background-color: #007bff;*/
   background: linear-gradient(135deg, #015cbe, #0067d6, #007bff);
  padding: 80px 20px;
  border-radius: 0;
  color: #fff;
  margin: 0;
  overflow: hidden;
}

.global-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.global-text {
  flex: 1;
  min-width: 280px;
}

.global-text h2 {
  font-size: 36px;
  font-weight: 700;
  padding-bottom: 4vh;
  margin-bottom: 20px;
  color: #fff;
}

.global-text p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 30px;
  color: #eaeaea;
}


a.global-button,
button.global-button {
  display: inline-block;
  background-color: #fff;
  color: #007bff;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}


a.global-button:hover,
button.global-button:hover {
  background-color: #f1f1f1;
  transform: translateY(-2px);
}

.global-image {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.global-image img {
  max-width: 100%;
  height: auto;
  border-radius: 0;
  animation: mapPulse 3s infinite ease-in-out;
}

/* Анимация пульсации */
@keyframes mapPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.03);
  }
}

/* Адаптив */
@media (max-width: 768px) {
  .global-content {
    flex-direction: column-reverse;
    text-align: center;
  }

  .global-text h2 {
    font-size: 28px;
  }

  .global-text p {
    font-size: 16px;
  }
}

/* === Блок сертификатов === */
.certificates-section {
  padding: 100px 20px;
  background-color: #f9f9f9;
}

/* Заголовок секции (унифицированный) */
.section-heading {
  text-align: center;
  margin-bottom: 60px;
}

/* УНИВЕРСАЛЬНЫЕ классы заголовков */
.heading-title {
  font-size: 38px;
  font-weight: 400;
  color: #0d1b3e;
  margin-bottom: 14px;
  line-height: 1.2;
}

.heading-subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #555;
  margin-bottom: 0;
}

/* Синяя линия под заголовком */
.section-line {
  width: 70px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 0 auto 16px;
}

/* Контейнер с карточками */
.certificates-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
}

/* Карточка сертификата */
.certificate-card {
  background-color: #ffffff;
  border-radius: 20px;
  padding: 30px 24px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  flex: 1;
  min-width: 280px;
  max-width: 460px;
  text-align: center;
  transition: transform 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.certificate-card h3 {
  font-size: 22px;
  font-weight: 600;
  color: #0d1b3e;
  margin-bottom: 12px;
}

.certificate-card p {
  font-size: 16px;
  color: #444;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Изображение сертификата */
.certificate-image img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

/* Адаптив */
@media (max-width: 768px) {
  .certificates-container {
    flex-direction: column;
  }

  .heading-title {
    font-size: 38px;
  }

  .heading-subtitle {
    font-size: 22px;
  }
}
/* === Секция портфолио Гугл === */
.portfolio-section {
  background: #f9f9f9;
  padding: 10px 20px;
  position: relative;
  overflow: visible;
}

.section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.section-heading .main-title {
  font-size: 38px;  /* ← Размер шрифта */
  font-weight: 400;   /* ← Жирность (700 = bold) */
  color: #0d1b3e;
}
.section-heading .section-line {
  width: 70px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 10px auto 16px;
}
.section-heading .subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #555;
}

/* Обёртка слайдера */
.portfolio-slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* Прокручиваемая зона */
.portfolio-marquee {
  width: 1540px; /* 280 * 5 + 30 * 4 */
  overflow: hidden;
  cursor: grab;
  padding: 60px 0;
  position: relative;
}

/* Трек с кейсами */
.marquee-track {
  display: flex;
  gap: 30px;
  animation: scrollMarquee 40s linear infinite;
  transition: transform 0.3s ease;
  overflow: visible;
}
.marquee-track:hover,
.marquee-track.dragging {
  animation-play-state: paused;
}

/* Анимация бесконечного движения */
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Карточки проектов */
.marquee-track img {
  width: 400px;
  height: auto;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.marquee-track img:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* Drag эффект */
.portfolio-marquee.dragging {
  cursor: grabbing;
}

/* Адаптивность */
@media (max-width: 1540px) {
  .portfolio-marquee {
    width: 100%;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .marquee-track img {
    width: 330px;
  }
  .section-heading .main-title {
    font-size: 38px;
  }
  .section-heading .subtitle {
    font-size: 22px;
  }
}

/* === Секция портфолио Яндекс === */
.portfolio-yandex-section {
  background: #f9f9f9;
  padding: 10px 20px;
  position: relative;
  overflow: visible;
}

.yandex-section-heading {
  text-align: center;
  margin-bottom: 60px;
}
.yandex-section-heading .main-title {
  font-size: 38px;
  font-weight: 400;
  color: #0d1b3e;
}
.yandex-section-heading .section-line {
  width: 70px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 10px auto 16px;
}
.yandex-section-heading .subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #555;
}

.portfolio-yandex-slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

.portfolio-yandex-marquee {
  width: 1540px;
  overflow: hidden;
  cursor: grab;
  padding: 60px 0;
  position: relative;
}

.yandex-marquee-track {
  display: flex;
  gap: 30px;
  animation: scrollYandexMarquee 40s linear infinite;
  transition: transform 0.3s ease;
  overflow: visible;
}
.yandex-marquee-track:hover,
.yandex-marquee-track.dragging {
  animation-play-state: paused;
}

@keyframes scrollYandexMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.yandex-marquee-track img {
  width: 400px;
  height: auto;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.yandex-marquee-track img:hover {
  transform: scale(1.2);
  z-index: 10;
}

.portfolio-yandex-marquee.dragging {
  cursor: grabbing;
}

@media (max-width: 1540px) {
  .portfolio-yandex-marquee {
    width: 100%;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .yandex-marquee-track img {
    width: 330px;
  }
  .yandex-section-heading .main-title {
    font-size: 38px;
  }
  .yandex-section-heading .subtitle {
    font-size: 22px;
  }
}


/* === Секция Портфолио Facebook и Instagram === */

.portfolio-fbinsta-section {
  background: #f9f9f9;
  padding: 50px 20px;
  position: relative;
  overflow: visible;
}

.fbinsta-heading {
  text-align: center;
  margin-bottom: 60px;
}

.fbinsta-heading .fbinsta-title {
  font-size: 38px;        /* как в .ad-specialist-text h1 */
  font-weight: 400;       /* не жирный */
  color: #000;            /* чёрный цвет */
  line-height: 1.2;
  margin-bottom: 16px;
}

.fbinsta-heading .fbinsta-line {
  width: 60px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 12px auto 0;
}

.fbinsta-heading .fbinsta-subtitle {
  font-size: 28px;        /* как в .education */
  font-weight: 300;
  color: #555;
  margin-bottom: 50px;
}

/* === Обёртка слайдера === */
.fbinsta-slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* === Прокручиваемая зона === */
.fbinsta-marquee {
  width: 1540px;
  overflow: hidden;
  cursor: grab;
  padding: 60px 0;
  position: relative;
}

/* === Трек с изображениями === */
.fbinsta-track {
  display: flex;
  gap: 30px;
  animation: scrollFbInsta 40s linear infinite;
  transition: transform 0.3s ease;
  overflow: visible;
}
.fbinsta-track:hover,
.fbinsta-track.dragging {
  animation-play-state: paused;
}

/* === Анимация бесконечной прокрутки === */
@keyframes scrollFbInsta {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Карточки Facebook/Instagram === */
.fbinsta-track img {
  width: 400px;
  height: auto;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.fbinsta-track img:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* === Drag эффект === */
.fbinsta-marquee.dragging {
  cursor: grabbing;
}

/* === Адаптивность === */
@media (max-width: 1540px) {
  .fbinsta-marquee {
    width: 100%;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .fbinsta-track img {
    width: 330px;
  }

  .fbinsta-heading .main-title {
    font-size: 38px;
  }

  .fbinsta-heading .subtitle {
    font-size: 22px;
  }
}

/* === Секция Отзывы СНГ === */
.reviews-sng-section {
  background: #f9f9f9;
  padding: 50px 20px;
  position: relative;
  overflow: visible;
}

.reviews-sng-heading {
  text-align: center;
  margin-bottom: 60px;
}

.reviews-sng-heading .reviews-sng-title {
  font-size: 38px;
  font-weight: 400;
  color: #000;
  line-height: 1.2;
  margin-bottom: 16px;
}

.reviews-sng-heading .reviews-sng-line {
  width: 60px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 12px auto 0;
}

.reviews-sng-heading .reviews-sng-subtitle {
  font-size: 28px;
  font-weight: 300;
  color: #555;
  margin-bottom: 50px;
}

/* === Обёртка слайдера === */
.reviews-sng-slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* === Прокручиваемая зона === */
.reviews-sng-marquee {
  width: 1540px;
  overflow: hidden;
  cursor: grab;
  padding: 60px 0;
  position: relative;
}

/* === Трек с изображениями === */
.reviews-sng-track {
  display: flex;
  gap: 30px;
  animation: scrollReviewsSNG 40s linear infinite;
  transition: transform 0.3s ease;
  overflow: visible;
}
.reviews-sng-track:hover,
.reviews-sng-track.dragging {
  animation-play-state: paused;
}

/* === Анимация бесконечной прокрутки === */
@keyframes scrollReviewsSNG {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Карточки Отзывов СНГ === */
.reviews-sng-track img {
  width: 550px;
  max-width: none;
  height: 600px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.reviews-sng-track img:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* === Drag эффект === */
.reviews-sng-marquee.dragging {
  cursor: grabbing;
}

/* === Адаптивность === */
@media (max-width: 1540px) {
  .reviews-sng-marquee {
    width: 100%;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .reviews-sng-track img {
    width: 360px;      /* немного шире */
    height: 480px;     /* немного ниже */
  }

  .reviews-sng-heading .reviews-sng-title {
    font-size: 36px;
  }

  .reviews-sng-heading .reviews-sng-subtitle {
    font-size: 20px;
  }
}


/* === Секция отзывов === */
.reviews-section {
  background: #f9f9f9;
  padding: 50px 20px; /* уменьшили верхний отступ */
  position: relative;
  overflow: visible;
}

.reviews-heading {
  text-align: center;
  margin-bottom: 60px;
}

.reviews-heading .main-title {
  font-size: 38px;        /* как в .ad-specialist-text h1 */
  font-weight: 400;       /* не жирный */
  color: #000;            /* чёрный цвет */
  line-height: 1.2;
  margin-bottom: 16px;
}

.reviews-heading .section-line {
  width: 60px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 12px auto 0;
}

.reviews-heading .subtitle {
  font-size: 28px;        /* как в .education */
  font-weight: 300;
  color: #555;
  margin-bottom: 50px;
}

/* === Обёртка слайдера === */
.reviews-slider-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: visible;
}

/* === Прокручиваемая зона === */
.reviews-marquee {
  width: 1540px; /* 280 * 5 + 30 * 4 */
  overflow: hidden;
  cursor: grab;
  padding: 60px 0;
  position: relative;
}

/* === Трек с изображениями === */
.reviews-track {
  display: flex;
  gap: 30px;
  animation: scrollReviews 40s linear infinite;
  transition: transform 0.3s ease;
  overflow: visible;
}
.reviews-track:hover,
.reviews-track.dragging {
  animation-play-state: paused;
}

/* === Анимация бесконечного движения === */
@keyframes scrollReviews {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === Отзывы-карточки === */
.reviews-track img {
  width: 450px;
  height: 550px;
  border-radius: 16px;
  flex-shrink: 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s ease;
  transform-origin: center center;
  position: relative;
  z-index: 1;
}
.reviews-track img:hover {
  transform: scale(1.2);
  z-index: 10;
}

/* === Drag эффект === */
.reviews-marquee.dragging {
  cursor: grabbing;
}

/* === Адаптивность === */
@media (max-width: 1540px) {
  .reviews-marquee {
    width: 100%;
    padding: 40px 10px;
  }
}

@media (max-width: 768px) {
  .reviews-track img {
    width: 350px;
    height: 450px;
  }
  .reviews-heading .main-title {
    font-size: 38px;
  }
  .reviews-heading .subtitle {
    font-size: 22px;
  }
}



/* === Футер === */
.site-footer {
  /*background: #007bff;*/
   background: linear-gradient(135deg, #015cbe, #0067d6, #007bff);
  color: #fff;
  padding: 60px 20px 20px;
  font-family: 'Poppins', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 30px;
}

.footer-left h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.footer-left p {
  font-size: 16px;
  color: #eaeaea;
}

.footer-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  transition: 0.3s;
}

.footer-menu a:hover {
  color: #cce5ff;
}

.footer-social a {
  font-size: 20px;
  color: #fff;
  margin-right: 15px;
  transition: 0.3s;
}

.footer-social a:hover {
  color: #cce5ff;
}

.footer-bottom {
  text-align: center;
  font-size: 14px;
  color: #cce5ff;
  margin-top: 20px;
}

/* Адаптив */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-social {
    margin-top: 20px;
  }
}

/* === Стили для Поп-Ап формы === */
/* Кнопка открытия формы */
.open-popup-btn {
  background: #007bff;
  color: #fff;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 16px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
  transition: background 0.3s ease;
}
.open-popup-btn:hover {
  background: #0056b3;
}

/* Затемнённый фон */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
  animation: fadeIn 0.3s ease;
}

/* Блок формы */
.popup-form {
  background: #fff;
  border-radius: 20px;
  padding: 40px 30px;
  max-width: 420px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: scaleIn 0.3s ease;
}

/* Заголовок формы */
.popup-title {
  margin-bottom: 24px;
  color: #007bff;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

/* Поля формы */
.popup-form input {
  width: 85%;
  padding: 14px 18px;
  margin-bottom: 16px;
  border: 1px solid #ccc;
  border-radius: 14px;
  font-size: 16px;
  outline: none;
  transition: border 0.3s ease;
}
.popup-form input:focus {
  border-color: #007bff;
}

/* Кнопка отправки */
.popup-form button[type="submit"] {
  background: linear-gradient(90deg, #007bff, #339cff);
  color: white;
  border: none;
  font-weight: 600;
  font-size: 16px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  width: 94%;
  transition: background 0.3s ease;
}
.popup-form button[type="submit"]:hover {
  background: linear-gradient(90deg, #0056b3, #007bff);
}

/* Кнопка закрытия */
.close-popup-btn {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  font-size: 28px;
  color: #aaa;
  cursor: pointer;
  transition: color 0.3s ease;
}
.close-popup-btn:hover {
  color: #000;
}

/* Сообщение после отправки */
#thankYouMessage {
  display: none;
  text-align: center;
  font-size: 18px;
  color: #28a745;
  margin-top: 20px;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Чтобы не растягивались картинки === */
/* Убираем горизонтальный скролл */
body {
  overflow-x: hidden;
}

/* Гарантия, что изображения не растягивают контейнер */
.portfolio-item img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Универсальный сброс box-sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}


/* === Портфолио – сайты=== */
.portfolio-sites-section {
  padding: 80px 20px;
  background: #f9f9f9;
  text-align: center;
}

.portfolio-sites-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.portfolio-sites-section .portfolio-title {
  font-size: 36px;
  font-weight: 400;
  margin-bottom: 0;
  color: #0d1b3e;
}

.portfolio-sites-section .portfolio-section-line {
  width: 70px;
  height: 4px;
  background-color: #007bff;
  border-radius: 2px;
  margin: 10px auto 16px;
}

.portfolio-sites-section .portfolio-subtitle {
  font-size: 24px;
  font-weight: 300;
  color: #555;
  margin-bottom: 40px;
}

/* Сетка: изменяем под экран */
.portfolio-sites-section .portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* Карточки */
.portfolio-sites-section .portfolio-item {
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.portfolio-sites-section .portfolio-item img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.portfolio-sites-section .portfolio-item:hover img {
  transform: scale(1.03);
}

/* Адаптивные колонки */
@media (max-width: 992px) {
  .portfolio-sites-section .portfolio-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
}

@media (max-width: 600px) {
  .portfolio-sites-section .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

/* === Общий стиль для Телеграм и Ватсап === */
.float-button {
  position: fixed;
  right: 20px;
  z-index: 999;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  cursor: pointer;
  background: transparent;
  padding: 0;
  border: none;
  box-shadow: none;
  overflow: visible; /* чтобы подсказка не обрезалась */
}

/* === Telegram кнопка === */
.telegram-float {
  bottom: 110px;
  width: 90px;
  height: 70px;
  animation: telegram-bounce 2s infinite;
}

/* === WhatsApp кнопка === */
.whatsapp-float {
  bottom: 30px;
  width: 100px;
  height: 110px;
  animation: whatsapp-bounce 2s infinite;
}

.whatsapp-float img {
  transform: translate(5px, 3px);
}

/* === Hover эффект === */
.float-button:hover {
  transform: scale(1.1);
  animation: none;
}

/* === Картинка иконки === */
.float-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: none;
  border: none;
}

/* === Подсказки === */
.float-button::after {
  content: attr(data-tooltip);
  position: absolute;
  top: 50%;
  right: calc(100% + 12px); /* отступ от кнопки */
  transform: translateY(-50%);
  background-color: rgba(51, 51, 51, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  font-size: 14px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 1000;
}

.float-button:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* === Анимации === */
@keyframes whatsapp-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}

@keyframes telegram-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

@media (max-width: 768px) {
  .telegram-float {
    width: 72px;   /* увеличено */
    height: 72px;
    bottom: 85px;
  }

  .whatsapp-float {
    width: 80px;   /* увеличено */
    height: 80px;
    bottom: 20px;
  }

  .float-button img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .float-button::after {
    display: none;
  }
}