/* ===== КАРТОЧКИ ТОВАРОВ ===== */
.card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.card h3 {
  margin: 14px 16px 6px;
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--dark);
}

.card p {
  margin: 0 16px 10px;
  font-size: 13px;
  color: #888;
  flex: 1;
}

.price {
  margin: 0 16px 16px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
}

/* Бейджи */
.badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  z-index: 2;
}

/* ===== ХЕДЕР-ПЛАШКА ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 998;
  background: white;
  border-bottom: 1px solid #e0e0e0;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 16px;
}

/* Бургер */
.burger-btn {
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.burger-btn span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #3E2723;
  transition: all 0.3s ease;
  border-radius: 2px;
}

.burger-btn.open span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.burger-btn.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.burger-btn.open span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Правая часть */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-wish {
  font-family: var(--font-text);
  font-size: 16px;
  color: #3E2723;
  opacity: 0.9;
  text-align: center;
  flex: 1;
  padding: 0 16px;
}

/* Переключатель темы */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #3E2723;
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: #f0f0f0;
  transform: rotate(15deg);
}

.theme-toggle .icon {
  display: block;
}

.theme-toggle .hidden {
  display: none;
}

/* ===== ГЛАВНАЯ СТРАНИЦА С ВИДЕО ===== */
.home-page {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

/* ----- ВИДЕО-ФОН ----- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: -1;
}

.video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}

.video-background .video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

/* ----- ЛОГОТИП ----- */
.home-logo {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.home-logo .logo-img {
  height: 150px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}

.home-logo .logo-img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* ----- МЕНЮ СНИЗУ ----- */
.home-nav-wrapper {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: 100%;
  padding: 0 20px;
}

.home-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.home-nav li {
  margin: 0;
}

.home-nav a {
  font-family: var(--font-title);
  font-size: 32px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  letter-spacing: 3px;
  transition: all 0.3s ease;
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.home-nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.home-nav a:hover,
.home-nav a.active {
  color: white;
}

.home-nav a:hover::after,
.home-nav a.active::after {
  width: 100%;
}

/* ===== ОВЕРЛЕЙ (БЕЛЫЙ ФОН) ===== */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 999;
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* ----- СПЛИТ: СЛЕВА ТЕКСТ, СПРАВА ФОТО ----- */
.hero-split {
  display: flex;
  width: 100%;
  height: 100vh;
}

.hero-left {
  flex: 0 0 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 60px;
  background: white;
}

.hero-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.hero-nav li {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 1;
}

.hero-nav a {
  font-family: var(--font-title);
  font-size: 42px;
  font-weight: 700;
  color: var(--dark);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 3px;
  transition: color 0.3s, transform 0.3s;
  display: block;
  padding: 10px 0;
  line-height: 1.1;
}

.hero-nav a:hover,
.hero-nav a.active {
  color: var(--primary);
  transform: translateX(10px);
}

.hero-contacts {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid #e0e0e0;
}

.hero-contacts a,
.hero-contacts p {
  font-family: var(--font-text);
  font-size: 16px;
  color: #888;
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: color 0.3s;
}

.hero-contacts a:hover {
  color: var(--primary);
}

.hero-right {
  flex: 0 0 50%;
  background-color: white;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease;
  position: relative;
}

body.no-scroll {
  overflow: hidden;
}

/* ===== ТЁМНАЯ ТЕМА ===== */
body.dark-theme {
  --light: #1a1a2e;
  --dark: #e0e0e0;
  background-color: #1a1a2e;
  color: #e0e0e0;
}

body.dark-theme .site-header {
  background: #1a1a2e;
  border-bottom: 1px solid #2a2a3e;
}

body.dark-theme .site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

body.dark-theme .burger-btn span {
  background: #ccc;
}

body.dark-theme .header-wish {
  color: #ccc;
}

body.dark-theme .theme-toggle {
  color: #ccc;
}

body.dark-theme .theme-toggle:hover {
  background: #2a2a3e;
}

body.dark-theme .header-logo .logo-img {
  filter: brightness(0) invert(1);
}

body.dark-theme .card {
  background: #2a2a3e;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

body.dark-theme .card h3 {
  color: #f0f0f0;
}

body.dark-theme .card p {
  color: #bbb;
}

body.dark-theme .price {
  color: #d4a574;
}

body.dark-theme .nav-overlay {
  background: #1a1a2e;
}

body.dark-theme .hero-left {
  background: #1a1a2e;
}

body.dark-theme .hero-right {
  background-color: #1a1a2e;
}

body.dark-theme .hero-nav a {
  color: #ccc;
}

body.dark-theme .hero-nav a:hover,
body.dark-theme .hero-nav a.active {
  color: #d4a574;
}

body.dark-theme .hero-contacts {
  border-top: 1px solid #333;
}

body.dark-theme .hero-contacts a,
body.dark-theme .hero-contacts p {
  color: #aaa;
}

body.dark-theme .filter-btn {
  background: #2a2a3e;
  border-color: #444;
  color: #ccc;
}

body.dark-theme .filter-btn:hover {
  border-color: #d4a574;
  color: #d4a574;
}

body.dark-theme .filter-btn.active {
  background: #d4a574;
  border-color: #d4a574;
  color: #1a1a2e;
}

body.dark-theme .story-text {
  background: #1a1a2e;
}

body.dark-theme .story-text p {
  color: #bbb;
}

body.dark-theme .story-text h2 {
  color: #f0f0f0;
}

body.dark-theme .story-date {
  color: #d4a574;
}

body.dark-theme .story-link {
  color: #d4a574;
  border-color: #d4a574;
}

body.dark-theme .story-link:hover {
  color: #f0d5b8;
  border-color: #f0d5b8;
}

body.dark-theme .about-subtitle {
  color: #aaa;
}

body.dark-theme .about-title {
  color: #f0f0f0;
}

body.dark-theme .story-block {
  border-top: 1px solid #2a2a3e;
}

body.dark-theme .story-block:last-child {
  border-bottom: 1px solid #2a2a3e;
}

/* ========== MEDIA ========== */
@media (max-width: 1024px) {
  .hero-left {
    padding: 60px 40px;
  }

  .hero-nav a {
    font-size: 32px;
    padding: 8px 0;
  }
}

@media (max-width: 768px) {
  .header-wish {
    display: none;
  }

  .home-nav a {
    font-size: 22px;
    letter-spacing: 2px;
  }

  .home-nav ul {
    gap: 20px;
  }

  .home-logo .logo-img {
    height: 80px;
  }

  .hero-split {
    flex-direction: column-reverse;
  }

  .hero-left {
    flex: auto;
    padding: 30px 24px;
  }

  .hero-right {
    flex: auto;
    min-height: 35vh;
  }

  .hero-nav a {
    font-size: 26px;
    padding: 6px 0;
  }

  .hero-contacts {
    margin-top: 40px;
    padding-top: 20px;
  }

  .hero-contacts a,
  .hero-contacts p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .home-logo {
    top: 20px;
  }

  .home-logo .logo-img {
    height: 60px;
  }

  .home-nav-wrapper {
    bottom: 30px;
  }

  .home-nav ul {
    flex-direction: column;
    gap: 14px;
  }

  .home-nav a {
    font-size: 20px;
  }

  .hero-nav a {
    font-size: 22px;
  }

  .hero-left {
    padding: 24px 20px;
  }
}

/* ===== КОНТАКТЫ ===== */
.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.contact-card {
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.contact-icon {
  font-size: 32px;
  margin-bottom: 12px;
  color: var(--primary);
}

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--dark);
}

.contact-card p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

.contact-card a {
  color: var(--primary);
  font-weight: 600;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: var(--dark);
}

/* Тёмная тема: контакты и карта */
body.dark-theme .contact-card {
  background: #2a2a3e;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
}

body.dark-theme .contact-card h3 {
  color: #f0f0f0;
}

body.dark-theme .contact-card p {
  color: #bbb;
}

body.dark-theme .contact-icon {
  color: #d4a574;
}

/* Тёмная карта (Leaflet) */
body.dark-theme #map {
  filter: invert(1) hue-rotate(180deg) brightness(0.9);
}

/* Плашка Telegram — только логотип */
.contact-card-tg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
}

.contact-tg-link {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.contact-tg-link:hover {
  transform: scale(1.1);
}

.contact-tg-logo {
  width: 56px;
  height: 56px;
  display: block;
}

/* Чтобы все плашки были одной высоты */
.contacts-grid {
  align-items: stretch;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}