@import url('../font/font.css');

:root {
  /* header */

  --body-black: #000;
  --body-white: #fff;
  --body-gray: #464646;
  --body-gray-light: #818181;
  --body-gray-dark: #252525;
  --acient-color: #feec80;
  --acient-color-hover: #fdda01;

  --link-blue-shadow: #0e70b1;
  --link-blue: #2a7cb3;


  --main-blue: #107fc9;

  --main-blue-alfa: rgba(16, 127, 201, 0.5);
  --main-red: #d52b1e;

  --tg-color: #5eb5f7;

  --header-top-nav-active: var(--main-red);
  --header-mobile-menu: var(--main-blue);

  --contact-adress-bg-active: rgba(211, 43, 30, 0.8);
  --contact-adress-bg-: rgba(211, 43, 30, 0.2);

  --tcontacts-bg-default: #107fc9;
  --tcontacts-bg-active: #107fc9;

  --tleft-width: 321px;
  --tright-width: calc(100% - var(--tleft-width) -1px);

  --card-border-radius-big: 35px;
  --card-border-radius-small: 5px;

  --card-border: var(--card-border-radius-big) var(--card-border-radius-small);
  --card-logo-width: 160px;

  --inner-card-margin: 5px;
  --inner-border-radius-big: calc(var(--card-border-radius-big) - var(--inner-card-margin));
  --inner-border-radius-small: calc(var(--card-border-radius-big) - var(---inner-card-margin));

  --slider_font_size: clamp(0.875rem, 0.7375rem + 0.4vw, 1rem);
  --slider_b_font_size: clamp(0.875rem, 0.7375rem + 0.4vw, 1rem);

  --gradient-1: linear-gradient(135deg, #ff9a9e, #fad0c4);
  --gradient-2: linear-gradient(135deg, #a1c4fd, #c2e9fb);
  --gradient-3: linear-gradient(135deg, #84fab0, #8fd3f4);
  --gradient-4: linear-gradient(135deg, #ffecd2, #fcb69f);
  --gradient-5: linear-gradient(135deg, #a18cd1, #fbc2eb);
  --gradient-6: linear-gradient(135deg, #f6d365, #fda085);
  --gradient-7: linear-gradient(135deg, #fbc2eb, #a6c1ee);
  --gradient-8: linear-gradient(135deg, #e0c3fc, #8ec5fc);
  --gradient-9: linear-gradient(135deg, #d4fc79, #96e6a1);
  --gradient-10: linear-gradient(135deg, #fddb92, #d1fdff);

}

/* #region Bootstrap clases */

.mb-3 {
  margin-bottom: 1rem;
}

.d-block {
  display: block;
}

.w-100 {
  width: 100%;
}

.link-dark {
  color: var(--link-blue-shadow);
}

.link-underline-opacity-0 {
  text-decoration: underline;
  text-decoration-color: rgba(0, 0, 0, 0);
}

.d-block {
  display: block;
}

.link-underline {
  text-decoration: underline;
}

.link-underline-opacity-0 {
  text-decoration-color: rgba(0, 0, 0, 0);
}

.btn-primary {
  background-color: var(--acient-color);
  height: 40px;
  padding-inline: 10px;
  border: none;
  border-radius: var(--card-border-radius-small);

  &:hover {
    background-color: var(--acient-color-hover);
  }
}

.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}

.alert-danger {
  color: #842029;
  background-color: #f8d7da;
  border-color: #f5c2c7;
}

/* #endregion Bootstrap clases */

/* #region REST */

body {
  color: var(--body-black);
  font: 12px proxima_nova;
  font-family: 'proxima_nova';
  padding-inline: auto;
}



.responsive-image {
  width: 100%;
  height: auto;
  object-position: center;
  object-fit: contain;
  fill: red;
}

/* #endregion REST */

/* #region ALLAUTH */

.h1_allauth {
  font-weight: bold;
  font-size: 1.8rem;
  margin-bottom: 1rem;
  text-align: center;
}


.list-group {
  display: flex;
  height: 40px;
  width: fit-content;
  gap: 10px;
  list-style: none;
  padding: 0;
}

.li-tg {
  border-radius: var(--card-border-radius-small);
  background-color: var(--tg-color);
}

.li-tg::marker {
  content: url('/static/telegram.svg');
}

.alternative-auth-section {
  margin-top: 1.5rem;
}

.alternative-auth-options {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.alternative-auth-btn {
  padding: 0.75rem 1.5rem;
  background: #f5f5f5;
  color: #333;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}

.alternative-auth-btn:hover {
  background: #e0e0e0;
}

.auth-form-container {
  max-width: 400px;
  min-width: 350px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  background: #fff;
}

.auth-form-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
  text-align: center;
}

.auth-form-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
  & label {
    font-weight: 500;
    color: #4a5568;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
  }
}

.form-control {
  width: 100%;
  min-width: 280px;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.auth-form-subtitle a,
.forgot-password {
  display: block;
  margin-top: 0.5rem;
  color: #0066cc;
  font-size: 1.1rem;
  text-align: center;
}

.auth-submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--acient-color);
  color: var(--body-gray-light);
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;

  &:hover {
    background-color: var(--acient-color-hover);
    color: var(--body-black);
  }
}

.social-auth-separator {
  margin: 1.5rem 0;
  text-align: center;
  color: #999;
  position: relative;
}

.social-auth-separator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: -1;
}

.social-auth-separator span {
  background: #fff;
  padding: 0 1rem;
}

.social-auth-section {
  margin-top: 2rem;
  text-align: center;
}

.social-auth-divider {
  position: relative;
  margin: 1.5rem 0;
  color: #999;
}

.social-auth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #eee;
  z-index: 0;
}

.divider-text {
  background: #fff;
  padding: 0 1rem;
  position: relative;
  z-index: 1;
}

.social-providers {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}


/* #endregion ALLAUTH */

/* #region PAGE */

/* #region HEADER */

.header__mobile-menu {
  position: fixed;
  top: 0;
  background-color: var(--main-blue);
  min-height: 100vh;
  overflow: auto;
  width: 320px;
  z-index: -1;
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 50px 35px;
  transition: .4s;
  right: -100vw;

  & a {
    color: var(--body-white);
    margin-block: 15px;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
    font-size: x-large;
  }
}

.menu-toggle {
  z-index: 9999;

  display: none;

  & label {
    position: relative;
    display: block;
    width: 25px;
    height: 22px;
    background-color: transparent;
    transition: .4s;
  }

  & span,
  label:before,
  label:after {
    --height-line: 2.5px;
    position: absolute;
    width: 100%;
    height: var(--height-line);
    background-color: var(--tcontacts-bg-active);
    transition: 0.2s;
  }

  & label:before {
    content: "";
    top: 0;
  }

  & label:after {
    content: "";
    bottom: 0;
  }

  & span {
    top: calc(calc(100% - var(--height-line)) / 2);
  }
}

#burger-toggle:checked {
  &~label::after {
    transform: rotate(-45deg);
    top: 12px;
    bottom: 10px;
    background-color: var(--body-white);
  }

  &~label::before {
    transform: rotate(45deg);
    top: 12px;
    background-color: var(--body-white);
  }

  &~label span {
    opacity: 0;
  }

  &~.header__mobile-menu {
    opacity: 1;
    visibility: visible;
    right: 0;
    width: 80%;
  }
}


header {
  display: grid;
  grid-template-areas:
    "header_top"
    "header_bottom";
  grid-template-columns: auto;
  grid-template-rows: 45px 45px;
  justify-items: center;
  align-self: center;
  font-family: "proxima_nova";
  font-size: 16px;
  color: var(--body-gray-light);

  & .header_top {
    grid-area: header_top;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-self: center;
    align-items: center;

    & .header_logo {
      margin-top: 14px;
      min-width: 220px;
    }

    & .tcontacts {
      display: flex;
      align-items: center;
    }
  }
}

@media (max-width: 1400px) {
  header {
    & .header_top {
      justify-content: space-between;
    }
  }
}

@media (max-width: 768px) {
  .header_top {
    & .header_logo {
      overflow: hidden;
    }
  }
}
.header__a {
  --color: var(--body-gray-light);
  --color-hover: var(--main-red);
  height: 100%;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--color);

  & svg {
    width: 40px;
    height: auto;
    object-position: center;
    object-fit: contain;
  }

  & :hover {
    color: var(--color-hover);
  }
}

.header__a.login {
  height: 40px;
  padding-inline: 10px;
  border-radius: var(--card-border-radius-small);

  &:hover {
    color: var(--color-hover);
  }
}

.header__a.signup {
  background-color: var(--link-blue);
  height: 40px;
  padding-inline: 10px;
  color: var(--body-white);

  &:hover {
    background-color: var(--link-blue-shadow)
  }
}

.header__a.logout {
  height: 40px;
  padding-inline: 10px;

  &:hover {
    color: var(--color-hover);
  }
}

.avatar {
  width: 9rem;
  height: 9rem;
  border-radius: 50%;
  object-fit: cover;
  margin: 1rem 0;
}

.content {
  text-align: center;
  max-width: 30rem;
}

.username {
  color: #a0aec0;
  /* Светло-серый цвет */
  margin-bottom: 0.5rem;
  margin-top: -0.75rem;
}

.button {
  padding: 0.5rem 1rem;
  border-radius: 0.25rem;
  text-decoration: none;
}

.button-gray {
  background-color: #e2e8f0;
  color: #1a202c;
  margin-left: 0.25rem;
}

.button-gray:hover {
  background-color: #cbd5e0;
  /* Темнее при наведении */
}

& .header_bottom {
  grid-area: header_bottom;
  margin-top: 10px;
  width: 100%;
  max-width: 1050px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-family: "proxima_nova";

  & .header_bottom__nav {
    width: 100%;
    height: 40px;
    display: flex;
    justify-content: space-between;
  }

  & .header_bottom__nav a {
    transition: border-bottom 0.15s ease, padding-bottom 0.15s ease;
    color: var(--body-gray-light);
    font-size: 16px;
    padding-bottom: 18px;

    &:hover,
    &.active {
      border-bottom: 3px solid var(--main-red);
      padding-bottom: 15px;
    }
  }
}

.contact {
  display: grid;
  grid-template-areas:
    "icon address"
    "icon phone";
  align-items: center;
  padding: 5px 5px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
}
  .contact__icon {
  margin-right: 5px;
  margin-left: 15px;
  grid-area: icon;
  font-size: xx-large;
}
.contact__address {
  text-align: center;
  grid-area: address;
  margin: 0 auto;
}
.contact__phone {
  text-align: center;
  grid-area: phone;
  margin: 0 auto;
  color: var(--link-blue-shadow);
  & a {
    color: var(--link-blue-shadow);
  }
}
.contact_skoraya {
  overflow: hidden;
}
.skoraya-icon {
  width: 100%;
  /* SVG займет всю ширину контейнера */
  height: 100%;
  /* SVG займет всю высоту контейнера */
  transition: opacity 0.2s ease;
}
.skoraya-icon:last-child {
  display: none;
  /* Изначально скрываем второй SVG */
}
.contact_skoraya:hover .skoraya-icon:first-child {
  display: none;
  /* При наведении скрываем первый SVG */
}
.contact_skoraya:hover .skoraya-icon:last-child {
  display: block;
  /* При наведении показываем второй SVG */
}


/* #endregion HEADER */

/* #region ARTICLES */

article {
  margin-top: 40px;
  width: 100%;
}

.main_content {
  margin-top: 30px;
  margin-inline: auto;
  max-width: 1050px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.main_content p,
.main_content h1,
.form-group label,
.card-body label {
  margin-bottom: 10px;
  font: 16px proxima_nova;
  letter-spacing: 0.5px;
  color: var(--body-gray);
}

.form-check {
  line-height: 22px;
  font: 15px proxima_nova;
  margin-bottom: 10px;
  color: var(--body-gray);
}

.main_content a {
  color: var(--link-blue);
  text-decoration: none;
}

.main_content strong {
  font-size: 18px;
  font-weight: bolder;
}

.main_content h1 {
  font-size: 28px;
  font-weight: bold;
  margin: 3px 0 10px 0;
}

.main_content h2 {
  font-size: 24px;
  font-weight: bold;
  margin: 20px 0 10px 0;
}

.main_content ul {
  display: block;
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
}

.main_content li {
  display: list-item;
  letter-spacing: 0.5px;
  line-height: 22px;
  font: 15px proxima_nova;
  color: var(--body-gray);
}

.main_content .form-text li {
  display: list-item;
  letter-spacing: 0.5px;
  line-height: 15px;
  font: 12px proxima_nova;
  color: var(--body-gray);
}

ul.list-group {
  display: flex;
  list-style-type: none;
}

.text {
  width: 100%;
  display: flex;
  color: var(--body-gray);
  max-width: 1050px;
  margin-top: 50px;
  letter-spacing: 0.5px;

  & p {
    margin-block: 15px;
  }
}

.tright {
  width: var(--tright-width);
  margin-top: 5px;
  padding-inline: 26px;
}

.tleft {
  display: flex;
  flex-direction: column;
  width: var(--tleft-width);
}

.tleft a {
  width: 321px;
  box-sizing: border-box;
  display: block;
  padding-top: 16px;
  padding-bottom: 16px;
  padding-left: 24px;
  font-size: 18px;
  color: var(--body-gray);
  border: 1px solid #ebebeb;
  margin-bottom: -1px;
}

.tleft a.active,
.tleft a:hover {
  background: var(--link-blue);
  color: var(--body-white);
}

h2 {
  margin-top: 15px;
  font-size: 18px;
  color: var(--body-gray);
  font-weight: bold;
}

.serv_b .catalog_name_group {
  font-size: 28px;
  font-weight: normal;
  font-weight: 500;
  margin-bottom: 22px;
  margin-top: -3px;
}

.serv_b {
  /*margin-left:85px; */
  font-size: 18px;
}

.specialists-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2em;
  margin-bottom: 2rem;
}

.specialist-card {
  display: flex;
  flex-direction: column;
  background: var(--specialist-bg, var(--gradient-1));
  padding: 1.5rem;
  border-radius: 15px;
  color: var(--body-black);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  backdrop-filter: blur(5px);
}

.specialist-card:hover {
  transform: translateY(-8px);
}

.specialist-avatar {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.specialist-avatar img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.5);
}

.specialist-name {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.5rem 0;
  text-align: center;
}


.specialist-disciplines {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.discipline-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.3rem 0.6rem;
  border-radius: 20px;
  font-size: 1rem;
  white-space: nowrap;
}


/* #endregion ARTICLES */

/* #region TABLE */

.container_servises {
  background-color: #fff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  margin: 20px auto;
  max-width: 1200px;
}

.table-wrapper {
  overflow-x: auto;
  margin: 25px 0;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 16px 20px;
  text-align: center;
  border-bottom: 1px solid #eaeef2;
  vertical-align: top;
  white-space: normal;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  color: #2d3748;
  font-size: 0.95rem;
}

.table tbody tr:hover {
  background-color: #fafbff;
}

.table td {
  white-space: pre-line;
  color: #4a5568;
  font-size: 0.9rem;
}

.discipline-header {
  font-size: 1.6rem;
  margin: 35px 0 20px;
  color: #1a365d;
  padding-bottom: 12px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.discipline-header:after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 120px;
  height: 2px;
  background: #4299e1;
}

.sub-discipline-header {
  margin-top: 1.5em;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

.search-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  align-items: start;
  background: #f8fafc;
  padding: 16px;
  border-radius: 8px;
}
.form-input {
  padding: 10px 14px;
  border: 1px solid #cbd5e0;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: #63b3ed;
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.2);
}
.form-actions {
  display: flex;
  gap: 1rem;
  align-self: center;
  margin-top: 10px;
  width: 100%;
  justify-content: center;
}
.btn {
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: #4299e1;
  color: white;
  border: none;
}
.btn-primary:hover {
  background: #3182ce;
}

.btn-secondary {
  background: #718096;
  color: white;
  border: none;
}

.btn-secondary:hover {
  background: #4a5568;
}

@media (max-width: 768px) {
  .container_servises {
    padding: 0px;
    margin: 0px;
  }

  .search-form {
    grid-template-columns: 1fr;
    padding: 10px;
  }
}

/* #endregion TABLE */

/* #region SUPPORT BLOCK */
.supblock {
  padding: 0 30px;
  background-color: #f2f2f2;
  border-radius: 20px;
  padding: 20px 0;
}

.supblock p {
  font-size: 18px;
}


/* .other1_1 {
  color: #696c72;

  padding: 5px;
  text-decoration: none;
  font-size: 28px;

  display: table;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0px);
  transform: translateZ(0px);
  -webkit-transition-duration: 0.3s;
  -o-transition-duration: 0.3s;
  transition-duration: 0.3s;
  vertical-align: middle;
}

.other1_1:after {
  padding-left: 9px;
  -webkit-transform: translateZ(0px);
  transform: translateZ(0px);
  content: "\2706";
  font-size: 25px;
  display: inline-block;
}

.other1_1:hover {
  color: #3c34ff;
}

.other1_1:hover:after,
.other1_1:focus:after,
.other1_1:active:after {
  -webkit-animation-duration: 0.15s;
  animation-duration: 0.15s;
  -webkit-animation-iteration-count: infinite;
  animation-iteration-count: infinite;
  -webkit-animation-name: hvr-icon-buzz;
  animation-name: hvr-icon-buzz;
  -webkit-animation-timing-function: linear;
  animation-timing-function: linear;
} */
/* #endregion SUPPORT BLOCK */

/* #region FOOTER */
.footer {
  border-top: 1px solid #d7d7d7;
  width: 98vw;
  margin: auto;
  padding-top: 20px;
  height: 80px;

  box-sizing: border-box;
}

.fmenu {
  margin-left: 0px;
}

.fmenu a {
  display: inline-block;
  /* margin-right:20px; */
  margin-right: 10px;
  color: var(--link-blue);
  font-size: 14px;
}

.copyright {
  margin-left: 0px;
  margin-top: 10px;
  font-size: 14px;
  color: var(--body-gray-light);
}

/* #endregion FOOTER */

/* #region OVERLAY MENU */

.nav_overlay__container {
  position: fixed;
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1000;
}

.nav_overlay {
  position: relative;
  width: 100%;
  height: 100%;
}

.labels {
  width: 98vw;
  right: 60px;
  bottom: -7px;
  position: fixed;
  display: flex;
  height: 67px;
  z-index: 1000;
  gap: 10px;
  justify-content: end;
  align-items: flex-end
}

.phone {
  height: 60px;
  flex-basis: 191px;
  background: url(../img/phone.png) 0 0 no-repeat;
  transition: align-self 0.9s ease;

  &:hover {
    align-self: flex-start;
  }
}

/* .license {
  height: 60px;
  flex-basis: 191px;
  border-radius: 4px 4px 0 0;
  background: url(img/license_image.png) 0 0 no-repeat;
  transition: align-self 0.9s ease; 
  &:hover {
    align-self: flex-start;
  }
} */

.emerg {
  height: 60px;
  flex-basis: 191px;
  background: url(../img/emerg.png) 0 0 no-repeat;
  transition: align-self 0.9s ease;

  &:hover {
    align-self: flex-start;
  }
}

/* .online {
  left: 0px;
  right: 0px;
  z-index: 1000;
  margin: auto;
  bottom: 0;
  left: -348px;
  position: fixed;
  display: block;
  width: 210px;
  height: 60px;
  background: url(img/online2.png) 0 0 no-repeat;
} */

/* .maker img {
  vertical-align: middle;
  margin-bottom: 8px;
  margin-left: 6px;
}

.maker {
  float: right;
  font-size: 14px;
  color: var(--body-gray-light);
} */
#scrollup {
  position: absolute;
  opacity: 0.7;
  padding: 15px 50px 50px;
  background: none;
  border-radius: 5px;
  right: 5vw;
  bottom: 5vh;
  display: none;
  cursor: pointer;
}

.chat-button {
  position: fixed;
  bottom: 16vh;
  right: 7vw;
  width: 60px;
  height: 60px;
  background-color: var(--main-blue-alfa);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;

  & :hover {
    background-color: var(--main-blue);
  }
}

.chat-button:hover {
  background-color: var(--main-blue);
}

.chat-button img {
  width: 50%;
  height: auto;

  & :hover {
    background-color: var(--main-blue);
  }
}

.chat-popup {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 300px;
  background-color: var(--body-white);
  border: 1px solid #ccc;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
  z-index: 1000;
}

.popup-content {
  padding: 20px;
}

.popup-content h2 {
  margin-top: 0;
  font-size: 1.2em;
}

.popup-content ul {
  list-style-type: none;
  padding: 0;
}

.popup-content ul li {
  margin-bottom: 10px;
}

.popup-content ul li a {
  text-decoration: none;
  color: var(--main-blue);
}

.popup-content ul li a:hover {
  text-decoration: underline;
}

.close-btn {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--main-blue);
  color: var(--body-white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.close-btn:hover {
  background-color: #0056b3;
}

/* #endregion OVERLAY MENU */

/* #region PAGE */

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(325px, 1fr));
  grid-auto-flow: dense;
  height: auto;
  gap: 2em;
  margin-bottom: 2rem;
}

/* #endregion PAGE */


/* #region UNDEFINED */

.slide_text b {
  font-size: 28px;
  display: block;
  margin-bottom: 21px;
  line-height: 28px;
}

.slide_text {
  box-sizing: border-box;
  position: absolute;
  left: 86px;
  top: 43px;
  width: 551px;
  height: 254px;
  padding-right: 55px;
  padding-top: 47px;
  font-size: 16px;
  line-height: 22px;
  color: #464a4c;
  ;
  background-color: rgba(255, 255, 255, 0.7);
  padding-left: 47px;
}

.one_serv {
  margin-inline: 20px;
  cursor: pointer;
  color: #464a4c;
  width: 180px;
  display: inline-block;
}

.services {
  width: 100%;
  overflow: hidden;
  margin: auto;
  margin-top: 40px;
  text-align: justify;
  font-size: 14px;
  color: #464a4c;
  text-align: center;
}

.services b {
  color: var(--body-gray-light);
  display: block;
  text-align: center;
  margin-bottom: 9px;
  margin-top: 18px;
  font-size: 21px;
}

h1 {
  font-size: 28px;
  color: var(--body-gray);
  font-weight: bold;
  margin-bottom: 15px;
}

.mleft_slide {
  width: 472px;
  height: 192px;
  margin-top: 29px;
  border: 1px solid #dfdfdf;
  position: relative;
}

.mleft_slide .slides .slide {
  position: absolute;
  left: 0px;
  top: 0px;
}

.mleft_slide .slides .slide+.slide {
  display: none;
}

.mleft_slide .slides {
  height: 192px;
  overflow: hidden;
  position: absolute;
  width: 6000px;
}

.mlright,
.mlleft {
  top: 0px;
  bottom: 0px;
  margin: auto;
  left: 10px;
  width: 16px;
  cursor: pointer;
  height: 26px;
  position: absolute;
  background: url(/t/img/larr.png) 0 0 no-repeat;
  z-index: 100;
}

.mlright {
  left: auto;
  right: 10px;
  background-position: 100% 0;
}

.reviews {
  max-width: 1050px;
  width: 100%;
  height: auto;
  color: #595959;
  text-align: center;
  margin: auto;
  margin-top: 54px;
}

.rhead {
  font-weight: bold;
  font-size: 28px;
  margin-bottom: 33px;
}

.rslide {
  margin: auto;
}

.rslide p {
  margin: auto;
  width: 80%;
  text-align: center;
  font-size: 18px;
  color: #595959;
  font-style: italic;
  line-height: 32px;
}

.rslide b {
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  color: #999999;
  display: block;
  margin-top: 9px;
}

.mrev_slide {
  width: 100%;
  position: relative;
  height: auto;
}

/* #endregion UNDEFINED */


/* #region ABOUT */
.big_photo {
  max-width: 1050px;
  height: fit-content;
  width: fit-content;
  margin: 0% auto;
}

.big_photo img {
  max-height: inherit;
  max-width: inherit;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

/* #endregion ABOUT */

/* #region INDEX PAGE */
.index_page {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  margin-top: 73px;
  font-size: 15px;
  color: var(--body-black)000;
  line-height: 22px;
}
.maleft,
.maright {
  flex-basis: 45%;
}
.maleft {
  max-width: 517px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.maleft a img {
  max-height: inherit;
  max-width: inherit;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.ico:first-child {
  margin-left: 0px;
}
.ico {
  color: var(--body-gray-dark);
  display: inline-block;
  font-size: 20px;
  line-height: 25px;
  margin-inline: 5px;
  text-align: center;
  vertical-align: top;
  width: 212px;
}
.icons.ico {
  color: var(--body-gray-dark);
  display: inline-block;
  font-size: 20px;
  line-height: 25px;
  margin-left: 16px;
  text-align: center;
  vertical-align: top;
  width: 245px;
}
.ico span {
  display: block;
  margin-top: 25px;
}
.ico span b {
  font-size: 22px;
  font-weight: normal;
}

.slide-content {
  padding: 20px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* #endregion INDEX PAGE */

/* #region DOCTORS */

/* #region Profile */

/* Стили для аватара */
.profile-avatar {
  --local-width: 16rem;
  --local-height: 16rem;
  width: var(--local-width);
  height: var(--local-height);
  border-radius: 9999px;
  object-fit: cover;
  margin-bottom: 1rem;

  & svg {
    width: var(--local-width);
    height: var(--local-height);
  }
}

/* Стили для текста */
.profile-text {
  text-align: center;
}

/* Стили для имени пользователя */
.username {
  color: #A0AEC0;
  /* Серый цвет */
  margin-bottom: 0.5rem;
  /* 8px */
  margin-top: -0.75rem;
  /* -12px */
}

/* Стили для дополнительной информации */
.profile-info {
  margin-top: 2rem;
  /* 32px */
  hyphens: auto;
}

/* #enregion Profile */


.card_personal__title {
  font-size: 22px;
  font-weight: 500;
  color: var(--body-gray);
}

.catalog_stext {
  font-weight: 500;
}

.catalog_btext {
  color: var(--body-gray);
  font-size: 15px;
}

.card_personal {
  display: grid;
  grid-template-areas:
    " card_text card_logo"
    " card_text card_sublogo"
    " buttons_group card_sublogo";
  grid-template-columns: 1fr 160px;
  grid-template-rows: 160px 1fr 50px;
  margin-block: 44px;
  border-radius: 5px;

  & .card_personal__logo {
    grid-area: card_logo;
    border-radius: 50%;
    overflow: hidden;

    & img {
      width: 100%;
      height: auto;
      object-position: center;
      object-fit: contain;
    }
  }

  & .card_personal__buttons_group {
    grid-area: buttons_group;
    display: flex;
    flex-direction: row;
    margin-top: 15px;

    gap: var(--inner-card-margin);

    & a {
      padding: 11px;
      margin-right: 11px;
      flex: 1;
      border: 1px solid var(--link-blue);
      border-radius: var(--inner-card-margin);
      box-sizing: border-box;
      font-size: 15px;
      color: var(--link-blue);
      font-weight: 500;
      text-align: center;
      line-height: 35px;
      background-color: var(--body-white);

      &:hover {
        background-color: var(--link-blue);
        color: var(--body-white);
        transition: background-color 0.2s ease-in-out;
      }

      &:first-child {
        border-color: var(--acient-color);
        background-color: var(--acient-color);
        color: var(--body-black);

        &:hover {
          border-color: var(--acient-color-hover);
          background-color: var(--acient-color-hover);
          transition: background-color 0.2s ease-in-out;
        }
      }
    }
  }

  & .card_personal__sublogo {
    grid-area: card_sublogo;
    justify-self: center;
    align-self: center;
  }

  & .card_personal__text {
    grid-area: card_text;

    & h2 {
      color: var(--body-gray);
      font-size: 18px;
    }
  }
}

/* #endregion DOCTORS */

/* #region TABLE OF SERVICES */
.analiz {
  border-collapse: collapse;
  font-size: 18px;
  text-align: left;
  color: var(--body-gray);
  width: 585px;

  & td {
    border: 0;
    height: 45px;
  }

  & th {
    border: 0;
    height: 44px;
    font-weight: bold;
    border-bottom: 1px solid #ebebeb;
    background-color: var(--body-white);
  }

  & tr {
    background-color: #ebebeb;
  }

  & tr:nth-child(2n+1) {
    background-color: #f8f8f8;
  }
}

.num {
  padding-left: 27px;
  width: 82px;
  text-align: left;
}

.aname {
  width: 325px;
}

.aprice {
  text-align: center;
}

/* #endregion TABLE OF SERVICES */

/* #region CONTACTS */

.yandex-map {
  width: 100%;
}

/* #endregion CONTACTS */

/* #region FORMS */
/* для формы ввода пароля user сомнения  TODO: переработать */
.card-body {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: stretch;
  & label {
    width: 100%;
  }
}


.container {
  background: var(--body-white);
  margin: 0 auto;
  width: 98vw;
  background-color: var(--body-white);
  box-shadow: 0 1px 7px rgba(0, 0, 0, .2);
}

.cont_form {
  border-top: 1px solid #d7d7d7;
  margin-top: 30px;
  padding-top: 30px;
  margin-inline: auto;
}


.cont_form input {
  width: 358px;
  height: 42px;
  font-family: proxima_nova;
  border: 1px solid #dcddde;
  color: var(--body-black)000;
  font-size: 18px;
  /* padding-left: 15px; */
  margin-top: 14px;
}

.cont_form form {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
}

.cont_form textarea {
  width: 358px;
  height: 194px;
  font-family: proxima_nova;
  border: 1px solid #dcddde;
  color: var(--body-black);
  font-size: 18px;
  padding-top: 6px;
  padding-left: 15px;
  margin-top: 14px;
}

.cont_form input[type="submit"],
.cont_form button[type="submit"] {
  cursor: pointer;
  margin-top: 14px;
  border: 0;
  font-size: 16px;
  color: var(--body-white);
  font-weight: bold;
  font-family: proxima_nova;
  width: 146px;
  height: 42px;
  background-color: var(--link-blue);

  box-shadow: inset 0 -2px var(--link-blue-shadow);
}

.sinp {
  font-size: 18px;
  color: var(--body-gray);
  padding-left: 15px;
  width: 263px;
  font-family: proxima_nova;
  height: 39px;
  border: 1px solid #dcddde;
  border-right: 0;
  vertical-align: middle;
}

.polz_sogl {
  font-size: 0.9em;
  margin-top: 12px;
}

.zapis {
  margin-top: 5px;
  border: 1px solid #128ee1;
  display: block;
  font-size: 15px;
  color: #128ee1;
  text-align: center;
  line-height: 35px;
  width: 188px;
  height: 35px;
  -webkit-border-radius: 1px;
  -moz-border-radius: 1px;
  border-radius: 1px;
  background-color: #fff;
}

/* #endregion FORMS */

/* #region PAGINATOR */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.pagination-list {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 5px;
}

.page-item {
  display: inline;
}

.page-link {
  color: var(--main-blue);
  /* Цвет ссылки */
  padding: 5px 10px;
  text-decoration: none;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.page-link:hover {
  color: #0056b3;
  /* Цвет при наведении */
  background-color: #e9ecef;
  border-color: #dee2e6;
}

.page-item.disabled .page-link {
  color: #6c757d;
  /* Цвет отключенной ссылки */
  pointer-events: none;
  cursor: not-allowed;
  background-color: #f8f9fa;
  border-color: #dee2e6;
}

.page-item.active .page-link {
  background-color: var(--main-blue);
  /* Фон активной ссылки */
  border-color: var(--main-blue);
  color: white;
  /* Цвет текста активной ссылки */
}

.sinp {
  padding: 8px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
}

.sbtn {
  padding: 8px 12px;
  background-color: var(--main-blue);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.sbtn {
  border: 0;
  cursor: pointer;
  width: 43px;
  height: 43px;
  background: url(img/search.png) 0 0 no-repeat;
  vertical-align: middle;
}

.sbtn:hover {
  background-color: #0056b3;
}

/* #endregion PAGINATOR */


.ico span.nomargin {
  margin: 0px;
}

.ico span.nomargin .h1 {
  font-size: 28px;
  color: var(--body-gray);
  font-weight: bold;
  margin-bottom: 15px;
}

.fa {
  display: inline-block;
  font: normal normal normal 14px/1 FontAwesome;
  font-size: inherit;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale
}

.fa {
  display: inline-block;
  font-family: FontAwesome !important;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
}