/* =====================================================
   LOVART INTIMATES — style.css
   ===================================================== */


/* ─── ШРИФТ GOGOL ───────────────────────────────────── */
@font-face {
  font-family: 'Gogol';
  src: url('fonts/gogol_regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


/* ─── CSS-ПЕРЕМЕННЫЕ ────────────────────────────────── */
:root {
  --burgundy:        #7B2234;
  --burgundy-dark:   #5A1826;
  --burgundy-subtle: rgba(123, 34, 52, 0.07);
  --burgundy-mid:    rgba(123, 34, 52, 0.15);

  --white:   #FFFFFF;
  --off:     #FAFAFA;       /* главный фон — почти белый */
  --section: #F5EFE8;       /* альтернативный фон — теплый кремовый */
  --beige:   #E4CDB8;
  --border:  #ECDFD3;

  --graphite:  #1C1C1C;
  --soft:      #4A4040;
  --muted:     #9E8E86;

  --font-gogol:    'Gogol', 'Georgia', serif;
  --font-comfortaa: 'Comfortaa', Georgia, sans-serif;
  --font-sans:      'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --r:     12px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-pill: 100px;

  --shadow-sm: 0 2px 12px rgba(28, 12, 8, 0.06);
  --shadow:    0 6px 32px rgba(28, 12, 8, 0.09);
  --shadow-lg: 0 16px 56px rgba(28, 12, 8, 0.12);

  /* Apple-style spring easing */
  --spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --t:      0.3s var(--ease);

  --header-h: 68px;
}


/* ─── СБРОС ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  {
  font-family: var(--font-sans);
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }

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


/* ─── SCROLL-REVEAL АНИМАЦИИ (Apple-стиль) ──────────── */
.reveal-up {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.75s var(--spring), transform 0.75s var(--spring);
}
.reveal-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Задержки для stagger-эффекта */
.reveal-up[data-delay="1"] { transition-delay: 0.1s; }
.reveal-up[data-delay="2"] { transition-delay: 0.2s; }
.reveal-up[data-delay="3"] { transition-delay: 0.3s; }

/* Hero animations — автоматически при загрузке страницы */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}


/* ─── КНОПКИ ─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: none;
  transition: background var(--t), color var(--t), transform 0.25s var(--spring), box-shadow var(--t), border-color var(--t);
  white-space: nowrap;
}
.btn-sm { padding: 9px 20px; font-size: 13px; }

.btn-primary {
  background: var(--burgundy);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--burgundy-dark);
  transform: scale(1.03);
  box-shadow: 0 6px 24px rgba(123, 34, 52, 0.28);
}

.btn-outline {
  background: transparent;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
}
.btn-outline:hover {
  background: var(--burgundy-subtle);
  transform: scale(1.03);
}

.btn-outline-dark {
  background: transparent;
  color: var(--graphite);
  border: 1.5px solid var(--graphite);
}
.btn-outline-dark:hover {
  background: var(--graphite);
  color: var(--white);
  transform: scale(1.03);
}

.btn-light {
  background: var(--white);
  color: var(--burgundy);
  font-weight: 600;
}
.btn-light:hover {
  background: #F0E8DF;
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
  transform: scale(1.03);
}


/* ─── SECTION HEADER ────────────────────────────────── */
.section-header { text-align: center; margin-bottom: 52px; }

.section-title {
  font-family: var(--font-gogol);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--graphite);
  margin-bottom: 14px;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

.section-subtitle {
  font-size: 16px;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.7;
}


/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

/* Логотип */
.header-logo, .footer-logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
  flex-shrink: 0;
  transition: opacity var(--t);
}
.header-logo:hover, .footer-logo:hover { opacity: 0.65; }

.logo-main {
  font-family: var(--font-comfortaa);
  font-size: 20px;
  font-weight: 300;
  color: var(--burgundy);
  letter-spacing: 0.06em;
  text-transform: lowercase;
}
.logo-sub {
  font-family: var(--font-sans);
  font-size: 8px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

/* Навигация */
.header-nav { flex: 1; display: flex; justify-content: center; }
.nav-list   { display: flex; align-items: center; gap: 36px; }

.nav-link {
  font-size: 14px;
  font-weight: 400;
  color: var(--soft);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--t);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 0; height: 1px;
  background: var(--burgundy);
  transition: width var(--t);
}
.nav-link:hover { color: var(--burgundy); }
.nav-link:hover::after { width: 100%; }

/* Instagram-кнопка в хедере */
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }

.header-ig-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--burgundy);
  border: 1.5px solid var(--burgundy);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  transition: background var(--t), color var(--t), transform 0.25s var(--spring);
}
.header-ig-link:hover {
  background: var(--burgundy);
  color: var(--white);
  transform: scale(1.04);
}

/* Бургер */
.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px;
}
.burger-btn span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--graphite);
  border-radius: 2px;
  transition: var(--t);
}
.burger-btn.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger-btn.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger-btn.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h); left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 28px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-nav-list  { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-link  {
  display: block;
  padding: 12px 0;
  font-size: 18px;
  color: var(--graphite);
  border-bottom: 1px solid var(--border);
}
.mobile-cta { margin-top: 12px; width: 100%; text-align: center; }


/* =====================================================
   HERO
   ===================================================== */
.hero {
  padding: 88px 0 108px;
  background: var(--white);
  overflow: hidden;
}

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

/* Текст — CSS анимация при загрузке */
.hero-content { max-width: 540px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  margin-bottom: 22px;
  animation: fadeUp 0.65s var(--spring) 0.05s both;
}

.hero-title {
  font-family: var(--font-gogol);
  font-size: clamp(48px, 6.5vw, 88px);
  font-weight: 400;
  line-height: 1.04;
  color: var(--graphite);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeUp 0.75s var(--spring) 0.15s both;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 380px;
  animation: fadeUp 0.65s var(--spring) 0.28s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: fadeUp 0.65s var(--spring) 0.4s both;
}

/* Правый визуальный блок */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.9s var(--ease) 0.3s both;
}

/* Карточка-заглушка / фото героя */
.hero-image-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;

  background: var(--section);
  border-radius: var(--r-xl);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* Текст внутри карточки (показывается только если нет фото) */
.hero-image-inner {
  position: relative;
  z-index: 2;
}

.image-brand-name {
  font-family: var(--font-comfortaa);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.05em;
  line-height: 1.1;
  color: var(--burgundy);
  text-transform: lowercase;
  margin-bottom: 10px;
}

.image-tagline {
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--muted);
  line-height: 1.6;
}

/* Декоративные круги */
.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}
.hero-decor-1 {
  width: 320px; height: 320px;
  background: rgba(228, 205, 184, 0.32);
  bottom: -80px; right: -80px;
}
.hero-decor-2 {
  width: 160px; height: 160px;
  background: rgba(123, 34, 52, 0.07);
  top: -40px; left: -20px;
}

/* Настоящее фото героя (класс добавляется когда img тег используется) */
.hero-photo {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}


/* =====================================================
   НЕЛЬЗЯГРАМ / CAROUSEL
   ===================================================== */
.instagram-section {
  padding: 96px 0 80px;
  background: var(--off);
}

.carousel-outer {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}

.carousel-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.carousel-viewport.grabbing { cursor: grabbing; }

.carousel-track {
  display: flex;
  gap: 16px;
  transition: transform 0.5s var(--spring);
  will-change: transform;
}

/* Карточка — ширина устанавливается через JS */
.carousel-card { flex: 0 0 320px; }

/* Слот фото: background-image + цвет-заглушка */
.photo-slot {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease);
  box-shadow: var(--shadow-sm);
}
.carousel-card:hover .photo-slot {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow);
}

/* Цвета-заглушки + реальные фото поверх */
.ph-1 { background-image: url('images/photo-1.jpg'); background-color: #6B1D2E; }
.ph-2 { background-image: url('images/photo-2.jpg'); background-color: #C4A07A; }
.ph-3 { background-image: url('images/photo-3.jpg'); background-color: #3D2820; }
.ph-4 { background-image: url('images/photo-4.jpg'); background-color: #8A2838; }
.ph-5 { background-image: url('images/photo-5.jpg'); background-color: #D0B89A; }
.ph-6 { background-image: url('images/photo-6.jpg'); background-color: #2E1818; }

/* Кнопки карусели */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--graphite);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: background var(--t), color var(--t), transform 0.25s var(--spring), box-shadow var(--t);
  flex-shrink: 0;
}
.carousel-btn:hover {
  background: var(--burgundy);
  color: var(--white);
  border-color: var(--burgundy);
  transform: translateY(-50%) scale(1.08);
  box-shadow: var(--shadow);
}
.carousel-btn-prev { left:  -21px; }
.carousel-btn-next { right: -21px; }

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
}
.carousel-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--beige);
  border: none; cursor: pointer; padding: 0;
  transition: width 0.35s var(--spring), border-radius 0.35s var(--ease), background 0.25s var(--ease);
}
.carousel-dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--burgundy);
}

.instagram-footer { text-align: center; margin-top: 44px; }


/* =====================================================
   ПРЕИМУЩЕСТВА (feature cards)
   ===================================================== */
.features-section {
  padding: 100px 0 108px;
  background: var(--white);
}

.features-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--burgundy);
  text-align: center;
  margin-bottom: 48px;
  opacity: 0.7;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  background: var(--off);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 44px 36px 40px;
  overflow: hidden;
  transition: transform 0.4s var(--spring), box-shadow 0.4s var(--ease), border-color 0.3s var(--ease);
}
.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(123, 34, 52, 0.18);
}

/* Овальная SVG-декорация */
.feature-oval {
  position: absolute;
  top: 32px;
  left: 28px;
  right: 28px;
  pointer-events: none;
  opacity: 0.85;
}
.feature-oval svg { width: 100%; height: auto; }

.feature-title {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3.2vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--burgundy);
  text-transform: uppercase;
  margin-bottom: 20px;
  position: relative; /* above the oval */
  z-index: 1;
}

.feature-text {
  font-size: 16px;
  color: var(--soft);
  line-height: 1.65;
  max-width: 340px;
}
.feature-text em {
  font-style: italic;
  font-weight: 600;
  color: var(--burgundy);
}

@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .feature-card  { padding: 36px 28px 32px; }
  .feature-title { font-size: clamp(24px, 7vw, 34px); }
}


/* =====================================================
   ФИНАЛЬНЫЙ CTA
   ===================================================== */
.cta-section {
  padding: 108px 0;
  background: linear-gradient(148deg, var(--burgundy-dark) 0%, var(--burgundy) 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  border-radius: 50%;
  background: rgba(255,255,255,0.035);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.cta-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 18px;
}

.cta-title {
  font-family: var(--font-gogol);
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.14;
  letter-spacing: -0.01em;
}
/* «Lovart» в заголовке CTA — Comfortaa Light */
.cta-brand {
  font-family: var(--font-comfortaa);
  font-weight: 300;
  letter-spacing: 0.04em;
}

.cta-text {
  font-size: 16px;
  color: rgba(255,255,255,0.68);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }


/* =====================================================
   FOOTER — компактный
   ===================================================== */
.site-footer { background: var(--graphite); padding: 28px 0; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand  { display: flex; flex-direction: column; gap: 5px; }
.footer-logo .logo-main { color: var(--white); }
.footer-logo .logo-sub  { color: rgba(255,255,255,0.3); }

.footer-tagline {
  font-family: 'Gogol', Georgia, serif;
  font-style: italic;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}

.footer-nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav a {
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  transition: color var(--t);
}
.footer-nav a:hover { color: var(--white); }

.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); white-space: nowrap; }


/* =====================================================
   COOKIE BANNER
   ===================================================== */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  z-index: 999;

  display: flex;
  align-items: center;
  gap: 20px;

  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 14px 20px 14px 24px;
  box-shadow: 0 8px 40px rgba(28, 12, 8, 0.14);

  opacity: 0;
  transition: transform 0.55s var(--spring), opacity 0.45s var(--ease);
  white-space: nowrap;
}

.cookie-banner.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.cookie-text {
  font-size: 14px;
  color: var(--soft);
  line-height: 1.4;
}

.cookie-btn {
  flex-shrink: 0;
  padding: 9px 22px;
  border-radius: var(--r-pill);
  background: var(--burgundy);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform 0.25s var(--spring);
}
.cookie-btn:hover {
  background: var(--burgundy-dark);
  transform: scale(1.05);
}

@media (max-width: 540px) {
  .cookie-banner {
    bottom: 16px;
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(120px);
    border-radius: var(--r-xl);
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    white-space: normal;
    padding: 18px 20px;
  }
  .cookie-banner.visible {
    transform: translateX(0) translateY(0);
  }
  .cookie-btn { width: 100%; text-align: center; }
}


/* =====================================================
   АДАПТИВ
   ===================================================== */

/* ≤ 1024px */
@media (max-width: 1024px) {
  .hero-container { gap: 44px; }
}

/* ≤ 768px */
@media (max-width: 768px) {

  /* Header */
  .header-nav    { display: none; }
  .header-ig-link span { display: none; }  /* только иконка */
  .header-ig-link { padding: 8px 10px; }
  .burger-btn    { display: flex; }

  /* Hero */
  .hero { padding: 56px 0 72px; }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero-content { max-width: 100%; order: 1; }
  .hero-visual  { order: 2; }
  .hero-image-card { max-width: 300px; margin: 0 auto; }

  /* Карусель */
  .carousel-btn { display: none; }

  /* Footer */
  .footer-inner  { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-nav    { gap: 14px; }
  .footer-copy   { white-space: normal; }
}

/* ≤ 480px */
@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn { width: 100%; justify-content: center; }
  .cta-buttons  { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 280px; }
}
