:root {
  --bg: #09090b;
  --card: rgba(255,255,255,0.03);
  --text: #ffffff;
  --muted: #a1a1aa;

  --brand: #d746ff;
  --brand-2: #a855f7;

  --line: rgba(255,255,255,0.08);
}

* { box-sizing: border-box; }

html,
body {
  height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(at 20% 20%, rgba(255, 119, 183, 0.12) 0, transparent 50%),
    radial-gradient(at 80% 10%, rgba(183, 163, 255, 0.1) 0, transparent 50%),
    radial-gradient(at 50% 80%, rgba(255, 119, 183, 0.05) 0, transparent 60%);
  background-attachment: fixed;
  background-blend-mode: screen;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s;
}

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

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

header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  background: rgba(15, 17, 21, 0.7);
  border-bottom: 1px solid var(--line);
}

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

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

.logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: url('/static/images/logo.png') no-repeat center center;
  background-size: cover; /
}

.brand h1 {
  margin: 0;
  font: 700 22px/1 "Playfair Display", serif;
  letter-spacing: 0.4px;
}

#nav-menu {
  display: flex;
  align-items: center;
}

#nav-menu a {
  margin-left: 24px;
  color: var(--muted);
  font-weight: 500;
}

#nav-menu a:hover {
  color: var(--text);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 18px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 110;
}

.burger span {
  width: 100%;
  height: 2px;
  background: var(--brand);
  transition: 0.3s;
}

section {
  padding: 80px 0;
}

.section-head {
  margin-bottom: 40px;
}

.section-head h3 {
  margin: 0 0 10px;
  font: 700 42px/1.1 "Playfair Display", serif;
}

.section-head p {
  color: var(--muted);
  font-size: 18px;
}

.hero {
  padding: 60px 0;
}

.hero .grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.badge {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 8px 16px;
  border: 1px solid var(--brand);
  border-radius: 999px;
  background: rgba(255, 119, 183, 0.1);
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.hero h2 {
  margin: 0 0 20px;
  font: 700 64px/1.1 "Playfair Display", serif;
}

.hero .actions {
  display: flex;
  gap: 15px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.3s;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #0f1115;
}

.btn:not(.primary) {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.hero-card,
.card,
.price-table,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: 20px;
}

.hero-card .photo {
  aspect-ratio: 4 / 5;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 16px;
}

.hero-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.kpi {
  padding: 15px 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.kpi b {
  display: block;
  font-size: 20px;
}

.kpi small {
  color: var(--muted);
  font-size: 11px;
}

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

.card {
  padding: 30px;
}

.chip {
  display: inline-block;
  margin-bottom: 15px;
  padding: 4px 12px;
  border: 1px dashed var(--brand);
  border-radius: 999px;
  color: var(--brand);
  font-size: 12px;
}

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

.gallery-item {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: 0.3s;
}

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

.gallery-item:hover img {
  transform: scale(1.1);
}

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

.price-table {
  overflow: hidden;
}

.price-table header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-size: cover;
  background-position: center;
}

.price-table header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.price-table header h1 {
  position: relative;
  z-index: 1;
  font-size: 24px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.price-table ul {
  margin: 0;
  padding: 20px;
  list-style: none;
}

.price-table li {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px dashed var(--line);
}

.price-table li:last-child {
  border-bottom: none;
}

.reviewSwiper {
  padding: 40px 10px 60px !important;
}

.review-card {
  height: 100%;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  transition: 0.4s;
}

.review-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
}

.review-image {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
}

.review-caption {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.swiper-button-next,
.swiper-button-prev {
  width: 50px !important;
  height: 50px !important;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: #fff !important;
  backdrop-filter: blur(5px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
  font-size: 18px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
  background: var(--brand);
  border-color: var(--brand);
}

.social-links {
  display: flex;
  gap: 25px;
  margin-top: 20px;
}

.social-icon {
  font-size: 32px;
  transition: 0.3s;
}

.social-icon:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px currentColor);
}

.instagram {
  color: #e1306c;
}

.telegram {
  color: #0088cc;
}

.empty-state {
  padding: 32px;
}

.empty-state h4 {
  margin: 0 0 10px;
}

.muted {
  color: var(--muted);
}

#myMap {
  border: none;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: transform 0.3s;
}

#myMap:hover {
  transform: scale(1.02);
}

@media (max-width: 980px) {
  .hero h2 {
    font-size: 48px;
  }

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

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

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

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

@media (max-width: 850px) {
  .burger {
    display: flex;
  }

  #nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    z-index: 90;
    flex-direction: column;
    align-items: flex-start;
    width: 280px;
    height: 100vh;
    padding: 100px 40px;
    border-left: 1px solid var(--line);
    background: rgba(15, 17, 21, 0.95);
    backdrop-filter: blur(20px);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  #nav-menu.active {
    right: 0;
    box-shadow: -20px 0 40px rgba(0, 0, 0, 0.5);
  }

  #nav-menu a {
    margin: 15px 0;
    margin-left: 0;
    font-size: 18px;
  }

  .burger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .burger.active span:nth-child(2) {
    opacity: 0;
  }

  .burger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  section {
    padding: 60px 0;
  }

  .section-head h3 {
    font-size: 32px;
  }

  .hero h2 {
    font-size: 38px;
  }

  .cards,
  .prices {
    grid-template-columns: 1fr;
  }

  .hero .actions {
    flex-direction: column;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
/* Контакты — фикс сетки */
.contacts-cards {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}


.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 15px;
}

.contact-info .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  transition: 0.3s;
}

.contact-info .social-links a:hover {
  transform: scale(1.2);
  background: var(--brand);
  color: white;
  box-shadow: 0 0 10px var(--brand);
}

#myMap {
  height: 320px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-top: 15px;
}

/* Чуть живости */
.contact-info h4 {
  margin-bottom: 10px;
}

.contact-info .social-links {
  margin-top: 15px;
}

/* Адаптив */
@media (max-width: 768px) {
  .contacts-cards {
    grid-template-columns: 1fr;
  }

  .contact-info {
    align-items: center;
    text-align: center;
  }
}

.btn.primary {
  background: var(--brand);
  color: white;
}

.btn.primary:hover {
  background: #6b21d8;
}

.badge {
  background: rgba(127,34,254,0.1);
  border: 1px solid rgba(127,34,254,0.3);
  color: var(--brand);
}

.chip {
  border-color: var(--brand);
  color: var(--brand);
}
#nav-menu a {
  display: flex;
  align-items: center;
  gap: 8px;
}

#nav-menu i {
  color: var(--brand);
  font-size: 14px;
}

.price-table {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  backdrop-filter: blur(15px);
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  position: relative;
}

.price-table::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: linear-gradient(120deg, rgba(127,34,254,0.4), rgba(168,85,247,0.4));
  opacity: 1; /* полностью видимый */
  mix-blend-mode: screen; /* смешиваем с фоном, не перекрывая текст */
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.price-table:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: var(--brand);
  box-shadow: 0 20px 40px rgba(137, 42, 157, 0.3);
}

.price-table:hover::before {
  opacity: 0;
}

.lb-close {
  display: block !important;
  background: rgba(0,0,0,0.7) !important;
  border-radius: 50%;
  width: 30px !important;
  height: 30px !important;
}

.lb-data .lb-close {
    position: absolute;
    top: -50px;
    margin-right: -50px;
}

#magic-sparkles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}

.sparkle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: radial-gradient(circle, #d746ff, transparent);
  border-radius: 50%;
  opacity: 0.7;
  animation: sparkle-move 5s linear infinite;
}

@keyframes sparkle-move {
  0% { transform: translateY(0) scale(1); opacity: 0.8; }
  50% { transform: translateY(-50px) scale(1.5); opacity: 0.3; }
  100% { transform: translateY(-100px) scale(1); opacity: 0; }
}

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

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