/* Стили страницы прайс (price.html) */
:root {
  --font-family: "Montserrat", sans-serif;
}

.doctors-section {
  margin-top: 24px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fbf7ed;
  border-radius: 20px;
}

.doctors-card {
  padding: 40px;
}

.doctors-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin-bottom: 32px;
}

.doctors-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.doctor-card {
  display: flex;
  flex-direction: column;
}

.doctor-image-wrapper {
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 20px;
}

.doctor-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.doctor-name {
  margin-bottom: 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 1.2;
}

.doctor-position {
  line-height: 1.2;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.doctors-footer {
  margin-top: 40px;
  text-align: center;
}

.doctors-all-link {
  text-underline-offset: 3px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #464646;
}

@media screen and (max-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (max-width: 768px) {
  .doctors-card {
    padding: 24px;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section.doctors-section {
    margin-top: 20px;
  }

  .doctors-card {
    padding: 20px 32px;
  }

  h2.doctors-title {
    margin-bottom: 40px;
  }

  .doctor-image-wrapper {
    margin-bottom: 10px;
  }

  p.doctor-position {
    font-size: 16px;
  }

  h3.doctor-name {
    margin-bottom: 10px;
  }

  .doctors-grid {
    gap: 20px;
  }

  .gallery-section {
    margin-top: 20px;
  }

  h3.contact-card-title {
    line-height: 120%;
  }
}
@media screen and (max-width: 480px) {
  .doctors-card {
    padding: 24px;
  }

  .doctors-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  section.doctors-section {
    margin-top: 20px;
  }

  .doctors-card {
    padding: 20px 32px;
  }

  h2.doctors-title {
    margin-bottom: 40px;
  }

  .doctor-image-wrapper {
    margin-bottom: 10px;
  }

  p.doctor-position {
    font-size: 16px;
  }

  h3.doctor-name {
    margin-bottom: 10px;
  }

  .doctors-grid {
    gap: 20px;
  }

  .gallery-section {
    margin-top: 20px;
  }

  h3.contact-card-title {
    line-height: 120%;
  }
}

/* Всплывающее окно с формой */
.health-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.health-popup.active {
  display: flex;
  opacity: 1;
}

.health-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.health-popup-content {
  position: relative;
  z-index: 10002;
  max-width: 720px;
  width: 90%;
  max-height: 90vh;
  background: #fbf7ed;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding: 20px 21px;
}

.health-popup-close {
  position: absolute;
  top: 21px;
  right: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  z-index: 10003;
}

.health-popup-close:hover {
  opacity: 0.7;
}

.health-popup-close svg {
  width: 29px;
  height: 29px;
}

.health-popup-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.health-popup-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.health-popup-wrap {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 40px;
  align-items: start;
}

.health-popup-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.health-popup-title {
  line-height: 1.2;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.health-popup-description {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 1.3;
}

.health-popup-image {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.health-popup-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 60px;
}

.health-popup-right {
  display: flex;
  flex-direction: column;
}

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

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

.health-form-label {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 1.2;
}

.health-form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.health-form-input-wrapper p {
  width: 100%;
}

.health-form-flag {
  position: absolute;
  left: 16px;
  z-index: 1;
  display: flex;
  top: 15px;
  align-items: center;
}

.health-form-flag svg {
  width: 24px;
  height: 18px;
}

.health-form-icon {
  position: absolute;
  right: 10px;
  z-index: 1;
  display: flex;
  align-items: center;
}

.health-form-icon img {
  width: 16px;
  height: 16px;
}

.health-form-icon p {
  height: 20px;
}

.health-form-input {
  width: 100%;
  padding: 11.5px;
  padding-left: 48px;
  background: #fff;
  transition: border-color 0.3s ease;
  border-radius: 20px;
  border: none;
}

.health-form-input:focus {
  outline: none;
  border-color: #8a0009;
}

.health-form-input-time {
  padding-right: 48px;
}

.health-popup-btn {
  margin-top: 0;
  padding: 16px 62px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  background: #8a0009;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  width: max-content;
  align-self: flex-end;
  justify-content: center;
  gap: 20px;
  transition: background 0.3s ease;
}

.health-popup-btn:hover {
  background: #6a0007;
}

.health-popup-btn svg {
  width: 21px;
  height: 15px;
}
.health-popup-right input {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

input#health-popup-time {
  padding: 11.5px 10px;
}
.health-form-input-time {
  appearance: none;
  -webkit-appearance: none;
}

.health-form-input-time::-webkit-calendar-picker-indicator {
  opacity: 0;
}

@media screen and (max-width: 768px) {
  .health-popup-content {
    width: 100%;
    padding: 20px 32px;
    max-height: 95vh;
  }

  .health-popup-inner {
    gap: 40px;
  }

  .health-popup-wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .health-popup-title {
    font-size: 25px;
  }

  .health-popup-description {
    font-size: 16px;
  }

  .health-popup-close {
    top: 20px;
    right: 32px;
  }

  .health-form-group {
    gap: 10px;
  }

  button.health-popup-btn {
    align-self: start;
    border-radius: 8px;
  }

  section.doctors-hero {
    padding: 20px 32px;
  }
}

h1.doctors-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 1.3;
}

.doctors-desctiption {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 1.3;
}

article.doctor-card {
  max-width: 387px;
}

/* Стили для таблицы прайс-листа */
.price-table-section {
  margin-top: 24px;
  margin-bottom: 40px;
  max-width: 1162px;
  margin: 19px auto 0;
}

.price-table-wrapper {
  overflow-x: auto;
  overflow-y: auto;
  height: 1645px;
}

.price-table {
  width: 100%;
  font-family: var(--font-family);
  font-size: 16px;
  color: #464646;
  line-height: 1.3;
  border-spacing: 5px;
}

.price-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.price-table th {
  background: rgb(237 237 237);
  border: 1px solid rgba(70, 70, 70, 0.4);
  padding: 14px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  min-height: 50px;
}

.price-table th:first-child {
  width: 50px;
  text-align: center;
  white-space: nowrap;
}

.price-table th:nth-child(3) {
  width: auto;
}

.price-table th:last-child {
  width: 120px;
  text-align: right;
  white-space: nowrap;
}

.price-table td {
  padding: 5px 10px;
  text-align: left;
  line-height: 1.3;
  vertical-align: middle;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
}

.price-table td:first-child {
  text-align: center;
  font-weight: 400;
  white-space: nowrap;
}

.price-table td:last-child {
  white-space: nowrap;
  text-align: center;
}

.price-table tbody tr:nth-child(odd) {
  background: #fff;
}

.price-table tbody tr:hover {
  background: #ede8dd;
}

section.price-hero {
  max-width: 1162px;
  margin: 0 auto;
}
@media screen and (max-width: 768px) {
  .price-table-section {
    margin-top: 20px;
    overflow: auto;
  }

  .price-table th,
  .price-table td {
    padding: 10px 8px;
  }

  .price-table th:first-child {
    width: 40px;
  }

  .price-table th:nth-child(2) {
    width: 120px;
  }

  .price-table th:last-child {
    width: 100px;
  }
  section.price-hero {
    padding: 0 12px;
    margin-top: 16px;
  }

  .price-table-wrapper {
    width: 900px;
  }

  .price-table th {
    display: none;
  }
}
