:root {
    --color-primary: #5A3677;
    --color-bg-dark: #4F3B78;
    --text-white: #ffffff;
}

.header__nav ul > li.current-menu-item a {
    /*color: #fff!important;*/
}
.header__nav ul li a {
    position: relative;
    color: #ffffff !important;
    text-decoration: none;
    cursor: pointer;
}

.header__nav ul {
    margin-bottom: 0!important;
    padding-bottom: 0!important;
}
.header__nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px; /* отступ от текста */
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}
.crabit-mobile-menu__list {
    display: block;
}

.header__nav ul li a:hover::after {
    transform: scaleX(1);
}
.hero.hero-gradient > div {
    position: relative;
    z-index: 2;
}
.hero.hero-gradient:before {
    content: "";
    position: absolute;
    z-index: 0;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(to left, rgba(43, 42, 55, 0) 0%, rgba(43, 42, 55, 0.47) 51%, rgba(43, 42, 55, 0.53) 100%);
}
.header__icon-btn img {
    max-width: 50%;
}



.header__nav ul li ul {
    padding: 0!important;
    border-radius: 25px;
    overflow: hidden;
}
.header__nav ul li ul li:hover {
    background-color: #eee;
}
.header__nav ul li ul li a {
    color: #000!important;
    text-decoration: none;
    padding: 13px 30px;
}


.crabit-header-nav .menu-item-has-children:after {
    filter: brightness(0) invert(0.8);
}

/* Header Styles */
.header {
    padding: 20px 0;
    transition: all 0.4s ease;
    background: transparent;
    z-index: 1000;
}

.header--scrolled {
    padding: 10px 0;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.header__logo {
    height: 60px;
    width: auto;
    transition: all 0.4s ease;
}

.header--scrolled .header__logo {
    height: 45px;
}

.navbar-nav .nav-link {
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    margin: 0 10px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.show {
    color: #ffffff;
    opacity: 1;
}

.dropdown-menu {
    background-color: #4F3B78;
    border: 1px solid rgba(255,255,255,0.1);
}

.dropdown-item {
    color: #ffffff;
    font-size: 14px;
}

.dropdown-item:hover {
    background-color: rgba(255,255,255,0.1);
    color: #ffffff;
}

.header__actions {
    gap: 12px;
}
.hero__content {
    padding-top: 50px;
    padding-bottom: 120px;
}
.header__icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #fff;
    border-radius: 50%;
    color: #4F3B78;
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.header__icon-btn:hover {
    transform: scale(1.1);
}

.header__phone-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.header__phone-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Burger Menu */
.burger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1100;
    position: relative;
}

.burger-btn__line {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.burger-btn.is-active .burger-btn__line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-btn.is-active .burger-btn__line:nth-child(2) {
    opacity: 0;
}

.burger-btn.is-active .burger-btn__line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu Overlay */
.crabit-mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #4F3B78;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.crabit-mobile-menu.is-active {
    opacity: 1;
    visibility: visible;
}

.crabit-mobile-menu__list {
    list-style: none;
    padding: 0;
    text-align: center;
}

.crabit-mobile-menu__list li {
    margin: 20px 0;
}

.crabit-mobile-menu__list a {
    color: #fff;
    font-size: 20px;
    text-decoration: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 700px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Rounded corners as per design (bottom) */
    border-bottom-left-radius: 55px;
    border-bottom-right-radius: 55px;
    overflow: hidden;
    padding-top: 100px; /* Space for fixed header */
    display: flex;
    align-items: center;
}

.hero__title {
    font-weight: 600;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 1.1;
    color: #ffffff;
    margin-bottom: 24px;
}

.hero__desc {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 550px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.home__btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    border-radius: 25px;
    height: 60px;
    padding: 13px 18px 13px 40px;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1px solid #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.home__btn-2:hover,
.home__btn-2 {
    border: 1px solid rgba(255 255 255 / .7);
    background-color: rgba(255 255 255 / .1);
    color: #fff!important;
    margin-left: 10px;
    background-image: url(/wp-content/themes/discovery-school-theme/crabit/blocks/home/images/icon-doc.svg);
    background-position: left 15px center;
    background-repeat: no-repeat;
    padding-left: 50px;
    padding-right: 30px;
}

.home__btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
    color: #000;
}

.home__btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 20px;
    color: #fff;
    text-decoration: none;
}

.hero__img-wrapper {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: flex-end;
    /* Scale slightly to allow parallax movement without clipping */
    transform: scale(1.05);
    transform-origin: center bottom;
}

.hero__img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    position: relative;
    top: 60px;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .header__phone-btn {
        text-align: center;
    }
    .hero {
        text-align: center;
        height: auto;
        padding-bottom: 50px;
    }
    
    .hero__desc {
        margin: 0 auto 40px auto;
    }

    .hero__img-wrapper {
        justify-content: center;
        margin-top: 40px;
    }
    
    .header__logo {
        height: 45px;
    }

    .hero__title {
        font-size: 50px;
        padding: 0 20px;
    }
    .hero__content {
        padding-bottom: 20px;
    }

}


@media(max-width: 700px) {
    .header__nav ul li ul {
        display: none;
    }
}

.header__nav li.menu-item-has-children > a {
  position: relative;
  padding-right: 16px;
  display: inline-flex;
  align-items: center;
}

.header__nav li.menu-item-has-children > a::after {
  content: '';
  position: absolute;
  left: auto;
  right: 0;
  top: 50%;
  width: 10px;  /* Ширина иконки */
  height: 6px;  /* Высота иконки */
  
  /* Используем SVG в качестве фона */
  background-color: currentColor; /* Цвет стрелки будет как у текста */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;

  transform: translateY(-50%);
  transition: transform 0.2s ease;
}



.header__nav ul li ul {
    display: none;
    overflow: hidden;
    position: absolute;
}

.header__nav ul li:hover ul {
    display: block;
    padding: 0 !important;
    border-radius: 25px;
    background: #fff;
}