.page-template-Pagescontacts-php #page,
.page-template-Pagesfaq-php #page {
  padding-top: clamp(6.25rem, 4.6646rem + 6.5041vw, 11.25rem);
}

section.section.contacts {
  margin-bottom: var(--main-margin);
}


/* ///// contacts/// */
.contacts-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-inner img {
  border-radius: clamp(0.937rem, 0.4414rem + 2.0332vw, 2.5rem);
}

.contacts-inner.bg img {
  border-radius: clamp(0.937rem, 0.5407rem + 1.6260vw, 2.187rem);
}

.contacts-inner_block {
  flex: 1;
}

.contacts-inner.top {
  margin-bottom: var(--main-margin);
}

h2.block-title {
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  font-size: clamp(1.75rem, 1.4329rem + 1.3008vw, 2.75rem);
  color: var(--Black);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 140%;
}

p.block_text {
  font-size: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  z-index: 1;
  position: relative;
}

.contacts-inner_block p.block_text {
  max-width: 85%;
}

.contacts-inner.bg {
  padding: 20px;
  border-radius: clamp(0.937rem, 0.5407rem + 1.6260vw, 2.187rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  gap: 30px;
}

.contacts-inner.bg .social {
  margin-bottom: 10px;
}

.contacts-inner.bg .contacts-inner_block.sec {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.contact-link {
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  line-height: 160%;
  color: var(--text);
}

h2.contacts-inner_block-title {
  color: var(--Black);
  font-size: clamp(1.75rem, 1.7104rem + 0.1626vw, 1.875rem);
  font-weight: 700;
  line-height: 140%;
  text-transform: uppercase;
}

/* ///// FAQ ////// */
.faq {
  display: flex;
  align-items: center;
  gap: 30px 50px;
}

.chevron {
  display: flex;
  align-items: center;
}

.chevron.rotate,
.accordion-header.active span.chevron {
  transform: rotate(180deg);
}

.accordion-items {
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.accordion-item {
  border-radius: 12px;
  border: 1px #E3DED2;
  background: #FFFBF1;
  padding: 18px 20px;
  transition: 0.3s ease;
  cursor: pointer;
  border: 1px solid #E3DED2;
}

.accordion-item.active-item {
  background: #FFF7E4;
  transition: 0.3s ease;
}

.accordion-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.accordion-content p {
  margin-top: 16px;
}

.faq-item {
  flex: 1;
  width: 100%;
}

.faq-item.img {
  display: flex;
}

.faq-item img {
  border-radius: clamp(0.937rem, 0.4414rem + 2.0332vw, 2.5rem);
}

.accordion-header h3 {
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  color: var(--Black);
  line-height: normal;
}

/* //// front Page //// */
.first-block {
  /* background-image: url(/wp-content/uploads/2024/08/first.jpg); */
  height: clamp(48.75rem, 47.3628rem + 5.6911vw, 53.125rem);
  max-height: 100vh;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  text-align: center;
  padding-bottom: calc(12.5rem - clamp(5.625rem, 5.2287rem + 1.6260vw, 6.875rem));
  margin-bottom: var(--main-margin);
}

h1.block-title {
  color: var(--White);
  font-size: clamp(2rem, 1.6433rem + 1.4634vw, 3.125rem);
  font-weight: 700;
  line-height: 130%;
  text-transform: uppercase;
  max-width: 795px;
  margin-bottom: 30px;
}
.page-template-about h1.block-title {
  font-size: clamp(1.625rem, 1.3476rem + 1.1382vw, 2.5rem);
  line-height: 140%;
}
.page-template-about img.sec_logo {
  margin-bottom: 20px;
}


a.btn {
  background-color: var(--Accent);
  color: var(--White);
  padding: 17.25px 55px;
  border: 1px solid var(--Accent);
  display: block;
  border-radius: 15px;
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  font-weight: 700;
  line-height: normal;
  transition: 0.3s ease;
}
.page-template-conditions .open-form {
  margin-bottom: 0;
}

a.btn:hover {
  transition: 0.3s ease;
  background-color: #24692F;
  color: #fff;
  border: 1px solid #24692F;
}

.slider {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow-x: hidden;
  margin-bottom: var(--main-margin);
}

.slider h2.block-title {
  margin-bottom: 30px;
}

.slider p.block_text {
  margin-bottom: clamp(1.25rem, -0.4543rem + 6.9919vw, 6.625rem);
  max-width: 740px;
}

img.swiper-slide.slide-img {
  transition: 0.3s ease;
  transform: scale(.933, .934);
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
}

img.swiper-slide.slide-img.swiper-slide-active {
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  transform: scale(1.2);
  transition: 0.3s ease;
}

span.swiper-pagination-bullet {
  background-color: var(--Text);
  opacity: 1;
  width: 12px;
  height: 12px;
  transition: 0.3s ease;
}

span.swiper-pagination-bullet.swiper-pagination-bullet-active {
  background-color: var(--Accent);
  width: 24px;
  height: 24px;
  transition: 0.3s ease;
}

.photo-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: clamp(1.25rem, 0.0610rem + 4.8780vw, 5rem);
}

/* 🛠 фиксы от форумов Swiper */
.swiper,
.swiper-wrapper,
.swiper-slide {
  min-width: 0;
  min-height: 0;
}

.swiper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

.swiper-wrapper {
  display: flex;
  width: 100% !important; /* предотвращаем раздувание wrapper */
}

.swiper-slide {

  width: 33% !important; /* Swiper сам проставит inline-width */
}


.numbers {
  border-radius: clamp(0.938rem, 0.2446rem + 2.8449vw, 3.125rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  margin-bottom: var(--main-margin);
  padding: clamp(2.5rem, 2.1037rem + 1.6260vw, 3.75rem) clamp(1rem, -0.6646rem + 6.8293vw, 6.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  column-gap: 10%;
  border: 1px solid #E3DED2;
}

.nums-item span {
  font-size: clamp(2rem, 1.2470rem + 3.0894vw, 4.375rem);
  font-weight: 700;
  display: block;
  line-height: normal;
  color: var(--Accent);
  margin-bottom: clamp(0.75rem, 0.6707rem + 0.3252vw, 1rem);
}

.numbers-inner.nums {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.numbers-inner {
  flex: 1;
}

.numbers-inner:first-child {
  max-width: 35%;
  position: relative;
}
.numbers-inner:first-child::before {
  content: '';
}
.numbers-inner:first-child::before {
  content: '';
  height: 100%;
  width: 1px;
  display: block;
  background-color: #E3DED2;
  position: absolute;
  right: -30px;
}

.nums-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.nums-item p {
  font-size: clamp(1rem, 0.7622rem + 0.9756vw, 1.75rem);
}

.video-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  display: flex;
  border-radius: clamp(0.938rem, -0.7463rem + 6.9099vw, 6.25rem);
  margin-bottom: var(--main-margin);
}

.video-container video {
  width: 100%;
  display: none;
  /* Скрываем видео по умолчанию */
}

.video-container img {
  width: 100%;
  cursor: pointer;
}

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  /* Размер кнопки */
  height: 64px;
  /* Размер кнопки */
  cursor: pointer;
}

.open-form {
  margin-bottom: var(--main-margin);
  background-color: #FFFBF1;
  padding: clamp(2.5rem, 1.3110rem + 4.8780vw, 6.25rem) 0;
  position: relative;
}

.open-form .container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  column-gap: 40px;
}

.open-form h2.block-title {
  margin-bottom: clamp(1.25rem, 1.1311rem + 0.4878vw, 1.625rem);
}

.open-form p.block_text {
  font-size: 16px;
  font-weight: 500; 
}

.form-group input {
  width: 100%;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--Text);
  border-radius: 0;
  margin-bottom: clamp(1.562rem, 1.2646rem + 1.2202vw, 2.5rem);
  padding: 0 0 10px;
  font-size: clamp(1.125rem, 1.0061rem + 0.4878vw, 1.5rem);
  font-weight: 250;
  line-height: 120%;
}

.form-group.mb input {
  margin-bottom: clamp(1.625rem, 1.5457rem + 0.3252vw, 1.875rem);
}

p.accept {
  color: var(--Black);
  font-weight: 500;
  margin-bottom: 30px;
}

p.accept a {
  color: var(--Accent);
  text-decoration: underline;
}

button.subbmit {
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  border: 1px solid var(--Accent);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 120%;
  font-weight: 700;
  cursor: pointer;
  height: 60px;
  border-radius: 15px;
  padding: 0;
  background-color: var(--Accent);
  color: var(--White);
  font-family: "Geologica", sans-serif;
  transition: 0.3s ease;
}

button.subbmit:hover {
  transition: 0.3s ease;
  color: var(--Accent);
  background-color: transparent;
}

.advantages,
.block-faq {
  margin-bottom: var(--main-margin);
}

.advantages .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.advantages h2.block-title {
  margin-bottom: clamp(1.875rem, 1.4787rem + 1.6260vw, 3.125rem);
}

.advantages-items {
  display: flex;
  align-items: stretch;
  gap: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
}

.advantages-item {
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  padding: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
  border: 1px solid #E3DED2;
  position: relative; 
  z-index: 1;
}

img.adv-icon {
  width: clamp(3.125rem, 2.7287rem + 1.6260vw, 4.375rem);
  height: clamp(3.125rem, 2.7287rem + 1.6260vw, 4.375rem);
  margin-bottom: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
}

span.add-title {
  display: block;
  font-size: clamp(1.25rem, 1.1707rem + 0.3252vw, 1.5rem);
  margin-bottom: 14px;
  color: #414042;
  font-weight: 700;
  line-height: normal;
}

.advantages-item li {
  font-size: clamp(0.938rem, 0.9183rem + 0.0807vw, 1rem);
}

ul.adv-list {
  padding-left: 15px;
  margin: 0;
}

.tel-form {
  margin-bottom: var(--main-margin);
}

.container-small {
  padding: clamp(1.875rem, 1.0823rem + 3.2520vw, 4.375rem) clamp(1.25rem, 0.2591rem + 4.0650vw, 4.375rem);
  display: flex;
  border-radius: clamp(0.938rem, 0.5417rem + 1.6260vw, 2.188rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  column-gap: 5%;
  max-width: 1270px;
  margin: 0 auto;
  min-height: 300px;
  border: 1px solid #E3DED2;
}

span.contactfotm-title {
  display: block;
  font-size: clamp(1.5rem, 1.4207rem + 0.3252vw, 1.75rem);
  font-weight: 700;
  line-height: normal;
  color: var(--Black);
  margin-bottom: clamp(1.25rem, 1.1108rem + 0.5711vw, 1.689rem);
  text-transform: uppercase;
}

p.contactfotm-desc {
  FONT-SIZE: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  max-width: 490px;
}

.container-small-item .form-group input {
  margin-bottom: clamp(1.25rem, 1.1707rem + 0.3252vw, 1.5rem);
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  padding: 0 0 8px;
}

.container-small-item {
  flex: 1;
  align-self: flex-start;
}

.container-small-item.form {
  flex: 0.6;
  align-self: flex-end;
}

.container-small-item button.subbmit {
  font-size: 18px;
  height: 54px;
}

.teachers {
  margin-bottom: var(--main-margin);
  position: relative;
}
.teachers::before {
  content: '';
  position: absolute;
  top: 0px;
  left: auto;
  right: 100px;
  width: 300px;
  height: 330px;
  background-image: url('/wp-content/uploads/2024/09/bbg.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.05;
}

.teachers h2.block-title {
  text-align: center;
}

.teachers p.block_text {
  text-align: center;
  max-width: 825px;
  margin: 0 auto clamp(1.875rem, 1.6768rem + 0.8130vw, 2.5rem);
}

.teachers-inners {
  overflow-x: hidden;
}

.teachers-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
  display: none;
  align-items: center;
  justify-content: center;

}

.teachers-inner {
  border-radius: clamp(0.937rem, 0.6396rem + 1.2202vw, 1.875rem);
  overflow: hidden;
  border: 1px #E3DED2;
  background: #FFFBF1;
  box-shadow: 0px 4px 21px 0px rgba(0, 0, 0, 0.12);
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #E3DED2;
}

.teacher-content {
  padding: 20px clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.teacher-photo {
  display: flex;
}

.teachers-inners .swiper-wrapper {
  padding-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem) !important;
}

h3.teacher-name {
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  line-height: normal;
  margin-bottom: 14px;
}

p.teacher-content-desc {
  font-size: 14px;
}

a.teacher-btn {
  text-align: center;
  display: block;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  border: 1px solid var(--Accent);
  border-radius: 12px;
  padding: 14px;
  margin-top: auto;
  transition: 0.3s ease;
  color: var(--Accent);
}

a.teacher-btn:hover {
  transition: 0.3s ease;
  color: var(--White);
  background-color: var(--Accent);
}

.about-slider h2.block-title {
  margin-bottom: clamp(1.875rem, 0.8841rem + 4.0650vw, 5rem);
}

.page-first {
  padding-bottom: clamp(2.5rem, 1.3110rem + 4.8780vw, 6.25rem);
  background-color: #FFFBF1;
  margin-bottom: var(--main-margin);
  padding-top: clamp(6.25rem, 4.6646rem + 6.5041vw, 11.25rem);
}

.page-first .page-first-inners {
  display: flex;
  align-items: center;
  gap: 30px 12%;
}

.page-first-inner {
  flex: 1;
}

.page-first-inner.img {
  display: flex;
}

h1.page_title {
  font-size: clamp(1.75rem, 1.3140rem + 1.7886vw, 3.125rem);
  line-height: 130%;
  text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
}

.page-first-inner.img img {
  border-radius: clamp(0.937rem, 0.8378rem + 0.4072vw, 1.25rem);
}

.teachers-inners.block-question {
  display: flex;
  gap: 20px 30px;
  padding-bottom: var(--main-margin);
}

.out-question h2.block-title {
  text-align: center;
}

.prices {
  display: flex;
  padding-bottom: var(--main-padding);
  gap: 20px 30px;
}

.price-item span {
  display: block;
}

.price-item {
  display: flex;
  flex-direction: column;
  border-radius: clamp(0.937rem, 0.6396rem + 1.2202vw, 1.875rem);
  border: 1px solid #E3DED2;
  padding: 30px 20px 20px;
  text-align: center;
  flex: 1;
}

.price-item-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  row-gap: 12px;
}

span.price-item-details-item {
  display: flex;
  align-items: flex-start;
  text-align: left;
  column-gap: 10px;
}

span.price-item-details-item svg {
  min-width: 16px;
  margin-top: 7px;
}

.half span.price-item-details-item svg path {
  fill: #EA4266;
}

.full span.price-item-details-item svg path {
  fill: #E2B138;
}

.Preschool span.price-item-details-item svg path {
  fill: #38A048;
}

button.details-btn {
  background-color: transparent;
  font-size: 18px;
  font-weight: 700;
  line-height: 133%;
  display: flex;
  justify-content: center;
  height: 54px;
  align-items: center;
  border-radius: 50px;
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  cursor: pointer;
  transition: 0.3s ease;
  padding: 0;
}

span.p-name {
  font-size: clamp(1.75rem, 1.7104rem + 0.1626vw, 1.875rem);
  font-weight: 700;
  color: var(--Black);
  line-height: 120%;
  text-transform: uppercase;
  margin-bottom: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
}

span.p-price {
  font-size: clamp(2.5rem, 2.3415rem + 0.6504vw, 3rem);
  font-weight: 700;
  line-height: 120%;
  margin-bottom: 20px;
}

span.p-time {
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  line-height: 150%;
}

.mini button.details-btn {
  border: 1px solid #1F67B2;
  color: #1F67B2;
}

.mini button.details-btn:hover {
  background-color: #1F67B2;
  color: var(--White);
}

.half button.details-btn {
  border: 1px solid #EA4266;
  color: #EA4266;
}

.half button.details-btn:hover {
  background-color: #EA4266;
  color: var(--White);
}

.full button.details-btn {
  border: 1px solid #E2B138;
  color: #E2B138;
}

.full button.details-btn:hover {
  background-color: #E2B138;
  color: var(--White);
}

.Preschool button.details-btn {
  border: 1px solid #38A048;
  color: #38A048;
}

.Preschool button.details-btn:hover {
  background-color: #38A048;
  color: var(--White);
}

.info-bloks {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  /* Разделение блоков с равными отступами */
  align-items: flex-start;
  /* Блоки не будут растягиваться по высоте */
  gap: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  margin-bottom: var(--main-margin);
  position: relative;
}

.info-block-item {
  width: calc(50% - 15px);
  padding: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  display: flex;
  flex-direction: column;
  border: 1px solid #E3DED2;
}

.info-block-item:nth-child(3) {
  position: absolute;
  left: 0;
  /* JavaScript будет управлять значением top */
}

span.num {
  font-weight: 700;
  font-size: clamp(3.125rem, 2.9268rem + 0.8130vw, 3.75rem);
  margin-bottom: calc(2.1879999999999997rem - clamp(0.938rem, 0.8391rem + 0.4059vw, 1.25rem));
  line-height: normal;
  color: #414042;
  opacity: 0.1;
}

span.info-title {
  font-size: clamp(1.125rem, 1.0061rem + 0.4878vw, 1.5rem);
  margin-bottom: 14px;
  color: #414042;
  font-weight: 700;
  line-height: normal;
}

.info-block-item ul {
  margin: 0;
  padding-left: 14px;
}

.national-program.prog {
  display: flex;
  margin-bottom: clamp(3.75rem, 3.3537rem + 1.6260vw, 5rem);
  align-items: center;
  gap: 30px 10%;
}

.national-item {
  flex: 1;
}

.ipc {
  margin-bottom: var(--main-margin);
}

.ipc-items {
  display: flex;
  gap: 20px 30px;
}

.ips-item {
  padding: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  border: 1px #E3DED2;
  background: #FFFBF1;
  flex: 1;
  border: 1px solid #E3DED2;
}

.ips-item span {
  display: block;
  font-weight: 700;
  font-size: clamp(3.125rem, 2.9268rem + 0.8130vw, 3.75rem);
  margin-bottom: calc(2.1879999999999997rem - clamp(0.938rem, 0.8391rem + 0.4059vw, 1.25rem));
  line-height: normal;
  color: #414042;
  opacity: 0.1;
}

p.ipc-desc {
  font-size: clamp(1.125rem, 1.0457rem + 0.3252vw, 1.375rem);
  font-weight: 700;
  line-height: 140%;
  color: #414042;
}

h3.ipc-title {
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
}

.national-program.no-img {
  margin-bottom: clamp(1.875rem, 1.4787rem + 1.6260vw, 3.125rem);
  display: flex;
}

.table-container {
  overflow-x: auto;
  /* Горизонтальный скролл для контейнера */
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--main-margin);
  position: relative;
}
.table-container::before {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100px;
  height: 330px;
  background-image: url('/wp-content/uploads/2024/09/bear-p.svgg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 1;
}


.table th,
.table td {
  padding: 20px 0;
  text-align: left;
  border-bottom: 1px solid #E3DED2;
  color: #071D2E;
}

.table th {
  font-size: clamp(1.125rem, 1.0854rem + 0.1626vw, 1.25rem);
  padding: 0 0 20px;
  text-align: center;
}

.table th:first-child,
.table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  max-width: clamp(13.125rem, 9.3598rem + 15.4472vw, 25rem);
  width: clamp(13.125rem, 9.3598rem + 15.4472vw, 25rem);
  background-color: #F6F2E7;
}
.table td:first-child {
  text-align: left;
}
.table td {
  text-align: center;
}

.conditions {
  margin-bottom: var(--main-margin);
}

.image-container {
  flex: 1;
}

.content-container {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
}

.conditions h2.block-title {
  text-align: center;
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
}

.conditions p.block_text {
  max-width: 1000px;
  margin: 0 auto clamp(1.875rem, 1.6768rem + 0.8130vw, 2.5rem);
  text-align: center;
}

.text-items {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.text-item {
  padding: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  background-color: #FFFBF1;
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  border: 1px solid #E3DED2;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.text-item.active,
.text-item:hover {
  background-color: var(--Accent);
  border: 1px solid #E3DED2;
  transition: background-color 0.3s ease;
}

.text-item h3 {
  font-size: clamp(1.25rem, 1.1707rem + 0.3252vw, 1.5rem);
  color: var(--Black);
  margin-bottom: 14px;
  font-weight: 700;
  line-height: normal;
}

.text-item p {
  color: var(--Text);
}

.text-item.active h3,
.text-item.active p,
.text-item:hover h3,
.text-item:hover p {
  color: var(--White);
  transition: 0.3s ease;
}
.image-container img {
  border-radius: clamp(0.938rem, 0.8391rem + 0.4059vw, 1.25rem);
}
.reverse {
  flex-direction: row-reverse;
}
.location {
  display: flex;
  margin-bottom: var(--main-margin);
  align-items: center;
  gap: 20px 70px;
}
.location-item {
  flex: 1;
}
.location-item img {
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
}
.s-prices {
  background-color: #FFFBF1;
  padding: clamp(1.875rem, 0.2896rem + 6.5041vw, 6.875rem) 0;
  margin-bottom: var(--main-margin);
}
.s-prices-items {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.numbers.second-num {
  flex-direction: column;
}
.second-num .second-num-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px 100px;
}
.second-num-block:first-child {
  margin-bottom: clamp(1.25rem, 0.2591rem + 4.0650vw, 4.375rem);
  padding-bottom: clamp(1.25rem, 0.2591rem + 4.0650vw, 4.375rem);
  border-bottom: 1px solid #E3DED2;
}
.second-num-block:nth-child(2) .nums-item span {
  font-size: clamp(2rem, 1.6433rem + 1.4634vw, 3.125rem);
}
.second-num-block:nth-child(2) .nums-item p {
  font-size: 16px;
}
h2.num-title {
  font-size: clamp(1.25rem, 0.9726rem + 1.1382vw, 2.125rem);
  margin-bottom: clamp(1.25rem, 1.1707rem + 0.3252vw, 1.5rem);
}
.open-form.studios-form {
  margin: 0;
}
/* ///////табы//// */
.page-first.studios-first {
  padding-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
}
ul.main-tabs {
  padding: 4px;
  display: inline-flex;
  list-style: none;
  margin: 0;
  border-radius: 12px;
  border: 1px solid #E3DED2;
}
li.main-tab {
  font-size: 16px;
  line-height: 137%;
  color: #071D2E;
  padding: 10px 12px;
  cursor: pointer;
  transition: 0.3s ease;
  border-radius: 10px;
  background-color: transparent;
}
li.main-tab.active,
li.main-tab:hover {
  color: var(--White);
  background-color: var(--Accent);
  transition: 0.3s ease;
}
.tab-content {
  display: none;
}
.container-tabs {
  margin-bottom: var(--main-margin);
}

.tab-content.active {
  display: block;
}
ul.sub-tabs {
  margin: 0;
  list-style: none;
  border-radius: 20px;
  border: 1px solid #E3DED2;
  background: #FFFBF1;
  padding: 20px 0;
  min-width: 380px;
  max-width: 380px;
}
li.sub-tab {
  padding: 10px 30px;
  display: inline-flex;
  cursor: pointer;
  width: 100%;
  font-size: clamp(1rem, 0.9604rem + 0.1626vw, 1.125rem);
  color: var(--Black);
  font-weight: 500;
  line-height: 130%;
  background-color: transparent;
  transition: 0.3s ease;
}
li.sub-tab.active,
li.sub-tab:hover {
  background-color: var(--Accent);
  color: var(--White);
  transition: 0.3s ease;
}

.sub-tab-content {
  display: none;
  gap: 20px 30px;
  align-items: flex-start;
}

.sub-tab-content.active {
  display: flex;
}

.sub-tab-content img {
  border-radius: clamp(0.938rem, 0.8391rem + 0.4059vw, 1.25rem);
}
.sub-tabs-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
}
.sub-tab-content-text h2 {
  font-size: clamp(1.25rem, 1.0122rem + 0.9756vw, 2rem);
  line-height: normal;
  margin-bottom: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  text-transform: uppercase;
}
.sub-tab-content-text,
.sub-tab-content-img {
  flex: 1;
}
.sub-tab-content-text ul {
  padding-left: 12px;
  margin-bottom: 14px;
}

/* /////табы финиш////// */
article {
  padding-top: clamp(6.25rem, 4.6646rem + 6.5041vw, 11.25rem);
  padding-bottom: var(--main-padding);
}
article h1.entry-title {
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  font-size: clamp(1.75rem, 1.4329rem + 1.3008vw, 2.75rem);
  color: var(--Black);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 140%;
}
article h2 {
  font-size: 24px;
  font-weight: 700;
  line-height: normal;
  margin: 40px 0 20px;
}
.page-news {
  padding-bottom: var(--main-padding);
}
.page-news h1.page-title {
  font-size: clamp(1.75rem, 1.3140rem + 1.7886vw, 3.125rem);
  margin-bottom: clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem);
  line-height: 130%;
  text-transform: uppercase;
}
header.page-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 8%;
  padding-bottom: clamp(2.5rem, 1.3110rem + 4.8780vw, 6.25rem);
  padding-top: clamp(6.25rem, 4.6646rem + 6.5041vw, 11.25rem);
  background-color: #FFFBF1;
  margin-bottom: var(--main-margin);
}
.page-header-l,
.page-header-r {
  flex: 1;
}
.page-header-r img {
  border-radius: clamp(0.938rem, 0.8391rem + 0.4059vw, 1.25rem);
}
.container-news-tabs .tab-news-content {
  display: none;
}

.container-news-tabs .tab-news-content.active {
  display: grid;
}
ul.blog-tabs {
  padding: 0;
  margin-bottom: clamp(1.875rem, 1.4787rem + 1.6260vw, 3.125rem);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--Accent);
  border-radius: 50px;
}
.blog-tabs-header {
  display: flex;
  justify-content: center;
}
li.blog-tab {
  padding: clamp(0.625rem, 0.3672rem + 1.0576vw, 1.438rem) clamp(3.313rem, 2.9167rem + 1.6260vw, 4.563rem);
  font-size: clamp(1rem, 0.9207rem + 0.3252vw, 1.25rem);
  font-weight: 500;
  line-height: 120%;
  text-transform: uppercase;
  cursor: pointer;
  color: var(--text);
  border-radius: 50px;
  transition: 0.3s;
}

li.blog-tab.active {
  color: var(--White);
  background-color: var(--Accent);
  transition: 0.3s;
}
li.blog-tab:hover {
  color: var(--Accent);
  transition: 0.3s;
}
li.blog-tab.active:hover {
  color: var(--White);
}
div#news,
.posts-item.three {
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
div#events,
.posts-item.two {
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}
h2.entry-title {
  font-size: clamp(1.125rem, 1.0061rem + 0.4878vw, 1.5rem);
  line-height: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
}
a.news-link {
  display: block;
  background-color: #FFFBF1;
  border-radius: clamp(0.938rem, 0.6409rem + 1.2189vw, 1.875rem);
  overflow: hidden;
  border: 1px solid #E3DED2;
  box-shadow: 0px 4px 21px 0px rgba(0, 0, 0, 0.12);
  height: 100%;
}
.post-thumbnail {
  display: flex;
}
.news-item-content {
  padding: 20px;
}
.news-content {
  max-width: 780px;
  margin: 0 auto var(--main-margin);
}
.posts-item {
  display: grid;
}
.posts-item h2.entry-title {
  margin: 0;
}
.entry-meta {
  margin-bottom: 20px;
  line-height: 120%;
}
.single-post h1.entry-title {
  margin-bottom: 20px;
  line-height: 120%;
  text-transform: math-auto;
}
span.post-category {
  display: inline-block;
  line-height: 140%;
  padding: 8px 20px;
  color: var(--White);
  background-color: var(--Accent);
  border-radius: 100px;
  margin-bottom: calc(3.125rem - clamp(1.25rem, 1.0518rem + 0.8130vw, 1.875rem));
}
.news-content .post-thumbnail img {
  border-radius: 15px;
  margin-bottom: 20px;
}
.entry-content {
  margin-bottom: calc(4.375rem - clamp(1.875rem, 1.6768rem + 0.8130vw, 2.5rem));
}
.share {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
span.share-text {
  display: block;
  font-size: clamp(1.5rem, 1.4604rem + 0.1626vw, 1.625rem);
  color: var(--Black);
  line-height: 140%;
}
.share-icons {
  display: flex;
  align-items: center;
  column-gap: 14px;
}
a.share {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--White);
  border-radius: 50%;
  transition: 0.3s;
}
a.share:hover {
  background-color: var(--Accent);
  transition: 0.3s;
}
a.share:hover svg path {
  fill: var(--White);
  transition: 0.3s;  
}
.other-posts h3 {
  font-size: clamp(1.75rem, 1.4329rem + 1.3008vw, 2.75rem);
  line-height: normal;
  text-transform: uppercase;
  margin-bottom: clamp(1.25rem, 0.8537rem + 1.6260vw, 2.5rem);
}
.single-post main#primary::before {
  content: "";
  display: block;
  width: 100%;
  height: clamp(23.75rem, 18.7941rem + 20.3317vw, 39.38rem);
  background-color: #FFFBF1; 
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.single-post main#primary {
  position: relative;
}
#visut {
  padding-top: 150px;
  margin-top: -150px;
} 
/* ///////// */
.home .slider,
.page-first .page-first-inner:first-child  {
  position: relative;
}
.home .slider::before {
  content: '';
  position: absolute;
  top: 180px;
  left: 50px;
  width: 200px;
  height: 216px;
  background-image: url('/wp-content/uploads/2024/09/letter_a.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
.page-first .page-first-inner:first-child::before {
  content: '';
  position: absolute;
  top: 130px;
  left: auto;
  right: -40px;
  width: 200px;
  height: 216px;
  background-image: url('/wp-content/uploads/2024/09/bear-p.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.05;
}
.page-template-Pagesprograms-php .page-first .page-first-inner:first-child::before {
  background-image: url('/wp-content/uploads/2024/09/tg.svg');
}
.page-template-Pagesprices_pacage-php .page-first .page-first-inner:first-child::before {
  background-image: url('/wp-content/uploads/2024/09/bbr.svg');
}
.page-template-Pagesvstup_information-php .page-first .page-first-inner:first-child::before {
  top: 150px;
  left: auto;
  right: 300px;
  width: 120px;
  height: 140px;
}
.advantages.adv-about {
  position: relative;
}
.advantages.adv-about::before {
  content: '';
  position: absolute;
  top: -90px;
  left: auto;
  right: 30px;
  width: 200px;
  height: 170px;
  background-image: url('/wp-content/uploads/2024/09/yellow-train.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
}
.advantages.adv-about::after {
  content: '';
  position: absolute;
  top: 20px;
  left: 160px;
  right: auto;
  width: 200px;
  height: 170px;
  background-image: url('/wp-content/uploads/2024/09/bear-p.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.05;
}

.home .slider::after {
  content: '';
  position: absolute;
  top: 0px;
  right: -150px;
  width: 350px;
  height: 300px;
  background-image: url('/wp-content/uploads/2024/09/clip-path-group.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
}
.open-form-item,
.container-small-item {
  position: relative;
  flex: 1;
}
#visut .open-form-item:first-child:before,
.open-form-item:first-child:before {
  content: '';
  position: absolute;
  top: -40px;
  left: -50px;
  width: 300px;
  height: 330px;
  background-image: url('/wp-content/uploads/2024/09/butterfly.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0; 
}
.open-form p.block_text,
.open-form h2.block-title {
  z-index: 2;
  position: relative;
}
.container-small-item:first-child:before {
  content: '';
  position: absolute;
  top: -10px;
  right: 200px;
  width: 200px;
  height: 235px;
  background-image: url('/wp-content/uploads/2024/09/book.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: 0; 
}
.site-header-right {
  display: flex;
  column-gap: 50px;
  align-items: center;
}
a.language-switcher {
  display: flex;
  align-items: center;
  column-gap: 4px;
  font-size: 20px;
  font-weight: 400;
  line-height: 120%;
  color: var(--Accent);
}
.lang_mob,
span.mob-title {
  display: none;
}


@media (max-width: 1520px) {
  .site-header-right {
    display: flex;
    flex-direction: row-reverse;
    column-gap: 24px;
  }
}

@media (min-width: 1439px) and (max-width: 1520px) {
  span.p-name {
    font-size: 26px;
  }
}
 
@media (max-width: 768px) {
  .swiper-slide {
  width: 100% !important;
}
    .page-first .page-first-inner:first-child::before {
        right: -10px;
    }
    #visut .open-form-item:first-child:before, .open-form-item:first-child:before {
  top: -10px;
  left: -10px;
  width: 200px;
  height: 130px;
}
  .teachers::before {
    top: 0px;
    left: auto;
    right: 0px;
    width: 100px;
    height: 130px;
  }
  .advantages.adv-about::after {
    left: 0;
  }
  .advantages.adv-about::before {
    top: -56px;
    right: 0;
    width: 150px;
    height: 120px;
  }
  ul.sub-tabs {
    margin-bottom: 30px;
  }
  .sub-tabs-container {
    gap: 0;
  }
  span.mob-title {
    display: block;
    line-height: 130%;
    font-size: 16px;
    margin-bottom: 12px;
  }
  .numbers-inner:first-child::before {
    display: none;
  }
  .national-item:nth-child(2) {
    display: flex;
    justify-content: flex-start;
    width: 100%;
  }
  .national-item img {
    max-height: 140px;
  }
  .teacher-photo img {
    width: 100%;
  }
  .footer-top-item iframe,
  .footer-top-item {
    width: 100%;
  }
  .lang_mob span {
    font-size: 22px;
    font-weight: 250;
    line-height: 120%;
    color: var(--Accent);
    display: block;
  }
  .lang_mob a span {
    color: #F6F2E7;
  }
  .lang_mob {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    column-gap: 20px;
  }
  .lang_switcher.pc {
    display: none;
  }
  .container-small-item:first-child:before {
    top: 40px;
    right: 90px;
    width: 140px;
    height: 164px;
  }
  #visut .open-form-item:first-child:before {
    top: -20px;
    left: 0;
    width: 140px;
    height: 157px;
  }
  .home .slider::after {
    top: 32px;
    right: -31px;
    width: 116px;
    height: 100px;
  }
  .home .slider::before {
    top: auto;
    bottom: 0;
    left: 20px;
    width: 100px;
    height: 95px;
  }
  .share {
    flex-direction: column;
    row-gap: 20px; 
  }
  header.page-header .container {
    flex-direction: column;
  }
  div#events,
  div#news,
  .posts-item.three,
  .posts-item.two {
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
  }
  .sub-tab-content {
    padding-right: clamp(1rem, -1.1348rem + 8.7582vw, 9.375rem);
  }
  .page-first.studios-first .container,
  .container.inner-container {
    padding-right: 0; 
  }
  li.sub-tab {
    min-width: fit-content;
    padding: 10px 12px;
    border-radius: 10px;
    width: auto; 
  }
  ul.sub-tabs {
    display: inline-flex;
    padding: 4px;
    max-width: 100%;
  }
  li.main-tab {
    min-width: fit-content;
  }
  ul.main-tabs,
  ul.sub-tabs {
    overflow-x: scroll;
    width: 100%;
    border-radius: 12px 0 0 12px;
  }
  
  .sub-tabs-container,
  .sub-tab-content {
    flex-direction: column;
  }
  .second-num .numbers-inner.nums {
    align-items: flex-start;
    column-gap: 20px;
  }
  .second-num .second-num-block {
    flex-direction: column;
  }
  .s-prices-items {
    flex-direction: column;
    align-items: flex-start;
  }
  .location {
    flex-direction: column;
  }
.reverse {
    flex-direction: column;
  }
  .content-container {
    flex-direction: column-reverse;
  }
  .table-container {
    overflow-x: auto;
  }

  .table th,
  .table td {
    padding: 16px;
  }

  .national-program.prog,
  .ipc-items,
  .national-program.no-img {
    flex-direction: column;
  }

  .info-block-item:nth-child(3) {
    position: static;
  }

  .info-block-item {
    width: 100%;
  }

  .info-bloks {
    flex-direction: column;
  }

  .prices {
    flex-direction: column;
  }

  .teachers-inners.block-question {
    flex-direction: column;
  }

  .page-first .page-first-inners {
    flex-direction: column;
  }

  .teachers-pagination.swiper-pagination-clickable.swiper-pagination-bullets.swiper-pagination-horizontal {
    display: flex;
  }

  .container-small-item {
    width: 100%;
  }

  .container-small {
    flex-direction: column;
    row-gap: 30px;
  }

  span.contactfotm-title {
    text-transform: math-auto;
  }

  .advantages-items {
    flex-direction: column;
  }

  .open-form .container {
    flex-direction: column;
    row-gap: 30px;
  }

  .numbers-inner.nums {
    width: 100%;
  }

  .numbers-inner:first-child {
    max-width: 100%;
    padding-bottom: 40px;
    margin-bottom: 25px;
    border-bottom: 1px solid #E3DED2;
  }

  .numbers {
    flex-direction: column;
  }

  img.swiper-slide.slide-img.swiper-slide-active {
    transform: scale(1);
  }

  .first-block,
  .slider {
    padding-left: 16px;
    padding-right: 16px;
  }

  a.btn {
    width: 100%;
  }

  .faq {
    flex-direction: column;
  }

  .contacts-inner {
    flex-direction: column;
    row-gap: 30px;
  }

  .contacts-inner.bg {
    flex-direction: column-reverse;
  }

  .contacts-inner_block p.block_text {
    max-width: 100%;
  }

  a.btn {
    width: 100%;
  }

  .faq {
    flex-direction: column;
  }

  .contacts-inner {
    flex-direction: column;
    row-gap: 30px;
  }

  .contacts-inner.bg {
    flex-direction: column-reverse;
  }

  .contacts-inner_block p.block_text {
    max-width: 100%;
  }


}