html {
  scroll-behavior: smooth;
}

/* Общие стили */
html,
body {
  overflow-x: hidden; /* Предотвращаем горизонтальную прокрутку */
}

body {
  margin: 0;
  font-family: sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f4f4f4;
}

/* Анимации при скролле */
.scroll-animate {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.scroll-animate-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-left.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-right.animate-in {
  opacity: 1;
  transform: translateX(0);
}

.scroll-animate-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scroll-animate-scale.animate-in {
  opacity: 1;
  transform: scale(1);
}

/* Задержки для последовательной анимации */
.scroll-animate.delay-1 {
  transition-delay: 0.1s;
}
.scroll-animate.delay-2 {
  transition-delay: 0.2s;
}
.scroll-animate.delay-3 {
  transition-delay: 0.3s;
}
.scroll-animate.delay-4 {
  transition-delay: 0.4s;
}
.scroll-animate.delay-5 {
  transition-delay: 0.5s;
}
.scroll-animate.delay-6 {
  transition-delay: 0.6s;
}

#about,
#services,
#portfolio,
#contact {
  scroll-margin-top: 30px;
}

#advantages {
  scroll-margin-top: -75px;
}

/* Для мобильных устройств можно уменьшить отступ */
@media (max-width: 600px) {
  #about,
  #services,
  #portfolio,
  #contact {
    scroll-margin-top: 45px;
  }

  #advantages {
    scroll-margin-top: -75px;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 0 20px;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

header:hover {
  box-shadow: 0 6px 25px rgba(0, 123, 255, 0.12);
}

#border-header {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #007bff, #00c6ff);
  z-index: 999;
  opacity: 0.9;
  box-shadow: 0 6px 10px rgba(0, 123, 255, 0.2);
}

header .container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  max-width: 1100px;
  margin: 0 auto !important;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333333;
  text-decoration: none;
  gap: 10px;
}

.logo img {
  width: 37px;
  height: 37px;
  border-radius: 15%;
  object-fit: cover;
}

/* НАВИГАЦИЯ И БУРГЕР-МЕНЮ */

/* Десктопная навигация */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

nav ul li {
  margin-left: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #424242;
  text-shadow: 0 2px 4px rgb(252, 246, 232);
  font-weight: bold;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #007bff;
}

nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #007bff;
  transition: width 0.3s ease;
}

nav ul li a:hover::after {
  width: 100%;
}

/* Бургер-кнопка */
.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  z-index: 1004;
  position: relative;
}

.burger span {
  width: 2.4rem;
  height: 3px;
  margin: 3px 0;
  background: #333;
  transition: all 0.3s ease;
}

/* Анимация бургер-кнопки */
.burger.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 12px);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -12px);
}

/* Overlay - затемнение только вне меню и хедера */
.menu-overlay {
  position: fixed;
  top: 72px; /* Под хедером с запасом */
  left: 0;
  width: 100%;
  height: calc(100vh - 72px);
  background: rgba(0, 0, 0, 0.5);
  z-index: 1002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease; /* Без задержки по умолчанию */
  transition-delay: 0s; /* Явно указываем отсутствие задержки */
  pointer-events: none;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition-delay: 0.13s; /* Задержка только при появлении */
}

/* Мобильные стили перенесены в responsive.css */

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Секции */
.section-main {
  padding: 60px;
}

section:nth-child(odd) {
  background-color: #fff;
}

h1,
h2,
h3 {
  color: #333;
}

h1 {
  font-size: 2.5em;
  margin-bottom: 20px;
}

h2 {
  font-size: 2.2em;
  font-weight: bold;
  color: #444;
  margin-bottom: 40px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-subtitle {
  font-size: 1.3em;
  text-align: center;
  margin-top: -30px;
  margin-bottom: 40px;
  color: #333;
  font-weight: bold;
}

h3 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

/* Кнопки */
.button {
  display: inline-block;
  background: #007bff;
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

.button:hover {
  background: #0056b3;
}

/* Улучшенные стили для секции Hero (Главная страница) */
#hero {
  position: relative;
  min-height: 100vh; /* Основное изменение - минимальная высота в весь экран */
  display: flex; /* Добавляем flex для центрирования */
  align-items: center; /* Вертикальное центрирование */
  color: #fff;
  text-align: center;
  padding: 0 20px; /* Оставляем только боковые отступы */
  box-sizing: border-box; /* Чтобы padding не увеличивал высоту */
  z-index: 0;
}

#hero::before {
  content: "";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: url("https://avatars.mds.yandex.net/get-altay/998620/2a000001869c6a1cb33acdfdcad2c6bb8805/orig")
    no-repeat center center/cover;
  filter: blur(6px);
  z-index: -2;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6); /* затемнение поверх размытой картинки */
  z-index: -1;
}

#hero .container {
  position: relative;
  z-index: 1;
  padding-top: 2rem; /* Добавляем отступы внутри контейнера */
  width: 100%;
}

#hero h1 {
  color: #fff;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease;
}

#hero p {
  color: #ffffffea;
  font-size: 2rem;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Улучшенный стиль кнопки на главной странице */
#hero .button {
  margin: 0 auto 20px;
  width: 30%;
  min-width: 250px;
  background: linear-gradient(135deg, #ff5722 0%, #ff8a65 100%);
  color: #fff;
  padding: 18px 35px;
  font-size: 0.95em;
  border-radius: 35px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(255, 87, 34, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1;
}

#hero .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgb(233, 255, 35),
    transparent
  );
  transition: 0.4s;
  z-index: -1;
}

#hero .button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(255, 127, 88, 0.6);
}

#hero .button:hover::before {
  left: 100%;
}

#hero .button:active {
  transform: translateY(1px);
  box-shadow: 0 3px 10px rgba(255, 87, 34, 0.6);
}

/* Медиа-запросы для мобильных перенесены в responsive.css */

/* Underline effect for h2 */
h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #007bff;
  border-radius: 2px;
}

/* Specific underline colors for h2 in different sections */
#why-us h2::after {
  background-color: #28a745;
}

#portfolio h2::after {
  background-color: #ffc107;
}

#guarantees h2::after {
  background-color: #0a1eef;
}

#contact h2::after {
  background-color: #007bff;
}

/* Улучшенные стили для секции О нас */
#about {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
  padding: 70px 0;
}

#about::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.1) 0%,
    rgba(0, 198, 255, 0.1) 100%
  );
  z-index: 0;
}

#about::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    rgba(0, 123, 255, 0.05) 0%,
    rgba(0, 198, 255, 0.05) 100%
  );
  z-index: 0;
}

#about .container {
  position: relative;
  z-index: 1;
}

#about h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  color: #333;
  font-weight: 700;
}

#about p {
  max-width: 800px;
  margin: 0 auto 30px auto;
  text-align: center;
  font-size: 1.2em;
  line-height: 1.8;
  color: #444;
  position: relative;
  padding: 40px 50px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(248, 250, 252, 0.85)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 123, 255, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05),
    inset 0 -2px 0 rgba(0, 123, 255, 0.15);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  border: none;
  z-index: 2;
}

#about p::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 15px;
  font-size: 5em;
  font-family: Georgia, serif;
  color: rgba(0, 123, 255, 0.1);
  line-height: 1;
}

#about p::after {
  content: '"';
  position: absolute;
  bottom: -15px;
  right: 15px;
  font-size: 5em;
  font-family: Georgia, serif;
  color: rgba(0, 123, 255, 0.1);
  line-height: 1;
}

#about p strong {
  color: #007bff;
  font-weight: 700;
}

#about p:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 123, 255, 0.12),
    0 3px 10px rgba(0, 0, 0, 0.08), inset 0 -3px 0 rgba(0, 123, 255, 0.25);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.9)
  );
}

/* Улучшенные стили для списков в секциях "Услуги", "Почему выбирают нас", "Гарантии" */
#services ul,
#why-us ul,
#guarantees ul {
  list-style: none !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 20px !important;
}

#services li,
#why-us li,
#guarantees li {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  margin-bottom: 0;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  text-align: left;
  border: 1px solid rgba(0, 123, 255, 0.1);
  transition: all 0.3s ease;
}

#guarantees {
  position: relative;
  background: linear-gradient(135deg, #f0f4f8 0%, #e6f0ff 100%);
  overflow: hidden;
}

#guarantees::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(10, 30, 239, 0.08) 0%,
    rgba(10, 30, 239, 0.02) 70%
  );
  z-index: 0;
}

#guarantees::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(10, 30, 239, 0.05) 0%,
    rgba(10, 30, 239, 0.01) 70%
  );
  z-index: 0;
}

#guarantees .container {
  position: relative;
  z-index: 1;
}

#guarantees li {
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  padding: 35px 30px;
  border-radius: 16px;
  border: none;
  box-shadow: 0 10px 30px rgba(10, 30, 239, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  text-align: center;
  margin-bottom: 20px;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

#guarantees li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #0a1eef, #007bff);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

#guarantees li:hover {
  transform: translateY(-10px);
  background-color: #ffffff;
  box-shadow: 0 20px 40px rgba(10, 30, 239, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
}

#guarantees li:hover::before {
  transform: scaleY(1);
}

#guarantees li h3 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #0a1eef;
  font-size: 1.7em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

#guarantees li h3::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #0a1eef, transparent);
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

#guarantees li:hover h3::after {
  opacity: 1;
}

#guarantees li p {
  margin-bottom: 0;
  color: #444;
  font-size: 1.15em;
  line-height: 1.7;
}

#services li {
  background: linear-gradient(145deg, #ffffff, #f5f7fa);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 123, 255, 0.1);
  z-index: 1;
}

#services li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  z-index: 2;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#services li:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
  border-color: rgba(0, 123, 255, 0.3);
}

#services li:hover::before {
  transform: scaleX(1);
}

#services .portfolio-cta .button {
  background: linear-gradient(135deg, #007bff, #00c6ff) !important;
  color: white;
  padding-block: 10px !important;
  padding-inline: 14px !important;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  min-width: 250px;
  max-width: 280px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(7, 205, 255, 0.3);
  position: relative;
  overflow: hidden;
}

#services li i {
  font-size: 3.5em;
  background: linear-gradient(135deg, #007bff, #00c6ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 20px;
  transition: transform 0.3s ease;
}

#services li:hover i {
  transform: scale(1.1);
}

#services li h3 {
  margin-top: 0;
  margin-bottom: 8px;
  position: relative;
  padding-bottom: 8px;
}

#services li h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  margin-top: 1rem;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 1px;
}

#services li p {
  margin-bottom: 0;
  word-break: break-word;
}

/* Улучшенная стилизация секции "Портфолио" */
#portfolio {
  position: relative;
  background: linear-gradient(135deg, #f9f9f9 0%, #f0f4f8 100%);
  overflow: hidden;
}

#portfolio::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 193, 7, 0.08) 0%,
    rgba(255, 193, 7, 0.02) 70%
  );
  z-index: 0;
}

#portfolio::after {
  content: "";
  position: absolute;
  bottom: -50px;
  left: -50px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 193, 7, 0.05) 0%,
    rgba(255, 193, 7, 0.01) 70%
  );
  z-index: 0;
}

.portfolio-items {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.portfolio-item {
  position: relative;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  text-align: center;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 8px rgba(0, 0, 0, 0.06);
}

.portfolio-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 16px 16px 0 0;
  transition: all 0.5s ease;
  position: relative;
  z-index: 1;
}

.portfolio-item:hover img {
  transform: scale(1.05);
}

.portfolio-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ffc107, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.portfolio-item:hover::after {
  transform: scaleX(1);
}

.portfolio-item-content {
  padding: 25px;
}

/* Улучшенный стиль заголовков проектов в портфолио */
.portfolio-item h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.4em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

.portfolio-item h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #ffc107, transparent);
}

.portfolio-item p {
  font-size: 1.05em;
  color: #555;
  line-height: 1.6;
  margin-bottom: 20px;
}

.portfolio-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.portfolio-item .view-project {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 20px;
  background: linear-gradient(135deg, #ffc107, #ffb300);
  color: #fff;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.9em;
  transition: all 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}

.portfolio-item:hover .view-project {
  opacity: 1;
  transform: translateY(0);
}

.portfolio-item .view-project:hover {
  box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
  background: linear-gradient(135deg, #ffb300, #ffa000);
}

/* Стиль для элементов списка в секции "Наши преимущества" */
#why-us ul {
  list-style: none !important;
  padding: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 30px !important;
}

#why-us {
  position: relative;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  overflow: hidden;
}

#why-us::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(40, 167, 69, 0.08) 0%,
    rgba(40, 167, 69, 0.02) 70%
  );
  z-index: 0;
}

#why-us::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(40, 167, 69, 0.05) 0%,
    rgba(40, 167, 69, 0.01) 70%
  );
  z-index: 0;
}

#why-us .container {
  position: relative;
  z-index: 1;
}

/* ОСНОВНЫЕ СТИЛИ ДЛЯ ВСЕХ ЭЛЕМЕНТОВ СПИСКА */
#why-us li {
  background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
  padding: 35px 30px !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  text-align: center !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(40, 167, 69, 0.08) !important;
  height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

#why-us li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #28a745, #5cb85c);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

#why-us li:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(40, 167, 69, 0.1), 0 5px 15px rgba(0, 0, 0, 0.05);
  border-color: rgba(40, 167, 69, 0.2);
}

#why-us li:hover::before {
  transform: scaleX(1);
}

#why-us li i {
  font-size: 3.5em;
  color: #28a745;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #28a745, #5cb85c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.3s ease;
  display: block;
}

#why-us li:hover i {
  transform: scale(1.1);
}

#why-us li h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.5em;
  font-weight: 700;
  position: relative;
  display: inline-block;
}

#why-us li h3::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #28a745, transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

#why-us li:hover h3::after {
  opacity: 1;
}

#why-us li p {
  margin-bottom: 0;
  color: #555;
  font-size: 1.1em;
  line-height: 1.6;
}

/* СТИЛИ ДЛЯ КЛИКАБЕЛЬНЫХ ЭЛЕМЕНТОВ */
#why-us a li {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid rgba(40, 167, 69, 0.2) !important;
  box-shadow: 0 10px 25px rgba(40, 167, 69, 0.08), 0 1px 3px rgba(0, 0, 0, 0.03) !important;
  height: 280px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  background: linear-gradient(145deg, #ffffff, #f8f9fa) !important;
  padding: 35px 30px !important;
  border-radius: 16px !important;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

#why-us a li::after {
  content: "Нажмите, чтобы узнать подробнее";
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(40, 167, 69, 0.9);
  color: white;
  text-align: center;
  transition: bottom 0.3s ease;
  z-index: 10;
}

#why-us a li:hover::after {
  bottom: 0;
}

/* Отменяем стандартное поведение для кликабельных элементов */
#why-us a li::before {
  display: none;
}

/* Специальный стиль для иконок в кликабельных элементах */
#why-us a li i {
  font-size: 3.5em;
  margin-bottom: 25px;
  background: linear-gradient(135deg, #28a745, #5cb85c);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  transition: transform 0.3s ease;
  display: block;
}

#contact {
  position: relative;
  background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.85)),
    url("../images/contact.png") no-repeat center center/cover;
  color: #fff;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
}

#contact::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 123, 255, 0.15) 0%,
    rgba(0, 123, 255, 0.05) 70%
  );
  z-index: 0;
  opacity: 0.5;
}

#contact::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 123, 255, 0.15) 0%,
    rgba(0, 123, 255, 0.05) 70%
  );
  z-index: 0;
  opacity: 0.5;
}

#contact .container {
  position: relative;
  z-index: 1;
  max-width: 500px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
  padding: 40px 35px;
  text-align: center;
  color: #222;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
}

#contact .container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #007bff, #00c6ff);
  z-index: 2;
}

#contact h2 {
  color: #007bff;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

#contact h2::after {
  background: linear-gradient(90deg, #007bff, #00c6ff);
}

#contact .contact-intro,
#contact .response-info {
  color: #444;
  margin-top: 5px;
  margin-bottom: 15px;
  font-size: 1.1em;
  line-height: 1.6;
}

#contact .contact-info {
  margin: 25px 0;
  color: #333;
  font-size: 1.05em;
  padding: 15px;
  background: rgba(0, 123, 255, 0.05);
  border-radius: 12px;
  border-left: 3px solid rgba(0, 123, 255, 0.3);
}

#contact .contact-info p {
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

#contact .contact-info p::before {
  content: "•";
  color: #007bff;
  margin-right: 8px;
  font-size: 1.2em;
}

#contact .contact-form form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#contact .contact-form input,
#contact .contact-form textarea {
  padding: 14px 16px;
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 10px;
  font-size: 1em;
  background: rgba(248, 251, 255, 0.8);
  transition: all 0.3s ease;
  resize: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

#contact .contact-form input:focus,
#contact .contact-form textarea:focus {
  border: 1px solid #007bff;
  outline: none;
  background: #fff;
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.1);
  transform: translateY(-2px);
}

#contact .contact-form textarea {
  min-height: 120px;
}

#contact .contact-form button.button {
  background: linear-gradient(135deg, #007bff, #00c6ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 16px 0;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
  position: relative;
  overflow: hidden;
}

#contact .contact-form button.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

#contact .contact-form button.button:hover {
  background: linear-gradient(135deg, #0056b3, #007bff);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 123, 255, 0.3);
}

#contact .contact-form button.button:hover::before {
  left: 100%;
}

#contact .contact-form button.button:active {
  transform: translateY(-1px);
  box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
}

@media (max-width: 600px) {
  #contact {
    padding: 40px 5px;
  }
  #contact .container {
    padding: 18px 6px 18px 6px;
    max-width: 98vw;
  }
  #contact h2 {
    font-size: 1.4em;
  }
  #contact .contact-form button.button {
    font-size: 1em;
    padding: 12px 0;
  }
}

/* Стили для текста про ответ */
.response-info {
  text-align: center;
  margin-top: -20px;
  margin-bottom: 30px;
  color: #555;
  font-style: italic;
}

/* Подвал */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 20px 0;
}

footer p {
  margin: 0;
}

/* Стили для прайс-листа */
.price-list {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* Сделаем карточку с ценами кликабельной */
#why-us li {
  cursor: pointer;
}

/* АДАПТИВНЫЕ СТИЛИ */
@media (max-width: 600px) {
  /* Адаптивные стили для секции "Наши преимущества" */

  #about p {
    font-size: 1em;
  }

  #why-us ul {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #why-us li {
    height: 250px !important;
    padding: 25px 20px !important;
  }

  #why-us li i {
    font-size: 3em !important;
    margin-bottom: 20px !important;
  }

  #why-us li h3 {
    font-size: 1.3em !important;
    margin-bottom: 12px !important;
  }

  #why-us li p {
    font-size: 1em !important;
  }

  /* Стили для кликабельных элементов на мобильных */
  #why-us a li {
    height: 250px !important;
    padding: 25px 20px !important;
  }

  #why-us a li i {
    font-size: 3em !important;
    margin-bottom: 20px !important;
  }

  #why-us a li h3 {
    font-size: 1.3em !important;
    margin-bottom: 12px !important;
  }

  #why-us a li p {
    font-size: 1em !important;
  }
}

/* Адаптивные стили для планшетов */
@media (max-width: 768px) and (min-width: 601px) {
  #why-us ul {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
  }

  #why-us li {
    height: 270px !important;
    padding: 30px 25px !important;
  }

  #why-us li i {
    font-size: 3.2em !important;
    margin-bottom: 22px !important;
  }

  #why-us li h3 {
    font-size: 1.4em !important;
    margin-bottom: 14px !important;
  }

  #why-us li p {
    font-size: 1.05em !important;
  }

  /* Стили для кликабельных элементов на планшетах */
  #why-us a li {
    height: 270px !important;
    padding: 30px 25px !important;
  }

  #why-us a li i {
    font-size: 3.2em !important;
    margin-bottom: 22px !important;
  }

  #why-us a li h3 {
    font-size: 1.4em !important;
    margin-bottom: 14px !important;
  }

  #why-us a li p {
    font-size: 1.05em !important;
  }
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon img {
  width: 24px;
  height: 24px;
}

#contact .contact-form select:focus {
  border: 1.5px solid #007bff;
  outline: none;
  background-color: #fff;
}

/* Для старых браузеров (если нужно) */
#contact .contact-form select::-ms-expand {
  display: none;
}

.contact-methods {
  margin-bottom: 15px;
}

.contact-methods label {
  display: block;
  margin-bottom: 10px;
  text-align: left;
  color: #444;
}

.method-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.method-options label {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: #f8fbff;
  border: 1px solid #cce1ff;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s;
}

.method-options label:hover {
  border-color: #007bff;
}

.method-options input {
  margin-right: 8px;
}

.method-options input:checked + span {
  color: #007bff;
  font-weight: bold;
}

#vk-message.show {
  display: block;
  opacity: 1;
}

.portfolio-cta {
  text-align: center;
  margin-top: 50px;
  position: relative;
  z-index: 2;
}

.portfolio-cta .button {
  background: linear-gradient(135deg, #ffc107, #ffb300) !important;
  color: white;
  padding: 14px 35px;
  border-radius: 30px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: inline-block;
  min-width: 250px;
  max-width: 400px;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(255, 193, 7, 0.3);
  position: relative;
  overflow: hidden;
}

.portfolio-cta .button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.5s;
  z-index: -1;
}

.portfolio-cta .button:hover {
  background: linear-gradient(135deg, #ffb300, #ffa000) !important;
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(255, 193, 7, 0.4);
}

.portfolio-cta .button:hover::before {
  left: 100%;
}

.portfolio-cta .button:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(255, 193, 7, 0.3);
}

.btn-17,
.btn-17 *,
.btn-17 :after,
.btn-17 :before,
.btn-17:after,
.btn-17:before {
  border: 0 solid;
  box-sizing: border-box;
  text-decoration: none;
}

.btn-17 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: #000;
  background-image: none;
  color: #fff;
  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif,
    Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
  font-size: 100%;
  font-weight: 900;
  line-height: 1.5;
  margin: 0;
  -webkit-mask-image: -webkit-radial-gradient(#000, #fff);
  padding: 0;
  text-transform: uppercase;
}

.btn-17:disabled {
  cursor: default;
}

.btn-17:-moz-focusring {
  outline: auto;
}

.btn-17 svg {
  display: block;
  vertical-align: middle;
}

.btn-17 [hidden] {
  display: none;
}

.btn-17 {
  border-radius: 99rem;
  border-width: 2px;
  padding: 0.8rem 3rem;
  z-index: 0;
}

.btn-17,
.btn-17 .text-container {
  overflow: hidden;
  position: relative;
}

.btn-17 .text-container {
  display: block;
  mix-blend-mode: difference;
}

.btn-17 .text {
  display: block;
  position: relative;
}

.btn-17:hover .text {
  -webkit-animation: move-up-alternate 0.3s forwards;
  animation: move-up-alternate 0.3s forwards;
}

@-webkit-keyframes move-up-alternate {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(80%);
  }

  51% {
    transform: translateY(-80%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes move-up-alternate {
  0% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(80%);
  }

  51% {
    transform: translateY(-80%);
  }

  to {
    transform: translateY(0);
  }
}

.btn-17:after,
.btn-17:before {
  --skew: 0.2;
  background: #fff;
  content: "";
  display: block;
  height: 102%;
  left: calc(-50% - 50% * var(--skew));
  pointer-events: none;
  position: absolute;
  top: -104%;
  transform: skew(calc(150deg * var(--skew))) translateY(var(--progress, 0));
  transition: transform 0.2s ease;
  width: 100%;
}

.btn-17:after {
  --progress: 0%;
  left: calc(50% + 50% * var(--skew));
  top: 102%;
  z-index: -1;
}

.btn-17:hover:before {
  --progress: 100%;
}

.btn-17:hover:after {
  --progress: -102%;
}
