/* ==============================================
   GROOMYROOM — фінальний CSS
   Палітра: лавандовий бренд + теплий нейтральний
   ============================================== */

:root {
  /* === Лавандова палітра === */
  --brand: #9B92B8;           /* основний — кнопки, заголовки */
  --brand-hover: #ADA6C6;     /* hover — світліший */
  --brand-dark: #6B5F8C;      /* темний — посилання hover */
  --brand-soft: #E5DEEF;      /* фон кружечків */
  --brand-bg: #F5F2FA;        /* дуже світлий фон */

  /* === Нейтральні === */
  --bg-cream: #f5f1ea;        /* кремовий фон секцій */
  --bg-white: #ffffff;
  --text-main: #2c2c2c;
  --text-muted: #666;
  --text-soft: #999;
  --gold: #f5b50a;            /* зірочки */
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background: var(--bg-cream);
  color: var(--text-main);
  line-height: 1.6;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 24px;
}


/* ============================================
   HERO — PREMIUM (чистий стиль)
   ============================================ */
.hero {
  position: relative;
  background: var(--bg-cream);
  padding: 50px 20px 60px;
  overflow: hidden;
}

/* Декоративні градієнтні плями */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob-1 {
  width: 480px;
  height: 480px;
  background: var(--brand);
  top: -100px;
  left: -120px;
  opacity: 0.4;
}

.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #e0c8b8;
  bottom: -120px;
  right: -80px;
  opacity: 0.32;
}

.hero-blob-3 {
  width: 300px;
  height: 300px;
  background: var(--brand-soft);
  top: 30%;
  right: 20%;
  opacity: 0.5;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 30px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}

.hero-logo {
  width: 100px;
  height: auto;
  display: block;
}

.hero-title {
  font-size: 54px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin: 0;
}

.hero-title .brand {
  white-space: nowrap;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-text {
  font-size: 20px;
  color: var(--text-muted);
  max-width: 480px;
  line-height: 1.55;
  margin: 0;
}

.hero-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: var(--bg-white);
  border-radius: 24px;
  box-shadow: 0 4px 16px rgba(155, 146, 184, 0.15);
}

.hero-stars {
  color: var(--gold);
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.hero-rating-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

.hero-buttons-secondary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}


/* ============ ФОТО В HERO — БЕЗ РАМКИ ============ */
.hero-photo {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
}

.hero-photo-img {
  width: 100%;
  height: auto;
  display: block;
  /* М'яка лавандова тінь під тваринкою */
  filter: drop-shadow(0 25px 35px rgba(155, 146, 184, 0.35))
          drop-shadow(0 10px 15px rgba(0, 0, 0, 0.08));
}

.hero-photo-badge {
  position: absolute;
  top: 30px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  box-shadow: 0 8px 24px rgba(155, 146, 184, 0.25),
              0 2px 6px rgba(0, 0, 0, 0.08);
  animation: badge-fade-in 0.8s ease-out 0.5s both;
}

.hero-photo-badge svg {
  width: 14px;
  height: 14px;
  color: var(--gold);
}

@keyframes badge-fade-in {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}


/* ============================================
   КНОПКИ — нова ієрархія
   ============================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  white-space: nowrap;
}

/* Головна кнопка — велика, sage-зелена */
.button-primary {
  padding: 18px 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  font-size: 17px;
  box-shadow: 0 6px 20px rgba(155, 146, 184, 0.35);
}

.button-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(155, 146, 184, 0.45);
}

/* Вторинні кнопки — менші, прозорі з обведенням */
.button-secondary {
  padding: 12px 18px;
  background: var(--bg-white);
  color: var(--brand-dark);
  border: 1.5px solid var(--brand-soft);
  border-radius: 100px;
  font-size: 14px;
  flex: 1 1 auto;
  min-width: 110px;
}

.button-secondary:hover {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand-dark);
  transform: translateY(-2px);
}

/* Старі кнопки (для відгуків і т.д.) — додаємо клас .button без модифікатора */
.button:not(.button-primary):not(.button-secondary) {
  padding: 16px 32px;
  background: var(--brand);
  color: #fff;
  border-radius: 100px;
  font-size: 17px;
}

.button:not(.button-primary):not(.button-secondary):hover {
  background: var(--brand-hover);
  transform: translateY(-2px);
}

.btn-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  display: block;
}

.btn-arrow {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-left: 4px;
  transition: transform 0.25s;
}

.button-primary:hover .btn-arrow {
  transform: translateX(3px);
}


/* ============================================
   SECTIONS
   ============================================ */
section {
  padding: 60px 20px;
}

#why-us { background: var(--bg-white); }
#services { background: var(--bg-white); }
#reviews { background: var(--bg-cream); }
#gallery { background: var(--bg-white); }
#contacts { background: var(--bg-white); }
#faq { background: var(--bg-cream); }

.section-title {
  text-align: center;
  font-size: 38px;
  margin-bottom: 40px;
  font-weight: 700;
}


/* ============================================
   ЧОМУ ОБРАТИ НАС
   ============================================ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.benefit-item {
  text-align: center;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 4px;
}

.benefit-icon svg {
  width: 30px;
  height: 30px;
}

.benefit-item h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin: 0;
}

.benefit-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}


/* ============================================
   ПОСЛУГИ
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 950px;
  margin: 0 auto;
}

.card {
  background: var(--bg-cream);
  padding: 26px 22px 24px;
  border-radius: 22px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(155, 146, 184, 0.15);
}

.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--bg-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 2px;
}

.card-icon svg {
  width: 26px;
  height: 26px;
}

.card h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.5;
  flex: 1;
  margin: 0;
}

.card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 100%;
  padding-top: 14px;
  margin-top: 4px;
  border-top: 1px solid #ebe6dc;
}

.card-price {
  font-size: 19px;
  font-weight: 700;
  color: var(--brand-dark);
}

.card-duration {
  font-size: 12px;
  color: var(--text-soft);
}

.services-note {
  text-align: center;
  margin-top: 28px;
  color: var(--text-soft);
  font-size: 14px;
}

.services-note a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.services-note a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}


/* ============================================
   ВІДГУКИ
   ============================================ */
.reviews-rating {
  text-align: center;
  margin-top: -25px;
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.reviews-stars {
  color: var(--gold);
  font-size: 26px;
  letter-spacing: 4px;
  line-height: 1;
}

.reviews-rating-text {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1050px;
  margin: 0 auto;
  align-items: stretch;
}

.review-card {
  background: var(--bg-white);
  padding: 28px 28px 30px;
  border-radius: 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  transition: 0.25s;
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(155, 146, 184, 0.12);
}

.review-card::before {
  content: """;
  position: absolute;
  bottom: 16px;
  right: 22px;
  font-size: 80px;
  font-family: Georgia, serif;
  color: var(--brand);
  opacity: 0.08;
  line-height: 1;
  pointer-events: none;
}

.review-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.review-author-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.review-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-main);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-meta {
  font-size: 12px;
  color: var(--text-soft);
}

.review-google-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f5f7fa;
  padding: 5px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #555;
  flex-shrink: 0;
}

.review-google-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.review-stars {
  color: var(--gold);
  font-size: 17px;
  letter-spacing: 2px;
  line-height: 1;
}

.review-text {
  color: #444;
  font-size: 16px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.reviews-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.reviews-link {
  color: var(--brand);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: 0.2s;
}

.reviews-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.reviews-leave {
  text-align: center;
  margin-top: 22px;
  color: var(--text-soft);
  font-size: 15px;
}

.reviews-leave a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  transition: 0.2s;
}

.reviews-leave a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}


/* ============================================
   ГАЛЕРЕЯ — КАРУСЕЛЬ
   ============================================ */
.gallery-subtitle {
  text-align: center;
  margin-top: -28px;
  margin-bottom: 36px;
  color: var(--text-muted);
  font-size: 16px;
}

.gallery-carousel {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 4px 24px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 calc((100% - 32px) / 3);
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background: var(--brand-soft);
  position: relative;
  scroll-snap-align: start;
  cursor: zoom-in;
  display: block;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(135deg, #d8cfe8 0%, #e5deef 50%, #d8cfe8 100%);
  background-size: 200% 200%;
  animation: gallery-shimmer 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes gallery-shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.gallery-item:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 30px rgba(155, 146, 184, 0.25);
}

.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
  position: relative;
  z-index: 2;
}

.gallery-img.loaded {
  opacity: 1;
}

/* Кнопки навігації */
.gallery-nav {
  background: var(--bg-white);
  color: var(--brand-dark);
  border: 1px solid var(--brand-soft);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(155, 146, 184, 0.2);
  flex-shrink: 0;
  z-index: 3;
}

.gallery-nav:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  transform: scale(1.05);
}

.gallery-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.gallery-nav:disabled:hover {
  background: var(--bg-white);
  color: var(--brand-dark);
  border-color: var(--brand-soft);
  transform: none;
}

.gallery-nav svg {
  width: 22px;
  height: 22px;
}

/* Точки прогресу */
.gallery-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-soft);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.gallery-dot.active {
  background: var(--brand);
  transform: scale(1.3);
}

.gallery-dot:hover {
  background: var(--brand-hover);
}

.gallery-link {
  display: block;
  text-align: center;
  margin-top: 32px;
  color: var(--brand);
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  transition: 0.2s;
}

.gallery-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}


/* ============================================
   КОНТАКТИ
   ============================================ */
.contact-grid {
  display: flex;
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  align-items: stretch;
  flex-wrap: wrap;
}

.contact-info,
.contact-map {
  flex: 1 1 420px;
  min-width: 280px;
  background: var(--bg-cream);
  border-radius: 24px;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.contact-info {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  text-align: left;
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--bg-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.contact-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-soft);
  font-weight: 600;
}

.contact-value {
  font-size: 18px;
  color: var(--text-main);
}

.contact-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}

.contact-link:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.contact-map {
  padding: 0;
  min-height: 380px;
  position: relative;
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  z-index: 2;
  background: transparent;
}

.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--brand);
  background: var(--brand-soft);
  z-index: 1;
  pointer-events: none;
}

.map-placeholder-icon {
  width: 36px;
  height: 36px;
  animation: map-pulse 1.6s ease-in-out infinite;
}

.map-placeholder-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-dark);
}

.map-placeholder-subtext {
  font-size: 13px;
  color: var(--text-soft);
}

@keyframes map-pulse {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-4px); }
}


/* ============================================
   FAQ
   ============================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-white);
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: 0.25s;
}

.faq-item[open] {
  box-shadow: 0 10px 30px rgba(155, 146, 184, 0.12);
}

.faq-item summary {
  padding: 20px 26px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: 0.2s;
}

.faq-item summary:hover {
  color: var(--brand);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 28px;
  font-weight: 300;
  color: var(--brand);
  transition: transform 0.25s;
  flex-shrink: 0;
  line-height: 1;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 26px 22px;
  color: #555;
  font-size: 17px;
  line-height: 1.65;
}

.faq-answer p {
  margin: 0;
}


/* ============================================
   FOOTER
   ============================================ */
footer {
  background: var(--bg-white);
  padding: 55px 20px 30px;
  border-top: 1px solid #ebe6dc;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 35px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand { gap: 10px; }

.footer-logo {
  width: 90px;
  height: auto;
}

.footer-tagline {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #555;
  line-height: 1.4;
}

.footer-list a {
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-list a:hover {
  color: var(--brand);
}

.footer-list-plain li {
  display: block;
}

.footer-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--brand);
}

.footer-bottom {
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #ebe6dc;
  color: var(--text-soft);
  font-size: 13px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-bottom-divider { color: #ccc; }


/* ============================================
   КНОПКА "НАГОРУ"
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(155, 146, 184, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s, background 0.2s;
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--brand-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}


/* ============================================
   АНІМАЦІЇ ПОЯВИ
   ============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
  will-change: opacity, transform;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

[data-animate][data-delay="80"] { transition-delay: 0.08s; }
[data-animate][data-delay="100"] { transition-delay: 0.1s; }
[data-animate][data-delay="120"] { transition-delay: 0.12s; }
[data-animate][data-delay="150"] { transition-delay: 0.15s; }
[data-animate][data-delay="160"] { transition-delay: 0.16s; }
[data-animate][data-delay="200"] { transition-delay: 0.2s; }
[data-animate][data-delay="240"] { transition-delay: 0.24s; }
[data-animate][data-delay="300"] { transition-delay: 0.3s; }
[data-animate][data-delay="320"] { transition-delay: 0.32s; }
[data-animate][data-delay="400"] { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ============================================
   MOBILE — РЕСПОНСИВ
   ============================================ */
@media (max-width: 900px) {
  .hero {
    position: relative;
    padding: 50px 24px 0;
    min-height: auto;
    overflow: hidden;
  }

  /* Прибираємо плями і background-image трюки */
  .hero::before,
  .hero::after {
    display: none;
  }

  /* Показуємо HTML-картинку як звичайний контент під кнопками */
  .hero-photo {
    display: block;
    position: relative;
    margin: -110px auto 0;
    max-width: 480px;
    width: 100%;
    min-height: auto;
    order: 2;
    inset: auto;
    z-index: 0;
    pointer-events: none;
  }

  .hero-photo-wrap {
    position: relative;
    width: 100%;
    max-width: none;
    inset: auto;
  }

  .hero-photo-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transform: none;
    /* М'яка лавандова тінь під тваринкою */
    filter: drop-shadow(0 15px 25px rgba(155, 146, 184, 0.25))
            drop-shadow(0 6px 12px rgba(0, 0, 0, 0.06));
  }

  /* Кнопки лишаються над фото — повертаємо клікабельність */
  .hero-buttons {
    position: relative;
    z-index: 2;
    pointer-events: auto;
  }

  /* Контейнер - чистий */
  .hero .container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
    align-items: center;
  }

  .hero-content {
    align-items: center;
    width: 100%;
    order: 1;
  }

  .hero-text {
    max-width: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .hero-blob-3 {
    display: none;
  }

  .hero-blob-1, .hero-blob-2 {
    display: none;
  }

  .button-primary {
    box-shadow: 0 4px 16px rgba(155, 146, 184, 0.3);
  }
}

@media (max-width: 768px) {
  .hero-logo {
    width: 80px;
  }

  .hero-title { font-size: 38px; }

  .hero-text { font-size: 17px; }

  .hero-buttons {
    max-width: 320px;
  }

  .hero-buttons-secondary {
    justify-content: center;
  }

  .button-secondary {
    flex: 1 1 30%;
    min-width: 90px;
    padding: 11px 18px;
    font-size: 13px;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  }

  .button-secondary .btn-icon {
    width: 16px;
    height: 16px;
  }

  .hero-blob-1, .hero-blob-2 {
    filter: blur(70px);
    opacity: 0.3;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 32px;
  }

  .contact-grid {
    flex-direction: column;
    gap: 20px;
  }

  .contact-info { padding: 30px; }

  .contact-map { min-height: 300px; }

  .faq-item summary {
    padding: 18px 22px;
    font-size: 16px;
  }

  .faq-answer {
    padding: 0 22px 18px;
    font-size: 15px;
  }

  .review-card {
    padding: 26px 22px;
  }

  .review-text { font-size: 15px; }

  .reviews-actions {
    flex-direction: column;
    gap: 18px;
  }

  .gallery-carousel { gap: 8px; }

  .gallery-item {
    flex: 0 0 calc((100% - 16px) / 2);
  }

  .gallery-track {
    gap: 12px;
    padding: 8px 4px 16px;
  }

  .gallery-nav {
    width: 40px;
    height: 40px;
  }

  .gallery-nav svg {
    width: 18px;
    height: 18px;
  }

  .gallery-subtitle {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .benefits-grid {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

  .benefit-icon {
    width: 52px;
    height: 52px;
  }

  .benefit-icon svg {
    width: 26px;
    height: 26px;
  }

  .benefit-item h3 { font-size: 16px; }
}

@media (max-width: 520px) {
  footer { padding: 40px 20px 25px; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 28px;
  }

  .footer-brand {
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }

  .hero-text {
    font-size: 16px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
  }

  .back-to-top {
    bottom: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}


/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 30, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.lightbox-img.loaded {
  opacity: 1;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.4);
  padding: 6px 14px;
  border-radius: 100px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Кнопки керування */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  z-index: 10001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: scale(1.05);
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-close svg,
.lightbox-prev svg,
.lightbox-next svg {
  width: 22px;
  height: 22px;
}

/* Курсор pointer на галерейних картках */
.gallery-item {
  cursor: zoom-in;
}

/* Mobile lightbox */
@media (max-width: 600px) {
  .lightbox {
    padding: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }

  .lightbox-prev {
    left: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox-next {
    right: 8px;
    width: 40px;
    height: 40px;
  }

  .lightbox-img {
    max-width: 95vw;
    max-height: 80vh;
  }

  .lightbox-counter {
    font-size: 13px;
  }
}
