/* @import url('https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&display=swap'); */
/* @import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap'); */
@import url('https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');
:root {
  --contrast-color: #ffff00;
  --second-contrast-color: #1bea9b;
  --light-contrast: #f2cbbd;
  --body-bg: white;
  --link-color: #4cbac0;
  --tab-text-color: #009da5;
  --active-link-color: #05dbf2;
  --active-link-color2: #15afc0;
  --title-color: #0b3b59;
  --dark-color: #1b46a2;
  --light-gray: #bfbfbf;
  --middle-gray: #8d8989;
  --dark-gray: #353d40;
  --text-color: #262626;
  --container-width: 1480px;
  --container-min-width: 1480px;
  --header-text-color: #004d4d;
  --water-color: #cefaff;
  --water-color2: #cefaff4d;
  --half-opacity: #feffff8c;
  --error: #e90000;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: var(--text-color);
  transition: all 0.3s ease;
}
p:empty {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}
body {
  font-size: 17px;
  line-height: 1.5;
  background-color: var(--body-bg);
  font-family: 'Rubik', sans-serif;
  font-weight: 400;
  height: 100%;
}

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; /* колір фону прелоадера */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

/* Спіннер (ефект завантаження) */
.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0073aa; /* колір спінера */
  border-radius: 50%;
  animation: spin 1s infinite linear;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.splide__pagination__page.is-active {
  background: var(--active-link-color);
}
input,
textarea,
select,
.select {
  border: 1px solid var(--light-gray);
  border-radius: 6px;
  font-size: 15px;
  line-height: 1;
  font-family: 'Rubik', sans-serif;
  padding: 6px 12px;
  color: var(--text-color); /*var(--input-text);*/
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border: 1px solid var(--tab-text-color);
  color: var(--dark-color);
}
input.error {
  border-color: var(--warning);
}
textarea {
  resize: none;
}
label > span {
  color: var(--error);
}
.error {
  color: var(--error);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--dark-color);
}
h1 *,
h2 *,
h3 *,
h4 *,
h5 *,
h6 * {
  color: var(--dark-color);
}
.news-title > a {
  font-weight: 500;
  overflow-y: hidden;
  height: 56px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background-color: #d9d9d9;
}
*::-webkit-scrollbar-thumb {
  background-color: var(--title-color);
  border-radius: 1px;
}
section.section-with-padding {
  padding: 60px 40px;
}
section.pb {
  padding-bottom: 100px;
}
.splide__arrow {
  border-radius: 6px;
}
button,
.btn {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 11px 20px;
  border: none;
  border-radius: 6px;
  background-color: var(--contrast-color);
  color: var(--title-color);
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  cursor: pointer;
  font-weight: 600;
}
.btn-second {
  background-color: var(--tab-text-color);
  color: var(--body-bg);
}

button:hover,
.btn:hover,
.btn-second:hover {
  background-color: var(--title-color);
  color: var(--body-bg);
}
button.modal-close {
  padding: 0 7px;
}
button:disabled,
.btn:disabled {
  cursor: not-allowed;
  background-color: var(--light-gray);
  color: var(--middle-gray);
}
header,
footer {
  padding: 0 40px;
}

.container {
  width: var(--container-width);
  margin: 0 auto;
  max-width: 100%;
}
.container-min {
  width: var(--container-min-width);
  margin: 0 auto;
  max-width: 100%;
}
.flex {
  display: flex;
}
.wrap {
  flex-wrap: wrap;
}
.aic {
  align-items: center;
}
.jcsb {
  justify-content: space-between;
}
.jcsa {
  justify-content: space-around;
}
.jcfe {
  justify-content: flex-end;
}
.jcc {
  justify-content: center;
}
.grid {
  display: grid;
}
.h-100 {
  height: 100%;
}
.w-100 {
  width: 100%;
}
.big {
  font-weight: 700;
  font-size: 2.5rem;
  color: var(--dark-color);
}
a {
  text-decoration: none;
}
ol,
ul {
  list-style: none;
  padding-left: 0;
}
.g-1 {
  gap: calc(1rem / 4);
}
.g-2 {
  gap: calc(1rem / 2);
}
.g-3 {
  gap: 1rem;
}
.g-4 {
  gap: 1.5rem;
}
.g-5 {
  gap: 2rem;
}
.m-0 {
  margin: 0;
}
.p-0 {
  padding: 0;
}
header {
  background-color: var(--body-bg);
  position: sticky;
  top: 0;
  left: 0;
  z-index: 9;
  opacity: 1;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  display: flex;
}

header.hide {
  opacity: 0;
  visibility: hidden; /* Забирає елемент з візуального потоку */
  pointer-events: none; /* Деактивує взаємодію */
}

header.scroll {
  visibility: visible;
  pointer-events: all;
}

body:not(.home) header {
  background-color: #f4f5fc;
}
header button {
  min-width: 210px;
}
header *:not(button) {
  color: var(--tab-text-color);
}
.custom-logo-link {
  background-color: var(--water-color);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px 40px 100px 40px;
  padding: 6px 10px;
  width: max-content;
  position: relative;
  margin: 10px 0;
}
.custom-logo-link > img {
  width: 150px;
  height: auto;
}

.header-menu-line {
  align-items: flex-end;
}
.header-menu-wrap {
  grid-auto-rows: 1fr;
}
.header-menu-wrap > p {
  font-size: 18px;
}
.menu {
  position: relative; /* Контекст для позиціонування дочірніх елементів */
  height: max-content;
}

.menu > li {
  background-color: var(--water-color);
  padding: 8px 24px 4px;
  border-radius: 16px 16px 0 0;
  position: relative;
  transition: all 0.3s ease; /* Додаємо плавний перехід для анімації */
  z-index: 1; /* Встановлюємо базовий z-index для всіх вкладок */
  border-bottom: none;
}

.menu > li.active {
  background-color: var(--contrast-color);
  border: 1px solid var(--contrast-color);
  z-index: 10; /* Активна вкладка на передньому плані */
  border-bottom: none;
}

.menu > li > a {
  color: var(--title-color);
  font-weight: 300;
}
.menu > li:hover > a {
  color: var(--dark-color);
  font-weight: 500;
}
.menu > li.active > a {
  color: var(--title-color);
  font-weight: 500;
}

.menu > li:not(.active) {
  border: 1px solid var(--link-color);
  margin-left: -4px;
  z-index: 1;
  border-bottom: none;
}

.menu > li:not(.active):not(:last-child) {
  margin-right: -4px;
}

.menu > li:not(.active) {
  z-index: 2;
}

.menu > li > .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: max-content;
  min-width: 150px;
  padding: 12px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  /* border: 1px solid var(--active-link-color);
	border-top: none; */
  box-shadow: 3px 2px 6px 1px rgba(0, 0, 0, 0.2);
}
.menu > li:not(.active) > .sub-menu {
  left: 6px;
}
.menu > li:hover > .sub-menu {
  display: grid;
  background-color: var(--body-bg);
  display: grid;
  gap: 6px;
}

.menu > li > .sub-menu > li > a {
  font-weight: 300;
  color: var(--title-color);
  padding-left: 20px;
  padding-right: 10px;
}
.menu > li > .sub-menu > li:hover > a {
  color: var(--dark-color);
  font-weight: 500;
}
.menu > li > .sub-menu > li.active {
  background-color: var(--tab-text-color);
}
.menu > li > .sub-menu > li.active > a,
.menu > li > .sub-menu > li.active > a > span {
  color: var(--body-bg);
  font-weight: 500;
}
.header-phone {
  height: max-content;
  font-size: 18px;
}
.header-phone:hover {
  color: var(--title-color);
}
.header-phone svg {
  width: 24px;
  fill: var(--tab-text-color);
}
.header-phone:hover svg {
  fill: var(--title-color);
}
.social-wrap {
  align-content: flex-end;
  height: 100%;
  margin-bottom: 10px;
}
.socail-icon-wrap {
  border-radius: 50%;
  background-color: var(--tab-text-color);
  padding: 8px;
  width: 40px;
  height: 40px;
}
.socail-icon-wrap > img {
  width: 100%;
  height: auto;
}
.socail-icon-wrap:hover {
  background-color: var(--title-color);
}

.breadcrumbs {
  color: var(--link-color);
}
.breadcrumbs > a {
  color: var(--link-color);
}
.breadcrumbs > span {
  color: var(--middle-gray);
}
.breadcrumbs-section h1 {
  margin-top: 1rem;
}
.log-in {
  padding: 3px 0;
}
.log-in:hover {
  color: var(--title-color);
}

.splide__slide {
  position: relative;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.slider-wrap {
  margin: 60px 0px 60px 60px;
  position: relative;
  width: 800px;
  z-index: 1;
  padding: 60px 40px 60px 100px;
  background-color: var(--half-opacity);
  border-radius: 200px 80px;
  max-width: 85vw;
}
.slider-wrap::before {
  content: '';
  width: 30px;
  height: 30px;
  border-radius: 50%;
  position: absolute;
  bottom: -18px;
  left: -18px;
  background-color: var(--half-opacity);
}
.slider-wrap::after {
  content: '';
  width: 20px;
  height: 20px;
  border-radius: 50%;
  position: absolute;
  bottom: -50px;
  left: -40px;
  background-color: var(--half-opacity);
}
.slider-wrap * {
  color: var(--title-color);
}
.slider-wrap .btn {
  text-transform: uppercase;
  font-weight: 500;
  min-width: 220px;
  min-height: 52px;
}
.slider-button-wrap {
  margin-top: 32px;
}
.slider-wrap .btn-second {
  color: var(--body-bg);
}

.slider-wrap h2 {
  font-size: 2rem;
  margin-bottom: 32px;
}
.slider-wrap p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 12px;
}
/*===Footer===*/
footer {
  background-color: var(--dark-color);
}
footer * {
  color: var(--body-bg);
}
.footer-wrap {
  padding: 60px 0 30px;
}
.cities {
  width: 50%;
}
.footer-cities {
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
}
.footer-cities a:hover {
  color: var(--active-link-color);
}
.footer-wrap .contacts a.header-phone:hover {
  color: var(--active-link-color);
}
.footer-wrap .contacts a.header-phone > svg {
  fill: var(--body-bg);
}

.footer-wrap .contacts a.header-phone:hover > svg {
  fill: var(--active-link-color);
}
.footer-wrap .contacts button {
  color: var(--dark-color);
}
.footer-wrap .contacts button:hover {
  background-color: var(--active-link-color);
  color: var(--body-bg);
}
.footer-wrap .contacts .social-networks {
  justify-content: center;
}
.footer-wrap .title {
  font-size: 1.2rem;
  margin-top: 16px;
}
.footer-wrap .custom-logo-link {
  margin: 0;
}
/*===map====*/
.map {
  height: 600px;
}
/*===Mobile menu===*/
.mobile-menu {
  display: none;
  background-color: var(--body-bg);
  position: fixed;
  top: 0;
  left: 0;
  width: max-content;
  max-width: 100vw;
  padding: 24px;
  z-index: 2;
  height: 100dvh;
  overflow-y: auto;
  box-shadow: 4px 0px 5px 0px rgb(76, 186, 192, 0.3);
}
.mobile-menu .custom-logo-link {
  margin: 0;
}
.mobile-menu.show {
  display: grid;
  grid-auto-rows: max-content;
}
.mobile-menu .header-menu-wrap {
  grid-auto-rows: max-content;
  gap: 20px;
  position: relative;
}
.mobile-menu .header-menu-wrap::after {
  content: '';
  position: absolute;
  bottom: -14px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--light-gray);
}
.mobile-menu .header-menu-line {
  display: flex;
}
.toggler {
  display: none;
  cursor: pointer;
  row-gap: 6px;
  grid-auto-rows: max-content;
  align-self: center;
}
.toggler > span {
  height: 2px;
  width: 32px;
  background-color: var(--tab-text-color);
}
.mobile-menu .header-menu-line .menu {
  display: grid;
  gap: 10px;
  width: 100%;
}
.mobile-menu .header-menu-line .menu > li {
  background-color: transparent;
  border: none;
  padding: 0;
  position: static;
  height: max-content;
}
.mobile-menu .header-menu-line .menu > li:not(.active):not(:last-child) {
  margin-right: 0;
}
.mobile-menu .header-menu-line .menu > li:not(.active) {
  margin-left: 0;
}
.mobile-menu .header-menu-line .menu > li > .sub-menu {
  display: grid;
  position: static;
  border: none;
  box-shadow: none;
  padding: 0;
  gap: 4px;
}
/* .mobile-menu .header-menu-line .menu > li > .sub-menu > li {
  padding: 5px 0;
} */
.mobile-menu .header-menu-line .menu > li > .sub-menu > li > a {
  line-height: 1;
  height: 100%;
  padding-top: 7px;
  padding-bottom: 6px;
}
.mobile-menu-wrap {
  position: relative;
  gap: 20px;
}
.close-icon {
  position: absolute;
  top: 0px;
  right: 0px;
}
.close-icon > svg {
  fill: var(--dark-gray);
  width: 18px;
  height: 18px;
}
/*====Main Page====*/
section {
  padding: 24px 40px 80px;
}
section.breadcrumbs-section {
  padding: 24px 40px 40px;
}
.page-template-page-study section.breadcrumbs-section,
.page-template-page-courses section.breadcrumbs-section {
  padding-bottom: 16px;
}
.title-wrap {
  gap: 80px;
}
.title-wrap h2 {
  color: var(--dark-color);
  text-transform: uppercase;
  text-align: center;
}
.title-wrap svg {
  height: 25px;
  width: auto;
}
.title-wrap svg:last-child {
  transform: scaleX(-1);
}
.content-wrap {
  gap: 80px;
  margin-top: 80px;
}
.text-block {
  grid-auto-rows: max-content;
}
.text-block h3 {
  font-weight: 500;
  font-size: 26px;
  color: var(--header-text-color);
}
.bold {
  font-weight: 600;
  line-height: 1.3;
}
.text-block .btn {
  width: max-content;
  min-width: 50%;
  margin-top: 24px;
  text-transform: uppercase;
}
.content-wrap > .item {
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}
.content-wrap > .item:nth-child(2) {
  grid-template-columns: 1fr 2fr;
}
.content-wrap .image-block > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 500px;
  border-radius: 100px 100px 100px 0;
}
.content-wrap a:not(.btn) {
  color: var(--active-link-color);
}
.content-wrap > .item:nth-child(2) .image-block > img {
  border-radius: 100px 100px 0px 100px;
}
.section-owner {
  /* background-color: var(--title-color); */
  background-image: linear-gradient(
    to right bottom,
    #ffffff,
    #f9fcff,
    #edfaff,
    #ddfaff,
    #cefaff
  );
}
.section-owner .content-wrap .image-block {
  position: relative;
  height: max-content;
}
.section-owner .content-wrap .image-block::before {
  position: absolute;
  content: '';
  background-color: var(--active-link-color);
  top: -30px;
  left: 0;
  width: calc(100% + 30px);
  height: calc(100% + 60px);
  max-height: 560px;
  border-radius: 100px 120px 120px 36px;
  z-index: 0;
  box-shadow: 3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
.section-owner .content-wrap > .item:nth-child(2) .image-block::before {
  border-radius: 120px 100px 36px 120px;
  left: -30px;
  box-shadow: -3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
.section-owner .content-wrap .image-block > img {
  z-index: 1;
  position: relative;
}
.content-wrap > .item:last-child .image-block > img {
  height: 400px;
}
.content-wrap p > strong {
  line-height: 1.4;
}
.section-ranne .content-wrap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}
.section-ranne .content-wrap .image-block {
  position: relative;
  width: 100%;
  height: max-content;
}
.section-ranne .content-wrap .image-block > .color-block {
  position: absolute;
  content: '';
  background-color: var(--dark-color);
  top: -20px;
  left: 0;
  width: calc(100% + 20px);
  height: calc(100% + 40px);
  border-radius: 22px 80px 84px 28px;
  z-index: 0;
  box-shadow: 3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
/* .section-ranne .content-wrap .image-block > * {
  z-index: 1;
  position: relative;
  border-radius: 0 60px 60px 0;
} */
.section-ranne .content-wrap .image-block > iframe {
  width: 100%;
  border-radius: 0 60px 60px 0;
  z-index: 1;
  position: relative;
}

.btn.shadow {
  box-shadow: 3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
/* .gallery-wrap {
  margin-top: 60px;
} */
.instructors-page-wrap {
  grid-template-columns: max-content 1fr;
}
.cities-list {
  row-gap: 6px;
  grid-auto-rows: max-content;
}
.cities-list li {
  font-weight: 300;
  font-size: 14px;
  padding: 6px 10px 6px 18px;
  border-radius: 12px 12px 12px 0;
  border: 1px solid var(--tab-text-color);
  cursor: pointer;
}
.cities-list li.hidden {
  display: none;
}
.cities-list li.active {
  background-color: var(--contrast-color);
}
.cities-list li:not(.active):hover {
  background-color: var(--water-color);
}
.instructors-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  grid-auto-rows: max-content;
}
.instructors-list > li.hidden {
  display: none;
}
.instructor {
  position: relative;
  box-shadow: 0 1px 3px #e8f0f6;
  border: 1px solid #e8f0f6;
  border-radius: 100px 100px 100px 0;
  overflow: hidden;
  background-color: #eef9ff;
  display: grid;
  grid-auto-rows: 70px 0 auto;
}
.instructor > .flex {
  height: 0;
}
.instructor .image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: absolute;
  top: 13px;
  background-position: center;
}

.instructor .header-line {
  height: 70px;
  width: 100%;
}
.instructor .text {
  background-image: url('/wp-content/themes/waterbaby/images/bg2.png');
  padding: 82px 40px 30px 30px;
  background-color: var(--body-bg);
  border-radius: 80px 80px 0 0;
  grid-auto-rows: max-content;
}
.instructor .text .contacts > * {
  font-weight: 600;
  color: var(--tab-text-color);
}
.instructor .text .contacts > .city {
  color: var(--dark-color);
}
.instructor .instructor-content {
  overflow-y: hidden;
  height: 76px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: ellipsis;
}
.city-content p {
  margin-bottom: 1rem;
}
.city-content h2,
.city-content h3,
.city-content h4,
.city-content h5,
.city-content h6 {
  margin-bottom: 1rem;
}
.city-content ol {
  list-style-type: decimal;
  padding-left: 40px;
}
.city-content ul {
  list-style-type: disc;
  padding-left: 40px;
}
.city-content li {
  margin-bottom: 0.5rem;
}

.news-section .splide__list {
  margin-bottom: 20px !important;
}
.news-section .item {
  display: grid;
  grid-template-rows: 200px max-content;
  gap: 1rem;
  background-color: var(--body-bg);
  overflow: hidden;
  border-radius: 40px 40px 16px 16px;
  box-shadow: 4px 4px 5px 0px rgba(11, 59, 89, 0.1);
}
.news-section .item img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.news-text {
  grid-template-rows: 57px repeat(3, max-content);
  padding: 0 16px 16px;
}
.content-wrap .news-text h3 > a {
  color: var(--title-color);
}
.news-date {
  text-align: right;
  font-size: 0.8rem;
  color: var(--light-gray);
}
.news-excerpt {
  overflow-y: hidden;
  height: 80px;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  text-overflow: ellipsis;
}
.posts-list {
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 40px;
}
.post-wrap {
  grid-template-columns: 2.5fr 1fr;
  gap: 160px;
}
.post-wrap > article {
  display: grid;
  gap: 60px;
  grid-auto-rows: max-content;
}
.post-wrap > article ol {
  display: grid;
  gap: 6px;
  padding-left: 1rem;
  list-style: decimal;
  list-style-position: inside;
}

.post-wrap > article ul {
  display: grid;
  gap: 6px;
  padding-left: 1rem;
  list-style: disc;
  list-style-position: inside;
}
.post-wrap > article ol > li > a,
.post-wrap > article p > a {
  border-bottom: 1px dotted var(--text-color);
}

.post-wrap > article ol > li:hover > a,
.post-wrap > article p > a:hover {
  color: var(--title-color);
  border-bottom-color: var(--title-color);
}
.post-wrap > article ol > li:hover::marker {
  color: var(--title-color);
}
.post-thumbnail {
  width: 100%;
  position: relative;
  height: max-content;
}
.post-thumbnail::before {
  position: absolute;
  content: '';
  background-color: var(--active-link-color);
  top: -30px;
  left: 0;
  width: calc(100% + 30px);
  height: calc(100% + 60px);
  max-height: 560px;
  border-radius: 100px 120px 120px 36px;
  z-index: 0;
  box-shadow: 3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}

.post-thumbnail > img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  /* object-position: top center; */
  position: relative;
  border-radius: 80px 100px 100px 0px;
}
.post-wrap .wp-block-group {
  position: relative;
}
.post-wrap .wp-block-group.article-gallery {
  margin-right: 0 !important;
  margin-left: 0 !important;
}
.post-wrap .wp-block-group.article-gallery:before {
  display: none !important;
}
.post-wrap .wp-block-group:nth-child(even) {
  margin-right: 200px;
}
.post-wrap .wp-block-group:before {
  position: absolute;
  content: '';
  background-image: url(/wp-content/themes/waterbaby/images/bg2.png);
  top: 0;
  height: 100%;
  width: 160px;
  z-index: 1;
  /* background-color: var(--dark-color) */
}
.post-wrap .wp-block-group:nth-child(even):before {
  right: -200px;
  border-radius: 60px 60px 60px 0;
}
.post-wrap .wp-block-group:nth-child(odd) {
  margin-left: 200px;
}
.post-wrap .wp-block-group:nth-child(odd):before {
  left: -200px;
  border-radius: 60px 60px 0px 60px;
}
.post-wrap .wp-block-group__inner-container {
  display: grid;
  gap: 1rem;
}
.post-wrap .entry-meta {
  text-align: right;
  color: var(--header-text-color);
  font-weight: 600;
}
.post-wrap .nav-links a {
  border-bottom: 1px dotted var(--tab-text-color);
  color: var(--tab-text-color);
}
.post-wrap .nav-links a * {
  color: var(--tab-text-color);
}
.post-wrap .nav-links a:hover {
  border-bottom-color: var(--header-text-color);
  color: var(--header-text-color);
}
.post-wrap .nav-links a:hover * {
  color: var(--header-text-color);
}
.post-wrap .nav-links a .nav-subtitle {
  font-weight: 600;
}
.sidebar {
  grid-auto-rows: max-content;
}

.recent-posts-list .splide__arrow--prev {
  top: -1em;
  left: 100%;
}
.recent-posts-list .splide__arrow--next {
  bottom: -1em;
  left: 100%;
}
.sidebar .recent-post-item {
  grid-template-columns: 60px auto;
  padding: 10px 0;
}
.sidebar .recent-post-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 30px 0;
  max-height: 80px;
}

.sidebar .recent-post-item h3 {
  font-size: 16px;
}
.sidebar .recent-post-item h3:hover a {
  color: var(--dark-color);
}
.sidebar .recent-post-item p {
  font-size: 14px;
}
.sidebar .recent-post-item:not(:last-child) {
  border-bottom: 1px solid var(--light-gray);
}

.recent-posts-list {
  margin-top: 1rem;
}
.info p {
  text-align: center;
}

.sidebar-slider {
  margin: 1.5rem 0;
}

.sidebar-slider img {
  width: 100%;
  height: auto;
}

.sidebar-slider .item {
  position: relative;
  overflow: hidden;
  border-radius: 100px 0px;
  box-shadow: 3px 3px 4px 0 rgba(11, 59, 89, 0.3);
  width: 98% !important;
  margin-bottom: 4px;
}

.sidebar-slider .item .text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--contrast-color);
  padding: 2rem 1rem 3rem;
  padding-top: 0;
  z-index: 1;
}

.sidebar-slider .item .text .wave {
  position: absolute;
  top: -39px;
  left: 0;
  width: 100%;
  height: 40px;
  z-index: 2;
  transform: rotate(180deg);
}

.sidebar-slider .item .text h4 {
  font-size: 1.5rem;
  color: var(--title-color);
  z-index: 3; /* Текст над хвилею */
  position: relative;
  text-align: center;
}
.sidebar .top-block {
  background-color: var(--water-color);
  padding: 3rem 1rem;
  padding-left: 2rem;
  border-radius: 100px 0px;
  box-shadow: 3px 3px 4px 0 rgba(11, 59, 89, 0.3);
}
.sidebar .top-block svg {
  fill: var(--title-color);
}
/*=====Instructor====*/
.first-line {
  grid-template-columns: 1fr 1.5fr 1.5fr;
  gap: 60px;
}
.first-line > div {
  border-radius: 0px 60px;
  overflow: hidden;
  box-shadow: 0px 0px 8px 2px rgba(11, 59, 89, 0.1);
}
.first-line > div.text {
  padding: 2rem 1.5rem;
}
.first-line img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.instructors .data {
  grid-auto-rows: max-content;
  height: max-content;
}
.instructors .tabs {
  grid-template-columns: repeat(3, 1fr);
}
.instructors .tabs a {
  display: flex;
  justify-content: center;
  padding: 12px 6px;
  border-radius: 6px;
  background-color: var(--tab-text-color);
  color: var(--body-bg);
}
.instructors .tabs a:nth-child(even) {
  background-color: var(--active-link-color);
}
.instructors .tabs a:hover {
  background-color: var(--title-color);
}
.intsr-descr p {
  font-weight: 500;
  color: var(--title-color);
}
.instructors .data .contacts span {
  font-weight: 600;
  color: var(--title-color);
}
.instructors .data .contacts > div.phone > div.grid {
  grid-template-columns: 86px 1fr;
  grid-auto-rows: max-content;
  gap: 10px;
}
.instructors .data .contacts a,
.instructors .data .contacts a > span {
  color: var(--tab-text-color);
  font-weight: 500;
}

.instructors .data .contacts a:hover {
  color: var(--dark-color);
}
.instructors .instructor-thumbnail {
  position: relative;
}
.instructors .instructor-thumbnail .counter {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: var(--water-color);
  padding: 6px;
  border-top-left-radius: 10px;
}

.instructors .instructor-thumbnail .counter svg {
  fill: var(--title-color);
}

.instructors .content-wrap-instr {
  gap: 100px;
  grid-template-columns: 3fr 1fr;
}
.instructors .instructor-content a {
  color: var(--active-link-color2);
}
.instructors .instructor-content a:hover {
  color: var(--dark-color);
}

.single-instructors .navigation-links a {
  border-bottom: 1px dotted var(--tab-text-color);
  color: var(--tab-text-color);
}
.single-instructors .navigation-links a:hover {
  color: var(--header-text-color);
  border-bottom: var(--header-text-color);
}
.instructors form input,
.instructors form textarea {
  width: 100%;
}
form label {
  color: var(--header-text-color);
}
.contacts-input {
  grid-template-columns: repeat(2, 1fr);
}

svg.selected {
  fill: #ffc107;
}

.more-wrap-instr .reviews {
  grid-template-columns: 220px 72vw;
  gap: 60px;
}
/* .more-wrap-instr .reviews > div#reviews {
  max-width: 100% !important;
} */
.review-list .splide__list {
  margin: 2rem 0 !important;
}
.review-list .splide__track {
  padding: 0 0.5rem !important;
}
.review-item {
  border-radius: 40px 0;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
  padding: 1rem;
  padding-left: 1.5rem;
  width: max-content;
  grid-auto-rows: max-content;
  gap: 20px;
}

.review-item h3 {
  color: var(--title-color);
}
.review-list .splide__arrow--prev {
  left: -2rem;
}
.review-list .splide__arrow--next {
  right: -2rem;
}
.no-reviews {
  color: var(--title-color);
  font-weight: 600;
  font-size: 1.2rem;
  margin-top: 2rem;
}
.schedule-wrap {
  margin-top: 2rem;
  width: max-content;
}
.schedule-wrap p {
  display: grid;
  gap: 10px;
}
.single-instructors .gallery h2 {
  margin-bottom: 2rem;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.modal-container {
  background: var(--body-bg);
  padding: 2rem;
  padding-top: 3rem;
  border-radius: 8px;
  max-width: 90vw;
  width: max-content;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

.modal-content {
  max-height: 80vh;
  overflow-y: auto;
}

.map-card {
  margin-bottom: 12px;
}
.map-card * {
  font-size: 14px;
  font-family: 'Rubik', sans-serif;
}
.map-card a {
  color: var(--header-text-color);
}
.map-card a:hover {
  color: var(--title-color);
}
.map-card h5 {
  color: var(--title-color);
  text-transform: uppercase;
}
.map-card-item {
  padding-left: 10px;
}
.map-card-item > * {
  padding-left: 16px;
}
.map-card-item > h6 {
  padding-left: 0;
}
.video-grid {
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
}
.video-wrap h2 {
  margin-bottom: 2rem;
}
.more-wrap-instr > div {
  padding-bottom: 2rem;
  /* border-bottom: 1px solid var(--light-gray) */
}
/*======Про нас============*/
section.about-us-section {
  padding-top: 0;
}
.content-wrap-about {
  height: max-content;
}
.content-wrap-about .splide__slide {
  height: 40vh;
  min-height: 500px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.about-titles {
  margin-bottom: 2rem;
}
.about-titles h2 {
  color: var(--tab-text-color);
  text-align: center;
  padding: 10px 16px;
  border: 1px solid var(--active-link-color2);
  border-radius: 6px 6px 0 0;
  font-size: 1.2rem;
  font-weight: 500;
}
.about-titles h2.active {
  border-bottom: none;
}
.about-titles h2:not(.active) {
  background-color: var(--water-color);
  color: var(--middle-gray);
  cursor: pointer;
}

.about-titles h2:last-child {
  border-left: none !important;
}
.about-titles h2:not(.active):hover {
  background-color: var(--active-link-color);
  color: var(--title-color);
}
.about-text p,
.about-text h3 {
  margin-bottom: 1rem;
}
.about-text h3 {
  margin-top: 2rem;
}

.content-wrap-about .content:not(.active) {
  display: none;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2rem;
}
.pagination > * {
  padding: 0px 6px;
  border: 1px solid var(--dark-color);
  border-radius: 4px;
  min-width: 30px;
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pagination > a:hover {
  background-color: var(--water-color);
}
.pagination > span {
  color: var(--dark-color);
  font-weight: 600;
}
/*======Навчання=======*/
.page-template-page-study h2,
.page-template-page-courses h2 {
  color: var(--header-text-color);
  font-size: 2rem;
  line-height: 1.2;
}
.section-for-who {
  background-image: linear-gradient(to left bottom, #ddfafd, #ffffff);
}
.text-block-for-who ul {
  display: grid;
  margin-top: 24px;
}
.text-block-for-who ul > li {
  /* border-radius: 20px 60px 30px 40px; */
  padding: 16px 40px;
  background-color: #ffff0066;
  width: 30%;
  display: grid;
  grid-template-columns: 24px 1fr;
  justify-content: center;
  gap: 10px;
  align-items: center;
}

.text-block-for-who ul > li > span {
  text-transform: lowercase; /* Всі літери маленькі */
}
.text-block-for-who ul > li > span:first-letter {
  text-transform: uppercase; /* Перша буква велика */
}
.text-block-for-who ul > li:nth-child(3n + 1) {
  margin-left: 0;
  background-color: #15b0c133;
}
.text-block-for-who ul > li:nth-child(3n + 2) {
  margin-left: 33%;
}
.text-block-for-who ul > li:nth-child(3n + 3) {
  margin-left: 66%;
  background-color: #6f082433;
}
.btn-wrap .btn {
  width: max-content;
}
.study-chance-text {
  max-width: 800px;
}
.study-chance-section {
  background-color: var(--tab-text-color);
  padding-top: 60px;
}
.study-chance-section p {
  color: var(--body-bg);
  font-size: 24px;
}
.study-chance-section .btn {
  text-transform: uppercase;
  font-weight: 500;
  min-width: 220px;
  min-height: 52px;
}

.benefits-section .text-block ol {
  /* list-style-type: decimal;
  list-style-position: inside;
  padding-left: 40px; */
  counter-reset: list-item; /* Скидає лічильник */
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.benefits-section .text-block ol li {
  counter-increment: list-item; /* Збільшує лічильник для кожного елемента */
}

.benefits-section .text-block ol li strong {
  color: var(--header-text-color);
}

.benefits-section .text-block ol li::before {
  content: counter(list-item) '. ';
  font-weight: bold;
  color: var(--header-text-color);
}

.gots .content-wrap > .item {
  grid-template-columns: 1fr 2fr;
}

.gots .content-wrap > .item > .image-block > img {
  border-radius: 100px 100px 0px 100px;
  height: 100%;
}
.gots .content-wrap > .item > .image-block::before {
  border-radius: 120px 100px 36px 120px;
  left: -30px;
  box-shadow: -3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
.courses-section {
  padding-top: 0;
  padding-bottom: 0;
}
.courses-section .wp-block-columns {
  margin-top: 2rem;
}
.courses-section h2 {
  margin-bottom: 1rem;
}
.courses-section h2 > span {
  color: var(--title-color);
}
.courses-section h2 > span.counter {
  color: var(--dark-color);
}
.courses-section .wp-block-columns > div {
  box-shadow: 4px 0px 5px 0px rgb(76, 186, 192, 0.3);
  border-radius: 60px;
  padding: 3rem;
  background-color: var(--water-color2);
  border: 1px solid var(--water-color);
}
.courses-section .wp-block-columns .wp-block-group__inner-container {
  display: grid;
  gap: 1rem;
}
.courses-section .wp-block-columns .wp-block-group__inner-container strong {
  color: var(--header-text-color);
}
.courses-section .wp-block-columns > div a {
  transition: 0.3s ease all;
}
.courses-section .wp-block-columns > div a:hover {
  border-bottom: 1px dotted var(--header-text-color);
}
.payments .wp-block-group__inner-container {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}
.payments h3 {
  color: var(--header-text-color);
  font-size: 1.5rem;
}

.payments ol {
  display: grid;
  gap: 1rem;
  padding-left: 1rem;
}

.payments ol li {
  counter-increment: list-item; /* Збільшує лічильник для кожного елемента */
}

.payments ol li::before {
  content: counter(list-item) '. ';
  font-weight: bold;
  color: var(--header-text-color);
}
.study-button-wrap {
  margin-top: 2rem;
}
.study-button-wrap .btn {
  min-width: 50%;
  text-transform: uppercase;
}
/*==========Випускники==========*/
/* .ul-term-graduate {
  margin-bottom: 2rem;
} */
.ul-term-graduate > li {
  cursor: pointer;
}

.ul-term-graduate > li > h4 {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  background-color: var(--water-color);
  color: var(--title-color);
  font-weight: 500;
  text-transform: uppercase;
  line-height: 1;
}
.ul-term-graduate > li > h4 > span {
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--contrast-color);
  color: var(--title-color);
  width: 28px;
  min-width: 28px;
  height: 28px;
  padding: 2px;
  font-weight: 400;
}
.ul-term-graduate > li:not(.open) > h4 {
  background-color: var(--water-color2);
  border-bottom: 1px solid var(--link-color);
  border-left: 1px solid var(--link-color);
  border-right: 1px solid var(--link-color);
}
.ul-term-graduate > li:not(.open):first-child > h4 {
  border-top: 1px solid var(--link-color);
}
.ul-term-graduate > li > .table-wrapper {
  transition: height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.ul-term-graduate > li:not(.open) > .table-wrapper {
  height: 0;
  opacity: 0;
  transform: scaleY(0);
  overflow: hidden;
}

.table-wrapper {
  width: 100%;
  overflow-x: auto; /* Додає горизонтальний скрол */
}

.table-graduate {
  width: 100%;
  min-width: 800px; /* Мінімальна ширина для появи скролу */
  border-collapse: collapse;
  table-layout: fixed;
}
.table-graduate * {
  font-size: 14px;
}

.table-graduate th,
.table-graduate td {
  border: 1px solid var(--light-gray);
  padding: 6px 4px;
  text-align: left;
}

.table-graduate thead {
  background-color: #e7e0e0;
  font-weight: 500;
}

.table-graduate tbody tr:nth-child(even) {
  background-color: #f7f6f6;
}

/* Встановлення пропорційної ширини колонок */
.table-graduate th:nth-child(1),
.table-graduate td:nth-child(1),
.table-graduate th:nth-child(2),
.table-graduate td:nth-child(2) {
  width: 15%; /* Аналог 1fr */
}
.table-graduate td:nth-child(1) {
  font-weight: 500;
}
.table-graduate td > a {
  text-decoration: underline dotted;
  color: var(--title-color);
}
.table-graduate td > a:hover {
  color: var(--active-link-color2);
}
.table-graduate th:nth-child(3),
.table-graduate td:nth-child(3),
.table-graduate th:nth-child(4),
.table-graduate td:nth-child(4),
.table-graduate th:nth-child(5),
.table-graduate td:nth-child(5),
.table-graduate th:nth-child(6),
.table-graduate td:nth-child(6),
.table-graduate th:nth-child(7),
.table-graduate td:nth-child(7) {
  width: 10%; /* Аналог 0.7fr */
}
/*==========ЗМІ=========*/
.zmi-posts {
  display: grid;
  gap: 100px;
}
.zmi-posts h3 {
  color: var(--title-color);
  margin-bottom: 1.5rem;
}
.zmi-post {
  display: grid;
  grid-template-columns: repeat(
    2,
    1fr
  ); /* Визначаємо 2 колонки — текст і відео */
  gap: 60px;
}

/* .zmi-post:nth-child(even) {
  grid-template-columns: 1fr 2fr;
  grid-template-rows: 1fr;
} */
.zmi-text {
  padding-top: 40px;
}
.zmi-post:nth-child(even) .zmi-text {
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 2; /* Текст займає другу колонку */
}

.zmi-post:nth-child(even) .zmi-video {
  grid-row-start: 1;
  grid-row-end: 2;
  grid-column-start: 1;
  grid-column-end: 2; /* Відео займає другу колонку */
}

.zmi-video iframe,
.zmi-video video {
  width: 100%;
  max-width: 100%; /* Відео має однаковий розмір */
  height: 400px; /* Висота відео залишається фіксованою */
  z-index: 1;
  position: relative;
  border-radius: 0 60px 60px 0;
}
.zmi-video {
  position: relative;
}
.zmi-video .color-block {
  position: absolute;
  content: '';
  background-color: var(--dark-color);
  top: -20px;
  left: 0;
  width: calc(100% + 20px);
  height: calc(100% + 40px);
  border-radius: 22px 80px 84px 28px;
  z-index: 0;
  box-shadow: 3px 3px 4px 0 rgb(11, 59, 89, 0.3);
}
/* .zmi-post:nth-child(even) .zmi-video .color-block{
  background-color: var(--second-contrast-color);
} */
.gallery-section .foogallery {
  margin-bottom: 2rem;
}
/* .contacts-wrap {
  justify-content: center;
} */
.contacts-wrap h2 {
  color: var(--title-color);
}
.contacts-wrap .contacts-input {
  grid-template-columns: repeat(1, 1fr);
}
.contacts-wrap form {
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 20px;
  width: 600px;
  max-width: 100%;
}
.contacts-left {
  grid-auto-rows: max-content;
  box-shadow: 0 0 4px 1px rgba(0, 0, 0, 0.2);
  padding: 2rem;
  border-radius: 20px;
  height: max-content;
  width: max-content;
  max-width: 100%;
}
.contacts-left > a.find-instructor {
  color: var(--active-link-color2);
  text-decoration: none;
  border-bottom: 1px dotted var(--active-link-color2);
  width: max-content;
}
.contacts-left > a.find-instructor:hover {
  color: var(--title-color);
  border-bottom: 1px dotted var(--title-color);
}
.grid-404 {
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  grid-auto-rows: max-content;
  margin-top: 48px;
}
.text-404 {
  grid-auto-rows: max-content;
  display: grid;
  gap: 20px;
}
.text-404 span,
.text-404 a {
  color: var(--active-link-color2);
  font-weight: 700;
}
.image-404 > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: 400px;
}
.main-study {
  margin-top: 3rem;
}
.main-study h2 {
  font-weight: 500;
  font-size: 1.5rem;
}
.instructors-content ul {
  list-style: disc;
  list-style-position: inside;
  padding-left: 2rem;
}
.instructors-content a {
  border-bottom: 1px dotted #000;
}
.instructors-content .container {
  display: grid;
  gap: 1rem;
}
.instructors-content .container h2,
.instructors-content .container h3,
.instructors-content .container h4 {
  margin-top: 1rem;
}
.stars > svg {
  cursor: pointer;
}
.reviews-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.reviews-grid > .review-item {
  background-color: #f5f5f5;
  display: grid;
  border-radius: 12px;
  box-shadow: none;
  width: 100%;
  grid-auto-rows: max-content;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.3s ease;
}
.reviews-grid > .review-item > .review-content {
  overflow-y: hidden;
  height: 85px;
  max-height: max-content;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  text-overflow: ellipsis;
  transition: all 0.3s ease;
}
.reviews-grid > .review-item:hover {
  transform: translateY(-6px);
}
.reviews-grid > .review-item:hover > .review-content {
  height: max-content;
  display: block;
}
.reviews-grid > .review-item > .review-content p {
  font-size: 14px;
}
.reviews-grid > .review-item h5 {
  font-size: 18px;
}
.reviews-grid > .review-item p.date {
  color: #767676;
  font-size: 13px;
}
.reviews-grid > .review-item a {
  color: var(--tab-text-color);
}
.reviews-grid > .review-item a:hover {
  color: var(--header-text-color);
}
@media (max-width: 1400px) {
  .instructors-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .post-wrap {
    gap: 100px;
  }
}

@media (max-width: 1350px) {
  .first-line {
    gap: 40px;
    grid-template-columns: repeat(3, 1fr);
  }
  .instructors .content-wrap-instr {
    gap: 60px;
  }

  .review-list .splide__arrow--prev {
    left: 0.5rem;
  }
  .review-list .splide__arrow--next {
    right: 0.5rem;
  }
}
@media (max-width: 1316px) {
  .sidebar-slider .item .text {
    padding-bottom: 2rem;
  }
}

@media (max-width: 1299px) {
  .footer-wrap {
    gap: 32px;
  }
  .footer-cities {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-wrap .logo {
    max-width: 20%;
  }
  .zmi-posts {
    gap: 80px;
  }
  .zmi-post {
    gap: 40px;
  }
  .zmi-text {
    padding-top: 0px;
  }
  .zmi-video {
    height: max-content;
  }
  .zmi-video iframe,
  .zmi-video video {
    height: 350px;
  }
}
@media (max-width: 1285px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 1200px) {
  section.breadcrumbs-section {
    padding: 24px 24px 0;
  }
  section.about-us-section {
    padding-top: 1rem;
  }
  section.section-with-padding {
    padding: 24px 24px 40px;
  }
  section.content-section {
    padding-top: 60px;
  }
  section {
    padding: 24px 24px 40px;
  }
  header,
  footer {
    padding: 0 24px;
  }
  .content-wrap {
    gap: 40px;
    margin-top: 60px;
  }
  .section-owner .content-wrap .image-block::before {
    top: -20px;
    width: calc(100% + 20px);
    height: calc(100% + 40px);
  }
  .section-owner .content-wrap > .item:nth-child(2) .image-block::before {
    left: -20px;
  }

  .content-wrap > .item {
    gap: 40px;
  }
  .post-wrap {
    gap: 80px;
  }

  .big {
    font-size: 2rem;
  }
  .sidebar .top-block {
    border-radius: 80px 0px;
  }
  .sidebar-slider .item {
    border-radius: 80px 0px;
  }
  .sidebar-slider .item .text {
    padding-bottom: 1.7rem;
  }
  .posts-list {
    gap: 24px;
  }

  .first-line {
    grid-template-columns: repeat(2, 1fr);
  }
  .instructors .content-wrap-instr {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: max-content;
    gap: 40px;
  }

  /* .splide.recent-posts-list.not-slider.is-initialized:not(.is-active)
    ul.splide__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 24px;
  } */
  /* .sidebar .recent-post-item {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 240px max-content;
  }
  .sidebar .recent-post-item img {
    max-height: 100%;
  } */
  /* .sidebar .recent-post-item:not(:last-child) {
    border-bottom: none;
  } */
  .sidebar.recent-posts {
    margin-top: 0;
  }
  .more-wrap-instr .reviews {
    gap: 40px;
  }

  .gots .content-wrap > .item > .image-block::before {
    top: -20px;
    width: calc(100% + 20px);
    height: calc(100% + 40px);
    left: -20px;
  }
  section.pb {
    margin-top: 24px;
  }
  .zmi-video iframe,
  .zmi-video video {
    height: 300px;
  }
}
@media (max-width: 1176px) {
  .contacts-left {
    width: 600px;
  }
}
@media (max-width: 1100px) {
  .more-wrap-instr .reviews {
    grid-template-columns: max-content 70vw;
  }
}
@media (max-width: 1050px) {
  .header-menu-line {
    display: none;
  }
  .toggler {
    display: grid;
  }
  .content-wrap > .item {
    grid-template-columns: 1.5fr 1fr;
  }
  .section-owner .content-wrap > .item .text-block {
    max-height: 480px;
    overflow-y: hidden;
    position: relative;
  }
  .section-owner .content-wrap > .item .text-block::after {
    content: '';
    width: 100%;
    height: 80px;
    background: linear-gradient(
      to top,
      rgba(228, 250, 255, 1) 0%,
      rgba(228, 250, 255, 0.1) 100%
    );
    left: 0;
    bottom: 0;
    position: absolute;
  }
  .section-owner .content-wrap > .item:first-child .text-block::after {
    background: linear-gradient(
      to top,
      rgba(241, 250, 255, 1) 0%,
      rgba(241, 250, 255, 0.1) 100%
    );
  }
  .section-owner .content-wrap > .item:last-child .text-block::after {
    background: transparent;
  }
  .section-owner .content-wrap > .item .text-block.show {
    max-height: max-content;
    overflow-y: auto;
  }
  .section-owner .content-wrap > .item .text-block.show::after {
    background: transparent;
  }
  .text-block h3 {
    font-size: 24px;
  }

  .post-wrap {
    gap: 60px;
  }
  .content-wrap-about .splide__slide {
    height: 30vh;
    min-height: 400px;
  }

  .gots .content-wrap > .item {
    grid-template-columns: 1fr 1.5fr;
  }
  .gots .content-wrap > .item > .image-block > img {
    height: 400px;
  }
}

@media (max-width: 1023px) {
  .post-wrap {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: max-content;
  }
  .sidebar {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: max-content;
    row-gap: 24px;
    column-gap: 120px;
  }
  .sidebar-slider {
    margin: 0;
  }
  .sidebar .top-block {
    grid-auto-rows: max-content;
    height: max-content;
  }
  .sidebar-slider img {
    max-height: 400px;
    object-fit: cover;
  }
  .recent-posts {
    margin-top: -80px;
  }
  .post-thumbnail {
    width: 96%;
  }

  .first-line {
    gap: 24px;
  }
  .recent-posts {
    grid-column-start: 1;
    grid-column-end: 3;
  }

  .post-wrap .wp-block-group:nth-child(even) {
    margin-right: 120px;
  }
  .post-wrap .wp-block-group:before {
    width: 100px;
  }
  .post-wrap .wp-block-group:nth-child(even):before {
    right: -120px;
    border-radius: 40px 40px 40px 0;
  }
  .post-wrap .wp-block-group:nth-child(odd) {
    margin-left: 120px;
  }
  .post-wrap .wp-block-group:nth-child(odd):before {
    left: -100px;
    border-radius: 40px 40px 0px 40px;
  }

  .text-block-for-who ul {
    gap: 1rem;
  }
  .text-block-for-who ul > li {
    width: 65%;
    margin-left: 0%;
  }
  .text-block-for-who ul > li:nth-child(even) {
    margin-left: 30%;
  }
  .text-block-for-who ul > li:nth-child(odd) {
    margin-left: 0%;
  }
  .zmi-post {
    grid-template-columns: repeat(1, 1fr);
  }
  .zmi-post:nth-child(even) .zmi-text {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 1; /* Текст займає другу колонку */
  }

  .zmi-post:nth-child(even) .zmi-video {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2; /* Відео займає другу колонку */
  }
}
@media (max-width: 960px) {
  .cities {
    width: max-content;
  }
  .footer-wrap .logo {
    max-width: max-content;
  }
  .footer-wrap {
    gap: 24px;
    align-items: flex-start;
  }
  .footer-cities {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
  }
  .content-wrap {
    margin-top: 40px;
  }
  .instructors-page-wrap {
    grid-template-columns: repeat(1, 1fr);
  }
  .cities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .cities-list li {
    padding: 4px 10px;
  }
  .instructor .text {
    padding: 82px 24px 24px 24px;
  }
  .instructor h2 {
    font-size: 20px;
  }

  .sidebar {
    column-gap: 80px;
  }

  .more-wrap-instr .reviews {
    grid-template-columns: max-content 60vw;
  }
}
@media (max-width: 953px) {
  .reviews-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .footer-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 40px;
  }
  .footer-wrap .contacts {
    grid-row-start: 1;
    grid-row-end: 2;
    grid-column-start: 2;
    grid-column-end: 3;
    justify-content: center;
  }
  .footer-wrap .cities {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 2;
    display: flex;
  }
  .footer-cities {
    display: flex;
    flex-wrap: wrap;
  }
  .cities {
    width: 100%;
  }
  .map {
    height: 500px;
  }
  .header-wrap .social-wrap {
    display: none;
  }
  .content-wrap > .item {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
  }
  .content-wrap > .item:nth-child(2) {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
  }
  .content-wrap > .item > .image-block {
    width: 450px;
    max-width: 100%;
  }
  .content-wrap > .item:nth-child(2) > .text-block {
    order: 1;
  }
  .content-wrap > .item:nth-child(2) > .image-block {
    order: 2;
    margin-left: 20px;
  }
  .section-ranne .content-wrap {
    grid-template-columns: repeat(1, 1fr);
  }
  .text-block h3 {
    font-size: 22px;
  }
  .sidebar-slider img {
    max-height: 360px;
  }
  .recent-posts {
    margin-top: -44px;
  }
  .more-wrap-instr .reviews {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: max-content;
  }
  .more-wrap-instr .reviews > div#reviews {
    width: 92vw;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gots .content-wrap > .item {
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
  }
  .gots .content-wrap > .item > .image-block {
    order: 2;
    margin-left: 20px;
  }
  .gots .content-wrap > .item > .text-block {
    order: 1;
  }
  .study-chance-section .text-wrap {
    display: grid;
    grid-auto-rows: max-content;
    grid-template-columns: 1fr;
  }
  .study-chance-section p {
    font-size: 20px;
  }
  .study-chance-section .btn {
    width: 100%;
  }
}
/* Робимо адаптив для мобільних */
@media (max-width: 768px) {
  .table-graduate {
    min-width: 1000px; /* Щоб точно був скрол */
  }
}
@media (max-width: 767px) {
  body {
    font-size: 14px;
  }
  .mobile-menu {
    padding: 16px;
  }
  .container-min .header-menu-wrap {
    display: none;
  }
  .slider-wrap {
    margin: 24px auto;
    padding: 24px;
    border-radius: 40px;
  }
  .slider-wrap h2 {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .slider-button-wrap {
    justify-content: space-between;
    gap: 12px;
  }
  .slider-wrap .btn {
    min-width: calc(50% - 12px);
    min-height: max-content;
    padding: 10px 12px;
    font-size: 14px;
  }
  .slider-wrap p {
    font-size: 16px;
    line-height: 22px;
  }

  section.section-with-padding {
    padding: 32px 20px;
  }
  section {
    padding: 32px 20px;
  }
  header,
  footer {
    padding: 0 20px;
  }
  .section-owner .content-wrap > .item .text-block {
    max-height: 365px;
  }
  .title-wrap {
    gap: 40px;
  }
  .title-wrap h2 {
    font-size: 22px;
  }
  .title-wrap svg {
    height: 15px;
    width: auto;
  }
  .text-block h3 {
    font-size: 20px;
  }
  .content-wrap {
    margin-top: 30px;
  }
  .text-block .btn {
    margin-top: 0;
  }
  .instructor .instructor-content {
    height: 67px;
  }
  .instructor {
    border-radius: 60px 60px 60px 0;
  }
  .instructor .text {
    border-radius: 50px 50px 0 0;
    padding: 82px 16px 16px 16px;
  }

  section.breadcrumbs-section {
    padding: 16px 16px 0;
  }
  .breadcrumbs-section h1 {
    margin-top: 0.5rem;
  }
  .news-excerpt {
    height: 68px;
  }

  .first-line {
    grid-template-columns: 1fr 1.5fr;
    grid-auto-rows: max-content;
  }
  .first-line > div.form {
    grid-column-start: 1;
    grid-column-end: 3;
    max-width: 80vw;
  }
  .post-wrap .wp-block-group:nth-child(odd) {
    margin-left: 0px;
  }
  .post-wrap .wp-block-group:nth-child(odd):before {
    display: none;
  }
  .post-wrap .wp-block-group:nth-child(even) {
    margin-right: 0;
  }
  .post-wrap .wp-block-group:nth-child(even):before {
    display: none;
  }

  .page-template-page-study h2,
  .page-template-page-courses h2 {
    font-size: 1.2rem;
  }

  .study-chance-section p {
    font-size: 18px;
  }

  .courses-section .wp-block-columns > div {
    padding: 1rem;
    border-radius: 1.5rem;
  }

  .page-template-page-study .section-owner .content-wrap > .item .text-block {
    max-height: max-content;
  }
  .main-study {
    margin-top: 2rem;
  }
}

@media (max-width: 720px) {
  .recent-posts {
    margin-top: 0px;
    grid-column-start: 1;
    grid-column-end: 3;
    max-width: 70%;
  }

  .sidebar {
    column-gap: 60px;
  }
  .recent-posts.sidebar {
    max-width: 100%;
  }

  .post-thumbnail::before {
    top: -1rem;
    width: calc(100% + 1rem);
    height: calc(100% + 2rem);
    border-radius: 100px 110px 110px 25px;
  }

  .post-wrap > article {
    gap: 40px;
  }
  .post-wrap {
    gap: 40px;
  }
  .zmi-posts {
    gap: 44px;
  }
  .zmi-post {
    gap: 30px;
  }

  .zmi-video iframe,
  .zmi-video video {
    height: 240px;
    border-radius: 0 24px 24px 0;
  }
  .zmi-video .color-block {
    top: -15px;
    width: calc(100% + 14px);
    height: calc(100% + 24px);
    border-radius: 18px 40px 44px 18px;
  }
}
@media (max-width: 645px) {
  .reviews-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media (max-width: 639px) {
  .title-reviews-school{
    flex-wrap: wrap;
    column-gap: 60px;
    row-gap: 16px;
  }
  section.breadcrumbs-section {
    padding: 10px 16px 0;
  }
  .instructors-list {
    grid-template-columns: repeat(1, 1fr);
  }
  .sidebar {
    column-gap: 20px;
  }
  .first-line {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: max-content;
  }
  .first-line > div.form {
    grid-column-start: 1;
    grid-column-end: 2;
    max-width: 100%;
    width: 100%;
  }
  .instructors .instructor-thumbnail {
    max-height: 60vh;
  }
  .big {
    font-size: 1.5rem;
  }
  .grid-404 {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
    grid-auto-rows: max-content;
    margin-top: 24px;
  }

  .main-study {
    margin-top: 20px;
  }
}


@media (max-width: 500px) {
  .footer-wrap {
    padding: 32px 0;
  }
  .footer-cities {
    row-gap: 10px;
  }
  footer .header-phone {
    font-size: 16px;
  }
  .footer-wrap .title {
    font-size: 16px;
  }
  .map {
    height: 300px;
  }
  .mobile-menu {
    width: 100vw;
  }
  .header-wrap {
    justify-content: flex-start;
    gap: 24px;
  }
  .call-me {
    display: none;
  }
  .container-min .custom-logo-link > img {
    width: 120px;
  }
  .container-min .header-menu-wrap {
    display: grid;
  }
  .content-wrap > .item > .image-block {
    width: 374px;
  }
  .content-wrap .image-block > img {
    max-height: 400px;
  }
  .text-block h3 {
    font-size: 18px;
  }
  section.content-section {
    padding-top: 40px;
  }
  .sidebar {
    grid-template-columns: repeat(1, 1fr);
  }
  .recent-posts {
    grid-column-start: 1;
    grid-column-end: 2;
    max-width: 100%;
  }
  .sidebar .top-block {
    padding: 2rem 1rem;
    padding-left: 1.5rem;
  }
  .posts-list {
    gap: 16px;
  }
  .first-line > div.form {
    max-width: 100%;
  }
  .review-list .splide__arrow--prev {
    left: -0.5rem;
  }
  .review-list .splide__arrow--next {
    right: -0.5rem;
  }
  .video-grid {
    grid-template-columns: repeat(1, 1fr);
    grid-auto-rows: 200px;
  }
  .about-titles h2 {
    font-size: 1rem;
  }
  .about-text h3 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  .page-template-page-study .slider-button-wrap {
    display: grid;
    grid-template-columns: 1fr;
    grid-auto-rows: max-content;
    gap: 1rem;
    width: 100%;
  }
  .page-template-page-study .slider-button-wrap > .btn {
    width: 100%;
    min-width: 100%;
  }

  .courses-section .wp-block-columns .wp-block-group__inner-container {
    grid-template-columns: 1fr;
  }
  .study-button-wrap .btn {
    width: 100%;
  }
  .study-button-wrap {
    margin-top: 0rem;
  }
  .text-block-for-who ul {
    margin-top: 0px;
  }
  .text-block-for-who ul > li {
    width: 100%;
  }
  .text-block-for-who ul > li:nth-child(even) {
    margin-left: 0%;
  }
  .text-block-for-who ul > li {
    padding: 16px 24px;
  }
  .study-chance-section {
    padding-top: 32px;
  }
  .benefits-section .text-block ol {
    margin-top: 0;
  }
  .page-template-page-courses .courses-section {
    padding-top: 0;
  }
}
@media (max-width: 450px) {
  .footer-wrap {
    grid-template-columns: 1fr 1.5fr;
  }
  .footer-wrap .custom-logo-link {
    width: 100%;
  }
  .footer-wrap .custom-logo-link > img {
    width: 100%;
  }
  .slider-wrap {
    width: 100%;
  }
  .content-wrap > .item > .image-block {
    width: 90%;
  }
  .content-wrap .image-block > img {
    max-height: 320px;
  }
  .title-wrap {
    gap: 20px;
  }
  .title-wrap svg {
    height: 10px;
  }
  .title-wrap h2 {
    font-size: 20px;
  }
  .contacts-input {
    grid-template-columns: repeat(1, 1fr);
  }
  .modal-container {
    width: 100%;
  }
}
@media (max-width: 390px) {
  .footer-wrap {
    grid-template-columns: 1fr;
  }
  .footer-wrap .contacts {
    grid-row-start: 2;
    grid-row-end: 3;
    grid-column-start: 1;
    grid-column-end: 2;
    justify-content: center;
  }
  .footer-wrap .cities {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 3;
  }
  .footer-wrap .custom-logo-link > img {
    width: 170px;
  }
  .footer-wrap .logo {
    display: grid;
    justify-content: center;
    max-width: 100%;
  }
  .slider-button-wrap {
    flex-wrap: wrap;
    gap: 16px;
  }
  .slider-wrap .btn {
    width: 100%;
  }
  .slider-wrap {
    margin: 16px auto 24px;
    padding: 16px;
    border-radius: 24px;
    width: 100%;
  }
}
@media (max-width: 380px) {
  .container-min .header-menu-wrap {
    display: none;
  }
  section.section-with-padding {
    padding: 24px 16px;
  }
  section {
    padding: 24px 16px;
  }
  header,
  footer {
    padding: 0 16px;
  }

  .section-ranne .content-wrap .image-block > .color-block {
    width: calc(100% + 16px);
    height: calc(100% + 32px);
    border-radius: 22px 70px 60px 19px;
  }
}
@media (max-width: 340px) {
  .content-wrap > .item > .image-block {
    max-width: 80vw;
  }
}
