@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #0A2F4F;
  --primary-foreground: #ffffff;
  --accent: #C9A961;
  --accent-foreground: #0A2F4F;
  --background: #F8F9FA;
  --foreground: #1A1F36;
  --card: #ffffff;
  --border: #E1E4E8;
  --muted-foreground: #5F6C7B;
  --radius: 0.75rem;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
}

:root[data-theme="dark"] {
  --primary: #3D7EBF;
  --primary-foreground: #ffffff;
  --accent: #D9BD7A;
  --accent-foreground: #0A1420;
  --background: #0F1720;
  --foreground: #E5E7EB;
  --card: #1B2432;
  --border: #2A3441;
  --muted-foreground: #9CA7B4;
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, .logo .brand-name {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.01em;
}

::selection {
  background-color: var(--accent);
  color: var(--accent-foreground);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--background);
}

::-webkit-scrollbar-thumb {
  background-color: var(--border);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--accent);
}

#consultation {
  scroll-margin-top: 5.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.header,
.card,
.service-card,
.service-detail,
.contact-card,
.social-card,
.form-input,
.stat-card,
.lang-switcher,
.theme-toggle {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Language & theme controls */
.controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-right: 1rem;
  border-right: 1px solid var(--border);
}

.lang-switcher {
  display: flex;
  background-color: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2px;
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 0.35rem 0.6rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted-foreground);
  cursor: pointer;
  font-family: inherit;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--background);
  color: var(--foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.icon-moon {
  display: none;
}

[data-theme="dark"] .icon-sun {
  display: none;
}

[data-theme="dark"] .icon-moon {
  display: block;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--card);
  color: var(--foreground);
  cursor: pointer;
}

.mobile-menu-toggle svg {
  width: 1.35rem;
  height: 1.35rem;
}

.mobile-menu-toggle .icon-close {
  display: none;
}

.mobile-menu-toggle.open .icon-hamburger {
  display: none;
}

.mobile-menu-toggle.open .icon-close {
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  background-color: rgba(248, 249, 250, 0.85);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s ease, background-color 0.3s ease;
}

:root[data-theme="dark"] .header {
  background-color: rgba(15, 23, 32, 0.85);
}

.header.is-scrolled {
  box-shadow: 0 4px 20px rgba(10, 47, 79, 0.1);
}

.logo {
  transition: transform 0.25s ease;
}

.logo:hover {
  transform: translateY(-1px);
}

.logo-svg {
  transition: transform 0.4s ease;
}

.logo:hover .logo-svg {
  transform: rotate(-6deg) scale(1.05);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  row-gap: 0.75rem;
  padding: 1rem 1.5rem;
}

.nav-group {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
  margin-left: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--primary);
}

.logo-text h1 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.logo-text p {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  text-decoration: none;
  color: var(--foreground);
  font-weight: 500;
  transition: color 0.3s;
}

.nav a:hover,
.nav a.active {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.phone-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  transition: color 0.3s;
}

.phone-link:hover {
  color: var(--primary);
}

.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, background-color 0.25s ease, background-position 0.5s ease;
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
  background-color: #082540;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -6px rgba(10, 47, 79, 0.45);
}

.btn-accent {
  background: linear-gradient(120deg, #DCB96C 0%, var(--accent) 45%, #B8935A 100%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  color: var(--accent-foreground);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-accent:hover {
  background-position: 100% 0%;
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -8px rgba(201, 169, 97, 0.5);
}

.btn-secondary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  color: var(--primary-foreground);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2540 100%);
  color: var(--primary-foreground);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -8%;
  width: 42rem;
  height: 42rem;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.22) 0%, rgba(201, 169, 97, 0) 70%);
  pointer-events: none;
  animation: aurora-drift-1 18s ease-in-out infinite alternate;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -25%;
  left: -10%;
  width: 34rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(61, 126, 191, 0.18) 0%, rgba(61, 126, 191, 0) 70%);
  pointer-events: none;
  animation: aurora-drift-2 22s ease-in-out infinite alternate;
}

.hero-aurora {
  position: absolute;
  top: 10%;
  left: 30%;
  width: 30rem;
  height: 30rem;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.14) 0%, rgba(201, 169, 97, 0) 70%);
  pointer-events: none;
  animation: aurora-drift-3 26s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4rem, 3rem) scale(1.15); }
}

@keyframes aurora-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(3rem, -2.5rem) scale(1.1); }
}

@keyframes aurora-drift-3 {
  0% { transform: translate(0, 0) scale(0.9); opacity: 0.7; }
  100% { transform: translate(-3rem, 4rem) scale(1.2); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after, .hero-aurora {
    animation: none;
  }
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@keyframes hero-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge,
.hero h1,
.hero p,
.hero-buttons,
.hero-image {
  animation: hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero h1 { animation-delay: 0.08s; }
.hero p { animation-delay: 0.16s; }
.hero-buttons { animation-delay: 0.24s; }
.hero-image { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .hero-badge, .hero h1, .hero p, .hero-buttons, .hero-image {
    animation: none;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(201, 169, 97, 0.2);
  color: var(--accent);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.35); }
  50% { box-shadow: 0 0 0 8px rgba(201, 169, 97, 0); }
}

.hero h1 {
  font-size: 3.25rem;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(201, 169, 97, 0.15);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.hero-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(201, 169, 97, 0.25);
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.1s linear;
}

/* Section */
.section {
  padding: 4rem 0;
}

.section-white {
  background-color: var(--card);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: '';
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0.85rem auto 0;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--muted-foreground);
  max-width: 42rem;
  margin: 0 auto;
}

/* Grid */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

/* Card */
.card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.card:hover {
  box-shadow: 0 20px 40px -12px rgba(10, 47, 79, 0.18);
  transform: translateY(-4px);
  border-color: rgba(201, 169, 97, 0.4);
}

.card-icon {
  width: 3.5rem;
  height: 3.5rem;
  background-color: rgba(201, 169, 97, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease;
}

.card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background-color: rgba(201, 169, 97, 0.18);
}

/* Bento grid ("Why choose us") */
.why-bento {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 1.5rem;
}

.card-featured {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  background: linear-gradient(135deg, var(--card) 0%, rgba(201, 169, 97, 0.08) 100%);
}

.card-featured h3 {
  font-size: 1.6rem;
}

.card-featured p {
  font-size: 1.05rem;
}

.card-featured .card-icon {
  width: 4.5rem;
  height: 4.5rem;
}

.card-featured .card-icon svg {
  width: 2.1rem;
  height: 2.1rem;
}

@media (max-width: 900px) {
  .why-bento {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .card-featured {
    grid-row: auto;
  }
}

.card-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--accent);
}

.card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.card p {
  color: var(--muted-foreground);
  line-height: 1.6;
}

/* Service Card */
.service-card {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.service-card:hover {
  box-shadow: 0 20px 40px -12px rgba(10, 47, 79, 0.2);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card-image {
  height: 12rem;
  overflow: hidden;
}

.service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover .service-card-image img {
  transform: scale(1.05);
}

.service-card-content {
  padding: 1.5rem;
}

.service-card h3 {
  font-size: 1.25rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.service-card p {
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.service-link {
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s;
}

.service-link:hover {
  color: #b89850;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.stats-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(10, 47, 79, 0.05) 0%, rgba(201, 169, 97, 0.08) 100%);
}

:root[data-theme="dark"] .stats-section {
  background: linear-gradient(135deg, rgba(61, 126, 191, 0.08) 0%, rgba(217, 189, 122, 0.06) 100%);
}

.stat-card {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 8px 32px -8px rgba(10, 47, 79, 0.12);
  border-radius: 1rem;
  padding: 1.5rem;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

:root[data-theme="dark"] .stat-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.stat-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(201, 169, 97, 0.4);
  box-shadow: 0 16px 40px -8px rgba(10, 47, 79, 0.18);
}

:root[data-theme="dark"] .stat-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.stat-card .number {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.stat-card p {
  color: var(--muted-foreground);
  margin: 0;
}

/* Testimonials */
.testimonial-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-card:hover {
  box-shadow: 0 20px 40px -12px rgba(10, 47, 79, 0.18);
  transform: translateY(-4px);
}

.testimonial-stars {
  color: var(--accent);
  font-size: 1.05rem;
  letter-spacing: 0.15rem;
  margin-bottom: 0.75rem;
}

.testimonial-quote {
  color: var(--muted-foreground);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testimonial-avatar {
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--primary);
  color: var(--primary-foreground);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
}

.testimonial-name {
  font-weight: 600;
  color: var(--foreground);
}

/* Checklist */
.checklist {
  list-style: none;
}

.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.checklist svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.125rem;
}

/* Form */
.form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  font-size: 0.875rem;
}

.form-input,
.form-select,
.form-textarea {
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.1);
}

.form-textarea {
  resize: vertical;
}

.form-datetime-label {
  font-size: 0.8rem;
  text-align: left;
  margin: -0.25rem 0 -0.25rem;
}

.form-datetime-row {
  display: flex;
  gap: 0.75rem;
}

.form-datetime-row .form-input {
  flex: 1;
  min-width: 0;
  color-scheme: light;
}

.form-white .form-input,
.form-white .form-select {
  background-color: white;
  border: none;
}

.form-white .form-input:focus,
.form-white .form-select:focus {
  box-shadow: 0 0 0 2px var(--accent);
}

.form-note {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  margin-top: 0.5rem;
}

.form-note a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: underline;
}

.form-note a:hover {
  color: var(--accent);
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2540 100%);
  color: var(--primary-foreground);
  padding: 4rem 0;
}

.cta-content {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.cta-content > p {
  font-size: 1.25rem;
  opacity: 0.9;
  margin-bottom: 2rem;
}

.cta-form-wrapper {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(201, 169, 97, 0.25);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 28rem;
  margin: 0 auto;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, var(--primary) 0%, #082540 100%);
  color: var(--primary-foreground);
  padding: 3rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent, var(--accent));
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3,
.footer h4 {
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.footer p {
  opacity: 0.8;
  font-size: 0.875rem;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 0.5rem;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s;
  font-size: 0.875rem;
}

.footer a:hover {
  color: var(--accent);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.footer-logo-icon {
  width: 2.5rem;
  height: 2.5rem;
  background-color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo h3 {
  font-size: 1.125rem;
  margin: 0;
}

.footer-logo p {
  font-size: 0.875rem;
  opacity: 0.7;
  margin: 0;
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-link {
  width: 2.5rem;
  height: 2.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-link:hover {
  background-color: var(--accent);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.6;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.contact-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

/* Icon (simple SVG icons) */
.icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* Page Title */
.page-title-section {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2540 100%);
  color: var(--primary-foreground);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-title-section::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 40rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(201, 169, 97, 0.2) 0%, rgba(201, 169, 97, 0) 70%);
  pointer-events: none;
}

.page-title-section .container {
  position: relative;
  z-index: 1;
}

.page-title-section h1,
.page-title-section p {
  animation: hero-in 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-title-section p {
  animation-delay: 0.1s;
}

.page-title-section h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-title-section p {
  font-size: 1.25rem;
  opacity: 0.9;
  max-width: 42rem;
  margin: 0 auto;
}

/* About Page */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-image {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(10, 47, 79, 0.25), 0 0 0 1px rgba(201, 169, 97, 0.15);
  position: sticky;
  top: 6rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
}

.about-image:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 60px -12px rgba(10, 47, 79, 0.3), 0 0 0 1px rgba(201, 169, 97, 0.25);
}

.about-image img {
  width: 100%;
  height: 600px;
  object-fit: cover;
  transition: transform 0.1s linear;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-intro h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.about-intro .subtitle {
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.prose {
  color: var(--muted-foreground);
  line-height: 1.75;
}

.prose p {
  margin-bottom: 1rem;
}

.timeline {
  list-style: none;
}

.timeline li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline .bullet {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.timeline strong {
  color: var(--foreground);
}

/* Services Page */
.service-detail {
  background-color: var(--card);
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.service-detail-image {
  height: 100%;
  min-height: 20rem;
}

.service-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-detail-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.service-detail h3 {
  font-size: 1.5rem;
  color: var(--primary);
  margin: 0;
}

.service-detail p {
  color: var(--muted-foreground);
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

.service-features {
  list-style: none;
  margin-bottom: 1.5rem;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted-foreground);
  margin-bottom: 0.5rem;
}

.service-features .bullet {
  width: 0.375rem;
  height: 0.375rem;
  background-color: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.5rem;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.service-price {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.service-price .label {
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

.service-price .price {
  font-size: 1.5rem;
  color: var(--primary);
  font-weight: 600;
}

/* Contact Page */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.contact-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s;
}

.contact-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.contact-card h3 {
  font-size: 1.125rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-card a {
  color: var(--muted-foreground);
  text-decoration: none;
  display: block;
  margin-bottom: 0.25rem;
  transition: color 0.3s;
}

.contact-card a:hover {
  color: var(--accent);
}

.social-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background-color: var(--card);
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  text-decoration: none;
  transition: all 0.3s;
  margin-bottom: 1rem;
}

.social-card:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.social-card-icon {
  width: 3rem;
  height: 3rem;
  background-color: rgba(201, 169, 97, 0.1);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-card:hover .social-card-icon {
  background-color: rgba(201, 169, 97, 0.2);
}

.social-card h4 {
  color: var(--foreground);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.social-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

.emergency-card {
  background: linear-gradient(135deg, var(--primary) 0%, #0A2540 100%);
  border-radius: 1rem;
  padding: 2rem;
  color: var(--primary-foreground);
}

.emergency-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-foreground);
}

.emergency-card p {
  opacity: 0.8;
  margin-bottom: 1rem;
}

.emergency-card .btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.emergency-card .note {
  font-size: 0.875rem;
  opacity: 0.6;
  text-align: center;
  margin-top: 1rem;
  margin-bottom: 0;
}

.map-section {
  background-color: var(--background);
  padding: 4rem 0;
}

.map-placeholder {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border);
  height: 500px;
  background-color: #E8EBF0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
}

.map-placeholder svg {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.map-placeholder h3 {
  font-size: 1.25rem;
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.map-placeholder p {
  color: var(--muted-foreground);
  margin-bottom: 1.5rem;
}

.transport-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.transport-card {
  background-color: var(--card);
  border-radius: 0.75rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  text-align: center;
}

.transport-card h4 {
  color: var(--foreground);
  margin-bottom: 0.5rem;
}

.transport-card p {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin: 0;
}

/* Philosophy Quote */
.philosophy-quote {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 3rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  max-width: 56rem;
  margin: 0 auto;
}

.philosophy-quote-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.philosophy-quote h2 {
  font-size: 2rem;
  color: var(--primary);
  margin: 0;
}

.philosophy-quote .prose {
  font-size: 1.125rem;
  line-height: 1.75;
}

.philosophy-quote-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.philosophy-quote-footer p {
  font-size: 1.125rem;
  color: var(--primary);
  font-style: italic;
  margin: 0;
}

/* Pricing table */
.pricing-table {
  max-width: 48rem;
  margin: 0 auto;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pricing-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.35rem 1.75rem;
  border-bottom: 1px solid var(--border);
  transition: background-color 0.3s ease;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row:hover {
  background-color: rgba(201, 169, 97, 0.06);
}

.pricing-row-title {
  flex: 1;
  font-weight: 600;
  color: var(--foreground);
}

.pricing-row-price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.pricing-row-link {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

.pricing-row-link:hover {
  color: #b89850;
}

.pricing-note {
  text-align: center;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  margin-top: 1.5rem;
}

@media (max-width: 640px) {
  .pricing-row {
    flex-wrap: wrap;
  }

  .pricing-row-title {
    flex-basis: 100%;
  }
}

.service-detail {
  scroll-margin-top: 5.5rem;
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  transform: scaleX(0);
  transform-origin: left;
  z-index: 1100;
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    transition: none;
  }
}

/* FAQ */
.faq-list {
  max-width: 48rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.faq-item {
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.25rem 1.5rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(201, 169, 97, 0.4);
}

.faq-item[open] {
  box-shadow: 0 10px 25px -8px rgba(10, 47, 79, 0.15);
  border-color: rgba(201, 169, 97, 0.4);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  cursor: pointer;
  font-weight: 600;
  color: var(--foreground);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex-shrink: 0;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  color: var(--muted-foreground);
  line-height: 1.7;
  padding-bottom: 1.25rem;
  margin: 0;
}

/* Sticky mobile call bar */
.sticky-callbar {
  display: none;
}

@media (max-width: 768px) {
  .sticky-callbar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: var(--card);
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    padding: 0.6rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
    gap: 0.6rem;
  }

  .sticky-callbar-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.7rem 0.5rem;
    border-radius: 0.6rem;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: transform 0.2s ease;
  }

  .sticky-callbar-btn:active {
    transform: scale(0.97);
  }

  .sticky-callbar-btn.call {
    background-color: var(--background);
    color: var(--primary);
    border: 1px solid var(--border);
  }

  .sticky-callbar-btn.book {
    background: linear-gradient(120deg, #DCB96C 0%, var(--accent) 100%);
    color: var(--accent-foreground);
  }

  .floating-contacts {
    bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  body {
    padding-bottom: calc(4rem + env(safe-area-inset-bottom, 0px));
  }
}

/* Floating contact buttons */
.floating-contacts {
  position: fixed;
  bottom: 1.5rem;
  left: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 998;
}

.floating-btn {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: float-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.floating-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: ping-ring 2.6s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}

.floating-btn.whatsapp::after {
  border-color: #25D366;
}

.floating-btn.telegram::after {
  border-color: #229ED9;
  animation-delay: 0.5s;
}

@keyframes ping-ring {
  0% { transform: scale(1); opacity: 0.55; }
  70% { transform: scale(1.7); opacity: 0; }
  100% { transform: scale(1.7); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .floating-btn::after {
    animation: none;
    display: none;
  }
}

@keyframes float-in {
  from { opacity: 0; transform: scale(0.5) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.floating-btn.telegram {
  animation-delay: 0.1s;
}

@media (prefers-reduced-motion: reduce) {
  .floating-btn {
    animation: none;
  }
}

.floating-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.floating-btn svg {
  width: 1.6rem;
  height: 1.6rem;
}

.floating-btn.whatsapp {
  background-color: #25D366;
}

.floating-btn.telegram {
  background-color: #229ED9;
}

@media (max-width: 768px) {
  .floating-contacts {
    bottom: 1rem;
    left: 1rem;
  }

  .floating-btn {
    width: 2.85rem;
    height: 2.85rem;
  }

  .floating-btn svg {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* Toast notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--primary);
  color: var(--primary-foreground);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9rem;
  z-index: 9999;
  transform: translateY(6rem);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast svg {
  color: var(--accent);
  flex-shrink: 0;
}

.toast.error {
  background-color: #B3261E;
}

.toast.error svg {
  color: #ffffff;
}

.toast-call-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.toast-call-link:hover,
.toast-call-link:focus-visible {
  color: var(--accent);
}

/* Responsive */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-group {
    display: none;
    width: 100%;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    margin-left: 0;
    gap: 1.25rem;
    padding-top: 1.25rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border);
  }

  .nav-group.open {
    display: flex;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .controls {
    justify-content: center;
    padding-right: 0;
    border-right: none;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .phone-link {
    justify-content: center;
  }

  .header-actions .btn-primary {
    text-align: center;
  }

  .hero-content,
  .about-grid,
  .service-detail-grid {
    grid-template-columns: 1fr;
  }
  
  .hero h1,
  .page-title-section h1 {
    font-size: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .about-image {
    position: static;
  }
  
  .service-detail-image {
    min-height: 16rem;
  }
  
  .grid-2 {
    grid-template-columns: 1fr;
  }

  /* Добавлено для корректного чередования контента на мобильных устройствах */
  .mobile-order-1 {
    order: 1;
  }
  .mobile-order-2 {
    order: 2;
  }
}

/* ============ Wave section dividers ============ */
.wave-divider {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: 100%;
  display: block;
}

.wave-divider.flip {
  transform: scaleY(-1);
}

/* ============ Open/closed live badge ============ */
.open-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.open-status-badge .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.open-status-badge.open {
  background-color: rgba(37, 211, 102, 0.12);
  color: #1a9e51;
}

.open-status-badge.open .dot {
  background-color: #25D366;
  animation: dot-pulse 2s ease-in-out infinite;
}

.open-status-badge.closed {
  background-color: rgba(179, 38, 30, 0.1);
  color: #B3261E;
}

.open-status-badge.closed .dot {
  background-color: #B3261E;
}

:root[data-theme="dark"] .open-status-badge.open {
  background-color: rgba(37, 211, 102, 0.16);
  color: #4ade80;
}

:root[data-theme="dark"] .open-status-badge.closed {
  background-color: rgba(255, 100, 100, 0.14);
  color: #ff8a8a;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 5px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .open-status-badge .dot { animation: none; }
}

@media (max-width: 768px) {
  .open-status-badge { display: none; }
}

/* ============ Chat widget ============ */
.chat-toggle {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #B8935A 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-toggle:hover {
  transform: scale(1.08);
}

.chat-toggle svg {
  width: 1.6rem;
  height: 1.6rem;
}

.chat-toggle .icon-close-chat {
  display: none;
}

.floating-contacts.open .chat-toggle .icon-chat {
  display: none;
}

.floating-contacts.open .chat-toggle .icon-close-chat {
  display: block;
}

.chat-panel {
  display: none;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 20px 40px -12px rgba(10, 47, 79, 0.3);
  width: 15.5rem;
  animation: chat-panel-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.floating-contacts.open .chat-panel {
  display: flex;
}

@keyframes chat-panel-in {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel { animation: none; }
}

.chat-panel-greeting {
  font-size: 0.85rem;
  color: var(--muted-foreground);
  line-height: 1.5;
  margin-bottom: 0.2rem;
}

.chat-panel-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.6rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  color: #fff;
  transition: transform 0.2s ease;
}

.chat-panel-link:hover {
  transform: translateY(-2px);
}

.chat-panel-link.whatsapp { background-color: #25D366; }
.chat-panel-link.telegram { background-color: #229ED9; }

.chat-panel-link svg {
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
}

/* ============ Success checkmark animation ============ */
.toast svg polyline {
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}

.toast.show:not(.error) svg polyline {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s ease 0.2s;
}

.toast svg circle,
.toast svg path {
  transition: none;
}

/* ============ Booking wizard ============ */
.wizard-progress {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.wizard-progress-bar {
  height: 100%;
  width: 25%;
  background: linear-gradient(90deg, var(--accent), #DCB96C);
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-step {
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  animation: wizard-step-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.wizard-step.active {
  display: flex;
}

@keyframes wizard-step-in {
  from { opacity: 0; transform: translateX(8px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wizard-step { animation: none; }
}

.wizard-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wizard-option {
  padding: 0.75rem 1rem;
  border-radius: 0.6rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.wizard-option:hover {
  border-color: var(--accent);
  background-color: rgba(255, 255, 255, 0.12);
}

.wizard-option.selected {
  background: linear-gradient(120deg, #DCB96C 0%, var(--accent) 100%);
  color: var(--accent-foreground);
  border-color: var(--accent);
  font-weight: 600;
}

.wizard-summary {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  background-color: rgba(255, 255, 255, 0.06);
  border-radius: 0.5rem;
  padding: 0.6rem 0.85rem;
  line-height: 1.6;
}

.wizard-summary strong {
  color: #fff;
}

.wizard-nav {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.wizard-nav .btn {
  flex: 1;
}

.wizard-nav .wizard-back[hidden],
.wizard-nav .wizard-next[hidden],
.wizard-nav .wizard-submit[hidden] {
  display: none;
}

/* ============ Price calculator ============ */
.price-calc {
  max-width: 48rem;
  margin: 2rem auto 0;
  background-color: var(--card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.price-calc-title {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.price-calc-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.price-calc-row:last-of-type {
  border-bottom: none;
}

.price-calc-row input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.price-calc-row label {
  flex: 1;
  cursor: pointer;
  font-size: 0.95rem;
}

.price-calc-row .row-price {
  color: var(--muted-foreground);
  font-size: 0.875rem;
  white-space: nowrap;
}

.price-calc-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 2px solid var(--border);
  font-weight: 600;
}

.price-calc-total .amount {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.5rem;
  color: var(--primary);
}

/* ============ Testimonial carousel ============ */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.testimonial-track:active {
  cursor: grabbing;
}

.testimonial-track::-webkit-scrollbar {
  display: none;
}

.testimonial-track .testimonial-card {
  flex: 0 0 min(340px, 88vw);
  scroll-snap-align: start;
}

.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.testimonial-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background-color: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  background-color: var(--accent);
  width: 1.5rem;
}

/* ============ Before/After slider ============ */
.before-after {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  user-select: none;
  touch-action: pan-y;
}

.before-after img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.before-after .ba-before-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 50% 0 0);
}

.before-after .ba-label {
  position: absolute;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(10, 47, 79, 0.75);
  color: #fff;
  backdrop-filter: blur(4px);
}

.before-after .ba-label.before { left: 0.75rem; }
.before-after .ba-label.after { right: 0.75rem; }

.before-after .ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background-color: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.4);
}

.before-after .ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
}

.before-after .ba-handle-grip svg {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--primary);
}

/* ============ Clickable tooth diagram ============ */
.tooth-diagram-wrap {
  max-width: 32rem;
  margin: 0 auto;
  text-align: center;
}

.tooth-diagram-hint {
  font-size: 0.9rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.tooth-diagram-svg .tooth-region {
  cursor: pointer;
  transition: fill 0.25s ease, transform 0.25s ease;
  transform-origin: center;
  fill: rgba(201, 169, 97, 0.35);
  stroke: var(--primary);
  stroke-width: 1.5;
}

.tooth-diagram-svg .tooth-region:hover,
.tooth-diagram-svg .tooth-region:focus {
  fill: var(--accent);
  transform: translateY(-4px);
  outline: none;
}

.tooth-diagram-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--muted-foreground);
}

.tooth-diagram-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.tooth-diagram-legend .swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.2rem;
  background-color: var(--accent);
}

/* ============ Instagram "coming soon" grid ============ */
.insta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  max-width: 44rem;
  margin: 0 auto;
}

.insta-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 0.75rem;
  overflow: hidden;
}

.insta-grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

.insta-grid-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 47, 79, 0.55);
}

.insta-soon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem auto 0;
  max-width: fit-content;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  background-color: rgba(201, 169, 97, 0.12);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
}

@media (max-width: 640px) {
  .insta-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
  }
}

/* ============ Popular badge ============ */
.popular-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(120deg, #DCB96C 0%, var(--accent) 100%);
  color: var(--accent-foreground);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-left: 0.6rem;
  vertical-align: middle;
  white-space: nowrap;
}

.popular-badge svg {
  width: 0.75rem;
  height: 0.75rem;
}

/* ============ Doctor video placeholder ============ */
.video-card {
  position: relative;
  max-width: 32rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  padding: 0;
  aspect-ratio: 4 / 3;
  display: block;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75);
  transition: transform 0.4s ease;
}

.video-card:hover img {
  transform: scale(1.04);
}

.video-card .play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease;
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1.08);
}

.video-card .play-btn svg {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--primary);
  margin-left: 3px;
}

.video-card .video-tooltip {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background-color: rgba(10, 47, 79, 0.9);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.video-card.show-tooltip .video-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============ Blog / dental tips ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  background-color: var(--card);
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-card:hover {
  box-shadow: 0 20px 40px -12px rgba(10, 47, 79, 0.18);
  transform: translateY(-4px);
}

.blog-card-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  background-color: rgba(201, 169, 97, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.blog-card-icon svg {
  width: 1.4rem;
  height: 1.4rem;
  color: var(--accent);
}

.blog-card h3 {
  font-size: 1.05rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.blog-card p {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============ Chat panel: video consultation link ============ */
.chat-panel-link.video {
  background-color: var(--primary);
}

.floating-btn.video {
  background-color: var(--primary);
}

.floating-btn.video::after {
  border-color: var(--accent);
  animation-delay: 1s;
}

/* ============ Trust bar (index.html, right under hero) ============ */
.trust-bar-section {
  padding: 1.5rem 0;
  background-color: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-bar {
  display: flex;
  gap: 2.5rem;
  overflow-x: auto;
  justify-content: center;
  -webkit-overflow-scrolling: touch;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-shrink: 0;
  min-width: 7rem;
}

.trust-number {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--primary);
  line-height: 1.1;
}

.trust-label {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

@media (max-width: 640px) {
  .trust-bar {
    justify-content: flex-start;
  }
}

/* ============ Installment note ============ */
.installment-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
}

.installment-note svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

/* ============ Service-matching quiz ============ */
.service-quiz {
  max-width: 34rem;
  margin: 0 auto;
}

.quiz-progress {
  height: 4px;
  background-color: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}

.quiz-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--primary));
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.quiz-step {
  display: none;
  animation: wizard-step-in 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.quiz-step.active {
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .quiz-step { animation: none; }
}

.quiz-question {
  font-weight: 600;
  color: var(--primary);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  text-align: center;
}

.quiz-option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1.1rem;
  border-radius: 0.6rem;
  border: 1px solid var(--border);
  background-color: var(--card);
  color: var(--foreground);
  font-family: inherit;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 0.6rem;
}

.quiz-option:hover {
  border-color: var(--accent);
  background-color: rgba(201, 169, 97, 0.08);
}

.quiz-result {
  display: none;
  text-align: center;
  padding: 1.5rem 0;
}

.service-quiz.finished .quiz-step {
  display: none !important;
}

.service-quiz.finished .quiz-result {
  display: block;
}

.quiz-result-label {
  color: var(--muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.quiz-result-title {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.quiz-restart {
  display: block;
  margin: 1.25rem auto 0;
  background: none;
  border: none;
  color: var(--muted-foreground);
  text-decoration: underline;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.quiz-restart:hover {
  color: var(--primary);
}

/* ============ Decorative pseudo-3D rotating tooth ============ */
.tooth3d-wrap {
  perspective: 700px;
  width: 130px;
  height: 130px;
  margin: 0 auto 1.5rem;
}

.tooth3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  animation: tooth3d-spin 9s linear infinite;
  cursor: grab;
}

.tooth3d.dragging {
  cursor: grabbing;
  animation-play-state: paused;
}

@keyframes tooth3d-spin {
  from { transform: rotateY(0deg); }
  to { transform: rotateY(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .tooth3d {
    animation: none;
  }
}

.tooth3d-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backface-visibility: hidden;
}

.tooth3d-layer svg {
  width: 72%;
  height: 72%;
  filter: drop-shadow(0 6px 10px rgba(10, 47, 79, 0.25));
}

.tooth3d-layer-front {
  transform: translateZ(38px);
}

.tooth3d-layer-back {
  transform: translateZ(-38px) rotateY(180deg);
  opacity: 0.85;
}

.tooth3d-layer-side1 {
  transform: rotateY(90deg) translateZ(38px);
  opacity: 0.45;
}

.tooth3d-layer-side2 {
  transform: rotateY(-90deg) translateZ(38px);
  opacity: 0.45;
}

/* ============ Equipment gallery (masonry) ============ */
.equipment-masonry {
  columns: 2;
  column-gap: 1rem;
  max-width: 52rem;
  margin: 0 auto;
}

.equipment-masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  border-radius: 0.85rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.equipment-masonry-item img {
  width: 100%;
  display: block;
  transition: transform 0.4s ease;
}

.equipment-masonry-item:hover img {
  transform: scale(1.04);
}

@media (min-width: 768px) {
  .equipment-masonry {
    columns: 3;
  }
}