* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  background: #f8f9fa;
  display: flex;
  flex-direction: column;
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
}

main {
  flex: 1 0 auto;
  background: url("/include/images/service_bg.webp") no-repeat;
  background-size: cover;
}
img {
  width: 100%;
  height: 100%;
}
a {
  text-decoration: none;
  color: inherit;
}
li {
  list-style: none;
}
header {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1000;
  padding: 1rem 0;
  flex-shrink: 0;
  font-size: 1.5rem;
  /*background-color: #e31e25;
  color: #fff;*/
}
.logo_wrapper {
  height: 100%;
  position: relative;
  display: flex;
  justify-content: left;
  align-items: center;
}
.logo_wrapper img {
  object-fit: contain;
}
header .row {
  justify-content: space-between;
  flex-wrap: nowrap;
}
.header-text {
  display: flex;
  flex-direction: column;
  max-width: 350px;
}
.header-text h1 {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  line-height: 150%;
}
.header-text h2 {
  font-size: 1.5rem;
  text-transform: lowercase;
}
.header-phone {
  display: flex;
  align-items: start;
  flex-direction: column;
  width: fit-content;
}
.header-phone .phone-1 {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 0px;
  line-height: 100%;
  font-weight: 600;
}
.header-phone .phone-2 {
  font-size: 2rem;
  line-height: 100%;
}
#main_section {
  padding: 50px 0;
  height: 100%;
}
.info_wrapper {
  background-color: #fff;
  padding: 25px;
  box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.2);
  height: 100%;
  border-radius: 5px;
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto;
}
.info_wrapper h2 {
  font-weight: 600;
  font-size: 2rem;
  margin-bottom: 50px;
}
.info_wrapper .button_wrapper {
  margin-top: 50px;
  display: flex;
  gap: 25px;
  flex-direction: row;
}
.btn {
  color: #fff;
  font-size: 1.2em;
  font-weight: 500;
  min-width: 262px;
  width: calc((100% - 25px) / 2);
  transition: all ease-in-out 0.3s;
  padding: 10px 0;
  text-align: center;
}
.dislike {
  background-color: #e31e25;
  border: 1px solid #e31e25;
}
.like {
  background-color: #219f9b;
  border: 1px solid #219f9b;
}
.btn svg {
  fill: #fff;
  transition: all ease-in-out 0.3s;
  margin-left: 15px;
}
.dislike:hover {
  background-color: #fff;
  border: 1px solid #e31e25;
}
.like:hover {
  background-color: #fff;
  border: 1px solid #219f9b;
}
.like:hover svg {
  fill: #219f9b;
}
.dislike:hover svg {
  fill: #e31e25;
}
footer {
  background: #242424;
  color: #fff;
  padding: 25px 0px;
}
footer ul {
  margin: 0;
  padding: 0;
}
footer a {
  text-decoration: underline;
}
footer a:hover {
  opacity: 0.8;
}

.modal-custom-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-custom-overlay.active {
  display: flex;
}

.modal-custom {
  background: #fff;
  max-width: 500px;
  padding: 2rem;
  border-radius: 8px;
  position: relative;
  color: #000;
}

.modal-custom .close-btn {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  font-size: 3rem;
  line-height: 1;
}
.modal-custom h3 {
  font-size: 2rem;
  margin-right: 2rem;
}
.modal-custom p {
  font-size: 1.2rem;
}
#popup_form {
  display: flex;
  flex-direction: column;
}
#popup_form .form_input {
  width: 100%;
  padding: 10px;
  margin-bottom: 1rem;
  border-radius: 5px;
}
.btn_modal {
  background-color: #219f9b;
  width: 100%;
  margin-top: 25px;
}
.personal span {
  font-size: 1.5rem;
  color: #219f9b;
  font-weight: 600;
  text-align: center;
  display: block;
}
.policy a {
  text-decoration: underline;
}
.yandex-health-widget {
  display: inline-block;
  font-family: "YS Text", "Helvetica Neue", Arial, sans-serif;
  width: 220px;
  margin: 25px auto;
  background: #fafafa;
  padding: 10px;
  border-radius: 5px;
}

.yandex-health-widget a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.yandex-health-widget span {
  font-size: 12px;
  color: #000;
}

.yandex-health-widget .rating-container {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.yandex-health-widget .location-icon {
  margin-right: 2px;
}

.yandex-health-widget .rating-value {
  font-weight: 700;
  font-size: 22px;
  color: #000;
  line-height: 1;
  margin-right: 8px;
}

.widget_container {
  display: flex;
  justify-content: center;
}

.yandex-health-widget svg {
  transform-origin: center;
  animation: heartbeat 2.5s infinite;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.2);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.15);
  }
  40% {
    transform: scale(1);
  }
}

.yandex-health-widget .stars {
  display: flex;
  flex-wrap: nowrap;
  flex-direction: row;
}
.yandex-health-widget .stars span {
  color: #fc0;
  font-size: 28px;
  letter-spacing: -2px;
  line-height: 1;
  display: inline-block;
  opacity: 0.6;
  animation: starGlow 1.5s infinite;
}

/* анимация свечения */
@keyframes starGlow {
  0%,
  100% {
    opacity: 0.6;
    text-shadow: none;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 8px #ffd966;
  }
}

/* задержка для каждой звезды */
.stars span:nth-child(1) {
  animation-delay: 0s;
}
.stars span:nth-child(2) {
  animation-delay: 0.3s;
}
.stars span:nth-child(3) {
  animation-delay: 0.6s;
}
.stars span:nth-child(4) {
  animation-delay: 0.9s;
}
.stars span:nth-child(5) {
  animation-delay: 1.2s;
}

/* Плавная пульсация всего виджета */
.yandex-health-widget {
  animation: gentlePulse 3s infinite;
}

@keyframes gentlePulse {
  0%,
  90% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0);
  }
  25% {
    transform: scale(1.05);
    box-shadow: 0 0 5px 5px rgba(255, 204, 0, 0.3);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 5px rgba(255, 204, 0, 0);
  }
}
.yandex-health-widget:hover {
  transform: translateY(-4px) scale(1.03) rotate(2deg);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}
