/* Новый стиль в духе Reno Tahoe: чистый, минималистичный, белый фон */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #000;
  background: #fff;
}

html {
  scroll-behavior: smooth;
}

/* Cookie popup обновлен под новый стиль */
.cookie-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.95);
  color: white;
  padding: 20px;
  z-index: 9999;
  display: none;
  justify-content: center;
  align-items: center;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  border-top: 2px solid #06b6d4;
}

.cookie-content {
  max-width: 800px;
  text-align: center;
}

.cookie-popup p {
  margin-bottom: 15px;
}

/* Новые стили для flip карточек услуг */
.service-card {
  perspective: 1000px;
  cursor: pointer;
  min-height: 420px;
  position: relative;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.service-card.flipped .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front,
.service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.service-card-back {
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Анимация появления элементов */
.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Статистические элементы с задержкой анимации */
.stat-item {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.stat-item.animate-fade-in:nth-child(1) {
  animation-delay: 0.1s;
}

.stat-item.animate-fade-in:nth-child(2) {
  animation-delay: 0.2s;
}

.stat-item.animate-fade-in:nth-child(3) {
  animation-delay: 0.3s;
}

.stat-item.animate-fade-in:nth-child(4) {
  animation-delay: 0.4s;
}

/* Hover эффекты для карточек кейсов */
.case-card {
  transition: all 0.3s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Улучшенные стили для форм */
input:focus,
textarea:focus,
select:focus {
  outline: none;
}

input,
textarea {
  transition: border-color 0.3s ease;
}

/* Responsive изображения */
img {
  max-width: 100%;
  height: auto;
}

/* Анимация для ссылок с эмодзи стрелкой */
a:has(span.ml-2) span {
  display: inline-block;
  transition: transform 0.3s ease;
}

/* Стили для header с эффектом тени при скролле */
header {
  transition: box-shadow 0.3s ease;
}

/* Адаптивные стили для мобильных устройств */
@media (max-width: 768px) {
  .cookie-popup {
    padding: 15px;
  }

  .cookie-content {
    padding: 10px;
  }

  .service-card {
    min-height: auto;
  }

  /* Отключаем flip эффект на мобильных для лучшей доступности */
  .service-card-inner {
    transform: none !important;
  }

  .service-card-back {
    position: relative;
    transform: none;
    margin-top: 20px;
    padding: 20px;
    background: #06b6d4;
    color: white;
    border-radius: 4px;
  }

  .service-card.flipped .service-card-front {
    display: none;
  }
}

/* Дополнительные стили для плавности переходов */
a,
button {
  transition: all 0.3s ease;
}

/* Улучшенная типографика */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 900;
  letter-spacing: -0.02em;
}

p {
  color: #4b5563;
}

/* Стили для прозрачного меню с белым фоном */
header.sticky {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
}

/* Градиент для hero секции */
.bg-gradient-to-b {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

/* Эффект hover для изображений команды */
#team .group img {
  transition: transform 0.3s ease;
}

/* Стили для улучшения читаемости текста на изображениях */
.case-card h3,
.case-card p {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Финальные штрихи для профессионального вида */
.border-gray-200 {
  border-color: #e5e7eb;
}

.shadow-sm {
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.shadow-xl {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}
