* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Onest', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: white;
  color: #1f2937;
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Header Container */
.header-container {
  position: sticky;
  top: 0;
  z-index: 2000;
  background-color: white;
  padding-top: 20px;
  padding-bottom: 20px;

}

/* Header Styles */
header {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.logo {
  width: 40px;
  height: 40px;
  background-color: #7dd3fc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 18px;
}

.site-title {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #374151;
}

.contact-icon {
  color: #7dd3fc;
  width: 20px;
  height: 20px;
}

.call-button {
  background-color: #7dd3fc;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.call-button:hover {
  background-color: #38bdf8;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.3);
}

/* Sticky Navigation Styles */
.sticky-nav {
  position: sticky;
  top: 75px;
  z-index: 1000;
  padding: 12px 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(85px);
  -webkit-backdrop-filter: blur(85px);
  border-bottom: 1px solid #e5e7eb;
  margin-top: 0;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.nav-link {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #7dd3fc;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #7dd3fc;
  transition: width 0.2s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  height: 600px;
  position: relative;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: url('./img/hero.jpg');
  background-size: cover;
  background-position: center;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('https://placehold.co/1200x500/e0f2fe/1e40af?text=Стоматологическая+Клиника');
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-content {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 2;
  padding: 0 24px;
}

.hero-slogan {
  color: white;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  max-width: 800px;
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 60px;
}

/* Happy Patients */
.patients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 40px;
}

.patient-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.patient-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.patient-image {
  width: 100%;
  height: 450px;
  overflow: hidden;
  object-fit: cover;
  background-color: #e0f2fe;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #7dd3fc;
}

.patient-info {
  padding: 20px;
  background: white;
}

.patient-name {
  font-weight: 600;
  margin-bottom: 8px;
}

.patient-comment {
  color: #6b7280;
  font-size: 14px;
}

/* Calculator */
.calculator {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border-radius: 16px;
  padding: 40px;
  max-width: 600px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.calculator-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
  color: #1e40af;
}

.calculator-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.calculator-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.calculator-label {
  font-weight: 500;
}

.calculator-input {
  width: 80px;
  padding: 8px 12px;
  border: 2px solid #7dd3fc;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
}

.calculator-result {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #7dd3fc;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #bfdbfe;
}

/* 4 Days Process */
.timeline {
  display: flex;
  justify-content: space-between;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(to right, #7dd3fc, #38bdf8);
  z-index: 1;
}

.timeline-item {
  text-align: center;
  position: relative;
  z-index: 2;
  width: 22%;
}

.timeline-day {
  width: 80px;
  height: 80px;
  background: #7dd3fc;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(125, 211, 252, 0.4);
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #1f2937;
}

.timeline-desc {
  color: #6b7280;
  font-size: 14px;
}

/* Video Reviews */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  aspect-ratio: 16/9;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(45deg, #e0f2fe, #bfdbfe);
}

.play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #7dd3fc;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.video-title {
  margin-top: 12px;
  font-weight: 600;
  text-align: center;
}

/* Slogan Section */
.slogan-section {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}

.slogan-text {
  font-size: 32px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 24px;
  line-height: 1.3;
}

.slogan-desc {
  font-size: 18px;
  color: #374151;
  max-width: 800px;
  margin: 0 auto;
}

/* Doctor Section */
.doctor-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.doctor-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

.doctor-text p {
  margin-bottom: 16px;
  color: #4b5563;
}

.doctor-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #374151;
}

.doctor-social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}

.social-button {
  background: #7dd3fc;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-button:hover {
  background: #38bdf8;
}

.doctor-image {
  width: 100%;
  height: 400px;
  overflow: hidden;
  object-fit: cover;
  background: linear-gradient(45deg, #e0f2fe, #bfdbfe);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  color: #7dd3fc;
}

/* Certificates */
.certificates-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.certificates-text h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #1f2937;
}

.certificates-text p {
  margin-bottom: 16px;
  color: #4b5563;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.certificate-item {
   width: 100%;
   max-width: 350px;
   height: 100%;
   max-height: 450px;
   background: white;
   border-radius: 16px;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
   overflow: hidden;
   display: flex;
   justify-content: center;
   align-items: center;
   position: relative;
}

.certificate-item::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(45deg, rgba(255,255,255,0.1), rgba(255,255,255,0.1));
   z-index: 0;
}

.certificate-item img {
   width: 100%;
   height: 100%;
   object-fit: contain;
   object-position: center;
   display: block;
   z-index: 1;
   transition: transform 0.3s ease;
}
        
.certificate-item:hover img {
   transform: scale(1.02);
}

/* FAQ Section */
.faq-section {
  background: #f8fafc;
  position: relative;
}

.faq-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
  align-items: start;
}

.faq-item {
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 20px;
  background: #f8fafc;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: white;
}

.faq-answer.active {
  padding: 20px;
  max-height: 500px;
}

.faq-toggle {
  transition: transform 0.3s ease;
}

.faq-toggle.active {
  transform: rotate(180deg);
}

/* Sticky Consultation Widget */
.consultation-widget {
  position: sticky;
  top: 100px;
  background: white;
  border: 2px solid #7dd3fc;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.widget-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 16px;
  text-align: center;
}

.widget-subtitle {
  color: #4b5563;
  font-size: 14px;
  margin-bottom: 24px;
  text-align: center;
}

.widget-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  font-weight: 500;
  color: #374151;
  font-size: 14px;
}

.form-input {
  padding: 12px 16px;
  border: 2px solid #bfdbfe;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #7dd3fc;
}

.consult-button {
  background: #7dd3fc;
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s ease;
  margin-top: 8px;
}

.consult-button:hover {
  background: #38bdf8;
}

.consent-text {
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  margin-top: 12px;
}

/* Footer Styles */
footer {
  background-color: #f9fafb;
  border-top: 1px solid #e5e7eb;
  padding: 48px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 16px;
}

.footer-section p,
.footer-section a {
  color: #4b5563;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 8px;
  display: block;
}

.footer-section a:hover {
  color: #7dd3fc;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav a {
  font-size: 14px;
  padding: 4px 8px;
}

.copyright {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
  font-size: 14px;
}

.highlight {
  font-size: 20px;
  font-weight: 700;
  color: #1f2937;
  text-align: center;
  padding: 24px 8px;
  
}

.about-text {
  padding-bottom: 24px;
}

/* Responsive Design */
@media (max-width: 992px) {
  .faq-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .consultation-widget {
    position: static;
    top: auto;
  }
}


/* Галерея */
.gallery {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 20px 0;
  scrollbar-width: none;
  /* скрыть скроллбар в Firefox */
  -ms-overflow-style: none;
  /* скрыть скроллбар в IE/Edge */
}

.gallery::-webkit-scrollbar {
  display: none;
  /* скрыть скроллбар в Chrome/Safari */
}

.gallery-card {

}

.gallery-card: hover {
 

}


.gallery-item {
  min-width: 200px;
  height: 150px;
  border-radius: 25px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  background-color: rgba(0, 0, 0, 0.5);
  background-blend-mode: overlay;
}

.gallery-item: hover {
  transform: translateY(-5px);
  }

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Модальное окно */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 25px;
  overflow: hidden;
}

/* Кнопка закрытия */
.close-btn {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border-color: #1e40af;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

/* Кнопки навигации */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
}

.nav-btn.prev {
  left: 30px;
}

.nav-btn.next {
  right: 30px;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}