* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Montserrat", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

.main {
  padding: 24px 0 0;
  /* display: flex;
  justify-content: center; */
  width: 100%;
}

.container {
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  max-width: 1400px;
  width: 100%;
}

.header-top {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  color: rgba(70, 70, 70, 0.6);
  margin: 8px 0;
}

.header-main > * {
  height: 80px;
}

.logo {
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 223px;
  min-width: 16.9%;
  width: auto;
  height: 80px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.header-main.scrolled .logo {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-main {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  transition: all 0.3s ease;
}

.header-main.scrolled {
  position: fixed;
  top: 0;
  left: initial;
  z-index: 1000;
  padding: 8px;
  max-width: 1400px;
  width: calc(100% - 10px);
  box-sizing: border-box;
  margin: 0 auto;
  width: 100%;
}

a.header-btn {
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 183px;
  min-width: 13.9%;
  height: 80px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
  text-decoration: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.header-main.scrolled a.header-btn {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

button.header-menu-btn {
  border-radius: 8px;
  padding: 12px 20px;
  min-width: 223px;
  min-width: 13.9%;
  height: 80px;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
  text-decoration: none;
  border: none;
  display: flex;
  cursor: pointer;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.header-main.scrolled button.header-menu-btn {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

button#accessibility-btn {
  border-radius: 8px;
  padding: 12px 20px;
  height: 80px;
  background: #fff;
  justify-content: center;
  align-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
  text-decoration: none;
  border: none;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
  min-width: 6.1%;
  display: flex;
}

.header-main.scrolled button#accessibility-btn {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

button#callback-btn {
  border-radius: 8px;
  padding: 12px 20px;
  height: 80px;
  justify-content: center;
  align-content: center;
  align-items: center;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  min-width: 13.9%;
  display: flex;
  cursor: pointer;
  background: #fff;
  color: #464646;
}

.header-contact {
  border-radius: 8px;
  padding: 12px 20px;
  height: 80px;
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  text-decoration: none;
  border: none;
  flex-wrap: wrap;
  min-width: 16.9%;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.2;
  background: #fff;
  color: #464646;
}

.header-contact a {
  text-decoration: none;
  font-weight: 900;
  width: 100%;
}

.logo a {
  display: flex;
}
.banner-section {
  display: grid;
  grid-template-columns: 742px calc(100% - 762px);
  gap: 24px;
  align-items: start;
  justify-content: center;
}

.main-banner {
  position: relative;
  border-radius: 20px;
  padding: 60px 80px;
  min-height: 500px;
  display: flex;
  align-items: center;
  overflow: hidden;
  width: 742px;
  height: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.banner-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(3px);
  background: linear-gradient(
    270deg,
    rgba(70, 70, 70, 0.4) 0%,
    rgba(70, 70, 70, 0.4) 50%
  );
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  color: white;
  width: 100%;
}

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

.banner-features {
  list-style: none;
  margin-bottom: 40px;
  margin-top: 106px;
}

.banner-features li {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 150%;
  color: #fff;
  list-style: none;
}

.banner-btn {
  background: transparent;
  border: 1px solid #fff;
  border-radius: 8px;
  padding: 16px 32px;
  width: 368px;
  height: 56px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 150%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
}

.banner-btn:hover {
  background: white;
  color: #333;
}

.slider-container {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 20px;
  height: 100%;
  padding-bottom: 20px;
}

.slider-wrapper {
  border-radius: 20px;
  width: 100%;
  overflow: hidden;
  position: relative;
}

.slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  width: 100%;
}

.promo-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  flex-shrink: 0;
  position: relative;
  min-width: 100%;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
}

.promo-card.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.promo-content {
  padding: 0 40px 40px 40px;
  flex: 1;
  border-radius: 0px 0px 20px 20px;
}

.promo-link {
  text-decoration: none;
  color: inherit;
  display: block;
  cursor: pointer;
}

.promo-link:hover {
  opacity: 0.9;
}

.promo-image {
  width: 100%;
  height: 318px;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
}

.promo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-content {
  flex: 1;
}

.promo-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  line-height: 140%;
  color: #464646;
  line-height: 1.3;
}

.promo-description {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 15px;
  line-height: 150%;
  color: #464646;
  margin-top: 24px;
  /* line-height:1.2; */
}

.promo-btn {
  background: white;
  border: 1px solid rgba(70, 70, 70, 0.6);
  border-radius: 8px;
  padding: 12px 20px;
  width: auto;
  box-sizing: border-box;
  height: 44px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #464646;
  margin-top: 15px;
  cursor: pointer;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-top: 0;
}

.pagination-arrow {
  color: white;
  border: none;
  width: 72px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 27px;
  border-radius: 20px;
  background: #8a0009;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  transition: background 0.3s ease;
}

.pagination-arrow:hover {
  background: #6b0006;
}

.pagination-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  background: #dadada;
  border-radius: 20px;
  padding: 2px 30px;
  height: 34px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.dot.active {
  background: none;
  width: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
  height: 30px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 24px;
  line-height: 140%;
  color: #464646;
}

.header-main.scrolled button#callback-btn {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-main.scrolled .header-contact {
  background-color: #ffffff8c;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

.header-contact a {
  font-weight: 700;
  color: #464646;
}

@media (max-width: 1400px) {
  .banner-section {
    gap: 20px;
  }
  .slider-container {
    width: calc(100vw - 762px);
  }
}
@media (max-width: 1200px) {
  .banner-title {
    font-size: 36px;
  }
  .main-banner {
    width: 100%;
    padding: 60px 70px;
  }
  .banner-section {
    grid-template-columns: 100%;
    gap: 20px;
  }
  .slider-container {
    width: calc(100vw - 24px);
    margin: 0 auto;
  }
}

@media (max-width: 968px) {
  .banner-title {
    font-size: 30px;
  }
  .banner-btn {
    width: auto;
  }
  .banner-section {
    grid-template-columns: 100%;
    gap: 20px;
  }
  .slider-container {
    margin: 0 auto 20px;
    width: calc(100% - 24px);
    background: none;
  }
  .pagination {
    margin-top: 20px;
  }
}

@media (max-width: 768px) {
  .banner-section {
    grid-template-columns: 100%;
    gap: 20px;
  }

  .doublegis.mobile {
    display: block;
    margin-top: 24px;
  }

  .doublegis.mobile iframe {
    max-width: 100%;
    width: 100%;
  }
  .main-banner {
    width: 100%;
    padding: 40px 20px;
    min-height: 400px;
  }

  .banner-title {
    font-size: 2rem;
  }

  .banner-features li {
    font-size: 1rem;
  }

  .slider-container {
    width: calc(100% - 24px);
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 10px;
    max-width: 100%;
  }

  .banner-section {
    gap: 20px;
  }

  .main-banner {
    width: 100%;
    padding: 40px 12px;
    min-height: 300px;
    box-sizing: border-box;
  }

  /* Мобильная версия меню - дополнительно для маленьких экранов */
  .header-menu-btn .menu-text {
    display: none;
  }

  .header-menu-btn {
    min-width: auto;
    width: auto;
    padding: 12px;
    justify-content: center;
  }

  /* Скрываем лишние элементы в мобильной версии */
  .header-btn,
  .header-contact,
  button#accessibility-btn,
  button#callback-btn {
    display: none !important;
  }

  /* Логотип и меню занимают всё пространство */
  .header-main {
    justify-content: space-between;
  }

  .logo {
    min-width: auto;
    flex: 0 0 auto;
  }

  .sidebar-content {
    max-width: 100%;
    width: 100% !important;
    border-radius: 0;
  }

  .banner-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: #fff;
  }

  .banner-features {
    margin-top: 40px;
    margin-bottom: 20px;
  }

  .banner-features li {
    margin-bottom: 0px;
    line-height: 1.3;
  }

  .banner-btn {
    width: 100%;
    max-width: 280px;
    padding: 12px 16px;
    font-size: 14px;
    height: auto;
  }
  .main-banner {
    padding: 40px 12px;
    min-height: 280px;
  }
  .promo-content {
    padding: 0 20px 20px 20px;
  }

  .banner-features li {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: #fff;
  }
  .promo-description {
    font-size: 12px;
  }
  .promo-btn {
    min-width: 100%;
  }
  .banner-btn {
    padding: 16px 12px;
    font-size: 16px;
    min-width: 100%;
  }
  .container {
    padding: 0;
  }
}

@media (max-width: 360px) {
  .container {
    padding: 0;
  }

  .main-banner {
    padding: 40px 12px;
    min-height: 280px;
  }
  .promo-content {
    padding: 0 20px 20px 20px;
  }

  .banner-features li {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 12px;
    line-height: 150%;
    color: #fff;
  }
  .promo-description {
    font-size: 12px;
  }
  .promo-btn {
    min-width: 100%;
  }
  .banner-btn {
    padding: 16px 12px;
    font-size: 16px;
    min-width: 100%;
  }
}

body.accessibility-mode {
  font-size: 18px;
  line-height: 1.8;
}

body.accessibility-mode * {
  font-size: inherit;
}

body.accessibility-mode h1,
body.accessibility-mode h2,
body.accessibility-mode h3,
body.accessibility-mode h4,
body.accessibility-mode h5,
body.accessibility-mode h6 {
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.5;
}

body.accessibility-mode p,
body.accessibility-mode li,
body.accessibility-mode span,
body.accessibility-mode div {
  font-size: 1.1em;
  line-height: 1.8;
}

body.accessibility-mode button,
body.accessibility-mode a {
  font-size: 1.2em;
  padding: 12px 24px;
  min-height: 44px;
  min-width: 44px;
}

body.accessibility-mode {
  color: #000;
  background: #fff;
}

body.accessibility-mode * {
  border-color: #000 !important;
}

body.accessibility-mode a {
  text-decoration: underline;
  color: #0000ee;
}

body.accessibility-mode a:visited {
  color: #551a8b;
}

body.accessibility-mode a:hover,
body.accessibility-mode a:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

body.accessibility-mode button:focus,
body.accessibility-mode input:focus,
body.accessibility-mode textarea:focus,
body.accessibility-mode select:focus {
  outline: 3px solid #000;
  outline-offset: 2px;
}

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

.prices-card {
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

.prices-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

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

.prices-link {
  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;
}

.prices-content {
  display: flex;
  gap: 40px;
}

.prices-column {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.prices-item {
  break-inside: avoid;
  page-break-inside: avoid;
}

.prices-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);
}

.prices-toggle:hover {
  opacity: 0.7;
}

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

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

.prices-name {
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  font-family: "Montserrat", sans-serif;
}

.prices-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;
}

.prices-item.active .prices-details {
  max-height: 2000px;
  opacity: 1;
  padding-top: 20px;
  padding-bottom: 20px;
  border-bottom: 0.5px solid rgb(70 70 70 / 20%);
}

.prices-item:first-child {
  border-top: 0.5px solid rgb(70 70 70 / 20%);
}

.prices-list-wrapper {
  width: 100%;
}

.prices-list-header {
  display: flex;
  padding: 15px 10px;
}

.prices-list-header .prices-list-name {
  flex: 1;
  font-size: 14px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.prices-list-header .prices-list-price {
  width: 30%;
  text-align: right;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.prices-list-body {
  font-family: "Montserrat", sans-serif;
}

.prices-category-group {
  margin-bottom: 0;
}

.prices-category-group:not(:last-child) {
  margin-bottom: 0;
}

.prices-list-item {
  display: flex;
  /* border-bottom: 0.5px solid rgb(70 70 70 / 20%); */
  padding: 12px 10px;
}

.prices-category-group .prices-list-item:last-child {
  margin-bottom: 7.5px;
}

.prices-list-item .prices-list-name {
  flex: 1;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.prices-list-item .prices-list-price {
  width: 25%;
  text-align: right;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.prices-category {
  padding: 10px;
  margin: 0;
  background: #fbf7ed;
  border-radius: 10px;
  margin-bottom: 20px;
}

.prices-category-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.prices-category-group-level-2 {
  margin-left: 0;
  margin-top: 0;
}

.prices-category-level-2 {
  background-color: #fbf7ed;
  padding: 10px;
  margin-bottom: 5px;
}

.prices-category-group-level-2 .prices-list-item {
  margin-left: 0;
  padding: 7.5px 10px;
}

.prices-list-footer {
  margin-top: 0;
  padding-top: 10px;
  padding-left: 10px;
}

.prices-list-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: opacity 0.3s ease;
}

.prices-list-link:hover {
  opacity: 0.7;
}

.specialist-slider-section {
  margin-top: 24px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #8a0009;
}

.specialist-slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.specialist-slider-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #fff;
}

.specialist-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
}

.specialist-pagination-arrow {
  color: white;
  border: none;
  width: 73px;
  height: 34px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: f5f5f5;
  transition: background 0.3s ease;
}

.specialist-pagination-arrow:hover {
  background: rgba(255, 255, 255, 0.3);
}

.specialist-pagination-dots {
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.05);
  background: #dadada;
  border-radius: 20px;
  padding: 2px 30px;
  height: 34px;
}

.specialist-pagination-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.3s ease;
}

.specialist-pagination-dots .dot.active {
  background: none;
  width: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #464646;
  font-weight: 600;
  height: 30px;
  font-family: var(--font-family);
  line-height: 140%;
}

.specialist-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
  transition: height 0.4s ease;
}

.specialist-slider-track {
  display: flex;
  gap: 20px;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: visible;
  width: 100%;
}

.specialist-slide {
  border-radius: 20px;
  padding: 20px;
  width: 100%;
  flex-shrink: 0;
  min-width: 100%;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  opacity: 0.6;
  height: max-content;
  background: #f5f5f5;
}

.specialist-slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.specialist-slide-content {
  display: flex;
  gap: 93px;
  flex-wrap: nowrap;
  flex-direction: row;
  align-items: stretch;
  min-height: 100%;
  justify-content: space-between;
}

.specialist-info {
  width: 188px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-height: 100%;
}

.specialist-name {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #464646;
  margin: 0;
}
.specialist-slide-content.slide2,
.specialist-slide-content.slide3,
.specialist-slide-content.slide4,
.specialist-slide-content.slide6 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-buttons-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.slide3 .service-price {
  padding-left: 0px;
}

.service-package-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.slide4 .specialist-services,
.slide6 .specialist-services,
.slide7 .specialist-services {
  background: none;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.slide4 .service-package,
.slide6 .service-package,
.slide7 .service-package {
  border: 0.5px solid rgba(70, 70, 70, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  background: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.specialist-photo {
  aspect-ratio: 1;
  overflow: hidden;
  background: #f5f5f5;
  width: 188px;
  height: 200px;
  border-radius: 20px;
  margin-top: auto;
}

.specialist-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specialist-services {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  border: 0.5px solid rgba(70, 70, 70, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  background: #fff;
  /* max-width: 919px; */
}

.service-package {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-condition {
  line-height: 140%;
  margin-bottom: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: #464646;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-list-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.price-buttons-right {
  width: 50%;
  margin-left: 50%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
}
.slide3 .service-package {
  border: 0.5px solid rgba(70, 70, 70, 0.2);
  border-radius: 20px;
  padding: 30px 20px;
  background: #fff;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.slide3 .specialist-services {
  background: none;
  padding: 0;
  border: 0;
  display: flex;
  flex-direction: row;
  gap: 10px;
}
.service-item {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding-left: 23px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 0.02em;
  color: #464646;
  align-content: center;
}
.service-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: initial;
  width: 13px;
  height: 10px;
  background-image: url(../img/check.svg);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-item svg {
  flex-shrink: 0;
  margin-top: 4px;
}

.service-item span {
  flex: 1;
}

.service-price {
  line-height: 150%;
  margin-top: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  padding-left: 6px;
}

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

.service-btn:hover {
  background: #a01a00;
}

/* Ð‘Ð»Ð¾Ðº Ñ„Ð¾Ñ€Ð¼Ñ‹ ÐºÐ¾Ð½ÑÑƒÐ»ÑŒÑ‚Ð°Ñ†Ð¸Ð¸ */
.consultation-section {
  margin-top: 24px;
  padding: 0;
  border-radius: 20px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fbf7ed;
}

.consultation-card {
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.consultation-info {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.consultation-title {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  max-width: 408px;
  line-height: 1.2;
}

.consultation-text {
  line-height: 1.3;
  margin-top: auto;
  margin-bottom: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #4f2121;
  max-width: 217px;
}

.consultation-form {
  display: flex;
  flex-direction: row;
  gap: 20px;
  flex-wrap: wrap;
  background: #fff;
  border-radius: 20px;
  padding: 20px 21px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: visible;
}
.form-group p {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: visible;
}

.form-group:nth-child(1),
.form-group:nth-child(2) {
  width: calc(50% - 15px);
}
.form-group:nth-child(3) {
  width: 100%;
}
.form-label {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #464646;
  letter-spacing: 0.02em;
}

.form-input {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.3s ease;
}

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

.form-input::placeholder {
  color: #999;
}

.form-input-phone {
  padding-left: 50px;
}

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

.phone-flag {
  position: absolute;
  left: 16px;
  font-size: 20px;
  z-index: 1;
}

.phone-code {
  position: absolute;
  left: 44px;
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: #333;
  z-index: 1;
}

.form-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  margin: 0 0 0px 0;
  color: #4f2121;
}

.radio-group {
  display: flex;
  flex-direction: row;
  gap: 10px 20px;
  flex-wrap: wrap;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.radio-input {
  width: 10px;
  height: 10px;
  cursor: pointer;
  accent-color: #8b4513;
}

.radio-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.wpcf7-radio label {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.wpcf7-radio label input {
  width: 10px;
  height: 10px;
  cursor: pointer;
  accent-color: #8b4513;
}

.wpcf7-radio label span {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.wpcf7-form-control-wrap span.wpcf7-form-control {
  display: flex;
  height: fit-content;
  flex-wrap: wrap;
  width: auto;
  gap: 10px;
}

.wpcf7-list-item {
  margin: 0;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
}

.form-privacy {
  margin-top: 0;
  flex: 1;
}

.privacy-text {
  margin: 0;
  max-width: 258px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.privacy-link {
  color: #8b4513;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  transition: opacity 0.3s ease;
}

.privacy-link:hover {
  opacity: 0.7;
}

.form-submit-btn {
  background-color: #8b0000;
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: background-color 0.3s ease;
  margin-top: 0;
  flex-shrink: 0;
  min-width: 239px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 120%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.form-submit-btn:hover {
  background-color: #a52a2a;
}

.form-submit-btn svg {
  flex-shrink: 0;
}

/* Ð¡Ñ‚Ð¸Ð»Ð¸ Ð´Ð»Ñ intl-tel-input */
.form-group .iti {
  width: 100%;
}

.form-group .iti__selected-flag {
  z-index: 2;
}

.form-group .iti__country-list {
  position: absolute;
  z-index: 1000;
  width: 100%;
  max-width: 100%;
  left: 0;
  top: 100%;
  margin-top: 1px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.form-group .iti__country {
  padding: 8px 12px;
}

.form-group .iti__flag-box,
.form-group .iti__country-name {
  margin-right: 8px;
}

ul#iti-0__country-listbox {
  max-height: 200px;
  overflow-y: scroll;
}

.iti__search-input-wrapper {
  display: none;
}

.iti--fullscreen-popup.iti--container {
  padding: 0 !important;
  position: relative !important;
}
.form-group .iti__country-list {
  top: -14px;
}

/* Ð‘Ð»Ð¾Ðº Ð¼ÐµÐ´Ð¸Ñ†Ð¸Ð½ÑÐºÐ¸Ñ… Ð½Ð°Ð¿Ñ€Ð°Ð²Ð»ÐµÐ½Ð¸Ð¹ */
.directions-section {
  margin-top: 24px;
}

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

.directions-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin-bottom: 40px;
}

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

.directions-column {
  display: flex;
  flex-direction: column;
  border-top: 0.5px dashed #4f2121;
}

.direction-item {
  border-bottom: 0.5px dashed #4f2121;
}

.direction-item > a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.direction-item:last-child {
  border-bottom: 0.5px dashed #4f2121;
}

.direction-item_icon {
  width: 40px;
  height: 30px;
  display: flex;
  flex-shrink: 0;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.direction-name {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
}

/* Ð‘Ð»Ð¾Ðº Ð¿Ð¾Ð´Ð°Ñ€Ð¾Ñ‡Ð½Ð¾Ð³Ð¾ ÑÐµÑ€Ñ‚Ð¸Ñ„Ð¸ÐºÐ°Ñ‚Ð° */
.certificate-section {
  margin-top: 24px;
}

.certificate-card {
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #fbf7ed;
}

.certificate-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.certificate-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.certificate-purchase {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.certificate-subtitle {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
}

.certificate-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 32px;
}

.certificate-list li {
  position: relative;
  padding-left: 22px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
  line-height: 1.3;
}

.certificate-list li::before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #841800;
}

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

.certificate-btn:hover {
  background: #a01a00;
}

.certificate-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.certificate-advantages-title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
}

.certificate-advantages {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-weight: 400;
}

ul.certificate-advantages li strong {
  font-weight: 400;
}

ul.certificate-advantages li:before {
  content: "•";
  position: absolute;
  left: 6px;
  color: #841800;
}

.certificate-advantages li {
  line-height: 1.6;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  position: relative;
  padding-left: 22px;
  line-height: 140%;
}

.certificate-advantages li strong {
  font-weight: 600;
  color: #464646;
}

.certificate-slogan {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #464646;
  margin-top: 26px;
}

.certificate-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.certificate-item {
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.certificate-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  object-fit: cover;
}

/* Галерея */
.gallery-section {
  margin-top: 24px;
}

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

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

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

/* Скрываем мобильную пагинацию по умолчанию */
.specialist-pagination-mobile {
  display: none;
}

.gallery-item {
  border-radius: 12px;
  overflow: hidden;
  position: absolute;
  height: 200px;
  cursor: pointer;
}

.gallery-image {
  height: 200px;
  width: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

/* ÐŸÐ¾Ð¿Ð°Ð¿ Ð´Ð»Ñ Ð³Ð°Ð»ÐµÑ€ÐµÐ¸ */
.gallery-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

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

.gallery-popup-content {
  position: relative;
  z-index: 10001;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-popup-image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.gallery-popup-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  z-index: 10002;
}

.gallery-popup-close:hover {
  transform: rotate(90deg);
}

.gallery-popup-close svg {
  width: 32px;
  height: 32px;
}

.gallery-popup-prev,
.gallery-popup-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10002;
  width: 50px;
  height: 50px;
}

.gallery-popup-prev {
  left: 20px;
}

.gallery-popup-next {
  right: 20px;
}

.gallery-popup-prev:hover,
.gallery-popup-next:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.gallery-popup-prev:active,
.gallery-popup-next:active {
  transform: translateY(-50%) scale(0.95);
}

.gallery-popup-prev svg,
.gallery-popup-next svg {
  width: 24px;
  height: 24px;
}

.gallery-popup-prev:disabled,
.gallery-popup-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.gallery-popup-prev:disabled:hover,
.gallery-popup-next:disabled:hover {
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* Ð‘Ð»Ð¾Ðº Ñ†ÐµÐ½Ñ‚Ñ€Ð° Ð¿Ñ€Ð¾Ñ„ÐµÑÑÐ¸Ð¾Ð½Ð°Ð»ÑŒÐ½Ð¾Ð¹ Ð¿Ð°Ñ‚Ð¾Ð»Ð¾Ð³Ð¸Ð¸ */
.center-section {
  margin-top: 24px;
}

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

.center-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.center-left {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-content: space-between;
  align-items: stretch;
  flex-wrap: wrap;
}

.center-logo {
  width: 100%;
  max-width: 428px;
}

.center-logo-image {
  width: 100%;
  height: auto;
  display: block;
}

.center-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.05em;
  color: #464646;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.3;
}

.center-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.center-subtitle {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0.02em;
  color: #4f2121;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 120%;
  max-width: 520px;
  margin-top: 20px;
}

.center-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.center-feature {
  position: relative;
  padding-left: 31px;
  line-height: 1.5;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #464646;
  display: flex;
  align-items: center;
  align-content: center;
  justify-content: flex-start;
  flex-direction: row;
}

.center-feature::before {
  content: "";
  position: relative;
  left: 0;
  top: initial;
  width: 21px;
  min-width: 21px;
  height: 16px;
  background-image: url("../img/check.svg");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: left;
  margin-left: -31px;
  display: block;
  padding-right: 10px;
  justify-content: flex-start;
  flex-direction: row;
}

.center-btn {
  background: #8a0009;
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.3s ease;
  width: 100%;
  max-width: 428px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

.center-btn:hover {
  background: #a01a00;
}

/* Reviews Section */
.reviews-section {
  margin-top: 24px;
  padding: 40px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  background: #e9e8ee;
  border-radius: 20px;
}

.reviews-content {
  display: grid;
  grid-template-columns: 387px calc(100% - 878px) 401px;
  gap: 15px;
  align-items: start;
  justify-items: stretch;
  justify-content: space-between;
  box-sizing: border-box;
}

.reviews-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: flex;
  justify-content: flex-start;
}

input#review-name {
  border-radius: 20px;
  padding: 5px 10px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  height: 40px;
  display: flex;
  align-content: center;
  align-items: center;
  width: 100%;
}

input#review-phone {
  border-radius: 20px;
  padding: 5px 10px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  height: 40px;
  display: flex;
  align-content: center;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
}

.form-row {
  gap: 5px;
}

.reviews-title {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 32px;
  letter-spacing: 0.02em;
  color: #464646;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: 0.02em;
  color: #464646;
  max-width: 258px;
  line-height: 120%;
}

.reviews-description {
  line-height: 125%;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  max-width: 258px;
}

.reviews-ratings img {
  max-width: 150px;
}

.review-form textarea {
  border: none;
  border-radius: 20px;
  padding: 5px 10px;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  height: 40px;
  display: flex;
  align-content: center;
  align-items: center;
  height: 88px;
  min-height: 88px;
  width: 100%;
}

.reviews-ratings {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.rating-link {
  display: block;
  transition: opacity 0.3s ease;
}

.rating-link:hover {
  opacity: 0.7;
}

.rating-icon {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

.reviews-center {
  padding: 80px 7.5px 10px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.review-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: visible;
  width: 100%;
}

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

.review-form .form-row-top .form-group:nth-child(1),
.review-form .form-row-top .form-group:nth-child(2) {
  width: 50%;
}

.review-form .form-group .iti__country-list {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  max-height: 200px;
  overflow-y: scroll;
}

.form-label {
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.form-input,
.form-textarea {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  padding: 12px 16px;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
  background: #fff;
  transition: border-color 0.3s ease;
}

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

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.review-submit-btn {
  background: #8a0009;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  cursor: pointer;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  min-width: 239px;
}

.form-group-submit {
  display: flex;
  justify-content: flex-end;
}

.review-submit-btn:hover {
  background: #a01a00;
}

.form-privacy {
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #4f2121;
  max-width: 324px;
}

.privacy-link {
  color: #8a0009;
  text-decoration: underline;
  transition: opacity 0.3s ease;
}

.privacy-link:hover {
  opacity: 0.7;
}

.reviews-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  align-content: flex-end;
  text-align: center;
}

.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  max-width: 324px;
  margin: 0 auto;
}

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

.wpcf7-not-valid-tip {
  font-size: 12px;
}

.wpcf7 form .wpcf7-response-output {
  margin: 20px 0 0 0;
  font-size: 13px;
}

.map-section iframe {
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  border-radius: 20px;
}

.contacts-section {
  margin-top: 24px;
  margin-bottom: 24px;
  padding: 0;
}

.contacts-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 30px;
  max-width: 1162px;
  margin: 0 auto;
}

.contact-card {
  border-radius: 20px;
  padding: 11.5px;
  background: #fbf7ed;
  border: 1px solid #fff;
  display: flex;
  flex-direction: column;
  align-content: center;
  align-items: center;
  justify-content: center;
}

.contact-card-title {
  margin: 0 0 10px 0;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.contact-card-content {
  margin: 0;
  line-height: 122%;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-align: center;
  color: #4f2121;
  text-decoration: none;
}

.map-section {
  margin-top: 24px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
  border-radius: 20px;
  filter: grayscale(80%);
}

.contact-card:nth-child(1) .contact-card-title,
.contact-card:nth-child(3) .contact-card-title {
  margin-bottom: 20px;
}
.contact-messengers {
  display: flex;
  gap: 12px;
}

.messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: opacity 0.3s ease;
}

.messenger-link:hover {
  opacity: 0.7;
}

.messenger-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 30px;
  height: auto;
}

.contacts-bottom {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 0;
  max-width: 683px;
  margin: 24px auto;
  flex-wrap: nowrap;
  justify-content: center;
}

div#contacts-bottom > div,
div#contacts-bottom > a {
  background: #e8e8e8;
  border-radius: 20px;
  width: 221px;
  height: 70px;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #464646;
  flex-wrap: nowrap;
  max-width: 221px;
  text-align: center;
  text-decoration: none;
  line-height: 120%;
  min-width: 221px;
}

div#contacts-bottom.fixed > div,
div#contacts-bottom.fixed > a {
  border: 1px solid #fff;
}

p.footer-legal br {
  display: none;
}
.contacts-bottom.fixed {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  z-index: 1000;
}

.contact-phone {
  font-family: "Montserrat", sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
}

.contact-messengers-bottom {
  display: flex;
  gap: 20px;
}

.contact-registry-btn {
  background: #8a0009;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease;
  white-space: nowrap;
}

.contact-registry-btn:hover {
  background: #a01a00;
}

/* Footer */
.footer {
  padding: 100px 0;
  margin-top: 16px;
  background: #e8e8e8;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
  padding-bottom: 40px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.footer-title {
  margin: 0 0 20px 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 400;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #464646;
  margin: 0;
  line-height: 1.5;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 10px;
}

.footer-icon {
  width: 28px;
  height: 30px;
  flex-shrink: 0;
  object-fit: contain;
}

.footer-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-link:hover {
  opacity: 0.7;
}

.footer-messengers {
  margin-top: 10px;
}

.footer-subtitle {
  margin: 0 0 20px 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-messengers-list {
  display: flex;
  gap: 20px;
}

.footer-messenger-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  transition: opacity 0.3s ease;
}

.footer-messenger-link:hover {
  opacity: 0.7;
}

.footer-messenger-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-link {
  text-decoration: none;
  transition: opacity 0.3s ease;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-nav-link:hover {
  opacity: 0.7;
}

.footer-bottom {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 100px;
}

.footer-bottom-left {
  display: flex;
  flex-direction: row;
  gap: 100px;
}

.footer-logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

.footer-legal {
  line-height: 1.5;
  margin: 0;
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
  max-width: 349px;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-social-title {
  margin: 0;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.footer-social-list {
  display: flex;
  gap: 20px;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 30px;
  transition: opacity 0.3s ease;
}

.footer-social-link:hover {
  opacity: 0.7;
}

.footer-social-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Ð’Ñ‹ÐµÐ·Ð¶Ð°ÑŽÑ‰Ð¸Ðµ Ð¼ÐµÐ½ÑŽ (ÑÐ°Ð¹Ð´Ð±Ð°Ñ€Ñ‹) */
.sidebar-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0s linear 0.4s,
    opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
  transition: visibility 0s linear 0s, opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu.active .sidebar-overlay {
  opacity: 1;
}

.sidebar-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 527px;
  height: 100%;
  background: #fff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  will-change: transform;
  border-radius: 20px 0 0 20px;
  width: 527px;
  /* height: 964px; */
}

.sidebar-menu.active .sidebar-content {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px;
  flex-shrink: 0;
  align-content: center;
}

.sidebar-logo img {
  height: 40px;
  width: 170px;
}

.sidebar-title {
  line-height: 122%;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 50px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.sidebar-close {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.sidebar-close:hover {
  opacity: 0.7;
}

.sidebar-nav {
  padding: 0px 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex-shrink: 0;
}

.sidebar-link {
  line-height: 111%;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.sidebar-link:hover {
  color: #8a0009;
}

.sidebar-contact {
  padding: 0;
  border-radius: 12px;
  margin: 0 40px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  max-width: 293px;
}

.sidebar-contact-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fbf7ed;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 20px;
}

.sidebar-contact-label {
  line-height: 150%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.sidebar-contact-value {
  line-height: 122%;
  text-decoration: none;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: #4f2121;
  text-align: center;
}

.sidebar-contact-value:hover {
  color: #8a0009;
}

.sidebar-messengers {
  margin: 0 40px 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  max-width: 293px;
  background: #fbf7ed;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 20px;
}

.sidebar-messengers-title {
  line-height: 150%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #4f2121;
}

.sidebar-messengers-list {
  display: flex;
  gap: 20px;
}

.sidebar-messenger-link {
  width: auto;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.sidebar-messenger-link:hover {
  transform: scale(1.1);
}

.sidebar-messenger-link img {
  width: 24px;
  height: 24px;
}

.sidebar-actions {
  padding: 0 40px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
  padding-bottom: 40px;
  box-sizing: border-box;
}

.sidebar-btn {
  width: 100%;
  padding: 16px 24px;
  border-radius: 8px;
  border: none;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 14px;
  line-height: 143%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  max-width: 293px;
}

.sidebar-btn-primary {
  background: #8a0009;
  color: #fff;
}

.sidebar-btn-primary:hover {
  background: #a01a00;
}

.sidebar-btn-secondary {
  background: #fff;
  color: #464646;
  border: 1px solid #8a0009;
}

.sidebar-btn-secondary:hover {
  background: #f5f5f5;
}

.sidebar-btn-dark {
  background: #000;
  color: #fff;
}

.sidebar-btn-dark:hover {
  background: #333;
}

.sidebar-form {
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-form .form-label {
  line-height: 150%;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.sidebar-form .form-input,
.sidebar-form .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #464646;
  transition: border-color 0.3s ease;
}

.sidebar-form .form-input:focus,
.sidebar-form .form-textarea:focus,
.sidebar-form select:focus {
  outline: none;
  border-color: #8a0009;
}

.sidebar-form select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #464646;
  background-color: #fff;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23464646' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  transition: border-color 0.3s ease;
}

.sidebar-form select option {
  padding: 12px 16px;
  color: #464646;
}

.sidebar-form .form-textarea {
  resize: vertical;
  min-height: 100px;
}

.sidebar-form .form-privacy {
  margin-top: 8px;
}

.sidebar-form .privacy-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 12px;
  line-height: 150%;
  color: #464646;
  cursor: pointer;
}

.sidebar-form .privacy-label input[type="checkbox"] {
  margin-top: 2px;
  cursor: pointer;
}

.sidebar-form .privacy-link {
  color: #8a0009;
  text-decoration: underline;
}

.sidebar-form .privacy-link:hover {
  opacity: 0.7;
}

body.sidebar-open {
  overflow: hidden;
}

input#consultation-name {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
}

input#consultation-phone {
  border-top: 0px;
  border-left: 0px;
  border-right: 0px;
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  padding: 10px 0;
  width: 100%;
  border-bottom: 1px solid #e0e0e0;
  border-radius: 0;
}
input#service-name,
input#service-phone {
  color: rgba(70, 70, 70, 0.6);
  border-radius: 20px;
  width: 100%;
}
input#preparation-name,
input#preparation-phone {
  color: rgba(70, 70, 70, 0.6);
  border-radius: 20px;
  width: 100%;
}
.service-form-card .consultation-form {
  background: #fbf7ed;
}
.preparation-form-card .consultation-form {
  background: #fbf7ed;
}

.iti__selected-dial-code {
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
  padding: 10px 0;
}

.sidebar-logo a {
  display: flex;
}

button#sidebar-callback-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 121%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
}

button#sidebar-appointment-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 170%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #4f2121;
  border: 0.5px solid #4f2121;
  border-radius: 8px;
  padding: 12px 20px;
}

button#sidebar-accessibility-btn {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 182%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  gap: 20px;
  padding: 12px 12px;
}
div#callback-sidebar .sidebar-content,
#certificate-sidebar .sidebar-content,
#appointment-sidebar .sidebar-content,
#question-sidebar .sidebar-content,
#checkup-sidebar .sidebar-content {
  border-radius: 20px 0 0 20px;
  width: 870px;
  min-width: 870px;
}

div#callback-sidebar input#callback-name,
#appointment-sidebar input#callback-name,
#question-sidebar input#question-name,
#checkup-sidebar input#checkup-name {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

div#callback-sidebar input#callback-phone,
div#appointment-sidebar input#callback-phone,
div#question-sidebar input#question-phone,
div#checkup-sidebar input#checkup-phone {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

textarea#callback-message,
textarea#checkup-message {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

div#callback-sidebar input,
div#callback-sidebar textarea,
#appointment-sidebar input,
#appointment-sidebar textarea,
#question-sidebar input,
#question-sidebar textarea,
#checkup-sidebar input,
#checkup-sidebar textarea,
#certificate-sidebar input {
  border: none;
  border-bottom: 0.5px solid rgba(70, 70, 70, 0.2);
  border-radius: 0px;
  padding: 0px 20px 20px 0;
  width: 100%;
}

div#callback-sidebar .form-group,
div#appointment-sidebar .form-group,
div#question-sidebar .form-group,
div#checkup-sidebar .form-group,
div#certificate-sidebar .form-group {
  width: 100%;
}

.form-group.select-sert {
  margin-top: 20px;
}

div#certificate-sidebar .form-group .select-sert {
  gap: 10px;
}
div#callback-sidebar button.sidebar-btn.sidebar-btn-primary,
div#appointment-sidebar button.sidebar-btn.sidebar-btn-primary,
div#question-sidebar button.sidebar-btn.sidebar-btn-primary,
div#checkup-sidebar button.sidebar-btn.sidebar-btn-primary,
div#certificate-sidebar button.sidebar-btn.sidebar-btn-primary {
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 11px;
  line-height: 110%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  max-width: 239px;
}

/* Кастомный dropdown для выбора номинала сертификата */
.custom-dropdown {
  position: relative;
  width: 100%;
}

.custom-dropdown-selected {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #e5e5e5;
  border-radius: 0;
  background-color: #fff;
  cursor: pointer;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: rgba(70, 70, 70, 0.6);
}

.custom-dropdown-selected p {
  flex-direction: row;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

#certificate-form {
  overflow: visible;
}

.custom-dropdown-text {
  flex: 1;
  transition: color 0.2s ease;
}

.custom-dropdown-arrow {
  flex-shrink: 0;
  margin-left: 12px;
  transition: transform 0.3s ease;
}

.custom-dropdown.active .custom-dropdown-arrow {
  transform: rotate(180deg);
}

.custom-dropdown-list {
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  list-style: none;
  margin: 0;
  padding: 4px 0;
  z-index: 1000;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.custom-dropdown.active .custom-dropdown-list {
  max-height: 300px;
  opacity: 1;
  padding: 0;
}

.custom-dropdown-item {
  padding: 7px 20px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.02em;
  color: #464646;
}

.custom-dropdown-item:hover {
  background-color: #007bff;
  color: #fff;
}

.custom-dropdown-item.selected {
  background-color: #007bff;
  color: #fff;
}

.custom-dropdown.error .custom-dropdown-selected {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.25);
}

.sidebar-form-row {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 61px;
  margin-top: 20px;
}

div#callback-sidebar p.privacy-text,
#appointment-sidebar p.privacy-text,
#question-sidebar p.privacy-text,
#checkup-sidebar p.privacy-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #4f2121;
  line-height: 120%;
}

.mobile {
  display: none;
}

/* COOKIE POPUP */
.cookie_popup {
  display: flex;
  width: 100%;
  gap: 30px;
  align-items: center;
  justify-content: space-between;
  background: #dadada;
  border-radius: 20px;
  padding: 25px;
  position: fixed;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 9999;
}
.cookie_popup_text {
  color: #464646;
  font-size: 15px;
  font-weight: 400;
  font-family: var(--font-family);
  width: 80%;
  flex-shrink: 0;
  & a {
    text-decoration: underline;
    color: #464646;
  }
  & a:visited {
    color: #464646;
  }
}
.cookie_popup_btn {
  padding: 12px 20px;
  border: 1px solid #46464699;
  border-radius: 8px;
  color: #464646;
  font-size: 15px;
  font-weight: 500;
  transition: 0.3s;
  font-family: var(--font-family);
  background: #dadada;
  width: -webkit-fill-available;
  cursor: pointer;
  &:hover {
    opacity: 0.75;
    transition: 0.3s;
  }
}

.cookie_popup_close {
  color: #464646;
  position: absolute;
  top: 10px;
  right: 15px;
  transition: 0.3s;
  height: 20px;
  width: 20px;
  font-size: 40px;
  line-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  &:hover {
    opacity: 0.75;
    transition: 0.3s;
  }
}
@media (max-width: 768px) {
  .cookie_popup {
    flex-direction: column;
    gap: 20px;
  }
  .cookie_popup_text {
    width: 100%;
  }
}
@media screen and (max-width: 1024px) {
  .prices-content {
    display: flex;
    flex-wrap: wrap;
  }

  .consultation-card {
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
  }

  .directions-content {
    display: flex;
    flex-wrap: wrap;
  }

  .certificate-content {
    display: flex;
    flex-wrap: wrap;
  }

  h2.certificate-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #464646;
  }

  .certificate-left {
    max-width: 100%;
  }

  ul.certificate-list li {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #464646;
  }

  ul.certificate-list {
    display: flex;
    flex-wrap: wrap;
  }

  .center-content {
    display: flex;
    flex-wrap: wrap;
  }

  .reviews-content {
    display: flex;
    flex-wrap: wrap;
  }

  .contacts-top {
    display: flex;
    flex-wrap: wrap;
  }

  div#contacts-bottom {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-top {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-bottom {
    display: flex;
    flex-wrap: wrap;
  }

  .footer-bottom-left {
    display: flex;
    flex-wrap: wrap;
  }

  .specialist-slide-content {
    display: flex;
    flex-wrap: wrap;
  }

  .specialist-slider-header {
    display: flex;
    flex-wrap: wrap;
  }

  .form-group:nth-child(1),
  .form-group:nth-child(2) {
    width: 100%;
  }

  form.consultation-form {
    width: 100%;
  }

  .form-footer {
    display: flex;
    flex-wrap: wrap;
  }

  div#contacts-bottom {
    position: relative;
  }

  .header-top {
    display: none;
  }

  .logo a img {
    max-width: 85px !important;
  }

  .header-main {
    border-radius: 0 0 20px 20px;
    background: #fff;
    padding: 10px 12px;
    height: 40px;
  }

  .logo {
    padding: 0;
    height: auto;
  }

  button.header-menu-btn {
    padding: 0;
    height: auto;
  }

  button.header-menu-btn svg {
    height: 10px;
  }

  button.header-menu-btn {
    display: flex;
    flex-direction: row-reverse;
  }

  main.main {
    padding-top: 10px;
  }

  .prices-section {
    margin-top: 0px;
  }

  .prices-card {
    border-radius: 20px;
    padding: 20px 32px;
  }

  h2.prices-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #4f2121;
    margin-bottom: 11px;
  }

  .prices-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  a.prices-link {
    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;
  }

  span.prices-name {
    font-size: 14px;
  }

  .prices-list-item {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
  }

  .prices-list-item .prices-list-price {
    text-align: left;
    margin-top: 15px;
  }

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

  .consultation-card {
    padding: 20px 12px;
  }

  p.consultation-text {
    font-size: 14px;
    margin-top: 20px;
  }

  .consultation-info {
    padding: 0 20px;
  }

  form.consultation-form {
    padding: 20px;
  }

  .radio-group {
    margin-top: 10px;
  }

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

  button.form-submit-btn {
    width: 100%;
  }

  h2.directions-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #4f2121;
    line-height: 123%;
  }

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

  span.direction-name {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #464646;
  }

  .directions-column {
    width: 100%;
    margin-bottom: 40px;
  }

  .directions-column:last-child {
    margin-bottom: 0px;
  }

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

  .certificate-purchase {
    margin-top: 0;
  }

  ul.certificate-list {
    gap: 10px;
  }

  button.certificate-btn {
    display: none;
  }

  button.certificate-btn.mobile {
    display: flex;
    margin-top: 0px;
    width: 100%;
    align-items: center;
    justify-content: center;
  }

  p.certificate-slogan {
    margin-top: 0px;
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #464646;
    line-height: 124%;
  }

  .certificate-cards {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  button.center-btn {
    display: none;
  }

  button.center-btn.mobile {
    display: flex;
    width: 100%;
    justify-content: center;
  }

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

  .center-content {
    gap: 40px;
  }

  h3.center-subtitle {
    margin-top: 0px;
  }

  .center-right {
    gap: 20px;
  }

  li.center-feature {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #464646;
    line-height: 122%;
    padding-left: 23px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
    flex-direction: row;
  }

  .center-feature::before {
    width: 23px;
    height: 10px;
    margin-left: 0;
    max-width: 23px;
    position: absolute;
  }

  h2.reviews-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #464646;
  }

  .reviews-section {
    padding: 20px 32px;
  }

  .reviews-center {
    padding-top: 40px;
    padding-bottom: 25px;
  }

  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  button.review-submit-btn {
    width: 100%;
  }

  .map-section {
    width: calc(100% - 24px);
    margin: 24px auto 0;
  }

  .contacts-section {
    margin-top: 10px;
    width: calc(100% - 24px);
    margin: 10px auto 0;
  }

  .contact-card {
    width: 100%;
    padding: 20px;
  }

  h3.contact-card-title {
    margin-bottom: 10px !important;
  }

  .contacts-top {
    gap: 5px;
  }

  div#contacts-bottom {
    display: none;
  }

  footer.footer {
    margin-top: 20px;
    padding: 40px 32px;
  }

  h3.footer-title {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.02em;
    color: #464646;
  }

  .footer-messengers {
    margin-top: 30px;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  .footer-bottom-left {
    display: flex;
    flex-direction: column-reverse;
    gap: 40px;
  }

  img.footer-logo {
    width: 100%;
    height: auto;
  }

  .specialist-slider-section {
    padding: 20px 12px;
  }

  h2.specialist-slider-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #fff;
    padding: 0 20px;
    line-height: 123%;
  }

  /* Скрываем оригинальную пагинацию в header */
  .specialist-slider-header .specialist-pagination {
    display: none;
  }

  /* Показываем пагинацию под слайдером для мобильной версии */
  .specialist-pagination-mobile {
    display: flex !important;
    margin-top: 20px;
    justify-content: center;
    width: 100%;
    padding: 0 12px;
    box-sizing: border-box;
  }

  /* Убеждаемся, что секция не обрезает пагинацию */
  .specialist-slider-section {
    overflow: visible !important;
  }

  .specialist-slider-header {
    margin-bottom: 20px;
  }

  h3.specialist-name {
    font-size: 18px;
  }

  .specialist-info {
    gap: 20px;
  }

  .specialist-slide-content {
    gap: 20px;
  }

  .specialist-services {
    border: 0.5px solid rgba(70, 70, 70, 0.2);
    border-radius: 20px;
    padding: 30px 20px;
    padding: 30px 20px;
  }

  h4.service-condition {
    font-size: 18px;
  }

  button.service-btn {
    width: 100%;
  }

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

  h2.gallery-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 25px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }
  .specialist-services {
    display: flex;
    flex-wrap: wrap;
  }

  .specialist-slide-content.slide2,
  .specialist-slide-content.slide3,
  .specialist-slide-content.slide4,
  .specialist-slide-content.slide6 {
    display: flex;
  }

  .service-package {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
  }

  ul.service-list.service-list-two-columns {
    display: flex;
  }

  .price-buttons-right {
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
  }

  .price-buttons-bottom {
    width: 100%;
  }

  .gallery-item {
    height: 110px;
  }

  .gallery-image {
    height: 110px;
  }

  .sidebar-header {
    padding: 20px 32px 40px 40px;
  }

  .sidebar-content {
    max-width: 363px;
  }

  .sidebar-contact {
    margin-left: 20px;
    max-width: 311px;
    width: 100%;
  }

  .sidebar-messengers {
    margin-left: 20px;
    max-width: 311px;
    width: 100%;
  }

  .sidebar-actions {
    padding-left: 0;
    max-width: 311px;
    padding-right: 0px;
    box-sizing: border-box;
    margin-left: 20px;
  }

  button#sidebar-callback-btn {
    line-height: 109%;
  }

  .sidebar-actions button {
    max-width: 311px;
  }

  .sidebar-contact-value {
    line-height: 120%;
  }

  .sidebar-contact-label {
    line-height: 118%;
  }

  .sidebar-messengers-title {
    line-height: 112%;
  }

  div#callback-sidebar .sidebar-content,
  #certificate-sidebar .sidebar-content,
  #appointment-sidebar .sidebar-content,
  #question-sidebar .sidebar-content,
  #checkup-sidebar .sidebar-content {
    min-width: 100%;
    border-radius: 0;
  }

  #certificate-sidebar .sidebar-header,
  #appointment-sidebar .sidebar-header,
  #question-sidebar .sidebar-header,
  div#callback-sidebar .sidebar-header,
  #checkup-sidebar .sidebar-header {
    padding: 28px 32px;
  }

  div#callback-sidebar h2.sidebar-title,
  #certificate-sidebar h2.sidebar-title,
  #appointment-sidebar h2.sidebar-title,
  #question-sidebar h2.sidebar-title,
  #checkup-sidebar h2.sidebar-title {
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0.02em;
    color: #4f2121;
  }

  form#callback-form,
  form#checkup-form {
    padding: 12px 32px 0;
  }

  .sidebar-form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
  }

  div#callback-sidebar button.sidebar-btn.sidebar-btn-primary,
  div#appointment-sidebar button.sidebar-btn.sidebar-btn-primary,
  div#question-sidebar button.sidebar-btn.sidebar-btn-primary,
  div#checkup-sidebar button.sidebar-btn.sidebar-btn-primary,
  div#certificate-sidebar button.sidebar-btn.sidebar-btn-primary {
    max-width: 100%;
  }

  #certificate-sidebar .sidebar-header {
    display: flex;
    align-items: flex-start;
  }
  .sidebar-close {
    padding: 0;
  }
  input#consultation-phone {
    width: 100%;
  }

  /* Мобильная версия меню */
  .header-menu-btn .menu-text {
    display: none;
  }

  .header-menu-btn {
    min-width: auto;
    width: auto;
    padding: 12px;
    justify-content: center;
  }

  /* Скрываем лишние элементы в мобильной версии */
  .header-btn,
  .header-contact,
  button#accessibility-btn,
  button#callback-btn {
    display: none !important;
  }

  /* Логотип и меню занимают всё пространство */
  .header-main {
    justify-content: space-between;
  }

  .logo {
    min-width: auto;
    flex: 0 0 auto;
  }

  .sidebar-content {
    max-width: 100%;
    width: 100% !important;
    border-radius: 0;
  }
  .reviews-center {
    width: 50%;
  }
  .review-form-wrapper {
    width: 100%;
  }
  input#review-name,
  input#review-phone,
  .form-textarea,
  .review-form-wrapper .form-group-submit p,
  .review-form .form-row-top .form-group:nth-child(1),
  .review-form .form-row-top .form-group:nth-child(2) {
    width: 100%;
  }
  .form-footer p {
    width: 100%;
  }
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .certificate-cards {
    grid-template-columns: 1fr 1fr !important;
  }

  .gallery-item {
    height: 150px;
  }

  .gallery-image {
    height: 150px;
  }
}
@media screen and (max-width: 1410px) {
  .prices-section {
    margin-top: 24px;
  }
  .certificate-cards {
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 10px;
  }

  a.header-btn {
    min-width: 11%;
  }
  button#callback-btn {
    min-width: 11.9%;
  }

  .header-main {
    gap: 7px;
    max-width: 100%;
  }

  .logo a img {
    max-width: 100%;
  }

  p.certificate-slogan {
    line-height: 120%;
  }

  .reviews-content {
    grid-template-columns: 0.7fr 1fr 1fr;
  }

  .footer-top,
  .footer-bottom {
    padding: 0 10px 40px;
  }
}
@media (max-width: 768px) {
  .reviews-center {
    width: 100%;
  }
}

/* Privacy Policy Page */
body.privacy-policy .entry-content {
  line-height: 1.7;
  font-size: 16px;
  color: #2b2b2b;
  font-family: var(--font-family);
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.03);
}
body.privacy-policy h1 {
  margin-bottom: 32px;
  font-size: 32px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #4f2121;
}
body.privacy-policy h4 {
  margin-bottom: 24px;
  font-size: 24px;
}
body.privacy-policy h5 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-size: 20px;
}
body.privacy-policy .entry-content p {
  margin-bottom: 16px;
}
body.privacy-policy .entry-content ul,
body.privacy-policy .entry-content ol {
  margin: 16px 0 24px 24px;
  padding: 0;
}
body.privacy-policy .entry-content ul li,
body.privacy-policy .entry-content ol li {
  margin-bottom: 10px;
}
body.privacy-policy .entry-content ul {
  list-style: disc;
}
body.privacy-policy .entry-content ol {
  list-style: decimal;
}
body.privacy-policy .entry-content a {
  color: #0b5ed7;
  text-decoration: underline;
}
body.privacy-policy .entry-content a:hover {
  text-decoration: none;
}
body.privacy-policy .entry-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 15px;
}
body.privacy-policy .entry-content table th {
  width: 30%;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  background-color: #f6f7f9;
  border: 1px solid #ddd;
  font-weight: 600;
}
body.privacy-policy .entry-content table td {
  padding: 12px 14px;
  vertical-align: top;
  border: 1px solid #ddd;
}
body.privacy-policy .entry-content table ul {
  margin: 0;
  padding-left: 20px;
}
body.privacy-policy .entry-content table li {
  margin-bottom: 6px;
}
@media (max-width: 768px) {
  body.privacy-policy .entry-content {
    font-size: 15px;
  }
  body.privacy-policy h1 {
    font-size: 26px;
  }
  body.privacy-policy h4 {
    font-size: 20px;
  }
  body.privacy-policy h5 {
    font-size: 18px;
  }
  body.privacy-policy .entry-content table,
  body.privacy-policy .entry-content table tbody,
  body.privacy-policy .entry-content table tr,
  body.privacy-policy .entry-content table th,
  body.privacy-policy .entry-content table td {
    display: block;
    width: 100%;
  }
  body.privacy-policy .entry-content table tr {
    margin-bottom: 16px;
  }
  body.privacy-policy .entry-content table th {
    border-bottom: none;
  }
  body.privacy-policy .entry-content table td {
    border-top: none;
  }
}
