/* Основные стили для сайта "Мебель Cilek" */
:root {
  --primary-color: #ff6b6b; /* Яркий коралловый - игривый детский цвет */
  --secondary-color: #4ecdc4; /* Бирюзовый - свежий и современный */
  --accent-color: #ffe66d; /* Солнечно-желтый - яркий акцент */
  --dark-color: #2d3436; /* Темно-серый для текста */
  --light-color: #f9f9f9; /* Светлый фон */
  --border-color: #e0e0e0; /* Цвет для границ */
  --gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --card-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--light-color);
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Плавающие элементы - уникальная фишка сайта */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  overflow: hidden;
}

.shape {
  position: absolute;
  opacity: 0.1;
  z-index: -1;
}

.shape1 {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  background: var(--primary-color);
  top: 15%;
  left: 5%;
  animation: float 8s ease-in-out infinite;
}

.shape2 {
  width: 80px;
  height: 80px;
  background: var(--secondary-color);
  border-radius: 50%;
  top: 25%;
  right: 10%;
  animation: float 6s ease-in-out infinite 1s;
}

.shape3 {
  width: 60px;
  height: 60px;
  background: var(--accent-color);
  border-radius: 18px;
  bottom: 15%;
  left: 15%;
  transform: rotate(45deg);
  animation: float 7s ease-in-out infinite 2s;
}

.shape4 {
  width: 100px;
  height: 100px;
  background: var(--primary-color);
  border-radius: 22px;
  bottom: 20%;
  right: 5%;
  transform: rotate(15deg);
  animation: float 9s ease-in-out infinite 1.5s;
}

@keyframes float {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}

/* 3D эффект наведения - вторая уникальная фишка */
.card-3d {
  transition: var(--transition);
  transform-style: preserve-3d;
  perspective: 1000px;
}

.card-3d:hover {
  transform: translateY(-10px) rotateX(5deg) rotateY(5deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Основные контейнеры */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative;
}

/* Шапка сайта */
header {
  position: sticky;
  top: 0;
  background: rgba(249, 249, 249, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 100;
  padding: 20px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  font-size: 28px;
}

/* Навигация */
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
}

nav a {
  text-decoration: none;
  color: var(--dark-color);
  font-weight: 500;
  font-size: 16px;
  position: relative;
  padding: 5px 0;
  transition: var(--transition);
}

nav a:hover {
  color: var(--primary-color);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

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

/* Герой-секция */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  max-width: 650px;
  z-index: 2;
}

.hero h1 {
  font-size: 50px;
  line-height: 1.2;
  margin-bottom: 24px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-highlight {
  position: relative;
  display: inline-block;
  color: rgba(255, 230, 109, 0.5);
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background-color: rgba(255, 230, 109, 0.5);
  z-index: -1;
}

.hero p {
  font-size: 18px;
  margin-bottom: 32px;
  color: var(--dark-color);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  border-radius: 50px;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Секции */
.section-title {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--dark-color);
  text-align: center;
}

.section-subtitle {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto 60px;
  color: var(--dark-color);
  opacity: 0.8;
  text-align: center;
}

/* Карточки категорий */
.categories {
  position: relative;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.category-card {
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.category-icon {
  font-size: 36px;
  margin-bottom: 10px;
  color: var(--primary-color);
  text-align: center;
  padding-top: 30px;
}

.category-content {
  padding: 20px;
}

.category-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 10px;
  text-align: center;
}

.category-description {
  font-size: 16px;
  color: var(--dark-color);
  opacity: 0.8;
  text-align: center;
  margin-bottom: 20px;
}

/* Особенности */
.features {
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
  border-radius: 20px;
  padding: 50px 0;
  margin: 50px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.feature h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.feature p {
  color: var(--dark-color);
  opacity: 0.8;
}

/* О компании */
.about-section {
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 24px;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 20px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
  box-shadow: var(--card-shadow);
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--primary-color);
}

.stat-text {
  font-size: 16px;
  color: var(--dark-color);
}

/* Категории мебели */
.furniture-categories {
  padding: 50px 0;
}

.furniture-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.furniture-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  height: 300px;
  border: 1px solid var(--border-color);
}

.furniture-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.furniture-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border-top: 1px solid var(--border-color);
}

.furniture-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.furniture-description {
  font-size: 14px;
  color: var(--dark-color);
  opacity: 0.8;
}

/* Контакты */
.contact-section {
  position: relative;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 50px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.contact-info {
  margin-top: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.contact-icon {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
}

.contact-text {
  font-size: 18px;
}

.contact-text a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  text-decoration: underline;
}

/* FAQ */
.faq {
  margin-top: 50px;
}

.faq-item {
  margin-bottom: 20px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  background: white;
  box-shadow: var(--card-shadow);
}

.faq-question {
  padding: 20px;
  font-weight: 600;
  color: var(--dark-color);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--transition);
}

.faq-question:hover {
  background: rgba(255, 107, 107, 0.05);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s;
  opacity: 0;
}

.faq-item.active .faq-answer {
  padding: 20px;
  max-height: 1000px;
  opacity: 1;
}

/* Коллекции */
.collections {
  position: relative;
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.collection {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: white;
  box-shadow: var(--card-shadow);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  padding: 30px;
}

.collection:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.collection-icon {
  font-size: 32px;
  margin-bottom: 15px;
  color: var(--secondary-color);
}

.collection h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.collection p {
  color: var(--dark-color);
  opacity: 0.8;
  margin-bottom: 20px;
}

.collection-items {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-item {
  padding: 5px 15px;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 20px;
  font-size: 14px;
  color: var(--primary-color);
}

/* Галерея идей */
.ideas-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.idea-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  height: 300px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: var(--card-shadow);
  transition: var(--transition);
}

.idea-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.idea-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
}

.idea-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--dark-color);
}

.idea-description {
  font-size: 14px;
  color: var(--dark-color);
  opacity: 0.8;
}

/* Подвал */
footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 992px) {
  .hero h1 {
    font-size: 40px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats {
    margin-top: 30px;
  }
  
  .contact-content {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 20px;
  }
  
  nav ul {
    gap: 20px;
  }
  
  .hero {
    padding: 80px 0;
  }
  
  .hero h1 {
    font-size: 34px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  .stats {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 576px) {
  nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .cta-button {
    width: 100%;
    justify-content: center;
  }
  
  .furniture-grid,
  .collection-grid {
    grid-template-columns: 1fr;
  }
}