/*
Theme Name: Astra-child
Theme URI: https://wpastra.com/
 Description: Twenty Seventeen Child Theme
 Template: astra
 Version: 1.11.gdsf3213d22221234522334123423sd
 Text Domain: astra-child
 */

.sale-teasers {
  padding: 20px 0;
}

/* main baner*/

:root {
  --primary-color: #01b4dc;
  --primary-color-dark: #2b96cc;
  --primary-color-red: #e3324f;
  --main-color-hover: #2b96cc;
  --radius: 8px;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  --text: #222;
  --btn: #e3324f;
  --btn-dark: #c12c45;
}

/* lang helper */

/* Контейнер */
.lang-menu {
  position: relative;
  display: inline-block;
  font-weight: 700;
}
/* Кнопка-триггер RU/UA */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: #fff; /* под цвет меню */
  font-size: 14px;
  line-height: 1;
}
.lang-toggle .chev {
  transition: transform 0.2s;
}
.lang-menu.open .lang-toggle .chev {
  transform: rotate(180deg);
}

/* Выпадающее меню */
.lang-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  /*   transform: translateX(-50%); */
  min-width: 220px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid #e5e9ee;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  display: none;
  z-index: 1000;
}
.lang-menu.open .lang-dropdown {
  display: block;
}
.lang-dropdown a.is-disabled {
  opacity: 0.45;
  pointer-events: none; /* на всякий случай */
  cursor: default;
}

/* Список двух пунктов на одной строке, как на скрине */
.lang-dropdown ul {
  display: grid;
  grid-template-columns: 1fr 1fr; /* слева Русский, справа Українська */
  gap: 16px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lang-dropdown a {
  display: block;
  padding: 6px 0;
  text-decoration: none;
  color: #0f3d4a !important;
  font-size: 16px;
}
.lang-dropdown a:hover {
  text-decoration: underline;
}
.lang-dropdown a.is-current {
  font-weight: 700;
}

/* end lang helper */

.single-vrachi #primary .ast-container,
.single-vrachi #primary .ast-col-lg-4 {
  padding: 0 !important;
}
.blog div#primary {
  /* 	margin-top: 40px!important; */
}
.page-id-504 ul.header-phones {
  margin-top: -20px !important;
}
.service-detail-img-wrap {
  display: flex;
  column-gap: 40px;
  row-gap: 20px;
}
.service-short-description h2 {
  line-height: 115%;
  margin-bottom: 20px;
}
.service-detail-img-wrap > div {
  flex: 1;
}

ul#mobMenu,
ul.header-time,
ul.header-phones,
ul.header-socials {
  margin: 1em 0 1em 2em !important;
}

.ast-separate-container .ast-article-post,
.ast-separate-container .ast-article-single {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  margin: 0;
  padding: 0;
}

.main-menu .sub-menu {
  top: 61px;
  display: none;
  position: absolute;
  background-color: #fff;
  opacity: 0;
  transition: 1s;
  box-shadow: 0 0 6px 0 rgb(0 0 0 / 4%), 0 4px 10px 0 rgb(13 35 67 / 25%);
}

.main-menu li:hover > .sub-menu {
  display: block;
  width: auto;
  height: auto;
  min-width: 240px;
  background-color: #ffff;
  z-index: +9;
  transition: 1s;
  opacity: 1;
  box-shadow: 0 0 6px 0 rgb(0 0 0 / 4%), 0 4px 10px 0 rgb(13 35 67 / 25%);
}
.ast-row {
  margin-left: 0px;
  margin-right: 0px;
}
/*.main-menu */

.menu-item-has-children > a.menu-link:after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5em;

  /* треугольник вниз */
  width: 0;
  height: 0;
  border-left: 3px solid transparent;
  border-right: 3px solid transparent;
  border-top: 5px solid currentColor;

  /* анимация поворота */
  transition: transform 0.2s ease;
  transform-origin: 50% 40%;
}

/* Состояние "открыто" — поворачиваем стрелку */
.menu-item-has-children:hover > a.menu-link:after,
.menu-item-has-children:focus-within > a.menu-link:after,
.menu-item-has-children.current-menu-ancestor > a.menu-link:after,
.menu-item-has-children.open > a.menu-link:after {
  transform: rotate(180deg);
}

/* .menu-item-has-children > a.menu-link:after {
  content: "\e900";
  display: inline-block;
  font-family: Astra;
  font-size: 9px;
  font-size: 0.6rem;
  font-weight: 700;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin-left: 10px;
  line-height: normal;
} */

ul.main-menu {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex: 1;
  align-items: center;
}
.menu-item {
  color: var(--primary-color);
  display: flex;
  flex: 1;
  justify-content: center;
}
.sub-menu .menu-item {
  justify-content: flex-start;
}

ul.sub-menu a {
  padding: 12px 0 12px 30px;
  color: #575957;
  font-weight: 500;
}

.sub-menu .menu-item:hover {
  background: none;
}
.menu-item a {
  color: white;
  text-decoration: none;
}
.menu-item:hover {
  background: var(--main-color-hover);
}

.container-menu {
  background: var(--primary-color);
  width: 100%;
  /*height: 55px;*/
  align-items: center;
  display: flex;
}
.container {
  max-width: 1344px;
  margin-left: auto !important;
  margin-right: auto !important;
  position: relative;
  width: 100%;
}

.ast-row.top-logo-search {
  height: 103px;
  display: flex;
  align-items: center;
}

.search-wrap,
.logo-wrap,
.contact-wrap {
  display: flex;
  align-items: center;
  flex: auto;
}

.float-right {
  float: right;
}

.logo-wrap svg {
  max-width: 235px;
}
/*search*/
form.search {
  position: relative;
  margin: 0;
}

.search .search-input-div,
input#title-search-input {
  width: 100%;
}
.search .search-input {
  border: solid 1px #80808038;
  border-radius: 7px;
  padding: 7px 47px 7px 20px;
}

.search .search-input:focus,
button.btn-zapis:focus {
  outline: none;
}
.search .search-button-div {
  position: absolute;
  top: 7px;
  right: 10px;
  bottom: 0;
}

.search .search-button-div .btn.btn-search {
  padding: 0;
  background: none;
}

.search-wrap {
  padding: 0 10px 0 0;
}

/* contacts */

.contact-wrap > div {
  display: flex;
  flex: 1;
  flex-grow: 1;
  flex-shrink: 1;
  flex-basis: 0%;
  justify-content: center;
}

.header-phone {
  text-align: center;
  cursor: pointer;
  position: relative;
}

.header-phone i.phone {
  position: absolute;
  left: -12px;
  top: 3px;
}
.header-phone a {
  text-decoration: none;
  font-weight: 500;
  color: #525050;
}
.header-phone a:hover {
  color: var(--primary-color);
}

.btn-zapis {
  padding: 10px 17px 11px;
  border-radius: 7px;
  font-weight: 400;
  line-height: 1.2em;
  color: white;
  background: var(--primary-color-red);
  border: none;
}
.header-right {
  text-align: center;
}

span.callback {
  color: var(--primary-color);
}
span.callback:hover {
  color: #808285;
}

@media (max-width: 1100px) {
  .header-right.location {
    display: none;
  }
  .logo-wrap {
    margin-right: 42px;
  }
}

@media (min-width: 991px) {
  .mobile {
    display: none;
  }
}

@media (max-width: 991px) {
  .desktop {
    display: none;
  }
  .service-detail-img-wrap {
    flex-direction: column;
  }
}

/* mobile header */

.ast-row.mobile-header > div {
  text-align: center;
  align-items: center;
}

.ast-row.mobile-header {
  height: 60px;
  background: #fff;
  padding-top: 4px;
  margin-bottom: 1px;
  display: flex;
  align-items: center;
  box-shadow: 0 0 6px 0 rgb(0 0 0 / 4%), 0 4px 10px 0 rgb(13 35 67 / 25%);
  transition: 0.8s;
}
.contact-mobile-wrap {
  display: flex;
  justify-content: space-around;
}

.ast-row.mobile-header.fixed {
  position: fixed;
  padding-top: 4px;
  height: 45px;
  width: 100%;
  top: 0;
  z-index: 9999;
  transition: 1s;
}
/*mobile search*/
.mobile.search-input {
  padding: 35px;
  position: fixed;
  top: -200px;
  background: white;
  transition: 0.55s;
  opacity: 0.8;
  box-shadow: 0 0 6px 0 rgb(0 0 0 / 4%), 0 4px 10px 0 rgb(13 35 67 / 25%);
}
.mobile.search-input.show {
  width: 100%;
  z-index: +9999999;
  top: 0;
  transition: 0.5s;
  opacity: 1;
  border-radius: 0;
}

/*mobile menu*/

.container-mob-menu.mobile {
  position: fixed;
  top: 0;
  left: -400px;
  height: 100%;
  width: 75%;
  max-width: 350px;
  z-index: +999999999999;
  background: white;
  transition: 0.8s;
  overflow-y: scroll;
  overflow-x: hidden;
}

.container-mob-menu.mobile.show {
  left: 0;
  transition: 0.8s;
  box-shadow: 0 0 6px 0 rgb(0 0 0 / 4%), 0 4px 10px 0 rgb(13 35 67 / 25%);
}

ul#mobMenu a {
  color: var(--main-blue);
  font-weight: 500;
  font-size: 1.1em;
  min-width: 135px;
}

ul#mobMenu li {
  justify-content: flex-start;
  align-items: center;
}

ul#mobMenu li:hover {
  background: none;
}

ul#mobMenu ul.sub-menu {
  left: 100%;
  top: 0;
  width: 100%;
  border: medium none;
  box-shadow: none;
  visibility: visible;
  opacity: 0.5;
  position: absolute;
  z-index: 5;
  background: #fff;
  margin: 0;
  padding: 0;
  transition: 0.8s;
  height: 100%;
}
ul#mobMenu ul.sub-menu.show {
  left: 0%;
  width: 100%;
  opacity: 1;
  transition: 0.8s;
}

ul#mobMenu ul.sub-menu.selected {
  left: 0;
  display: block;
  transition: 1.5s;
  opacity: 1;
}

ul#mobMenu a:after {
  content: "";
}

span.submenu-btn {
  position: absolute;
  left: 178px;
  border: solid 1px var(--primary-color);
  padding: 0 8px;
  border-radius: 5px;
}

.mobile-menu-contacts li {
  list-style: none;
}

/*post vrachi single*/
h2.doc-title-h2 {
  margin: 0 0 30px 0;
}

/* footer */

.divider-item {
  border-top: solid 2px;
  width: 60px;
  margin-bottom: 20px;
}

footer .widget-title {
  margin-bottom: 0.5em;
}

/* ====== Десктоп: ≥1200 — 65/35, 2 строки справа ====== */
.promo-grid {
  display: grid;
  grid-template-columns: 65% 35%;
  grid-template-rows: 1fr 1fr; /* две равные строки */
  grid-template-areas:
    "lg sm1"
    "lg sm2";
  gap: 24px;
  align-items: stretch;
}

.promo--lg {
  grid-area: lg;
  min-height: var(--h-lg-desktop);
  /* aspect-ratio: 20/11;  */
}
.promo--sm.sm1 {
  grid-area: sm1;
}
.promo--sm.sm2 {
  grid-area: sm2;
}

/* базовые карточки */
.promo {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
  box-shadow: var(--shadow);
  background: #fff;
  height: 100%;
}

@media (min-width: 1023px) {
  .promo--lg .promo-title-h2 {
    font-size: 45px;
  }
  .promo--lg ul {
    font-size: 30px;
    margin-left: 29px !important;
  }
}

/* ====== Планшет: 800–1199 — lg во всю ширину, sm1 и sm2 рядом ====== */
@media (max-width: 1199px) {
  .promo-grid {
    grid-template-columns: 1fr 1fr; /* две колонки равные */
    grid-template-rows: auto auto; /* строки по контенту */
    grid-template-areas:
      "lg lg"
      "sm1 sm2";
  }

  .promo--lg {
    aspect-ratio: auto; /* высоту даст контент */
    min-height: calc(var(--h-lg-desktop) * 0.9);
  }

  .promo--sm {
    /* одинаковая высота для пары малых */
    min-height: var(--h-sm-tablet);
    aspect-ratio: auto;
  }
}

/* ====== Мобайл: <800 — все по одному столбцом, одинаковой высоты ====== */
@media (max-width: 799px) {
  .promo-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "lg"
      "sm1"
      "sm2";
    gap: 16px;
  }
  .promo {
    min-height: var(--h-all-mobile); /* одинаковая высота всем */
    height: auto;
  }
}

/* ====== Ваши стили внутри карточек (оставил как было, слегка подправил) ====== */

.promo .promo-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg, #fff);
}

.promo-content {
  position: relative;
  z-index: 3;
  display: grid;
  padding: 28px;
  max-width: 80%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.promo--sm .promo-content {
  max-width: 65%;
  padding: 24px;
}

.promo-title-h2 {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  line-height: 1.15;
  font-size: clamp(18px, 2.5vw, 36px);
}
.promo--sm .promo-title-h2 {
  font-size: clamp(16px, 1.8vw, 20px);
}

.promo-title ul {
  margin: 0;
  margin-left: 16px;
  margin-top: 10px;
  margin-bottom: 20px;
  list-style-type: square;
}

.promo-btn {
  max-width: 170px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 22px;
  border-radius: 8px;
  background: var(--btn);
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 3px 8px rgba(227, 50, 79, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.2s;
}
.promo-btn:hover {
  transform: translateY(-2px);
  background: var(--btn-dark);
  color: #fff;
}

.promo-figure {
  position: absolute;
  z-index: 2;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  transition: transform 0.4s ease, filter 0.4s ease;
}

/* ====== img adjusting ====== */

article.promo.promo--lg .promo-figure {
  bottom: -8px;
  /* bottom: -55px; */
  right: 0;
  max-width: 73%;
}

article.promo.promo--sm.sm1 .promo-figure {
  bottom: -20px;
  right: -2px;
  max-width: 83%;
}
article.promo.promo--sm.sm2 .promo-figure {
  bottom: -49px;
  right: -51px;
  max-width: 62%;
}

article.promo.promo--sm.sm1 .shape-arc {
  width: 470px;
  height: 470px;
  right: -217px;
  bottom: -240px;
}

article.promo.promo--sm.sm2 .shape-circle {
  width: 460px;
  height: 460px;
  right: -211px;
  bottom: -230px;
}

@media (max-width: 1199px) {
  article.promo.promo--lg .promo-figure {
    bottom: -10px;
    right: 0;
    max-width: 50%;
  }

  article.promo.promo--sm.sm1 .promo-figure {
    bottom: -24px;
    right: -2px;
    max-width: 74%;
  }
  article.promo.promo--sm.sm2 .promo-figure {
    bottom: -49px;
    right: -51px;
    max-width: 62%;
  }

  article.promo.promo--sm.sm1 .shape-arc {
    width: 570px;
    height: 570px;
    right: -267px;
    bottom: -292px;
  }

  article.promo.promo--sm.sm2 .shape-circle {
    width: 570px;
    height: 560px;
    right: -266px;
    bottom: -283px;
  }
}

@media (max-width: 799px) {
  article.promo.promo--sm.sm1 .promo-figure {
    bottom: -38px;
    right: -11px;
    max-width: 51%;
  }
  article.promo.promo--sm.sm2 .promo-figure {
    bottom: -49px;
    right: -51px;
    max-width: 43%;
  }

  article.promo.promo--sm.sm1 .shape-arc {
    width: 570px;
    height: 570px;
    right: -267px;
    bottom: -292px;
  }

  article.promo.promo--sm.sm2 .shape-circle {
    width: 570px;
    height: 560px;
    right: -266px;
    bottom: -283px;
  }
}

@media (max-width: 499px) {
  article.promo.promo--lg .promo-figure {
    bottom: -2px;
    right: 0;
    max-width: 70%;
    min-width: 362px;
  }

  article.promo.promo--sm.sm1 .promo-figure {
    bottom: -2px;
    right: -1px;
    max-width: 99%;
    min-width: 130px;
  }
  article.promo.promo--sm.sm2 .promo-figure {
    bottom: -5px;
    right: -36px;
    max-width: 66%;
    min-width: 130px;
  }

  article.promo.promo--sm.sm1 .shape-arc {
    width: 522px;
    height: 541px;
    right: -267px;
    bottom: -292px;
  }

  article.promo.promo--sm.sm2 .shape-circle {
    width: 528px;
    height: 528px;
    right: -268px;
    bottom: -282px;
  }

  .promo-content {
    gap: 0;
  }
  .promo-btn {
    max-width: 124px;
    height: 37px;
  }
}

/* ====== end img adjusting ====== */

.promo-shape {
  position: absolute;
  z-index: 1;
  opacity: 0.9;
  pointer-events: auto;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s ease;
}
.shape-circle {
  /* width:520px; 
  height:520px;  */
  border-radius: 50%;
  /* right:-220px; 
  bottom:-160px; */
  background: radial-gradient(
    closest-side,
    rgba(255, 255, 255, 0.75),
    rgba(0, 0, 0, 0)
  );
  box-shadow: inset 0 0 0 120px rgba(255, 255, 255, 0.55);
}
.promo--sm .shape-circle {
  /* width:360px; height:360px; right:-160px; bottom:-120px;  */
}
.shape-arc {
  /* width:460px; height:460px; right:-200px; bottom:-160px;  */
  border-radius: 50%;
  background: radial-gradient(
      closest-side,
      rgba(255, 255, 255, 0.7),
      transparent 70%
    ),
    conic-gradient(
      from 270deg at 50% 50%,
      rgba(0, 0, 0, 0.06),
      rgba(0, 0, 0, 0) 35%
    );
}

/* Hover/активности */
.promo:hover .promo-figure {
  transform: translateY(-6px) scale(1.01);
}
.promo .promo-figure:hover {
  transform: translateY(-10px) scale(1.035);
}
.promo:hover .promo-shape {
  transform: translate(-6px, -6px) rotate(-2deg);
}
.promo .promo-shape:hover {
  transform: translate(-10px, -10px) rotate(-4deg);
}

.promo:focus-within {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: var(--radius);
}
@media (prefers-reduced-motion: reduce) {
  .promo,
  .promo * {
    transition: none !important;
  }
}

@media (min-width: 1344px) {
  .container.main-banner-container {
    padding-left: 0 !important;
  }
}
@media (max-width: 990px) {
  .lang-toggle {
    color: var(--primary-color) !important;
    padding-left: 0;
  }
}
