/*
Theme Name: G-ravitacia
Theme URI: 
Author: G-ravitacia
Author URI: 
Description: 

Version: 1.7
License: GNU General Public License
License URI: license.txt
Text Domain: g-ravitacia

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

body {
  position: relative;
  background: #fff;
  color: #212529;
  font-family: 'Segoe UI', sans-serif;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit
}

ul {
  list-style: none;
}

ol {
  padding-left: 40px;
}

h1 {
  font-size: 42px;
  line-height: 1.3;
  margin: 0 0 50px;
}

h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 60px 0 40px;
}

h3 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 20px;
}

h4 {
  font-size: 20px;
  line-height: 1.3;
  margin-bottom: 15px;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

input::-moz-focus-inner {
  border: 0px !important;
}

input:hover,
input:active,
input:focus {
  outline: none !important;
}

input[type="file"],
input[type="radio"],
input[type="checkbox"] {
  display: none;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

input[type="number"]:hover,
input[type="number"]:focus {
  -moz-appearance: number-input;
}

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

label {
  cursor: pointer;
}

.wp-block-image,
.wp-block-columns {
  margin-bottom: 0;
}

.container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
}

.main {
  padding-top: 82px;
  min-height: calc(100vh - 284px);
}

.btn {
  background: #932867;
  color: #fff;
  outline: 0;
  border: 0;
  padding: 16px 30px;
  display: block;
  text-align: center;
  border-radius: 5px;
  transition: .3s;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.btn:hover {
  opacity: .7;
}

.center {
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}

.grecaptcha-badge {
  right: -300px !important;
}

/* Шапка
--------------------*/
.header {
  position: fixed;
  width: 100%;
  background-image: linear-gradient(35deg, #932867 -24.53%, #2b67a3 122.56%);
  background-size: 50% 100%;
  background-position: right;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  z-index: 200;
  box-shadow: 0 0 65px 0 rgba(0, 0, 0, 0.2);
}

.header:before {
  content: '';
  position: absolute;
  background: #fff;
  width: 72%;
  height: 100%;
  top: 0;
  left: -10%;
  transform: skewX(50deg);
  z-index: -1;
  box-shadow: 15px 0 1px 0 rgba(255, 255, 255, 0.3);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.head-logo {
  display: flex;
  align-items: center;
  gap: 50px;
}

.head-logo .logo {
  width: 280px;
}

.head-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.head-nav h4 {
  display: flex;
  align-items: center;
  font-size: 18px;
  margin: 0;
  cursor: pointer;
}

.head-nav h4:after {
  content: '';
  display: block;
  background: url(images/down-black.svg) no-repeat center;
  background-size: cover;
  width: 14px;
  height: 14px;
  margin-left: 6px;
}

.head-nav .sitemap {
  position: relative;
}

.head-nav .hiden-menu {
  position: absolute;
  display: none;
  width: max-content;
  top: 53px;
  left: 0;
  background: #fff;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
}

.head-nav .hiden-menu.mega {
  width: 840px;
  left: -15px;
  padding: 0;
}

.head-nav #menu-kursy .menu-item-has-children>a {
  display: block;
  width: 240px;
  padding: 20px;
  border-bottom: 1px solid #f4f4f4;
  text-transform: uppercase;
  font-weight: 900;
  cursor: pointer;
}

.head-nav #menu-kursy .menu-item-has-children.active>a {
  background: #f4f4f4;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu {
  position: absolute;
  visibility: hidden;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 5px 20px;
  width: 600px;
  height: 100%;
  overflow-y: auto;
  background: #f4f4f4;
  top: 0;
  left: 240px;
  padding: 20px 40px;
}

.head-nav #menu-kursy .menu-item-has-children.active .sub-menu {
  visibility: visible;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu li {
  width: calc((100% - 20px) / 2);
  flex-grow: 1;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu li a {
  font-weight: 600;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu li a:hover {
  color: #D60B1C;
  border-bottom: 1px solid;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu::-webkit-scrollbar {
  width: 5px;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu::-webkit-scrollbar-track {
  background: #f4f4f4;
  width: 5px;
}

.head-nav #menu-kursy .menu-item-has-children .sub-menu::-webkit-scrollbar-thumb {
  background-color: #212529;
  border-radius: 3px;
  width: 5px;
}

.head-nav .hiden-menu.simple a {
  font-weight: 600;
  margin-bottom: 5px;
  transition: .3s;
}

.head-nav .hiden-menu.simple a:hover {
  color: #D60B1C;
  border-bottom: 1px solid;
}

.head-search {
  width: 25%;
}

.head-mobile {
  display: none;
}

.head-nav {
  position: relative;
}

.toggle-search {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 3px solid #932867;
  border-radius: 5px;
}

.toggle-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(35deg, #932867 -24.53%, #2b67a3 122.56%);
  border-radius: 5px;
  margin-left: 15px;
}

/* Хлебные крошки
--------------------*/
.breadcrumbs {
  position: relative;
  font-size: 13px;
  color: #747373;
  margin: 20px 0;
}

.breadcrumbs a {
  text-decoration: underline;
}

/* Категории
--------------------*/
.title-banner {
  background: url(/wp-content/uploads/title-banner.jpg) no-repeat bottom right;
  background-size: cover;
  border-radius: 10px;
  text-align: center;
  padding: 110px 130px;
}

.home .title-banner {
  background: url(/wp-content/uploads/title-banner-3.jpg) no-repeat top left;
  background-size: cover;
}

.title-banner p {
  font-size: 20px;
  font-weight: 600;
}

.content-row {
  display: flex;
  gap: 30px;
  margin-top: 60px;
}

.content-sidebar {
  position: relative;
  width: 250px;
  flex-shrink: 0;
}

.content-sidebar .menu-kursy-container {
  position: sticky;
  top: 90px;
}

.content-sidebar .menu>li {
  border-top: 1px solid #E3E3E3;
  padding: 10px;
}

.content-sidebar .menu>li:last-child {
  border-bottom: 1px solid #E3E3E3;
}

.content-sidebar .menu>li>a {
  position: relative;
  display: block;
  font-weight: 700;
  cursor: pointer;
}

.content-sidebar .menu>li>a:before {
  content: '';
  position: absolute;
  background: url(images/down-black.svg) no-repeat center;
  background-size: cover;
  width: 12px;
  height: 12px;
  top: 7px;
  right: 10px;
  transition: .2s;
}

.content-sidebar .menu>li>a.active:before {
  transform: rotate(180deg);
}

.content-sidebar .menu>li .sub-menu {
  display: none;
  padding-left: 10px;
  font-size: 14px;
}

.content-sidebar .menu>li:first-child .sub-menu {
  display: block;
}

.content-sidebar .menu>li .sub-menu li {
  font-size: 14px;
  margin-top: 5px;
}

.content-sidebar .menu>li .sub-menu li a:hover {
  color: #2b67a3;
}

h2.no-margin {
  margin-top: 0;
}

.cat-tabs,
.home-cat-tabs ul {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.cat-tabs .cat-tab,
.home-cat-tabs ul li a {
  display: block;
  background: #f1d9e7;
  text-align: center;
  font-weight: 600;
  color: #932867;
  border-radius: 5px;
  flex-grow: 1;
  padding: 10px 20px;
  transition: .3s;
}

.post-ul-container .cat-tabs .cat-tab {
  flex-grow: 0;
}

.cat-tabs .cat-tab:hover,
.home-cat-tabs ul li a:hover {
  background: #932867;
  color: #fff;
}

.home-cat-tabs h3 {
  margin: 30px 0 10px;
}

.school-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
  margin-top: 40px;
}

.school-grid .school-item {
  position: relative;
  width: calc((100% - 10px) / 3);
  background: #fff;
  border: 2px solid #932867;
  border-radius: 5px;
  padding: 20px 20px 120px;
}

.school-grid .school-logo {
  width: 200px;
  height: 150px;
  margin: auto;
}

.school-grid .school-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.school-grid h4 {
  text-align: center;
  font-size: 28px;
  margin: 5px 0 10px;
  transition: .3s;
}

.school-grid .school-anchor:hover h4 {
  color: #932867;
}

.stars-box {
  position: relative;
  width: 100px;
  text-align: center;
  margin: auto;
}

.stars-blue {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
}

.stars-box img {
  width: 100px;
  max-width: none;
}

.stars-box .rating {
  font-weight: 700;
}

.school-advantages {
  border-top: 1px solid #E3E3E3;
  margin: 15px 0 30px;
  padding-top: 15px;
}

.school-advantages li {
  position: relative;
  font-size: 14px;
  padding-left: 20px;
  margin-bottom: 5px;
}

.school-advantages li:before {
  content: '';
  position: absolute;
  background: url(images/checked.svg) no-repeat center;
  background-size: cover;
  width: 14px;
  height: 14px;
  top: 4px;
  left: 0;
}

.school-price {
  position: absolute;
  width: calc(100% - 40px);
  left: 20px;
  bottom: 30px;
}

.school-price .price {
  text-align: center;
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 20px;
}

.school-price .btn {
  width: 250px;
  margin: auto;
}

.school-list {
  margin-top: 60px;
}

.list-item {
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, .25);
  margin-bottom: 30px;
}

.list-title {
  display: flex;
  margin-bottom: 40px;
}

.list-logo-col {
  width: 25%;
  flex-shrink: 0;
  border-right: 2px solid #E3E3E3;
  padding-right: 30px;
}

.school-page .list-logo-col {
  width: 300px;
}

.list-logo {
  height: 130px;
  margin: 0 0 10px;
}

.school-page .list-logo {
  height: 160px;
  margin: 0 0 10px;
}

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

.content-col .list-logo img {
  object-fit: contain;
}

.list-title-col {
  flex-grow: 1;
  padding: 0 30px;
}

.list-title-col h2 {
  text-align: center;
  margin: 0 0 20px;
}

.list-title-col .desc {
  text-align: center;
  font-size: 14px;
}

.school-page .list-title-col .desc {
  text-align: left;
  font-size: 16px;
  margin-bottom: 15px;
}

.school-page .list-title-col .big {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
}

.school-page .list-title-col .big span {
  font-weight: bold;
}

.school-page .list-title-col .btn {
  width: 300px;
  margin-top: 30px;
}

.list-link-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  width: 25%;
  flex-shrink: 0;
  border-left: 2px solid #E3E3E3;
  padding-left: 30px;
}

.list-link-col .link {
  border: 2px solid #932867;
  color: #932867;
  padding: 16px 30px;
  display: block;
  text-align: center;
  border-radius: 5px;
}

.list-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}

.list-options p {
  width: calc((100% - 50px) / 6);
  border: 2px solid #2b67a3;
  padding: 16px;
  display: block;
  text-align: center;
  border-radius: 5px;
}

.list-options p:not(.big) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.list-options .big {
  width: calc((100% - 10px) / 2);
}

.list-options .big span {
  font-weight: bold;
}

.list-price-table table {
  width: 100%;
  margin-bottom: 40px;
}

.list-price-table table th,
.list-price-table table td {
  background: #f1d9e7;
  border-radius: 5px;
  padding: 10px 20px;
}

.list-price-table table tr td:not(:first-child) {
  text-align: center;
}

.list-price-table table tr td:last-child {
  background: #932867;
  color: #fff;
  transition: .3s;
}

.list-price-table table tr td:last-child:hover {
  opacity: .7;
}

.adv-group {
  display: flex;
}

.school-page .adv-group {
  margin-top: 50px;
}

.adv-col {
  width: 50%;
}

.adv-col.first {
  border-right: 2px solid #E3E3E3;
  padding-right: 20px;
  margin-right: 20px;
}

.adv-col h4 {
  text-align: center;
}

.adv-col li {
  position: relative;
  padding-left: 25px;
  margin-top: 5px;
}

.adv-col li:before {
  content: '';
  position: absolute;
  background: url(images/cross.svg) no-repeat center;
  background-size: cover;
  width: 15px;
  height: 15px;
  top: 6px;
  left: 0;
}

.adv-col.first li:before {
  background: url(images/check.svg) no-repeat center;
  background-size: cover;
}

.accordion {
  margin: 60px 0;
}

.accordion .accordion_item {
  margin-bottom: 5px;
  position: relative
}

.accordion .title_block {
  font-size: 18px;
  cursor: pointer;
  background: #fff;
  border: 2px solid #932867;
  border-radius: 5px;
  padding: 10px 65px 10px 25px;
  transition: .3s;
}

.accordion .title_block:before {
  content: '';
  height: 8px;
  width: 8px;
  display: block;
  border: 2px solid #212121;
  border-left-width: 0;
  border-top-width: 0;
  transform: rotate(45deg);
  position: absolute;
  right: 25px;
  top: 17px;
  transition: .3s;
}

.accordion .active_block .title_block:before {
  border: 2px solid #fff;
  border-left-width: 0;
  border-top-width: 0;
  transform: rotate(-135deg);
  top: 21px;
}

.accordion .title_block:hover {
  color: #932867;
}

.accordion .active_block .title_block {
  background: #932867;
  color: #fff;
}

.accordion .info {
  display: none;
  padding: 25px;
  background: #f4f4f4;
}

/* Школа
--------------------*/
.single-content p,
.single-content li {
  margin-bottom: 15px;
}

.single-content ul {
  padding-left: 15px;
}

.single-content ul li {
  position: relative;
  padding-left: 15px;
}

.single-content ul li:before {
  content: '';
  position: absolute;
  background: #932867;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  top: 8px;
  left: 0;
}

.single-content h2 {
  margin-top: 40px;
}

.single-content h3 {
  margin-top: 30px;
}

.single-content h4 {
  margin-top: 20px;
}

.single-content a {
  color: #932867;
}

.single-content table {
  width: 1000px;
  margin-bottom: 20px;
}

.single-content table td {
  background: #f1d9e7;
  border: 1px solid #747373;
  border-radius: 5px;
  padding: 10px 20px;
}

.single-content table th {
  background: #932867;
  border: 1px solid #932867;
  color: #fff;
  border-radius: 5px;
  padding: 10px 20px;
}

/* Рубрики
--------------------*/
.post-ul-container h3 {
  margin: 30px 0 15px;
}

.post-grid-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.post-box {
  position: relative;
  width: calc((100% - 60px) / 3);
  padding: 30px 30px 74px;
  background: #fff;
  border: 2px solid #932867;
  border-radius: 10px;
  box-shadow: 0 5px 10px rgba(0, 0, 0, .1);
}

.post-box .btn {
  position: absolute;
  bottom: 30px;
  left: 30px;
  padding: 10px 50px;
}

/* footer
--------------------*/
.footer {
  position: relative;
  width: 100%;
  background: linear-gradient(35deg, #932867 -24.53%, #2b67a3 122.56%);
  color: #fff;
  z-index: 1;
  margin-top: 60px;
}

.footer-top {
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 60px 0 40px;
}

.footer-top .footer-col {
  width: 300px;
  flex-shrink: 0;
}

.footer-top #menu-footer-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 30px;
}

.footer-top #menu-footer-menu li {
  width: calc((100% - 60px) / 3);
}

.footer-top #menu-footer-menu li a {
  font-size: 18px;
  font-weight: 600;
  transition: .3s;
}

.footer-top #menu-footer-menu li a:hover {
  opacity: .5;
}

.footer-bottom {
  border-top: 1px solid #969696;
  padding: 20px 0;
}

.to-top {
  display: none;
  position: fixed;
  background: #D60B1C;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  right: 50px;
  bottom: 35px;
  cursor: pointer;
  z-index: 10;
}

.to-top:before {
  content: '';
  position: absolute;
  background: url(images/to-top.svg) no-repeat center;
  width: 30px;
  height: 30px;
  border: 2px solid #fff;
  border-radius: 50%;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: .3s;
}

.to-top:hover:before {
  transform: translate(-50%, -50%) scale(1.1);
}

/* 404
--------------------*/
.page-not-found {
  text-align: center;
}

.page-not-found p {
  margin-bottom: 40px;
}