/* ===== БАЗОВЫЕ СТИЛИ ===== */
:root {
  --primary: #e8c4c4;
  --secondary: #F5E6D3;
  --accent: #f9020282;
  --background: #FDF8F3;
  --text: #5C5347;
  --text-light: #8B7E74;
  --highlight: #D4B8A0;
  --white: #FFFFFF;
  --shadow: rgba(92, 83, 71, 0.1);
  --shadow-hover: rgba(92, 83, 71, 0.18);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  line-height: 1.3;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 100px 0;
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 15px;
  color: var(--text);
}

.section-subtitle {
  text-align: center;
  color: rgba(255, 141, 209, 0.6);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* ===== КНОПКИ ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 30px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  background: var(--highlight);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px var(--shadow-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  transform: translateY(-2px);
}

.btn-small {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-full {
  width: 100%;
}

/* ===== НАВИГАЦИЯ ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(253, 248, 243, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 213, 196, 0.5);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(253, 248, 243, 0.98);
  box-shadow: 0 2px 20px var(--shadow);
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
}

.logo-icon {
  font-size: 1.8rem;
}

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

.nav-links a {
  font-weight: 500;
  color: var(--text);
  position: relative;
  transition: color 0.3s ease;
}

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

.nav-links a:hover {
  color: var(--highlight);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  transition: color 0.3s ease;
}

.nav-phone:hover {
  color: var(--highlight);
}

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.burger span {
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 25px;
  color: var(--text);
}

.hero-title .highlight {
  color: var(--accent);
  font-style: italic;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-light);
  margin-bottom: 35px;
  max-width: 550px;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 50px;
}

.stat {
  text-align: center;
}

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.hero-decoration {
  position: absolute;
  top: 0;
  right: -100px;
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--secondary);
  opacity: 0.6;
}

.deco-1 {
  width: 400px;
  height: 400px;
  top: 100px;
  right: 50px;
  animation: float 8s ease-in-out infinite;
}

.deco-2 {
  width: 250px;
  height: 250px;
  top: 300px;
  right: 300px;
  background: var(--primary);
  animation: float 6s ease-in-out infinite reverse;
}

.deco-3 {
  width: 150px;
  height: 150px;
  top: 50px;
  right: 250px;
  background: var(--highlight);
  animation: float 5s ease-in-out infinite;
}

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

/* ===== ПРЕИМУЩЕСТВА ===== */
.advantages {
  background: var(--white);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.advantage-card {
  background: var(--background);
  padding: 35px 25px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.4s ease;
}

.advantage-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px var(--shadow);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.advantage-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.advantage-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ===== КАТАЛОГ ===== */
.catalog {
  background: #bb89f8;
}
.mem {
  color: #dcf8086c;
}

.catalog-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 24px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 25px;
  font-family: 'Nunito', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.product-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px var(--shadow);
}

.product-card.hidden {
  display: none;
}

.product-image {
  position: relative;
  height: 220px;
  background: var(--secondary);
  overflow: hidden;
}

.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

.sofa { background: linear-gradient(135deg, #E8D5C4, #D4B8A0); }
.sofa2 { background: linear-gradient(135deg, #D4B8A0, #B8A99A); }
.chair { background: linear-gradient(135deg, #F5E6D3, #E8D5C4); }
.chair2 { background: linear-gradient(135deg, #E8D5C4, #C9B8A8); }
.table { background: linear-gradient(135deg, #D4B8A0, #C9A88A); }
.wardrobe { background: linear-gradient(135deg, #B8A99A, #A89888); }

.product-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  background: var(--highlight);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 15px;
}

.product-info {
  padding: 25px;
}

.product-info h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.product-info p {
  color: var(--text-light);
  font-size: 0.95rem;
  margin-bottom: 15px;
}

.product-price {
  margin-bottom: 15px;
}

.price {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent);
}

.price-old {
  font-size: 1rem;
  color: var(--text-light);
  text-decoration: line-through;
  margin-right: 10px;
}

.price-new {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: #C17F6B;
}

/* ===== О МАСТЕРСКОЙ ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image {
  position: relative;
}

.about-img-wrapper {
  width: 100%;
  height: 500px;
  background: linear-gradient(135deg, var(--primary), var(--highlight));
  border-radius: 30px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-img-wrapper::before {
  content: '🏭';
  font-size: 8rem;
}

.about-deco {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--secondary);
  border-radius: 50%;
  bottom: -30px;
  right: -30px;
  z-index: -1;
}

.about-lead {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 20px;
  color: var(--text);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
}

.about-features {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.feature strong {
  display: block;
  margin-bottom: 3px;
}

.feature p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-light);
}

/* ===== ПРОЦЕСС ===== */
.process {
  background: var(--white);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 3px;
  background: var(--primary);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-number {
  width: 100px;
  height: 100px;
  margin: 0 auto 25px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text);
  transition: all 0.4s ease;
}

.process-step:hover .step-number {
  background: var(--highlight);
  transform: scale(1.1);
}

.step-content h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-content p {
  font-size: 0.95rem;
  color: var(--text-light);
  max-width: 250px;
  margin: 0 auto;
}

.step-icon {
  font-size: 1.5rem;
  margin-top: 15px;
}

/* ===== ОТЗЫВЫ ===== */
.reviews {
  background: var(--secondary);
}

.reviews-slider {
  position: relative;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease;
}

.review-card {
  flex: 0 0 calc(33.333% - 20px);
  background: var(--white);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 30px var(--shadow);
}

.review-stars {
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.review-text {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 25px;
  font-style: italic;
  line-height: 1.8;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: var(--text);
}

.author-info strong {
  display: block;
  margin-bottom: 3px;
}

.author-info span {
  font-size: 0.9rem;
  color: var(--text-light);
}

.reviews-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 35px;
}

.review-btn {
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-btn:hover {
  background: var(--primary);
}

.reviews-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ===== КОНТАКТЫ ===== */
.contacts-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contacts-lead {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 35px;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  margin-bottom: 5px;
}

.contact-item p,
.contact-item a {
  color: var(--text-light);
  font-size: 0.95rem;
}

.contact-item a:hover {
  color: var(--accent);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.social-link {
  width: 50px;
  height: 50px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--highlight);
  transform: translateY(-3px);
}

.contacts-form {
  background: var(--white);
  padding: 40px;
  border-radius: 25px;
  box-shadow: 0 15px 50px var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid var(--secondary);
  border-radius: 12px;
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--text);
  background: var(--background);
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 15px;
}

.form-note a {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== ФУТЕР ===== */
.footer {
  background: var(--text);
  color: var(--secondary);
  padding-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(245, 230, 211, 0.2);
}

.footer-brand .logo-text {
  color: var(--secondary);
}

.footer-brand p {
  margin-top: 10px;
  color: var(--accent);
}

.footer-links h4,
.footer-contact h4 {
  color: var(--secondary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a,
.footer-contact a,
.footer-contact p {
  color: var(--accent);
  transition: color 0.3s ease;
  font-size: 0.95rem;
}

.footer-links a:hover {
  color: var(--secondary);
}

.footer-contact p {
  margin-bottom: 8px;
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  color: var(--accent);
}

/* ===== АНИМАЦИИ ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== УСПЕХ ФОРМЫ ===== */
.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success .success-icon {
  font-size: 4rem;
  margin-bottom: 20px;
}

.form-success h3 {
  margin-bottom: 10px;
}

/* ===== МОБИЛЬНАЯ АДАПТАЦИЯ ===== */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .review-card {
    flex: 0 0 calc(50% - 15px);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 15px;
    border-bottom: 1px solid var(--primary);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-phone {
    display: none;
  }
  
  .burger {
    display: flex;
  }
  
  .burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .burger.active span:nth-child(2) {
    opacity: 0;
  }
  
  .burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-stats {
    gap: 25px;
    flex-wrap: wrap;
  }
  
  .stat-number {
    font-size: 1.8rem;
  }
  
  .hero-decoration {
    opacity: 0.3;
    right: -200px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-title {
    font-size: 1.8rem;
  }
  
  .advantages-grid,
  .catalog-grid {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-image {
    order: 2;
  }
  
  .about-img-wrapper {
    height: 300px;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .review-card {
    flex: 0 0 100%;
  }
  
  .contacts-content {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .social-links {
    justify-content: center;
  }
}
