/* Мини-галерея стационара на первом экране */
:root {
  --font-family: "Montserrat", sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-margin-top: 100px;
}

.gallery-mini-grid {
  position: relative;
  width: 100%;
}

.gallery-mini-item {
  overflow: hidden;
  border-radius: 12px;
}

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

.service-hero-layout {
  border-radius: 20px;
  padding: 40px;
  height: auto;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
}

/* ---------- Расширенный первый экран (гинеколог) ---------- */
.extended .extended-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 24px;
  background: url("../img/background-extended.jpg") center/cover no-repeat;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
}

.extended .extended-hero::before,
.extended .extended-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #3a0000;
  pointer-events: none;
}

.extended .extended-hero::before {
  opacity: 0.25; /* нижний слой */
}

.extended .extended-hero::after {
  opacity: 0.35; /* верхний слой */
}

.extended .extended-hero-inner {
  position: relative;
  z-index: 1;
  padding: 40px;
  min-height: 360px;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  gap: 40px;
  align-items: start;
  color: #fff;
  grid-template-columns: 0.74fr 0.26fr;
}

.extended .extended-hero-left {
  max-width: max-content;
}

.extended .extended-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 40px;
  border-radius: 15px;
  padding: 6px 20px;
  background: #fff;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
}

.extended .extended-hero-title {
  margin-bottom: 40px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 50px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.2;
}

.extended .extended-benefits-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.extended .extended-benefit-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.extended .extended-benefit-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.extended .extended-benefit-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.extended .extended-benefit-content {
  flex: 1;
}

.extended .extended-benefit-title {
  margin-bottom: 10px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.3;
}

.extended .extended-benefit-text {
  line-height: 130%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #fff;
}

.extended .extended-hero-right {
  display: flex;
  justify-content: flex-end;
}

.extended .extended-doctor-card {
  border-radius: 20px;
  width: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.extended .extended-doctor-photo {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.extended .extended-doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

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

.extended .extended-doctor-position {
  margin-bottom: 20px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #fff;
}

.extended .extended-doctor-btn {
  border-radius: 8px;
  padding: 12px 20px;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
  background: #fff;
  transition: all 0.2s ease;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
}

.extended .extended-doctor-btn.secondary {
  background: none;
  color: #fff;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  border: 0.5px solid #fff;
  border-radius: 8px;
  padding: 12px 20px;
  margin-bottom: 0px;
}

.extended .extended-doctor-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.extended .extended-messengers {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

.extended .extended-messenger-link img {
  width: auto;
  height: 30px;
  display: block;
}

.extended .service-hero-layout {
  margin-top: 0;
}

@media screen and (max-width: 1024px) {
  .extended .service-hero-layout {
    margin-top: -40px;
  }
}
@media screen and (max-width: 1024px) {
  .extended .extended-hero-right {
    justify-content: flex-start;
  }
  .extended .extended-hero-inner {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  }
}

@media screen and (max-width: 768px) {
  .extended .extended-hero-inner {
    padding: 20px 32px 40px;
    gap: 40px;
    grid-template-columns: 1fr;
  }

  .extended .extended-hero-title {
    font-size: 25px;
    margin-bottom: 20px;
  }

  .extended .extended-doctor-card {
    width: 100%;
    max-width: 320px;
  }
}

h2.service-subtitle {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  padding: 40px;
}

.service-hero-header {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fbf7ed;
  padding-bottom: 20px;
  border-radius: 20px;
}

.service-hero-layout {
  margin-top: -20px;
  padding: 40px;
}

h1.service-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  border-bottom: 0.5px solid rgba(70, 70, 70, 0.2);
  padding-bottom: 40px;
  margin-bottom: 40px;
}

p.service-intro {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 130%;
}

p.service-intro-bold {
  font-weight: 500;
  margin-top: 15px;
  line-height: 130%;
}

.service-gallery-mini {
  margin-top: 0;
  width: 100%;
}

.service-hero-bottom {
  display: grid;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
  grid-template: 0.358fr 0.642fr;
  display: grid;
  gap: 40px;
  margin-top: 40px;
  align-items: stretch;
  grid-template-columns: 0.358fr 0.642fr;
}

.service-hero-right {
  width: 100%;
  gap: 20px;
  display: flex;
  flex-wrap: wrap;
}

.service-hero-info {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.service-info-card {
  border: 1px solid #fff;
  border-radius: 20px;
  padding: 28px 0;
  background: #fbf7ed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  align-content: center;
}

.service-info-card > * {
  line-height: 120%;
}
h3.service-info-title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin-bottom: 5px;
}

p.service-info-text,
a.service-info-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
  text-align: center;
  text-decoration: none;
}

a.service-info-link {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  color: #4f2121;
  margin-top: 5px;
}

.service-messengers {
  display: flex;
  gap: 20px;
  height: 30px;
  margin-top: 5px;
}

p.service-info-text span {
  display: flex;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #4f2121;
  justify-content: center;
  margin-top: 5px;
}

.service-form-card {
  background: #fbf7ed;
  border-radius: 20px;
  padding: 20px 20px 20px;
}

.service-form-card form {
  padding: 0;
  background: none;
}

@media screen and (max-width: 768px) {
  .service-gallery-mini {
    max-width: 100%;
  }
}

/* Блок врачей клиники (service.html) */
.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;
}

.service-gallery-mini {
  max-width: 36.8%;
}

.service-hero-right {
  max-width: calc(63.2% - 40px);
}

.service-hero-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
h1.service-title {
  width: 100%;
}

.service-hero-text-top {
  margin-bottom: 40px;
}

form.consultation-form input {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  border-radius: 20px;
  border: none;
}
@media screen and (max-width: 1024px) {
  .doctors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  main.main.service {
    padding-top: 20px;
  }

  h2.service-subtitle {
    padding: 20px 32px 20px;
  }

  .service-hero-layout {
    padding: 20px 12px;
    margin-top: -40px;
    z-index: 1;
    position: relative;
  }

  h1.service-title {
    padding-bottom: 20px;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
  .service-gallery-mini {
    max-width: 100%;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }

  .service-hero-right {
    max-width: 100%;
    margin: 20px 20px 20px;
    width: calc(100% - 40px);
  }
  .service-hero-text-top {
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }
}

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

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

  .service-hero-bottom {
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .service-hero-info {
    display: flex;
    flex-wrap: wrap;
  }

  .service-gallery-mini {
    max-width: 100%;
    order: 1;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }

  .service-hero-top {
    display: flex;
    flex-direction: column;
  }

  .service-hero-text-top {
    order: 2;
  }

  .service-hero-right {
    max-width: 100%;
    order: 3;
    margin-top: 20px;
  }
  .service-hero-text-top {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .service-info-card {
    padding: 10px;
  }

  h3.service-info-title {
    line-height: 125%;
  }

  p.service-info-text {
    line-height: 125%;
  }

  a.service-info-link {
    line-height: 125%;
  }
  .service-form-card {
    padding: 20px;
  }
  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;
  }

  .service-hero-bottom {
    width: 100%;
    min-width: 100%;
    display: flex;
    flex-wrap: wrap;
  }

  .service-hero-info {
    display: flex;
    flex-wrap: wrap;
  }

  .service-gallery-mini {
    max-width: 100%;
    order: 1;
    margin: 0 20px 20px;
    width: calc(100% - 40px);
  }

  .service-hero-top {
    display: flex;
    flex-direction: column;
  }

  .service-hero-text-top {
    order: 2;
  }

  .service-hero-right {
    max-width: 100%;
    order: 3;
    margin-top: 20px;
  }
  .service-hero-text-top {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .service-info-card {
    padding: 10px;
  }

  h3.service-info-title {
    line-height: 125%;
  }

  p.service-info-text {
    line-height: 125%;
  }

  a.service-info-link {
    line-height: 125%;
  }
  .service-form-card {
    padding: 20px;
  }
  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%;
  }
}

/* Стили для шаблона middle */
/* Двухколоночная верстка для middle шаблона */
.middle .service-hero-top {
  display: flex;
  flex-direction: column;
}

.middle .service-title {
  width: 100%;
  margin-bottom: 20px;
}

.middle .service-nav {
  width: 100%;
  padding-bottom: 40px;
}

.middle .service-hero-content {
  display: grid;
  grid-template-columns: 0.358fr 0.642fr;
  gap: 40px;
  align-items: start;
}

.middle .service-hero-text-left {
  width: 100%;
}

.middle .service-hero-text-right {
  width: 100%;
}

/* Стили для спойлеров симптомов */
.middle .symptoms-title {
  margin-bottom: 24px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 120%;
}

.middle .symptoms-list {
  display: flex;
  flex-direction: column;
}

.middle .symptom-item {
  break-inside: avoid;
  page-break-inside: avoid;
  padding-bottom: 24px;
}

.middle .symptom-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
}

.middle .symptom-toggle:hover {
  opacity: 0.7;
}

.middle .symptom-icon {
  margin-right: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.middle .symptom-item.active .symptom-icon {
  transform: rotate(180deg);
}

.middle .symptom-name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.middle .symptom-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out,
    padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
}

.middle .symptom-item.active .symptom-details {
  max-height: 2000px;
  opacity: 1;
  padding-top: 20px;
  padding-bottom: 0;
}

.middle .symptom-details p {
  line-height: 130%;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

/* Адаптивные стили для middle шаблона */
@media screen and (max-width: 1024px) {
  .middle .service-hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media screen and (max-width: 1024px) {
  .middle .service-hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .middle .symptoms-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .middle .symptom-toggle {
    padding: 10px 0;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .symptom-name {
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .symptom-details p {
    font-size: 14px;
  }
}
@media screen and (max-width: 768px) {
  .middle .service-hero-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .middle .symptoms-title {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .middle .symptom-toggle {
    padding: 10px 0;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .symptom-name {
    font-size: 14px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .symptom-details p {
    font-size: 14px;
  }
}

/* Блок врача-терапевта для middle шаблона */
.middle .therapist-section {
  margin-top: 24px;
}

.middle .therapist-card {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.middle .therapist-image-wrapper {
  flex-shrink: 0;
  width: 259px;
  height: 388px;
  overflow: hidden;
  border-radius: 100px;
}

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

.middle .therapist-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  line-height: 120%;
}

.middle .therapist-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin-bottom: 40px;
  line-height: 120%;
}

.middle .therapist-lead {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  margin-bottom: 10px;
}

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

.middle .therapist-position {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
  margin-bottom: 24px;
  line-height: 1.2;
}

.middle .therapist-description {
  margin-bottom: 24px;
  font-size: 16px;
  line-height: 120%;
}

.middle .therapist-description p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 141%;
  margin-bottom: 15px;
}

.middle .therapist-description p:last-child {
  margin-bottom: 0;
}

.middle .therapist-btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 12px 20px;
  width: 239px;
  height: 44px;
  background: #8a0009;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.middle .therapist-btn:hover {
  background: #a01a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.middle .therapist-btn:active {
  transform: translateY(0);
}

/* Адаптивные стили для блока врача */
@media screen and (max-width: 1024px) {
  .middle .therapist-card {
    flex-direction: column;
    padding: 30px;
  }

  .middle .therapist-image-wrapper {
    width: 100%;
    max-width: 300px;
    height: 400px;
    margin: 0 auto;
  }

  .middle .therapist-btn {
    align-self: stretch;
    text-align: center;
    width: 100%;
  }
}

@media screen and (min-width: 769px) and (max-width: 1024px) {
}

@media screen and (max-width: 1024px) {
  .middle .therapist-section {
    margin-top: 20px;
  }

  .middle .therapist-card {
    padding: 0;
    gap: 40px;
  }

  .middle .therapist-image-wrapper {
    height: 124vw;
    width: 100%;
    max-width: 100%;
  }

  .middle .therapist-title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .middle .therapist-name {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .middle .therapist-position {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .middle .therapist-description p {
    font-size: 14px;
  }
}

@media screen and (max-width: 768px) {
  .middle .therapist-section {
    margin-top: 20px;
  }

  .middle .therapist-card {
    padding: 0;
    gap: 40px;
  }

  .middle .therapist-image-wrapper {
    height: 124vw;
    width: 100%;
    max-width: 100%;
  }

  .middle .therapist-title {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .middle .therapist-name {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .middle .therapist-position {
    font-size: 12px;
    margin-bottom: 20px;
  }

  .middle .therapist-description p {
    font-size: 14px;
  }
}

/* Блок подготовки к приему для middle шаблона */
.middle .preparation-section {
  margin-top: 24px;
}

.middle .preparation-container {
  display: grid;
  grid-template-columns: 0.642fr 0.358fr;
  gap: 40px;
  align-items: start;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

.middle .preparation-left {
  min-width: 0;
}

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

.middle .preparation-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.middle .preparation-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.middle .preparation-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
}

.middle .preparation-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.middle .preparation-content {
  flex: 1;
}

.middle .preparation-item-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin-bottom: 10px;
  line-height: 1.2;
}

.middle .preparation-item-text {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 130%;
  margin: 0;
}

.middle .preparation-right {
  background: #fbf7ed;
  border-radius: 20px;
  padding: 20px;
  min-width: 0;
}

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

.preparation-section .form-group {
  width: 100%;
}

/* Адаптивные стили для блока подготовки */
@media screen and (max-width: 1024px) {
  .middle .preparation-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .middle .preparation-section {
    margin-top: 20px;
  }

  .middle .preparation-container {
    gap: 40px;
    padding: 20px;
  }

  .middle .preparation-left {
    padding: 24px;
  }

  .middle .preparation-right {
    padding: 20px;
  }

  .middle .preparation-title {
    margin-bottom: 40px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #4f2121;
    line-height: 1.2;
  }

  .middle .preparation-form-title {
    margin-bottom: 20px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .preparation-list {
    gap: 20px;
  }

  .middle .preparation-item {
    gap: 10px;
  }

  .middle .preparation-item-title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  .middle .preparation-item-text {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #464646;
  }
}

/* Блок FAQ и карточка врача для middle шаблона */
.middle .faq-doctor-section {
  margin-top: 24px;
}

.middle .faq-doctor-container {
  display: grid;
  grid-template-columns: 0.642fr 0.358fr;
  gap: 80px;
  align-items: center;
}

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

.middle .faq-list {
  display: flex;
  flex-direction: column;
  border-top: 0.5px solid rgba(70, 70, 70, 0.2);
}

.middle .faq-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.middle .faq-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 0;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: all 0.3s ease;
  border-bottom: 0.5px solid rgba(70, 70, 70, 0.2);
}

.middle .faq-toggle:hover {
  opacity: 0.7;
}

.middle .faq-icon {
  margin-right: 15px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.middle .faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.middle .faq-name {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  font-family: var(--font-family);
}

.middle .faq-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out,
    padding-top 0.4s ease-in-out, padding-bottom 0.4s ease-in-out;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

.middle .faq-item.active .faq-details {
  max-height: 2000px;
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom: 0.5px solid rgba(70, 70, 70, 0.2);
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: rgb(70 70 70);
  opacity: 0.6;
}

.middle .faq-details p {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 130%;
  margin: 0;
}

/* Карточка врача справа */
.middle .doctor-card-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* margin-top: 46.5px; */
}

.middle .doctor-card-image-wrapper {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 10px;
  flex-shrink: 0;
}

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

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

.middle .doctor-card-position {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
  margin-bottom: 20px;
  line-height: 1.2;
}

.middle .doctor-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-bottom: 20px;
  align-items: center;
}

.middle .doctor-card-btn {
  font-family: var(--font-family);
  padding: 15px 30px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  width: 100%;
  border: none;
}

.middle .doctor-card-btn-primary {
  border-radius: 8px;
  padding: 12px 20px;
  height: 44px;
  background: #8a0009;
  display: flex;
  justify-content: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  max-width: 192px;
}

.middle .doctor-card-btn-primary:hover {
  background: #a01a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.middle .doctor-card-btn-secondary {
  background: #fff;
  color: #4f2121;
  border: 1px solid #4f2121;
}

.middle .doctor-card-btn-secondary:hover {
  background: #fbf7ed;
  transform: translateY(-2px);
}

.middle .doctor-card-right .service-messengers {
  display: flex;
  gap: 20px;
  justify-content: center;
}

/* Адаптивные стили для блока FAQ и карточки врача */
@media screen and (max-width: 1024px) {
  .middle .faq-doctor-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media screen and (max-width: 768px) {
  .middle .faq-doctor-section {
    margin-top: 20px;
  }

  .middle .faq-doctor-container {
    gap: 0;
  }

  .middle .faq-left {
    padding: 0;
  }

  .middle .doctor-card-right {
    padding: 24px;
    padding-bottom: 0px;
  }

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

  .middle .faq-name {
    font-size: 16px;
  }

  .middle .faq-details p {
    font-size: 16px;
  }

  .middle .doctor-card-image-wrapper {
    width: 100px;
    height: 100px;
  }

  .middle .doctor-card-name {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .middle .doctor-card-position {
    font-size: 14px;
  }
}
.middle .service-hero-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 40px;
}

.middle .service-hero-header .service-subtitle {
  padding: 0;
}

.middle .service-hero-header .service-icon {
  width: auto;
  height: 124px;
  flex-shrink: 0;
}

.middle h1.service-title {
  border-bottom: none;
  margin-bottom: 0px;
  padding-bottom: 24px;
}

.service-nav a {
  border: 0.5px solid #464646;
  border-radius: 8px;
  padding: 6px 12px;
  height: 32px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  color: #464646;
  text-decoration: none;
  line-height: normal;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
}

.service-nav {
  display: flex;
  gap: 20px;
}

.service-hero-head {
  border-bottom: 0.5px solid rgba(70, 70, 70, 0.2);
  margin-bottom: 40px;
}

.middle .service-hero-info {
  margin-top: 40px;
}

.middle .service-form-card {
  margin-top: 20px;
}
.therapist-wrap {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  align-items: flex-start;
}

.middle .therapist-description p:last-child {
  margin-bottom: 0px;
}

#preparation-consultation-form .form-group {
  width: 100% !important;
}

#preparation-consultation-form .form-footer {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  margin-top: 0px;
}

#preparation-consultation-form .form-privacy {
  line-height: 1.2;
}

.faq-doctor-wrap {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

button.doctor-card-btn.doctor-card-btn-secondary {
  border: 0.5px solid #4f2121;
  border-radius: 8px;
  max-width: 144px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #8a0009;
  padding: 10px;
}

form#preparation-consultation-form {
  background: none;
  padding: 0;
}

@media screen and (max-width: 1024px) {
  .middle .service-hero-header {
    padding: 20px 32px 20px;
  }
}

.therapist-section-order {
  display: flex;
  gap: 40px;
  width: 100%;
  justify-content: space-between;
}

.middle.extended .therapist-btn {
  align-self: center;
}

.therapist-section-order img:last-child {
  margin-right: 42px;
  max-width: 430px;
}

.therapist-section-order button.therapist-btn {
  align-self: center;
}

@media screen and (min-width: 1024px) and (max-width: 1300px) {
  .therapist-section-order img,
  .therapist-section-order img:last-child {
    max-width: 30%;
  }

  .middle.extended .therapist-btn {
    padding: 12px 2%;
  }

  .extended .extended-hero-inner {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 0.38fr);
  }

  .extended .service-hero-layout {
    margin-top: 24px;
  }
}

@media screen and (max-width: 1024px) {
  .middle .service-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .middle .service-hero-header .service-icon {
    width: auto;
    height: 99px;
    align-self: flex-start;
  }

  .middle .service-hero-header .service-subtitle {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 25px;
    letter-spacing: 0.02em;
    color: #4f2121;
    line-height: 1.2;
  }

  .middle h1.service-title {
    padding-bottom: 20px;
    margin: 0 0 0;
  }

  .middle .service-nav {
    gap: 10px;
    padding-bottom: 20px;
  }

  .middle a.service-nav-link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 11px;
    line-height: 182%;
    letter-spacing: 0.02em;
    color: #464646;
    border: 0.5px solid #464646;
    border-radius: 8px;
    padding: 6px 12px;
  }

  .middle .service-hero-head {
    margin: 0 20px 20px;
  }

  .middle .service-hero-content {
    margin: 0;
  }

  .middle .symptoms-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
    margin-bottom: 14px;
  }

  .middle .symptom-item {
    padding-bottom: 0px;
  }

  .middle .symptom-item.active .symptom-details {
    padding-top: 0px;
    padding-bottom: 10px;
  }

  .middle .symptom-icon {
    margin-right: 10px;
  }

  .middle .service-hero-info {
    margin-top: 20px;
  }

  .middle .service-hero-text-left {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .middle p.service-intro {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .middle p.service-intro-bold {
    width: calc(100% - 40px);
    margin: 15px 20px 0;
  }

  .middle .therapist-wrap {
    padding: 20px 32px;
  }

  .middle .therapist-description {
    margin-bottom: 20px;
  }

  .middle .preparation-left {
    padding: 0 12px;
  }

  .middle .faq-doctor-wrap {
    padding: 20px 32px;
  }
  .middle .service-hero-header {
    padding: 20px 32px 40px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    align-content: flex-start;
  }

  .middle .service-hero-header .service-icon {
    width: auto;
    height: 60px;
  }
  .middle .therapist-image-wrapper {
    max-width: 500px;
    max-height: 749px;
    display: flex;
    justify-content: flex-start;
    flex-direction: row;
    margin: 0;
  }
  .middle .therapist-btn {
    max-width: 400px;
  }

  .middle button.form-submit-btn {
    max-width: 400px;
  }

  .therapist-section-order {
    display: flex;
    flex-wrap: wrap;
  }

  .therapist-section-order img:last-child {
    margin: 0 auto;
    max-width: 100%;
  }

  .extended .extended-hero-badge {
    margin-bottom: 20px;
  }

  .extended .extended-hero {
    border-radius: 20px 20px 0 0;
  }
}
@media screen and (max-width: 768px) {
  .middle .service-hero-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
  }

  .middle .service-hero-header .service-icon {
    width: auto;
    height: 99px;
    align-self: flex-start;
  }

  .middle .service-hero-header .service-subtitle {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 25px;
    letter-spacing: 0.02em;
    color: #4f2121;
    line-height: 1.2;
  }

  .middle h1.service-title {
    padding-bottom: 20px;
    margin: 0 0 0;
  }

  .middle .service-nav {
    gap: 10px;
    padding-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
  }

  .middle a.service-nav-link {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 11px;
    line-height: 182%;
    letter-spacing: 0.02em;
    color: #464646;
    border: 0.5px solid #464646;
    border-radius: 8px;
    padding: 6px 12px;
  }

  .middle .service-hero-head {
    margin: 0 20px 20px;
  }

  .middle .service-hero-content {
    margin: 0;
  }

  .middle .symptoms-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.02em;
    color: #4f2121;
    margin-bottom: 14px;
  }

  .middle .symptom-item {
    padding-bottom: 0px;
  }

  .middle .symptom-item.active .symptom-details {
    padding-top: 0px;
    padding-bottom: 10px;
  }

  .middle .symptom-icon {
    margin-right: 10px;
  }

  .middle .service-hero-info {
    margin-top: 20px;
  }

  .middle .service-hero-text-left {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .middle p.service-intro {
    width: calc(100% - 40px);
    margin: 0 20px;
  }

  .middle p.service-intro-bold {
    width: calc(100% - 40px);
    margin: 15px 20px 0;
  }

  .middle .therapist-wrap {
    padding: 20px 32px;
  }

  .middle .therapist-description {
    margin-bottom: 20px;
  }

  .middle .preparation-left {
    padding: 0 12px;
  }

  .middle .faq-doctor-wrap {
    padding: 20px 32px;
  }
  .middle .service-hero-header {
    padding: 20px 32px 60px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    align-content: flex-start;
  }

  .middle .service-hero-header .service-icon {
    width: auto;
    height: 60px;
  }
  .therapist-section-order {
    display: flex;
    flex-wrap: wrap;
  }

  .therapist-section-order img:last-child {
    margin: 0 auto;
    max-width: 100%;
  }

  .therapist-section-order img:nth-child(2) {
    transform: rotate(90deg);
    width: 40px;
    margin: 0 auto;
    height: 2px;
  }

  .extended .extended-hero-badge {
    margin-bottom: 20px;
  }

  .extended .extended-hero {
    border-radius: 20px 20px 0 0;
  }
}

/* Блок методов исследований */
.research-methods-section {
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fff;
  padding: 40px;
  border-radius: 20px;
}

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

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

.research-method-card {
  background: #fbf7ed;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.research-method-card-full {
  grid-column: 1 / -1;
}

.research-method-card-title {
  margin-bottom: 24px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.research-method-item {
  margin-bottom: 24px;
}

.research-method-name {
  margin-bottom: 16px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.research-method-description {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 1.2;
}

.research-method-btn {
  margin-top: auto;
  text-transform: uppercase;
  text-align: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  width: max-content;
  display: flex;
  background: #8a0009;
  align-items: center;
  justify-content: center;
  align-content: center;
  border-radius: 8px;
  border: none;
  padding: 12px 78px;
}

.research-method-btn:hover {
  background: #a01a2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.research-method-btn:active {
  transform: translateY(0);
}

@media screen and (max-width: 1024px) {
  .research-methods-grid {
    grid-template-columns: minmax(100%, 1fr);
  }

  .research-method-card-full {
    grid-column: 1;
  }
  .research-method-item {
    margin-bottom: 20px;
  }
}

@media screen and (max-width: 768px) {
  .research-methods-section {
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 20px 32px;
  }

  .research-methods-title {
    font-size: 18px;
    margin-bottom: 40px;
    line-height: 1.2;
  }

  .research-method-card {
    padding: 24px;
  }

  .research-method-card-title {
    font-size: 18px;
    margin-bottom: 20px;
    line-height: 1.2;
  }

  .research-method-name {
    font-size: 14px;
  }

  .research-method-description {
    font-size: 13px;
  }
  button.research-method-btn {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  .middle .service-hero-header {
    padding: 20px 32px 60px;
    display: flex;
    flex-direction: column-reverse;
    align-items: flex-start;
    align-content: flex-start;
  }

  .middle .service-hero-header .service-icon {
    width: auto;
    height: 60px;
  }
}

/* Всплывающее окно с формой */
.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;
  }
}
