/* ===================================
   КАШЕМИРОВЫЙ БРЕНД — СТИЛИ САЙТА 2.0
   Тёплая, премиальная палитра
   =================================== */

/* --- CSS Variables (тёплая палитра) --- */
:root {
  /* Основные цвета */
  --color-cream: #FDF6EE;
  --color-warm-white: #FAF3EB;
  --color-sand: #E8D5C0;
  --color-caramel: #C49A6C;
  --color-gold: #B8860B;
  --color-gold-light: #D4A950;
  --color-deep-brown: #3E2723;
  --color-warm-brown: #5D4037;
  --color-chocolate: #4E342E;
  --color-burgundy: #6D1A36;
  --color-soft-rose: #E8C4B8;
  --color-muted-terracotta: #C08B6B;

  /* Текст */
  --text-primary: #3E2723;
  --text-secondary: #5D4037;
  --text-muted: #8D6E63;
  --text-light: #FAF3EB;

  /* Фоны */
  --bg-primary: #FDF6EE;
  --bg-secondary: #FAF3EB;
  --bg-accent: #F5E6D3;
  --bg-dark: #3E2723;

  /* Типографика */
  --font-heading: 'Playfair Display', 'Georgia', serif;
  --font-body: 'Lato', 'Helvetica Neue', sans-serif;
  --font-accent: 'Cormorant Garamond', 'Georgia', serif;

  /* Размеры */
  --container-max: 1200px;
  --section-padding: 100px 0;
  --border-radius: 8px;

  /* Тени */
  --shadow-soft: 0 4px 20px rgba(62, 39, 35, 0.08);
  --shadow-medium: 0 8px 32px rgba(62, 39, 35, 0.12);
  --shadow-hover: 0 12px 40px rgba(62, 39, 35, 0.16);

  /* Переходы */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Типографика --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.75rem);
}

h4 {
  font-size: 1.15rem;
}

p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1em;
}

.text-accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--color-caramel);
}

/* --- Кнопки --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-caramel), var(--color-gold));
  color: var(--text-light);
  box-shadow: 0 4px 16px rgba(196, 154, 108, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(196, 154, 108, 0.5);
}

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

.btn-secondary:hover {
  background: var(--color-caramel);
  color: var(--text-light);
}

.btn-instagram {
  background: linear-gradient(135deg, #833AB4, #E1306C, #F77737);
  color: #fff;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.35);
}

.btn-instagram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(225, 48, 108, 0.45);
}

/* --- Разделители --- */
.section-divider {
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-caramel), var(--color-gold-light));
  margin: 20px auto 0;
  border: none;
}

.section-divider-left {
  margin: 20px 0 0;
}

/* ===================================
   HEADER / НАВИГАЦИЯ
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(232, 213, 192, 0.5);
  transition: var(--transition);
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: var(--shadow-soft);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.05em;
}

.logo span {
  color: var(--color-caramel);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  position: relative;
}

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

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

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

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  margin: 5px 0;
  transition: var(--transition);
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--color-cream) 0%, var(--bg-accent) 50%, var(--color-sand) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 154, 108, 0.15), transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 196, 184, 0.2), transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(196, 154, 108, 0.15);
  border: 1px solid rgba(196, 154, 108, 0.3);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-caramel);
  margin-bottom: 24px;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: var(--color-caramel);
}

.hero-subtitle {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-medium);
  object-fit: cover;
  width: 100%;
  max-height: 600px;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -15px;
  right: -15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-sand);
  border-radius: 20px;
  z-index: -1;
}

/* ===================================
   О БРЕНДЕ
   =================================== */
.about {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

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

.about-image {
  position: relative;
}

.about-image img {
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  object-fit: cover;
  width: 100%;
  height: 500px;
}

.about-image .image-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(253, 246, 238, 0.95);
  backdrop-filter: blur(8px);
  padding: 16px 24px;
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.about-image .image-badge span {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-caramel);
}

.about-image .image-badge small {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.about-content h2 {
  margin-bottom: 8px;
}

.about-content p {
  margin-bottom: 16px;
}

.about-content .lead {
  font-family: var(--font-accent);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--color-caramel);
  margin-bottom: 24px;
}

/* ===================================
   ПРЕИМУЩЕСТВА
   =================================== */
.features {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.features .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.feature-card {
  background: var(--bg-secondary);
  padding: 40px 32px;
  border-radius: 16px;
  border: 1px solid rgba(232, 213, 192, 0.5);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-caramel), var(--color-gold-light));
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

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

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

/* ===================================
   КАТАЛОГ
   =================================== */
.catalog {
  padding: var(--section-padding);
  background: var(--bg-accent);
}

.catalog .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.catalog-categories {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-bottom: 48px;
}

.catalog-tab {
  padding: 12px 32px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: transparent;
  border: 2px solid var(--color-sand);
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  color: var(--text-secondary);
}

.catalog-tab.active,
.catalog-tab:hover {
  background: var(--color-caramel);
  border-color: var(--color-caramel);
  color: var(--text-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.product-card {
  background: var(--bg-primary);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.product-image {
  position: relative;
  height: 340px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  background: rgba(253, 246, 238, 0.9);
  backdrop-filter: blur(4px);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-caramel);
}

.product-info {
  padding: 24px;
}

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

.product-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

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

.product-price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
}

.product-cta {
  padding: 10px 20px;
  font-size: 0.8rem;
}

/* ===================================
   ОТЗЫВЫ
   =================================== */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.testimonials .section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
}

.testimonial-card {
  background: var(--bg-primary);
  padding: 36px;
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 16px;
  right: 24px;
  font-family: var(--font-heading);
  font-size: 4rem;
  color: var(--color-sand);
  line-height: 1;
}

.testimonial-stars {
  color: var(--color-gold);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 4px;
}

.testimonial-text {
  font-family: var(--font-accent);
  font-size: 1.05rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-sand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-light);
  font-size: 1.1rem;
}

.testimonial-author-info strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.testimonial-author-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===================================
   CTA СЕКЦИЯ
   =================================== */
.cta-section {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--bg-dark), var(--color-chocolate));
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-section .container {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.cta-section h2 {
  color: var(--text-light);
  margin-bottom: 20px;
}

.cta-section p {
  color: rgba(250, 243, 235, 0.8);
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.cta-perks {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.cta-perks span {
  font-size: 0.85rem;
  color: rgba(250, 243, 235, 0.7);
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-perks span::before {
  content: '✓';
  color: var(--color-gold-light);
  font-weight: 700;
}

/* ===================================
   INSTAGRAM БЛОК
   =================================== */
.instagram-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  text-align: center;
}

.instagram-section .section-header {
  max-width: 600px;
  margin: 0 auto 48px;
}

.instagram-feed {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.instagram-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.instagram-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.instagram-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(62, 39, 35, 0.4), transparent);
  opacity: 0;
  transition: var(--transition);
}

.instagram-item:hover img {
  transform: scale(1.08);
}

.instagram-item:hover::after {
  opacity: 1;
}

/* ===================================
   FOOTER
   =================================== */
.footer {
  background: var(--bg-dark);
  color: rgba(250, 243, 235, 0.7);
  padding: 60px 0 30px;
}

.footer .container {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo {
  color: var(--text-light);
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: rgba(250, 243, 235, 0.6);
  font-size: 0.9rem;
  margin-bottom: 0;
}

.footer h4 {
  color: var(--text-light);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  color: rgba(250, 243, 235, 0.6);
  font-size: 0.9rem;
  padding: 4px 0;
}

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

.footer-contact p {
  font-size: 0.9rem;
  color: rgba(250, 243, 235, 0.6);
}

.footer-contact a {
  color: var(--color-gold-light);
}

.footer-contact a:hover {
  color: var(--color-caramel);
}

.footer-bottom {
  border-top: 1px solid rgba(250, 243, 235, 0.1);
  margin-top: 40px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: rgba(250, 243, 235, 0.4);
}

/* ===================================
   АНИМАЦИИ
   =================================== */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ===================================
   RESPONSIVE
   =================================== */
@media (max-width: 992px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    max-width: 100%;
    order: 1;
  }

  .hero-image {
    order: 0;
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-image::before {
    display: none;
  }

  .hero-buttons {
    justify-content: center;
  }

  .about .container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer .container {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .instagram-feed {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    padding: 24px;
    gap: 16px;
    box-shadow: var(--shadow-medium);
  }

  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .catalog-categories {
    flex-wrap: wrap;
  }

  .cta-perks {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .instagram-feed {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
}

