/* ============================================
   style.css — основные стили сайта
   ============================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green: #05bc81;
  --green-dark: #399c6c;
  --dark: #383838;
  --gray: #f4f4f4;
  --gray-border: #e0e0e0;
  --white: #fff;
  --blue: #0bb9e7;
}

body { font-family: 'Open Sans', Arial, sans-serif; color: var(--dark); background: var(--white); line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.content { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.wrap { display: flex; align-items: center; }

.btn1 { display: inline-block; background: linear-gradient(267deg, var(--green), var(--green-dark) 27%, var(--green)); color: #fff !important; padding: 14px 28px; border-radius: 30px; font-weight: 600; font-size: 16px; cursor: pointer; border: none; transition: transform .2s, box-shadow .2s; }
.btn1:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(5,188,129,.4); }

.btn-second1 { display: inline-block; background: transparent; color: var(--green) !important; padding: 13px 26px; border-radius: 30px; font-weight: 600; font-size: 16px; border: 2px solid var(--green); cursor: pointer; transition: all .2s; }
.btn-second1:hover { background: var(--green); color: #fff !important; }

.section-title { font-family: 'Merriweather', serif; font-size: 30px; font-weight: 700; color: var(--dark); margin-bottom: 15px; text-align: center; }

/* Шапка */
.header { background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 100; }
.header__top { padding: 12px 0; border-bottom: 1px solid var(--gray-border); }
.header__top .content { display: flex; justify-content: space-between; align-items: center; }
.header__logo { display: flex; align-items: center; gap: 12px; }
.header__logo img { width: 50px; height: 50px; object-fit: contain; }
.header__logo h1 { font-family: 'Merriweather', serif; font-size: 20px; color: var(--blue); }
.header__logo p { font-size: 12px; color: #888; }
.header__contacts { display: flex; align-items: center; gap: 24px; }
.header__phone a { font-size: 20px; font-weight: 700; color: var(--dark); }
.header__phone p { font-size: 12px; color: #888; }
.header__social { display: flex; gap: 10px; }
.header__social img { width: 32px; height: 32px; }
.header__nav { padding: 10px 0; }
.header__nav .content { display: flex; gap: 30px; align-items: center; }
.header__nav a { font-size: 15px; font-weight: 600; color: var(--dark); padding: 6px 0; position: relative; }
.header__nav a:hover, .header__nav a.active { color: var(--green); }
.header__nav a.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: var(--green); border-radius: 2px; }
.header__cta { margin-left: auto; }

/* Первый экран */
.hero { background: linear-gradient(135deg, #f0faf6, #e8f5ef); padding: 50px 0; overflow: hidden; }
.hero .content { display: flex; align-items: center; gap: 40px; }
.hero__offer { flex: 1; }
.hero__title { font-family: 'Merriweather', serif; font-size: 38px; font-weight: 700; line-height: 1.2; margin-bottom: 20px; color: var(--dark); }
.hero__title span { color: var(--green); }
.hero__intro { font-size: 18px; color: #555; margin-bottom: 30px; }
.hero__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__img { flex: 1; text-align: center; }
.hero__img img { max-width: 500px; margin: 0 auto; border-radius: 20px; }
.hero__achievements { display: flex; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.hero__achievement { flex: 1; min-width: 200px; }
.hero__achievement h5 { font-size: 16px; font-weight: 700; margin-bottom: 6px; color: var(--dark); }
.hero__achievement p { font-size: 14px; color: #666; }

/* О нас */
.about { padding: 60px 0; background: #fff; }
.about__intro { max-width: 800px; margin: 0 auto 30px; text-align: center; font-size: 18px; color: #555; }
.about__cards { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; margin-top: 40px; }
.about__card { flex: 1; min-width: 250px; max-width: 350px; background: var(--gray); border-radius: 16px; padding: 30px; text-align: center; }
.about__card__icon { width: 60px; height: 60px; margin: 0 auto 15px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; }
.about__card__icon--lg { font-size: 28px; }
.about__card__icon--md { font-size: 24px; }
.about__card__title { font-family: 'Merriweather', serif; font-size: 18px; margin-bottom: 8px; }
.about__card__desc { font-size: 14px; color: #666; }

/* Преимущества */
.advantages { padding: 60px 0; background: var(--gray); }
.advantages__grid { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.advantages__row { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.advantage { flex: 1; min-width: 280px; display: flex; gap: 16px; align-items: flex-start; }
.advantage__icon { min-width: 40px; width: 40px; height: 40px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 20px; }
.advantage__title { font-size: 17px; margin-bottom: 6px; }
.advantage__desc { font-size: 15px; color: #666; }

/* Врачи */
.doctors { padding: 60px 0; background: #fff; }
.doctors__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 40px; }
.doctors__grid { display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.doctor-card { flex: 1; min-width: 300px; max-width: 380px; background: var(--gray); border-radius: 20px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,.07); }
.doctor-card img { width: 100%; height: 300px; object-fit: cover; }
.doctor-card__body { padding: 24px; }
.doctor-card__name { font-family: 'Merriweather', serif; font-size: 20px; color: var(--dark); margin-bottom: 8px; }
.doctor-card__spec { font-size: 15px; color: var(--green); font-weight: 600; margin-bottom: 6px; }
.doctor-card__exp { font-size: 14px; color: #666; }

/* Галерея */
.gallery { padding: 60px 0; background: var(--gray); }
.gallery__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 40px; }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery__item { width: 100%; height: 250px; object-fit: cover; border-radius: 16px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.gallery__btn-wrap { text-align: center; margin-top: 30px; }

/* Прайс (краткий блок) */
.price-preview { padding: 60px 0; background: #fff; }
.price-preview__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 30px; }

/* Форма записи */
.call-form { padding: 60px 0; background: linear-gradient(135deg, #f0faf6, #e8f5ef); }
.call-form__grid { display: flex; gap: 40px; flex-wrap: wrap; align-items: center; justify-content: center; }
.call-form__offer { flex: 1; min-width: 300px; max-width: 500px; }
.call-form__title { font-family: 'Merriweather', serif; font-size: 28px; color: var(--dark); margin-bottom: 15px; }
.call-form__subtitle { font-size: 18px; color: #555; margin-bottom: 25px; }
.call-form__form { display: flex; flex-direction: column; gap: 16px; max-width: 450px; }
.call-form__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.call-form__input { width: 100%; padding: 14px 18px; border: 2px solid var(--gray-border); border-radius: 10px; font-size: 16px; font-family: inherit; outline: none; transition: border-color .2s; }
.call-form__checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.call-form__checkbox { margin-top: 4px; }
.call-form__checkbox-text { font-size: 13px; color: #666; }
.call-form__btn { align-self: flex-start; margin-top: 5px; }
.call-form__img-wrap { flex: 1; min-width: 300px; max-width: 450px; text-align: center; }
.call-form__img { width: 100%; border-radius: 20px; box-shadow: 0 8px 25px rgba(0,0,0,.1); }

/* Контакты */
.contacts { padding: 60px 0; background: #fff; }
.contacts__grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.contacts__card-wrap { flex: 1; min-width: 300px; max-width: 500px; }
.contacts__card { background: var(--gray); border-radius: 20px; padding: 35px; }
.contacts__card-title { font-family: 'Merriweather', serif; font-size: 22px; color: var(--dark); margin-bottom: 20px; }
.contacts__list { display: flex; flex-direction: column; gap: 18px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; }
.contact-item__icon { min-width: 36px; width: 36px; height: 36px; background: var(--green); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; font-size: 16px; }
.contact-item__label { font-size: 14px; color: #888; margin-bottom: 3px; }
.contact-item__value { font-size: 16px; font-weight: 600; }
.contact-item__value a { color: var(--dark); }
.contacts__legal { margin-top: 25px; padding-top: 20px; border-top: 1px solid var(--gray-border); font-size: 13px; color: #888; }
.contacts__legal p { margin-top: 5px; }
.contacts__map-wrap { flex: 1; min-width: 300px; max-width: 600px; }
.contacts__map { border-radius: 20px; overflow: hidden; box-shadow: 0 4px 20px rgba(0,0,0,.1); height: 500px; }
.contacts__map iframe { width: 100%; height: 100%; border: 0; }

/* Подвал */
.footer { background: #1a1a1a; color: #fff; padding: 50px 0 0; }
.footer__grid { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; margin-bottom: 40px; }
.footer__col { flex: 1; min-width: 150px; }
.footer__col--logo { min-width: 200px; }
.footer__logo-link { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }
.footer__logo-link img { width: 45px; height: 45px; }
.footer__logo-name { color: #fff; font-family: 'Merriweather', serif; font-size: 18px; }
.footer__logo-tagline { font-size: 12px; color: #aaa; }
.footer__logo-desc { font-size: 14px; color: #999; max-width: 250px; }
.footer__col-title { font-size: 16px; font-weight: 700; margin-bottom: 15px; color: var(--green); }
.footer__col-links { display: flex; flex-direction: column; gap: 10px; }
.footer__col-links a { font-size: 14px; color: #bbb; }
.footer__bottom { border-top: 1px solid #333; padding: 25px 0; }
.footer__bottom-content { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; align-items: center; }
.footer__copyright { font-size: 13px; color: #777; }
.footer__disclaimer { font-size: 12px; color: #555; }

/* Cookie-баннер */
.cookie-banner { position: fixed; bottom: -100px; left: 0; right: 0; background: #1a1a1a; color: #fff; padding: 18px 0; z-index: 998; transition: bottom .4s ease; }
.cookie-banner.show { bottom: 0; }
.cookie-banner .content { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.cookie-banner p { font-size: 14px; color: #ccc; }
.cookie-banner a { color: var(--green); text-decoration: underline; }
.cookie-banner button { background: var(--green); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.cookie-banner button:hover { background: var(--green-dark); }

/* Адаптив */
@media (max-width: 991px) {
  .hero__title { font-size: 30px; }
  .hero__intro { font-size: 16px; }
  .hero__img img { max-width: 400px; }
  .section-title { font-size: 26px; }
}

@media (max-width: 767px) {
  .section-title { font-size: 22px; }
  .content { padding: 0 15px; }

  .header__top .content { flex-direction: column; gap: 10px; }
  .header__contacts { flex-wrap: wrap; justify-content: center; }
  .header__nav .content { flex-wrap: wrap; justify-content: center; gap: 15px; }
  .header__cta { margin: 10px auto 0; }

  .hero { padding: 30px 0; }
  .hero .content { flex-direction: column; gap: 25px; }
  .hero__title { font-size: 24px; }
  .hero__intro { font-size: 15px; }
  .hero__img { order: -1; }
  .hero__img img { max-width: 280px; }
  .hero__achievements { flex-direction: column; gap: 15px; margin-top: 25px; }
  .hero__achievement { text-align: center; }
  .hero__btns { flex-direction: column; }
  .hero__btns .btn1, .hero__btns .btn-second1 { width: 100%; text-align: center; }

  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .doctors__grid { flex-direction: column; }
  .contacts__grid { flex-direction: column; }
  .call-form__grid { flex-direction: column; }

  .cookie-banner .content { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 575px) {
  .hero__title { font-size: 20px; }
  .hero__intro { font-size: 14px; }
  .hero__img img { max-width: 220px; }
  .section-title { font-size: 20px; }
  .gallery__grid { grid-template-columns: 1fr; }
  .footer__grid { flex-direction: column; gap: 25px; }
}
/* === Шапка: адрес и соцсети === */
.header__info-block {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  margin-left: 30px;
}
.header__info-icon {
  font-size: 22px;
  flex-shrink: 0;
}
.header__info-label {
  font-size: 11px;
  color: #888;
  margin: 0;
}
.header__info-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.header__social-link:hover {
  transform: scale(1.15);
}

.header__top-btn {
  padding: 10px 22px !important;
  font-size: 14px !important;
  white-space: nowrap;
}

@media (max-width: 991px) {
  .header__info-block { display: none; }
}

@media (max-width: 767px) {
  .header__top-btn { display: none; }
  .header__contacts { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .header__phone { text-align: center; }
}

@media (max-width: 575px) {
  .header__social { display: none; }
}
.header__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  transition: transform 0.2s;
}
.header__social-link:hover {
  transform: scale(1.15);
}
/* === Модальное окно === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s;
}
.modal-overlay.is-open {
  display: flex;
  opacity: 1;
}

.modal-box {
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 32px;
  max-width: 440px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 48px rgba(0,0,0,0.25);
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.modal-title {
  font-family: 'Merriweather', serif;
  font-size: 24px;
  color: #383838;
  margin-bottom: 8px;
}
.modal-subtitle {
  font-size: 15px;
  color: #888;
  margin-bottom: 24px;
}

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-field label {
  font-size: 14px;
  font-weight: 600;
  color: #555;
}
.modal-field input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
  box-sizing: border-box;
}
.modal-field input:focus {
  border-color: #05bc81;
}

.modal-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.modal-checkbox-row input {
  margin-top: 4px;
}
.modal-checkbox-row span {
  font-size: 13px;
  color: #666;
}

.modal-submit {
  align-self: stretch;
  width: 100%;
  text-align: center;
  white-space: nowrap;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: #999;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-close:hover {
  color: #000;
}

@media (max-width: 575px) {
  .modal-box { padding: 28px 20px 24px; }
  .modal-title { font-size: 20px; }
}
/* === Страница прайса === */
.prices { padding: 60px 0; background: #fff; }
.prices__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 40px; }
.prices__container { max-width: 900px; margin: 0 auto; }
.prices__loading { text-align: center; color: #888; }
.prices__disclaimer { text-align: center; font-size: 14px; color: #888; margin-top: 20px; }

.prices__card {
  background: var(--gray);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.prices__card-title {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  padding: 20px 24px;
  background: var(--gray);
  border-bottom: 2px solid var(--gray-border);
}
.prices__table {
  width: 100%;
  border-collapse: collapse;
}
.prices__table th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-border);
}
.prices__table td {
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-border);
}
.prices__table tr:last-child td { border-bottom: none; }
.prices__table tr:hover td { background: #eef7f3; }
.prices__num { width: 50px; color: #aaa; }
.prices__name { font-weight: 500; }
.prices__price { text-align: right; font-weight: 700; color: var(--green); white-space: nowrap; }

@media (max-width: 767px) {
  .prices__num { display: none; }
  .prices__table th, .prices__table td { padding: 12px 16px; font-size: 14px; }
}
/* === Страница прайса === */
.prices { padding: 60px 0; background: #fff; }
.prices__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 40px; }
.prices__container { max-width: 900px; margin: 0 auto; }
.prices__loading { text-align: center; color: #888; }
.prices__disclaimer { text-align: center; font-size: 14px; color: #888; margin-top: 20px; }

.prices__card {
  background: var(--gray);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.prices__card-title {
  font-family: 'Merriweather', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  padding: 20px 24px;
  background: var(--gray);
  border-bottom: 2px solid var(--gray-border);
}
.prices__table {
  width: 100%;
  border-collapse: collapse;
}
.prices__table th {
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #888;
  padding: 14px 24px;
  border-bottom: 1px solid var(--gray-border);
}
.prices__table td {
  padding: 14px 24px;
  font-size: 15px;
  border-bottom: 1px solid var(--gray-border);
}
.prices__table tr:last-child td { border-bottom: none; }
.prices__table tr:hover td { background: #eef7f3; }
.prices__num { width: 50px; color: #aaa; }
.prices__name { font-weight: 500; }
.prices__price { text-align: right; font-weight: 700; color: var(--green); white-space: nowrap; }

@media (max-width: 767px) {
  .prices__num { display: none; }
  .prices__table th, .prices__table td { padding: 12px 16px; font-size: 14px; }
}
/* === Страница лицензий === */
.licenses { padding: 60px 0; background: #fff; }
.licenses__intro { text-align: center; font-size: 17px; color: #555; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.licenses__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.licenses__item { width: 100%; height: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); cursor: pointer; transition: transform .2s, box-shadow .2s; }
.licenses__item:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(0,0,0,.15); }

@media (max-width: 767px) {
  .licenses__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
  .licenses__grid { grid-template-columns: 1fr; }
}

/* Лайтбокс для просмотра лицензий */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
  cursor: zoom-out;
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,.5);
}
.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  z-index: 10002;
  line-height: 1;
}
