@font-face {
  font-family: Montserrat;
  src: url("/fonts/Montserrat.ttf");
}

@font-face {
  font-family: MontserratBold;
  src: url("/fonts/Montserrat-Bold.ttf");
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: Montserrat, sans-serif;
  min-width: 240px;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease, border-color 0.3s ease;
}

/* Header Styles */
#main-header {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 990;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(255, 255, 255, 0.95) 80%,
    rgba(255, 255, 255, 0.2) 100%
  );
  padding: 20px 15px;
  box-sizing: border-box;
  transition: none;
}

#main-header-logo {
  font-size: 16px;
  color: #065fd4;
  display: flex;
  align-items: center;
  flex-shrink: 1;
  min-width: 0;
  flex-grow: 0;
}

#main-header-logo img {
  height: 50px;
  flex-shrink: 0;
}

#main-header-logo-text {
  margin-left: 10px;
  font-size: 16px;
  line-height: normal;
  color: #034aa0;
  width: 310px;
}

#main-header-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  justify-content: center;
}

#main-header-menu a.menu-item {
  font-size: 16px;
  font-family: MontserratBold, sans-serif;
  color: #065fd4;
  padding: 5px 10px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.3s ease, border-color 0.3s ease;
}

#main-header-menu a.menu-item:hover,
#main-header-menu a.menu-item.active {
  color: #065fd4;
  border-bottom: 2px solid #065fd4;
}

/* Burger Menu */
#burger-menu-toggle {
  display: none;
}

#burger-menu-button {
  display: none;
  background: none;
  border: none;
  padding: 5px;
  cursor: pointer;
  width: 40px;
  height: 35px;
  position: relative;
  flex-shrink: 0;
  z-index: 1001;
}

/* Оверлей для затемнения (десктоп - скрыт) */
#menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.35s ease-in-out;
}

#burger-menu-button span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #065fd4;
  margin: 5px auto;
  transition: all 0.3s ease-in-out;
  border-radius: 1px;
}

#burger-menu-toggle:checked ~ #burger-menu-button span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

#burger-menu-toggle:checked ~ #burger-menu-button span:nth-child(2) {
  opacity: 0;
}

#burger-menu-toggle:checked ~ #burger-menu-button span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Main Content */
#main {
  background-image: url("/images/background_600x400.jpg");
  background-repeat: no-repeat;
  background-position: center 0px;
  background-size: cover;
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  padding-top: 90px;
}

#main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 60px 20px;
  width: 100%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#main-content {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

#main-content-1 {
  max-width: 730px;
  text-align: start;
  margin: 0 auto;
}

.main-hero-h1 {
  font-size: 4rem;
  color: #1e88e5;
  font-family: MontserratBold, sans-serif;
  line-height: 1.2;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

.main-hero-h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #1e88e5;
  margin-bottom: 1.5rem;
  font-family: Montserrat, sans-serif;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

#main-title {
  font-size: 50px;
  font-family: MontserratBold, sans-serif;
  color: #1e88e5;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.1);
}

#main-item {
  margin-top: 20px;
  font-size: 20px;
  margin-bottom: 20px;
  color: #333;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: Montserrat, sans-serif;
}

#main-action {
  background-color: #1e88e5;
  color: #fff;
  margin-bottom: 0;
  margin-top: 20px;
}

#main-action img {
  margin-left: 8px;
  vertical-align: middle;
  width: 16px;
  height: 16px;
  display: inline-block;
}

#main-action:hover {
  background-color: #2196f3;
  transform: translateY(-2px);
}

/* Section Styles */
.section-padding {
  padding: 60px 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
  width: 100%;
}

.section-title {
  font-size: 2.2rem;
  font-family: MontserratBold, sans-serif;
  color: #1e88e5;
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

.bg-light-blue {
  background-color: #bbdefb;
}

/* About Us */
.about-us {
  position: relative;
}

.about-us h2 {
  color: #333;
}

.about-us p {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  color: #555;
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.feature-item .icon-wrapper {
  background-color: #fff;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.feature-item .icon-wrapper img {
  height: 40px;
}

.feature-item h3 {
  color: #0d47a1;
  font-size: 1.1rem;
  font-family: MontserratBold, sans-serif;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 100%;
  box-sizing: border-box;
}

.blog-grid {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center top;
}

.service-card p {
  padding: 15px;
  font-weight: 500;
  color: #333;
  margin-bottom: 0;
  font-size: 1rem;
  font-family: MontserratBold, sans-serif;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
  box-sizing: border-box;
}

.testimonial-card {
  background-color: #fff;
  padding: 30px 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.testimonial-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1.2rem;
  border: 4px solid #bbdefb;
}

.testimonial-card h3 {
  color: #1e88e5;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  font-family: MontserratBold, sans-serif;
}

.testimonial-card p {
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Popup Window */
.popup-window {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 40, 60, 0.6);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease-out;
  overflow-y: auto;
  padding: 20px;
}

.popup-window.show {
  display: flex;
  opacity: 1;
}

.popup-content {
  background: linear-gradient(145deg, #fff 0%, #f0f4f8 100%);
  color: #334155;
  padding: 35px 40px;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.03);
  font-family: Montserrat, sans-serif;
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    opacity 0.3s ease-out;
}

.popup-window.show .popup-content {
  transform: scale(1);
  opacity: 1;
}

.popup-content h2 {
  color: #1e88e5;
  font-family: MontserratBold, sans-serif;
  font-size: 2rem;
  margin-bottom: 25px;
  text-align: center;
}

.close-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #e2e8f0;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.3s ease;
}

.close-popup:hover {
  background-color: #cbd5e1;
  color: #1e88e5;
  transform: rotate(90deg) scale(1.1);
}

/* Form Styles */
.form-group {
  margin-bottom: 20px;
  position: relative;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 1rem;
  font-family: Montserrat, sans-serif;
  color: #334155;
  background-color: #f8fafc;
  transition: all 0.3s ease;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1e88e5;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(30, 136, 229, 0.2),
    inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%2394a3b8" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"></polyline></svg>');
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 18px;
  padding-right: 45px;
  cursor: pointer;
}

.form-group select option[value=""] {
  color: #94a3b8;
}

.appointment-form .btn {
  display: block;
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: MontserratBold, sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
  background-color: #1e88e5;
  color: #fff;
  text-align: center;
  margin-top: 10px;
  box-shadow: 0 4px 10px rgba(30, 136, 229, 0.2);
}

.appointment-form .btn:hover {
  background-color: #157acc;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(30, 136, 229, 0.3);
}

.appointment-form .btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(30, 136, 229, 0.2);
}

.error-message {
  color: #d32f2f;
  font-size: 0.85em;
  display: block;
  margin-top: 4px;
}



/* ===== СЕКЦИЯ "НАШИ ВРАЧИ" ===== */

.our-doctors {
    background-color: #fff;
}

.doctors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 40px;
    width: 100%;
    box-sizing: border-box;
}

.doctor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.doctor-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.doctor-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.doctor-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.3s ease;
}

.doctor-card:hover .doctor-image img {
    transform: scale(1.05);
}

.doctor-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #1e88e5 0%, #1976d2 100%);
    color: #fff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    font-family: MontserratBold, sans-serif;
    box-shadow: 0 2px 8px rgba(30, 136, 229, 0.3);
}

.doctor-info {
    padding: 20px 20px 15px;
    flex-grow: 1;
}

.doctor-name {
    font-size: 18px;
    font-family: MontserratBold, sans-serif;
    color: #1e88e5;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.doctor-specialty {
    font-size: 15px;
    color: #666;
    margin: 0 0 15px 0;
    line-height: 1.4;
}

.doctor-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.stars {
    color: #ffa726;
    font-size: 16px;
    letter-spacing: 2px;
}

.rating-text {
    font-size: 14px;
    color: #666;
}

.doctor-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.detail-label {
    color: #888;
}

.detail-value {
    color: #333;
    font-weight: 600;
    font-family: MontserratBold, sans-serif;
}

.doctor-btn {
    margin: 0 20px 20px;
    background-color: #1e88e5;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-align: center;
    font-family: MontserratBold, sans-serif;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: calc(100% - 40px);
}

.doctor-btn:hover {
    background-color: #1976d2;
    transform: translateY(-2px);
}

.doctors-footer {
    text-align: center;
}

.btn-outline {
    background-color: transparent;
    color: #1e88e5;
    border: 2px solid #1e88e5;
    padding: 12px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-family: MontserratBold, sans-serif;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #1e88e5;
    color: #fff;
    transform: translateY(-2px);
}


.doctor-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 400px;
}

.doctor-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

/*
.doctor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
*/
/* ВАРИАНТ 2: Фиксированные пропорции (ЛУЧШЕ) */
.doctor-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 3 / 4; /* Пропорции 3:4 (портрет) */
    height: auto; /* Убираем фиксированную высоту */
}

.doctor-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%; /* Чуть ниже головы */
}

/* Для широких карточек */
@media (min-width: 1200px) {
    .doctor-card {
        aspect-ratio: 4 / 5; /* Чуть шире на больших экранах */
    }
}

@media (max-width: 768px) {
    .doctor-card {
        min-height: 400px;
        aspect-ratio: 3 / 4;
    }
    
    .doctor-card-image {
        object-position: 50% 25%;
    }
}



.doctor-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.4) 100%);
    padding: 20px 15px;
    color: #fff;
}

.doctor-card-name {
    font-family: MontserratBold, sans-serif;
    font-size: 1.1rem;
    margin: 0 0 5px 0;
    color: #fff;
}

.doctor-card-spec {
    color: #64b5f6;
    font-size: 0.95rem;
    margin: 0 0 8px 0;
}

.doctor-card-price {
    font-weight: bold;
    font-size: 1.05rem;
    margin: 0;
    color: #fff;
}

.doctor-card-desc {
    font-size: 0.85rem;
    margin: 8px 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s, max-height 0.3s;
}

.doctor-card:hover .doctor-card-desc {
    opacity: 1;
    max-height: 100px;
}

/* ===== PARTNERS SECTION ===== */
.partners-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.partners-category {
    margin-bottom: 60px;
}

.partners-category:last-of-type {
    margin-bottom: 50px;
}

.partners-category-title {
    font-family: MontserratBold, sans-serif;
    font-size: 24px;
    color: #1e88e5;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.partners-category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #1e88e5, #2196f3);
    border-radius: 2px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
    margin-bottom: 20px;
    width: 100%;
    box-sizing: border-box;
}

.partner-card {
    background: white;
    border-radius: 12px;
    padding: 25px 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 140px;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.partner-logo {
    width: 100%;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.partner-card:hover .partner-logo img {
    filter: grayscale(0%);
    opacity: 1;
}

.partner-name {
    font-size: 13px;
    color: #495057;
    margin: 0;
    font-family: MontserratBold, sans-serif;
}

/* Статистика партнёров */
.partners-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 50px 0;
    padding: 40px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
}

.stat-box {
    text-align: center;
    padding: 20px;
    border-right: 1px solid #e9ecef;
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-family: MontserratBold, sans-serif;
    font-size: 42px;
    color: #1e88e5;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
}

/* CTA блок */
.partners-cta {
    text-align: center;
    background: linear-gradient(135deg, #1e88e5 0%, #2196f3 100%);
    padding: 50px 40px;
    border-radius: 20px;
    color: white;
    box-shadow: 0 8px 24px rgba(30, 136, 229, 0.3);
}

.partners-cta h3 {
    font-family: MontserratBold, sans-serif;
    font-size: 28px;
    margin: 0 0 15px 0;
}

.partners-cta > p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.95;
}

.partners-cta .btn {
    background-color: white;
    color: #1e88e5;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: MontserratBold, sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.partners-cta .btn:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.partners-contact {
    margin-top: 20px;
    font-size: 15px;
    opacity: 0.9;
}

.partners-contact a {
    color: white;
    text-decoration: none;
    font-family: MontserratBold, sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    transition: border-color 0.3s ease;
}

.partners-contact a:hover {
    border-bottom-color: white;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1200px) {
    .partners-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

@media (max-width: 992px) {
    .partners-category-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .partners-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
        padding: 30px;
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 15px;
    }
    
    .stat-box:nth-child(2n) {
        border-right: none;
    }
    
    .stat-box:nth-last-child(-n+2) {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 38px;
    }
}

@media (max-width: 768px) {
    .partners-category {
        margin-bottom: 45px;
    }
    
    .partners-category-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .partner-card {
        padding: 20px 12px;
        min-height: 120px;
    }
    
    .partner-logo {
        height: 60px;
        margin-bottom: 10px;
    }
    
    .partner-name {
        font-size: 12px;
    }
    
    .partners-stats {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
        margin: 40px 0;
    }
    
    .stat-box {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
        padding: 12px;
    }
    
    .stat-box:last-child {
        border-bottom: none;
    }
    
    .stat-number {
        font-size: 36px;
    }
    
    .stat-label {
        font-size: 13px;
    }
    
    .partners-cta {
        padding: 35px 25px;
    }
    
    .partners-cta h3 {
        font-size: 24px;
    }
    
    .partners-cta > p {
        font-size: 15px;
        margin-bottom: 20px;
    }
    
    .partners-cta .btn {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .partners-contact {
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .partners-category-title {
        font-size: 18px;
    }
    
    .partners-category-title::after {
        width: 50px;
        height: 2px;
    }
    
    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .partner-card {
        padding: 18px 10px;
        min-height: 110px;
    }
    
    .partner-logo {
        height: 50px;
    }
    
    .partner-name {
        font-size: 11px;
    }
    
    .partners-stats {
        padding: 20px 15px;
        margin: 30px 0;
    }
    
    .stat-number {
        font-size: 32px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .partners-cta {
        padding: 30px 20px;
        border-radius: 16px;
    }
    
    .partners-cta h3 {
        font-size: 22px;
    }
    
    .partners-cta > p {
        font-size: 14px;
    }
    
    .partners-cta .btn {
        padding: 11px 25px;
        font-size: 14px;
    }
    
    .partners-contact {
        font-size: 13px;
        margin-top: 15px;
    }
}

/* Placeholder для логотипов (если нет изображений) */
.partner-logo:empty::before {
    content: '';
    width: 80px;
    height: 60px;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 8px;
    display: block;
}


@media (max-width: 768px) {
    .doctor-card {
        height: 350px;
    }
}


/* ===== FAQ SECTION ===== */
.faq-section {
    background-color: #f8f9fa;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto 50px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    text-align: left;
    font-family: MontserratBold, sans-serif;
    font-size: 16px;
    color: #212529;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-item.active .faq-question {
    background-color: #e3f2fd;
    color: #1e88e5;
}

.faq-question span:first-child {
    flex: 1;
    padding-right: 20px;
}

.faq-icon {
    font-size: 28px;
    font-weight: 300;
    color: #1e88e5;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(30, 136, 229, 0.1);
}

.faq-item.active .faq-icon {
    transform: rotate(0deg);
    background-color: #1e88e5;
    color: white;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer > *:first-child {
    padding-top: 0;
    margin-top: 0;
}

.faq-answer > *:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
}

.faq-item.active .faq-answer {
    padding: 0 25px 20px 25px;
}

.faq-answer p {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.faq-answer ul {
    margin: 12px 0;
    padding-left: 20px;
}

.faq-answer li {
    color: #495057;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 8px;
}

.faq-answer strong {
    color: #212529;
    font-family: MontserratBold, sans-serif;
}

.faq-answer a {
    color: #1e88e5;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-answer a:hover {
    border-bottom-color: #1e88e5;
}

/* CTA блок */
.faq-contact {
    text-align: center;
    background: white;
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    max-width: 600px;
    margin: 0 auto;
}

.faq-contact p {
    font-size: 18px;
    color: #212529;
    margin-bottom: 20px;
}

.faq-contact .btn {
    background-color: #1e88e5;
    color: white;
    padding: 14px 40px;
    font-size: 16px;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    font-family: MontserratBold, sans-serif;
    transition: all 0.3s ease;
    margin-bottom: 15px;
}

.faq-contact .btn:hover {
    background-color: #2196f3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(33, 150, 243, 0.3);
}

.faq-phone {
    font-size: 16px;
    color: #6c757d;
    margin: 15px 0 0 0;
}

.faq-phone a {
    color: #1e88e5;
    text-decoration: none;
    font-family: MontserratBold, sans-serif;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.faq-phone a:hover {
    border-bottom-color: #1e88e5;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .faq-container {
        margin-bottom: 30px;
    }
    
    .faq-item {
        margin-bottom: 12px;
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
    }
    
    .faq-question span:first-child {
        padding-right: 15px;
    }
    
    .faq-icon {
        font-size: 24px;
        width: 28px;
        height: 28px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 16px 18px;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 14px;
    }
    
    .faq-contact {
        padding: 30px 20px;
    }
    
    .faq-contact p {
        font-size: 16px;
        margin-bottom: 15px;
    }
    
    .faq-contact .btn {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .faq-phone {
        font-size: 15px;
    }
}

@media (max-width: 576px) {
    .faq-question {
        padding: 14px 15px;
        font-size: 14px;
    }
    
    .faq-icon {
        font-size: 22px;
        width: 26px;
        height: 26px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 15px 14px 15px;
    }
    
    .faq-answer p,
    .faq-answer li {
        font-size: 13px;
    }
    
    .faq-answer ul {
        padding-left: 18px;
    }
    
    .faq-contact {
        padding: 25px 15px;
    }
    
    .faq-contact p {
        font-size: 15px;
    }
    
    .faq-contact .btn {
        padding: 11px 25px;
        font-size: 14px;
    }
    
    .faq-phone {
        font-size: 14px;
    }
}

/* ===== АДАПТИВНОСТЬ ===== */

@media (max-width: 1200px) {
    .doctors-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .doctors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    .doctor-image {
        height: 260px;
    }
}

@media (max-width: 768px) {
    .doctors-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 30px;
    }
    
    .doctor-image {
        height: 300px;
    }
    
    .doctor-info {
        padding: 18px 18px 12px;
    }
    
    .doctor-name {
        font-size: 17px;
    }
    
    .doctor-specialty {
        font-size: 14px;
    }
    
    .doctor-btn {
        margin: 0 18px 18px;
        width: calc(100% - 36px);
        padding: 11px 18px;
        font-size: 14px;
    }
}

@media (max-width: 576px) {
    .doctors-grid {
        max-width: 100%;
        padding: 0 10px;
    }
    
    .doctor-image {
        height: 280px;
    }
    
    .doctor-badge {
        top: 12px;
        right: 12px;
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .btn-outline {
        padding: 10px 30px;
        font-size: 14px;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
  #main-header-menu a.menu-item {
    font-size: 14px;
    padding: 5px 10px;
  }
  
  #main-content-1 {
    text-align: center;
    max-width: 600px;
  }
  
  .main-hero-h1 {
    font-size: 3rem;
  }
  
  .main-hero-h2 {
    font-size: 1.5rem;
  }
  
  #main-title {
    font-size: 2.5rem;
  }
  
  #main-item {
    font-size: 1.1rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .services-grid,
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .social-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #main-header {
    padding: 20px 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
    gap: 0;
  }
  
  #main-header-logo {
    max-width: calc(100% - 50px);
  }
  
  #main-header-logo img {
    height: 40px;
  }
  
  #main-header-logo-text {
    font-size: 12px;
    margin-left: 8px;
    flex-grow: 1;
    flex-shrink: 1;
    min-width: 0;
    line-height: 1.3;
    max-width: calc(100% - 50px);
  }
  
  #burger-menu-button {
    display: block;
    order: 3;
    margin-right: 10px;
  }
  
  /* Показываем оверлей на мобильных */
  #menu-overlay {
    display: block;
  }

  #burger-menu-toggle:checked ~ #menu-overlay {
    opacity: 1;
  }

  #main-header-menu {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.2);
    padding-left: 25px;
    padding-right: 25px;
    padding-top: 80px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: right 0.35s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
    justify-content: flex-start;
    gap: 0;
  }

  /* Заголовок "Меню" в мобильной версии */
  #main-header-menu::before {
    content: 'Меню';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px 25px;
    font-family: MontserratBold, sans-serif;
    font-size: 20px;
    color: #1e88e5;
    border-bottom: 2px solid #e3f2fd;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    z-index: 1;
  }

  #burger-menu-toggle:checked ~ #main-header-menu {
    right: 0;
    z-index: 1002;
  }
  
  #main-header-menu a.menu-item {
    font-size: 18px;
    padding: 16px 0;
    color: #333;
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
    background-color: transparent;
    text-decoration: none;
    font-family: MontserratBold, sans-serif;
    transition: color 0.3s ease, padding-left 0.3s ease;
  }

  #main-header-menu a.menu-item:hover,
  #main-header-menu a.menu-item.active {
    color: #1e88e5;
    background-color: transparent;
    border-bottom-color: #1e88e5;
    padding-left: 10px;
  }

  #main-header-menu a.menu-item:last-child {
    border-bottom: none;
  }
  
  #burger-menu-toggle:checked ~ #burger-menu-button {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1003;
  }
  
  #main {
    padding-top: 80px;
  }
  
  #main-content-1 {
    text-align: center;
    max-width: 90%;
  }
  
  .main-hero-h1 {
    font-size: 2rem;
  }
  
  .main-hero-h2 {
    font-size: 1.2rem;
  }
  
  #main-title {
    font-size: 1.8rem;
  }
  
  #main-item {
    font-size: 0.9rem;
  }
  
  #main-action {
    padding: 10px 25px;
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 30px 0;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .section-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }
  
  .features-grid,
  .services-grid,
  .blog-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .testimonials-grid {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .testimonial-card {
    padding: 20px 15px;
  }
  
  .testimonial-card img {
    width: 80px;
    height: 80px;
  }
  
  .testimonial-card h3 {
    font-size: 1.1rem;
  }
  
  .testimonial-card p {
    font-size: 0.9rem;
  }
  
  .social-links img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 576px) {
  .popup-content {
    padding: 25px 20px;
  }
  
  .popup-content h2 {
    font-size: 1.6rem;
  }
  
  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group select,
  .form-group textarea {
    padding: 12px 15px;
    font-size: 0.95rem;
  }
  
  .form-group select {
    padding-right: 40px;
    background-position: right 12px center;
  }
  
  .appointment-form .btn {
    padding: 12px;
    font-size: 1rem;
  }
}

@media (max-width: 232px) {
  #main-header {
    padding: 10px 10px;
    gap: 5px;
  }
  
  #main-header-logo img {
    height: 30px;
  }
  
  #main-header-logo-text {
    font-size: 10px;
    margin-left: 5px;
  }
  
  #main-header-logo {
    max-width: calc(100% - 35px);
  }
  
  #burger-menu-button {
    width: 30px;
    height: 25px;
    margin-right: 5px;
  }
  
  #burger-menu-button span {
    width: 20px;
    margin: 3px auto;
  }
  
  #burger-menu-toggle:checked ~ #burger-menu-button span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  
  #burger-menu-toggle:checked ~ #burger-menu-button span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  
  #main {
    padding-top: 50px;
  }
  
  #burger-menu-toggle:checked ~ #main-header-menu {
    padding-top: 50px;
  }
  
  #main-container {
    padding: 0 5px 40px 5px;
  }
  
  .main-hero-h1 {
    font-size: 1.5rem;
  }
  
  .main-hero-h2 {
    font-size: 1rem;
  }
  
  #main-item {
    font-size: 0.8rem;
  }
  
  #main-action {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
}
