/* ===================================
   GRAND DENTAL - WEBSITE HEADER STYLES
   Modern, Clean & Responsive Design
   =================================== */

/* === RESET & BASE STYLES === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html.menu-open,
html.menu-open body {
  overflow: hidden;
  
}



html, body {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  height: auto;
  overflow-x: hidden;
  position: relative;
}

.site-header {
  width: 100%;
  margin: 0;
  padding: 0;
  z-index: 100;
  position: relative;
}

body {
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background: #f8f9fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* === TOP BAR === */
.top-bar {
  background: #0a0a0a;
  color: #f5f5f5;
  padding: 6px 0;
  font-size: 13px;
  position: relative;
  width: 100%;
  z-index: 110;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* === CONTAINER === */

.top-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
}


.logo {
  display: block;
  padding: 6px 12px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: none;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35), 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.logo:hover {
  transform: scale(1.04);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(118, 75, 162, 0.32);
  border-color: rgba(118, 75, 162, 0.55);
}

.logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}


.top-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(76, 175, 80, 0.5), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* --- LEFT SIDE: Info Items --- */
.top-left {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0.8;
  overflow: visible;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  transition: all 0.3s ease;
  font-size: 11px;
}

.info-item:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.info-item svg {
  flex-shrink: 0;
  opacity: 0.9;
  width: 14px;
  height: 14px;
}

/* Green Status for "Зараз працюємо" */
.status-open {
  color: #4caf50;
  background: rgba(76, 175, 80, 0.1);
  border: 1px solid rgba(76, 175, 80, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px !important;
}

.status-open::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #4caf50;
  border-radius: 50%;
  box-shadow: 0 0 12px #4caf50;
  animation: pulse 2s infinite;
  flex-shrink: 0;
  order: -1;
}

.status-open span {
  margin-left: 0 !important;
}

.status-open svg {
  stroke: #4caf50;
  filter: drop-shadow(0 0 3px rgba(76, 175, 80, 0.5));
  flex-shrink: 0;
}

/* Red Status for "Не працюємо" */
.status-closed {
  color: #f44336;
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 8px !important;
}

.status-closed::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #f44336;
  border-radius: 50%;
  box-shadow: 0 0 12px #f44336;
  flex-shrink: 0;
  order: -1;
}

.status-closed span {
  margin-left: 0 !important;
}

.status-closed svg {
  stroke: #f44336;
  filter: drop-shadow(0 0 3px rgba(244, 67, 54, 0.5));
  flex-shrink: 0;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px #4caf50; }
  50% { opacity: 0.5; box-shadow: 0 0 5px #4caf50; }
}

/* --- CENTER: Logo --- */
.top-center {
  flex: 0 0 auto;
}

.logo {
  display: block;
  transition: all 0.3s ease;
}

.logo:hover {
  transform: scale(1.03);
}

.logo img {
  height: 64px;
  width: auto;
  object-fit: contain;
}

/* --- RIGHT SIDE: Social Links & Phones --- */
.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0.8;
  justify-content: flex-end;
  flex-wrap: nowrap;
  overflow: visible;
}

.call-btn {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(76, 175, 80, 0.18);
  border: 1px solid rgba(76, 175, 80, 0.4);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: all 0.3s ease;
}

.call-btn svg {
  width: 16px;
  height: 16px;
}

.call-btn:hover {
  background: rgba(76, 175, 80, 0.28);
  box-shadow: 0 6px 14px rgba(76, 175, 80, 0.25);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: #667eea;
  background: rgba(76, 175, 80, 0.1);
  border-color: rgba(76, 175, 80, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.social-link svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  width: 16px;
  height: 16px;
}

.social-link img {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  width: 20px;
  height: 20px;
}

.social-link:hover svg {
  transform: scale(1.1);
  stroke: #667eea;
}

.social-link:hover img {
  transform: scale(1.1);
}

/* Phone Block */
.phone-block {
  display: flex !important;
  align-items: center;
  gap: 8px;
  padding: 5px 10px;
  background: rgba(76, 175, 80, 0.15);
  border-radius: 8px;
  border: 1px solid rgba(76, 175, 80, 0.3);
  transition: all 0.3s ease;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.phone-block:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.4);
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.2);
}

.phone-numbers {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  align-items: flex-start;
  flex-shrink: 0;
  visibility: visible !important;
  opacity: 1 !important;
}

.phone-numbers a {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff !important;
  transition: all 0.3s ease;
  position: relative;
  white-space: nowrap;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.phone-numbers a::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #667eea;
  transition: width 0.3s ease;
}

.phone-numbers a:hover {
  color: #667eea;
  letter-spacing: 0.5px;
}

.phone-numbers a:hover::before {
  width: 100%;
}

.phone-icons {
  display: flex !important;
  flex-direction: column;
  gap: 3px;
  flex-shrink: 0;
}

.phone-icons svg {
  cursor: pointer;
  padding: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  transition: all 0.3s ease;
  width: 24px;
  height: 24px;
  display: block !important;
}

.phone-icons svg:hover {
  stroke: #667eea;
  background: rgba(76, 175, 80, 0.2);
  transform: scale(1.1) rotate(5deg);
}

/* ===================================
   ROW 2: NAVIGATION BAR (White Background)
   =================================== */
.nav-bar {
  background: #ffffff;
  border-bottom: 1px solid #e8e8e8;
  color: #1f2933;
  padding: 12px 0;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  width: 100%;
}

.nav-bar:hover {
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12);
}

.nav-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.nav-left-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.menu-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(102, 126, 234, 0.35);
  background: #ffffff;
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: #1f2933;
  margin: 3px 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(102, 126, 234, 0.25);
}

.menu-toggle:checked ~ .container .burger {
  display: none;
}

.menu-toggle:checked ~ .container .burger span {
  background: #ffffff;
}

.menu-toggle:checked ~ .container .burger span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle:checked ~ .container .burger span:nth-child(2) {
  opacity: 0;
}

.menu-toggle:checked ~ .container .burger span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 8888;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100vh;
}

.mobile-menu {
  position: fixed !important;
  top: 0 !important;
  right: -100% !important;
  width: 80vw !important;
  max-width: 320px !important;
  height: 100vh !important;
  background: #0f1115 !important;
  color: #ffffff !important;
  z-index: 9999 !important;
  padding: 20px 16px 24px !important;
  box-shadow: -20px 0 40px rgba(0, 0, 0, 0.35) !important;
  transition: right 0.3s ease, opacity 0.2s ease !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  opacity: 0;
  pointer-events: none;
  display: flex !important;
  flex-direction: column !important;
}

.menu-toggle:checked ~ .menu-overlay {
  display: block !important;
  z-index: 8888 !important;
}

.menu-toggle:checked ~ .mobile-menu {
  right: 0 !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  z-index: 9999 !important;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
}

.menu-close {
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s ease;
}

.menu-close:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.04);
}

.mobile-menu-info {
  display: grid !important;
  gap: 8px;
  font-size: 12px;
  color: #cbd5f5;
  margin-bottom: 14px;
  opacity: 1;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu-info,
.mobile-links,
.mobile-contacts,
.mobile-socials {
  visibility: visible !important;
  display: grid !important;
  opacity: 1 !important;
}

.mobile-menu-info .menu-info-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.mobile-menu-info .status-open {
  color: #4caf50;
  border: 1px solid rgba(76, 175, 80, 0.3);
}

.mobile-links {
  display: grid !important;
  gap: 8px;
  margin-bottom: 0;
  margin-top: 14px;
  list-style: none;
  padding: 0;
}

.mobile-links li {
  list-style: none;
}

.mobile-links li a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 600;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.2s ease;
}

.mobile-links li a:active,
.mobile-links a:hover {
  background: rgba(102, 126, 234, 0.25);
  color: #667eea;
}

.mobile-contacts {
  display: grid !important;
  gap: 8px;
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-contacts a {
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.mobile-contacts a:hover {
  color: #667eea;
}

.mobile-socials {
  display: flex !important;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-messengers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.messenger-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5f5;
  text-decoration: none;
  transition: all 0.2s ease;
}

.messenger-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.messenger-icon img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.messenger-icon:hover {
  transform: translateY(-2px);
}

.messenger-icon.whatsapp {
  background: #25D366;
}

.messenger-icon.whatsapp:hover {
  background: #20BA5A;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.messenger-icon.viber {
  background: #665CAC;
}

.messenger-icon.viber:hover {
  background: #5A4FA1;
  box-shadow: 0 4px 12px rgba(102, 92, 172, 0.3);
}

.messenger-icon.telegram {
  background: #0088CC;
}

.messenger-icon.telegram:hover {
  background: #0077B5;
  box-shadow: 0 4px 12px rgba(0, 136, 204, 0.3);
}

.mobile-socials a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #cbd5f5;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  transition: all 0.2s ease;
}

.mobile-socials a svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  flex-shrink: 0;
}

.mobile-socials a:hover {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.mobile-socials .maps-link {
  background: rgba(244, 67, 54, 0.15);
}

.mobile-socials .maps-link:hover {
  background: rgba(244, 67, 54, 0.25);
}

/* --- LEFT: Navigation Links --- */
.nav-links {
  display: flex;
  gap: 35px;
  align-items: center;
  flex: 1;
}

.nav-links li a {
  font-size: 15px;
  font-weight: 600;
  color: #2c3e50;
  padding: 12px 18px;
  position: relative;
  border-radius: 8px;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #667eea;
  background: rgba(76, 175, 80, 0.05);
}

.nav-links li a:hover::after {
  width: 60%;
}

.nav-links li a:active {
  transform: scale(0.95);
}

/* --- RIGHT: Action Buttons --- */
.nav-actions {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-left: auto;
}

.header-socials {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: rgba(102, 126, 234, 0.3);
  color: #667eea;
  transform: translateY(-2px);
}

.social-link span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.social-link.facebook:hover {
  background: rgba(59, 89, 152, 0.3);
  color: #3B5998;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, rgba(255, 77, 77, 0.3) 0%, rgba(240, 112, 169, 0.3) 100%);
  color: #E1306C;
}

.btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn svg {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.btn:active {
  transform: scale(0.95);
}

/* Secondary Button - "Дізнатися ціну" */
.btn-secondary {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #2c3e50;
  border: 2px solid #dee2e6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
  border-color: #adb5bd;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Primary Button - "Запис на прийом" */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: 2px solid #667eea;
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
  position: relative;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: rotate(45deg);
  transition: all 0.5s;
}

.btn-primary:hover::after {
  animation: shine 1.5s infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a4fcf 0%, #5cb85c 100%);
  border-color: #5a4fcf;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
}

@keyframes shine {
  0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
  100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.75) 0%, rgba(248, 249, 250, 0.70) 100%), 
              url('img/hero-bg.jpg') center/cover no-repeat;
  padding: 100px 20px 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.hero-title {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.2;
  color: #2c3e50;
  margin-bottom: 25px;
  letter-spacing: -1px;
}

.gradient-text {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  position: relative;
}

.hero-subtitle {
  font-size: 20px;
  line-height: 1.7;
  color: #5a6c7d;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-outline {
  background: transparent;
  color: #667eea;
  border: 2px solid #667eea;
  box-shadow: none;
}

.btn-outline:hover {
  background: #667eea;
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 80px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #5a6c7d;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===================================
   БЛОК 2: ПОСЛУГИ
   =================================== */
.services-section {
  padding: 80px 20px;
  background: #f8f9fa;
  text-align: center;
}

.services-title {
  font-size: 42px;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.services-subtitle {
  font-size: 18px;
  color: #666;
  max-width: 600px;
  margin: 0 auto 50px auto;
  line-height: 1.6;
}

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 30px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-image {
  display: none; /* deprecated, using premium-icon-box instead */
}

.premium-icon-box {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 160px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%);
  padding: 0;
  position: relative;
  box-shadow: 0 10px 40px rgba(16, 185, 129, 0.15), 0 4px 12px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(16, 185, 129, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  backdrop-filter: blur(8px);
}

.premium-icon-box::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.premium-icon-box svg {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.320, 1), filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.service-card:hover .premium-icon-box {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25), 0 8px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.08) 100%);
}

.service-card:hover .premium-icon-box svg {
  transform: scale(1.15);
  filter: drop-shadow(0 8px 20px rgba(16, 185, 129, 0.3));
}

/* Tablet */
@media (max-width: 1024px) {
  .premium-icon-box {
    width: 140px;
    height: 140px;
    margin-bottom: 28px;
  }
}

/* Mobile: make icons substantially larger */
@media (max-width: 768px) {
  .premium-icon-box {
    width: 130px;
    height: 130px;
    margin-bottom: 24px;
    border-radius: 20px;
  }
}

@media (max-width: 480px) {
  .premium-icon-box {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
}

h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 8px 0;
}

.service-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 16px;
  flex-grow: 1;
}

.service-link {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  /* gradient matching primary button and hero text */
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-link .arrow {
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
  /* arrow inherits same gradient as text */
  background: inherit;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.service-link:hover .arrow {
  transform: translateX(4px);
  /* optionally darken on hover by shifting gradient */
  background: linear-gradient(135deg, #5a4fcf 0%, #5cb85c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .services-title {
    font-size: 32px;
  }
  .services-subtitle {
    font-size: 16px;
    margin-bottom: 35px;
  }
}

/* Modal styles */
.service-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
}

.service-modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  padding: 30px 24px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-out;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.2s;
}

.modal-close:hover {
  color: #000;
}

.modal-title {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-body {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  white-space: pre-line; /* preserve user line breaks from data-long */
}
 

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}



/* ===================================
   БЛОК 3: ЗАПИС НА ПРИЙОМ
   =================================== */
.appointment-section {
  padding: 80px 20px;
  background: #ffffff;
}

.appointment-container {
  max-width: 1200px;
  margin: 0 auto;
}

.appointment-header {
  text-align: center;
  margin-bottom: 60px;
}

.appointment-title {
  font-size: 42px;
  font-weight: 300;
  color: #e74c3c;
  margin-bottom: 20px;
}

.appointment-subtitle {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
  max-width: 800px;
  margin: 0 auto;
}

.appointment-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}

/* Схема зубів */
.teeth-diagram {
  position: relative;
  background: #f8f9fa;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.teeth-svg {
  width: 100%;
  height: auto;
  display: block;
  max-width: 350px;
  margin: 0 auto;
}

.tooth {
  fill: #e0e0e0;
  stroke: #999;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tooth:hover {
  fill: #e74c3c;
  stroke: #c0392b;
  filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.4));
}

.tooth.selected {
  fill: #e74c3c;
  stroke: #c0392b;
  filter: drop-shadow(0 0 8px rgba(231, 76, 60, 0.4));
}

.teeth-numbers {
  display: flex;
  justify-content: center;
  margin-top: 15px;
  font-size: 13px;
  color: #999;
  font-family: monospace;
}

.numbers-row {
  display: flex;
  gap: 8px;
}

/* Форма запису */
.appointment-form {
  background: #ffffff;
}

.form-title {
  font-size: 20px;
  font-weight: 500;
  color: #333;
  margin-bottom: 25px;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 15px;
  color: #333;
}

.checkbox-item:hover {
  border-color: #667eea;
  background: rgba(76, 175, 80, 0.05);
}

.checkbox-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #667eea;
}

.checkbox-item.full-width {
  grid-column: 1 / -1;
}

.form-inputs {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.input-group:focus-within {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
}

.input-group svg {
  flex-shrink: 0;
  color: #999;
}

.input-group input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  background: transparent;
}

.input-group input::placeholder {
  color: #999;
}

.submit-btn {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  background: #ffffff;
  color: #333;
  border: 2px solid #333;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 15px;
}

.submit-btn:hover {
  background: #333;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.submit-btn svg {
  transition: transform 0.3s ease;
}

.submit-btn:hover svg {
  transform: translateX(5px);
}

/* === TEAM SECTION === */
.team-section {
  padding: 80px 0;
  background: #fff;
}

.team-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.team-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1a1a1a;
  letter-spacing: -0.5px;
}

.team-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 60px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}

.team-card {
  background: #f9f9f9;
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.team-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border-color: #e8e8e8;
  transform: translateY(-5px);
}

.team-photo {
  width: 180px;
  height: 180px;
  margin: 0 auto 30px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: 4px solid #fff;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team-name {
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

.team-specialty {
  font-size: 14px;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}

.team-bio {
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

/* === ABOUT SECTION === */
.about-section {
  padding: 80px 0;
  background: #fff;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  z-index: 1;
}

.about-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1a1a1a;
  letter-spacing: -1px;
}

.about-subtitle {
  font-size: 20px;
  color: #667eea;
  font-weight: 500;
  margin-bottom: 30px;
}

.about-description {
  margin-bottom: 40px;
}

.about-description p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.about-description p:last-child {
  margin-bottom: 0;
}

.about-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.feature-item {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}

.feature-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.15);
}

.feature-text h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 5px;
}

.feature-text p {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.about-image {
  position: relative;
  z-index: 1;
}

.about-image img {
  width: 100%;
  height: auto;
  max-height: 740px;
  aspect-ratio: 587 / 1015;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.about-badge {
  position: absolute;
  bottom: 30px;
  left: 30px;
  background: white;
  padding: 25px 30px;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.badge-number {
  font-size: 48px;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 5px;
}

.badge-text {
  font-size: 14px;
  color: #666;
  font-weight: 500;
  line-height: 1.4;
}

/* === ABOUT RESPONSIVE === */
@media (max-width: 768px) {
  .top-bar {
    padding: 4px 0;
  }
  .about-section {
    padding: 60px 0;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-subtitle {
    font-size: 18px;
  }

  .about-description p {
    font-size: 15px;
  }

  .about-features {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-image img {
    max-height: 560px;
  }

  .about-badge {
    bottom: 20px;
    left: 20px;
    padding: 20px 25px;
  }

  .badge-number {
    font-size: 40px;
  }
}

@media (max-width: 480px) {
  .about-section {
    padding: 40px 0;
  }

  .about-title {
    font-size: 28px;
  }

  .about-subtitle {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .about-description p {
    font-size: 14px;
  }

  .about-features {
    gap: 15px;
  }

  .feature-icon {
    width: 45px;
    height: 45px;
  }

  .feature-icon svg {
    width: 30px;
    height: 30px;
  }

  .feature-text h4 {
    font-size: 15px;
  }

  .feature-text p {
    font-size: 13px;
  }

  .about-image img {
    max-height: 400px;
    border-radius: 16px;
  }

  .about-badge {
    bottom: 15px;
    left: 15px;
    padding: 15px 20px;
  }

  .badge-number {
    font-size: 32px;
  }

  .badge-text {
    font-size: 12px;
  }
}

  /* === CONTACTS SECTION === */
  .contacts-section {
    padding: 80px 0;
    background: #f8f9fa;
  }

  .contacts-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .contacts-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
  }

  .contacts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .contact-card {
    background: #fff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    border: 1px solid #eee;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
  }

  .icon-circle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
  }

  .card-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .address-block {
    margin-bottom: 18px;
  }

  .address-block .city {
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
  }

  .address-block .street {
    font-size: 16px;
    color: #444;
    line-height: 1.5;
  }

  .schedule {
    margin-bottom: 18px;
  }

  .schedule-title {
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
  }

  .schedule-rows > div {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    color: #444;
    padding: 6px 0;
    border-bottom: 1px dashed #eee;
  }

  .schedule-rows > div:last-child {
    border-bottom: none;
  }

  .status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
  }

  .status-pill.open {
    background: rgba(76, 175, 80, 0.12);
    color: #4caf50;
  }

  .status-pill.closed {
    background: rgba(244, 67, 54, 0.12);
    color: #f44336;
  }

  .map-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #667eea;
    font-weight: 600;
    margin-top: 6px;
  }

  .map-link:hover {
    text-decoration: underline;
  }

  .phones {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 14px;
  }

  .phones a {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
  }

  .phones a:hover {
    color: #667eea;
  }

  .messengers-title,
  .social-title {
    font-weight: 600;
    color: #1a1a1a;
    margin: 12px 0 8px;
	
  }

  .messengers {
    display: flex;
    gap: 10px;
    align-items: center;
  }

  .messenger {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .messenger svg {
    width: 24px;
    height: 24px;
  }

  .messenger img {
    width: 24px;
    height: 24px;
  }

  .messenger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  }

  .messenger.viber { 
    background: radial-gradient(circle at 30% 30%, #9b59d0, #7c52ff);
  }
  
  .messenger.whatsapp { 
    background: radial-gradient(circle at 30% 30%, #2ecc71, #25d366);
  }
  
  .messenger.telegram { 
    background: linear-gradient(135deg, #37aee2 0%, #1e96c8 100%);
  }
  .social-links {
  display: flex;       /* Головна команда: вишикувати в рядок */
  gap: 15px;           /* Відступ між іконками */
  align-items: center; /* Вирівняти по центру */
}

  .social-links a {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #667eea;
    background: rgba(102, 126, 234, 0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .social-links a svg,
  .social-links a img {
    width: 24px;
    height: 24px;
	
  }

  .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.12);
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .contacts-form-grid {
    display: grid;
    gap: 12px;
  }

  .input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fdfdfd;
  }

  .input-row input {
    border: none;
    outline: none;
    flex: 1;
    font-size: 14px;
    background: transparent;
    color: #333;
  }

  .input-row input::placeholder {
    color: #9aa0a6;
  }

  .contacts-submit {
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 18px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .contacts-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(102, 126, 234, 0.4);
  }

  .contacts-submit svg {
    color: #fff;
  }

  /* Contacts responsive */
  @media (max-width: 1024px) {
    .contacts-grid {
      grid-template-columns: 1fr 1fr;
    }
  }

  @media (max-width: 768px) {
    .contacts-section {
      padding: 60px 0;
    }

    .contacts-title {
      font-size: 32px;
      margin-bottom: 30px;
    }

    .contacts-grid {
      grid-template-columns: 1fr;
    }

    .contact-card {
      padding: 22px;
    }
  }

  @media (max-width: 480px) {
    .contacts-section {
      padding: 45px 0;
    }

    .contacts-title {
      font-size: 26px;
    }

    .card-header {
      gap: 10px;
    }

    .icon-circle {
      width: 38px;
      height: 38px;
    }

    .contacts-submit {
      width: 100%;
    }
  }

  /* === REVIEWS / RESULTS SECTION === */
  .reviews-section {
    padding: 80px 0;
    background: #fff;
  }

  .reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
  }

  .reviews-title {
    text-align: center;
    font-size: 42px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
  }

  .reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .review-card {
    position: relative;
    isolation: isolate;
    background: #f8f9fa;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
  }

  .case-tag {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
  }

  .case-compare {
    position: relative;
    --pos: 50%;
    touch-action: none;
  }

  .case-images {
    position: relative;
    min-height: 320px;
    background: linear-gradient(135deg, #e9ecef 0%, #f8f9fa 100%);
    overflow: hidden;
  }

  .case-images img {
    background: #eaecef;
  }

  .case-label {
    position: absolute;
    top: 14px;
    padding: 8px 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    pointer-events: none;
    z-index: 4;
  }

  .case-label-before {
    left: 14px;
  }

  .case-label-after {
    right: 14px;
  }

  .case-before-img,
  .case-after-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
  }

  .case-after-img {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
    transition: clip-path 0.15s ease;
  }

  .compare-handle {
    position: absolute;
    top: 0;
    left: var(--pos);
    transform: translateX(-50%);
    width: 4px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 0 12px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    z-index: 4;
  }

  .compare-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  }

  .compare-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: ew-resize;
    z-index: 3;
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
  }

  .case-footer {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    z-index: 4;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  }

  .patient-name {
    font-weight: 700;
    color: #fff;
  }

  .reviews-action {
    text-align: center;
    margin: 40px 0;
  }

  .btn-more-works,
  .btn-more-reviews {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  }

  .btn-more-works:hover,
  .btn-more-reviews:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(102, 126, 234, 0.4);
  }

  .btn-more-works svg,
  .btn-more-reviews svg {
    flex-shrink: 0;
  }

  .testimonials-title {
    text-align: center;
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 50px 0 40px;
    letter-spacing: -0.5px;
  }

  .testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
  }

  .testimonial-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    transition: all 0.3s ease;
  }

  .testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
  }

  .testimonial-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
  }

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
  }

  .testimonial-info {
    flex: 1;
  }

  .testimonial-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 4px;
  }

  .testimonial-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
    flex-wrap: wrap;
  }

  .testimonial-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
  }

  .testimonial-photos {
    color: #888;
  }

  .testimonial-stars {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
  }

  .testimonial-text {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
  }

  @media (max-width: 1024px) {
    .reviews-grid {
      grid-template-columns: 1fr;
    }

    .testimonials-grid {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .reviews-section {
      padding: 60px 0;
    }

    .reviews-title {
      font-size: 32px;
      margin-bottom: 30px;
    }

    .reviews-grid {
      grid-template-columns: 1fr;
    }

    .case-images {
      min-height: 260px;
    }

    .testimonials-title {
      font-size: 28px;
      margin: 40px 0 30px;
    }

    .btn-more-works,
    .btn-more-reviews {
      padding: 12px 24px;
      font-size: 15px;
    }
  }

  @media (max-width: 480px) {
    .reviews-section {
      padding: 45px 0;
    }

    .reviews-title {
      font-size: 26px;
    }

    .case-tag {
      padding: 8px 12px;
      font-size: 13px;
    }

    .case-images {
      min-height: 220px;
    }

    .testimonials-title {
      font-size: 24px;
    }

    .testimonial-card {
      padding: 18px;
    }
  }

/* ===================================
   RESPONSIVE DESIGN (Mobile)
   =================================== */

/* Tablets and smaller */
@media (max-width: 1200px) {
  .top-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  
  .nav-links {
    gap: 20px;
  }
  
  .hero-title {
    font-size: 52px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-stats {
    gap: 50px;
  }
  
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .appointment-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Mobile Devices */
@media (max-width: 768px) {
  /* Top Bar - Stack vertically */
  .top-bar .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
  }
  
  .top-left,
  .top-center,
  .top-right {
    width: auto;
    justify-content: center;
  }
  
  .top-left {
    display: none !important;
  }
  
  .top-right {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
  
  .logo {
    display: block;
  }

  .logo img {
    height: 56px;
  }

  .phone-block {
    display: none !important;
  }

  .top-right .social-link {
    display: flex !important;
	
    padding: 4px 8px;
    font-size: 10px;
    gap: 4px;
  }

  .top-right .social-link svg {
    width: 16px;
    height: 16px;
  }
  
  /* Navigation Bar - Stack vertically */
  .nav-bar {
    padding: 8px 0;
  }
  .nav-bar .container {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .nav-actions {
    flex-direction: row;
    flex-wrap: wrap;
    width: auto;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
  }
  
  .btn {
    width: auto;
    justify-content: center;
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .btn svg {
    width: 14px;
    height: 14px;
  }

  .nav-actions .header-socials {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
  }

  .nav-actions .header-socials .social-link {
    display: flex !important;
    width: auto !important;
    height: auto !important;
    padding: 4px 8px;
    gap: 6px;
  }

  .nav-actions .header-socials .social-link svg {
    width: 16px !important;
    height: 16px !important;
  }

  .burger {
    display: flex !important;
    flex-direction: column;
  }
  
  /* Hero - Mobile */
  .hero {
    padding: 60px 20px 50px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-stats {
    gap: 40px;
  }
  
  .stat-number {
    font-size: 36px;
  }
  
  /* Services - 1 колонка на мобільних */
  .services-section {
    padding: 60px 20px;
  }
  
  .services-title {
    font-size: 32px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Team - Mobile */
  .team-section {
    padding: 60px 20px;
  }
  
  .team-title {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .team-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .team-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .team-card {
    padding: 30px 20px;
  }
  
  .team-photo {
    width: 140px;
    height: 140px;
  }
  
  .team-name {
    font-size: 18px;
  }
  
  .team-bio {
    font-size: 13px;
  }
  
  /* Appointment - Mobile */
  .appointment-section {
    padding: 60px 20px;
  }
  
  .appointment-title {
    font-size: 32px;
  }
  
  .appointment-subtitle {
    font-size: 16px;
  }
  
  .appointment-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-inputs {
    grid-template-columns: 1fr;
  }
  
  .team-title {
    font-size: 28px;
  }
  
  .team-subtitle {
    font-size: 14px;
  }
}

/* Very Small Mobile */
@media (max-width: 480px) {
  .info-item {
    flex-direction: column;
    text-align: center;
    gap: 4px;
  }

  .btn {
    padding: 8px 10px;
    font-size: 11px;
  }
  
  .nav-links {
    flex-direction: column;
    gap: 10px;
  }
  
  .nav-links li a {
    padding: 10px;
  }
  
  .team-section {
    padding: 40px 0;
  }
  
  .team-title {
    font-size: 24px;
  }
  
  .team-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .team-grid {
    gap: 20px;
  }
  
  .team-card {
    padding: 20px 15px;
  }
  
  .team-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 20px;
  }
  
  .team-name {
    font-size: 16px;
  }
  
  .team-specialty {
    font-size: 12px;
  }
  
  .team-bio {
    font-size: 12px;
  }
  
  .social-link {
    font-size: 12px;
  }
  
  .phone-numbers a {
    font-size: 14px;
  }
  
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .stat-number {
    font-size: 32px;
  }
  
  .stat-label {
    font-size: 12px;
  }
  
  .services-title {
    font-size: 26px;
  }
  
  .appointment-title {
    font-size: 26px;
  }
  
  .form-title {
    font-size: 18px;
  }
}

/* === MAP SECTION === */
.map-section {
  padding: 0;
  background: #f8f9fa;
}

.map-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 60px 20px;
}

.map-title {
  text-align: center;
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 40px;
  letter-spacing: -0.5px;
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #e0e0e0;
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 768px) {
  .map-container {
    padding: 40px 20px;
  }

  .map-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .map-wrapper {
    height: 400px;
    border-radius: 16px;
  }
}

@media (max-width: 480px) {
  .map-container {
    padding: 30px 15px;
  }

  .map-title {
    font-size: 26px;
    margin-bottom: 24px;
  }

  .map-wrapper {
    height: 320px;
    border-radius: 12px;
  }
}

/* === FOOTER === */
.footer-simple {
  background: #1a1a1a;
  padding: 24px 20px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.footer-left,
.footer-right {
  color: #fff;
  font-size: 13px;
  margin: 0;
  opacity: 0.85;
}

.footer-left {
  text-align: left;
}

.footer-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.footer-right a {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-right a:hover {
  color: #667eea;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-center img {
  height: 44px;
  width: auto;
  display: block;
  opacity: 0.95;
}

.footer-socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  background: rgba(102, 126, 234, 0.3);
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(102, 126, 234, 0.2);
}

.footer-socials a svg {
  width: 18px;
  height: 18px;
  stroke: none;
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 12px;
  }

  .footer-left,
  .footer-right {
    text-align: center;
  }

  .footer-right {
    align-items: center;
  }
  
}

/* === PRICES SECTION === */
.prices-section {
  padding: 80px 20px;
  background: #ffffff;
  position: relative;
  overflow: hidden;
}

.prices-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(76, 175, 80, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
}

.prices-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.prices-title {
  font-size: 42px;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.5px;
}

.prices-subtitle {
  font-size: 18px;
  color: #666;
  text-align: center;
  margin-bottom: 50px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.prices-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 50px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 24px;
  border-radius: 10px;
  background: #f8f9fa;
  color: #333;
  border: 2px solid #e8e8e8;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.3px;
}

.tab-btn:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.08);
  color: #667eea;
  transform: translateY(-2px);
}

.tab-btn.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border-color: #667eea;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.prices-content {
  position: relative;
  margin-bottom: 40px;
}

.price-category {
  display: none;
  animation: fadeIn 0.3s ease;
}

.price-category.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Price Table Styles */
.price-table {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f0f0f0;
}

.price-header {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(76, 175, 80, 0.08) 100%);
  padding: 20px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 2px solid #e8e8e8;
  font-size: 14px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.price-col-service {
  display: flex;
  align-items: center;
}

.price-col-price {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.price-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  transition: all 0.3s ease;
  background: #ffffff;
}

.price-row:last-child {
  border-bottom: none;
}

.price-row:hover {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(76, 175, 80, 0.05) 100%);
  transform: translateX(4px);
  box-shadow: inset 0 0 20px rgba(102, 126, 234, 0.08);
}

.price-row .price-col-service {
  color: #333;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
}

.price-row .price-col-price {
  color: #667eea;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.price-note {
  text-align: center;
  padding: 25px 30px;
  background: rgba(76, 175, 80, 0.08);
  border-left: 4px solid #4caf50;
  border-radius: 8px;
  margin-top: 30px;
}

.price-note p {
  color: #555;
  font-size: 14px;
  line-height: 1.7;
  margin: 0;
}

/* === PRICES RESPONSIVE === */
@media (max-width: 1024px) {
  .prices-tabs {
    gap: 10px;
  }

  .tab-btn {
    padding: 10px 18px;
    font-size: 13px;
  }

  .price-header {
    gap: 15px;
    padding: 16px;
    font-size: 12px;
  }

  .price-row {
    gap: 15px;
    padding: 16px;
  }

  .price-row .price-col-service {
    font-size: 14px;
  }

  .price-row .price-col-price {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .prices-section {
    padding: 60px 16px;
  }

  .prices-section::before {
    display: none;
  }

  .prices-title {
    font-size: 32px;
    margin-bottom: 10px;
  }

  .prices-subtitle {
    font-size: 16px;
    margin-bottom: 35px;
  }

  .prices-tabs {
    gap: 8px;
    margin-bottom: 30px;
  }

  .tab-btn {
    padding: 10px 16px;
    font-size: 12px;
    white-space: nowrap;
  }

  .price-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .price-header {
    min-width: 350px;
    gap: 10px;
    padding: 14px;
    font-size: 11px;
  }

  .price-row {
    min-width: 350px;
    gap: 10px;
    padding: 14px;
    grid-template-columns: 1.5fr 1fr;
  }

  .price-row .price-col-service {
    font-size: 13px;
  }

  .price-row .price-col-price {
    font-size: 13px;
    justify-content: flex-end;
  }

  .price-note {
    padding: 20px;
    border-left-width: 3px;
    font-size: 12px;
  }

  .price-note p {
    line-height: 1.6;
  }
}

@media (max-width: 480px) {
  .prices-section {
    padding: 40px 12px;
  }

  .prices-title {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .prices-subtitle {
    font-size: 14px;
    margin-bottom: 25px;
  }

  .prices-tabs {
    gap: 6px;
    margin-bottom: 25px;
  }

  .tab-btn {
    padding: 8px 12px;
    font-size: 11px;
  }

  .price-header {
    min-width: 100%;
    gap: 8px;
    padding: 12px;
    font-size: 10px;
    grid-template-columns: 1.2fr 1fr;
  }

  .price-row {
    min-width: 100%;
    gap: 8px;
    padding: 12px;
    grid-template-columns: 1.2fr 1fr;
  }

  .price-row .price-col-service {
    font-size: 12px;
  }

  .price-row .price-col-price {
    font-size: 12px;
    font-weight: 700;
  }

  .price-note {
    padding: 16px 12px;
    border-left-width: 3px;
    font-size: 11px;
  }
  /* --- Стилі для нових преміум-іконок послуг --- */
.card-image svg {
  width: 64px !important;
  height: 64px !important;
  stroke: none !important; /* Відключаємо примусовий колір контуру з інших стилів */
  fill: none !important;
}

.card-image svg path,
.card-image svg circle {
  stroke: inherit; /* Дозволяємо іконці використовувати власні кольори, задані в HTML */
}
}
