/* Основные стили для блока */
.hero-block {
    position: relative;
    color: var(--card);
    height: 100%;
}

.hero-block .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
}

.hero-block .image-mob {
    display: none;
}

.hero-block .image-mob img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 768px) {
    .hero-block .image-mob {
        display: block;
        height: 100%;
    }
    .hero-block .bg-video:first-child {
        display: none !important;
    }
}

.hero-block .bg:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-block .bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-block .container {
    position: relative;
    z-index: 2;
}

.hero-block .main-wrapper {
    padding: 50px 0;
    display: flex;
    gap: 50px;
    flex-direction: column;
    align-items: center;
}

.hero-block .first-block {
    position: relative;
    padding: 30px;
    border-radius: 10px;
    background: var(--primary);
}

.hero-block .main-info {
    display: grid
;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--head);
    border-radius: 20px;
    background: var(--background);
    max-width: 1140px;
}

.hero-block .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-block h1 {
    margin-bottom: 10px;
}

.hero-block .h6 span {
    color: var(--accent-5);
}

.hero-block .subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-block .stats {
    display: flex;
    gap: 40px;
    margin-bottom: 60px;
}

.hero-block .stat-item {
    font-size: 18px;
}

.hero-block .rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
}

.hero-block .star {
    color: #FFD700;
}

.hero-block .stat-label {
    opacity: 0.8;
    font-size: 16px;
}

.hero-block .students {
    display: flex;
    align-items: center;
    gap: 15px;
}

.hero-block .avatars {
    display: flex;
}

.hero-block .avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #fff;
    margin-left: -10px;
}

.hero-block .avatar:first-child {
    margin-left: 0;
}

.hero-block .cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.hero-block .card {
}

.hero-block .card:hover {
}

.hero-block .trial-lesson h3 {
    font-size: 24px;
    margin-bottom: 30px;
}

.hero-block .trial-lesson input {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-bottom: 15px;
}

.hero-block .trial-lesson input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.hero-block .trial-lesson button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 10px;
    background: #FF6B6B;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.hero-block .trial-lesson button:hover {
    background: #FF5252;
}

.hero-block .disclaimer {
    font-size: 12px;
    opacity: 0.7;
    margin-top: 15px;
    text-align: center;
}

.hero-block .teachers,
.hero-block .reviews {
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-block .teachers img,
.hero-block .reviews img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-block .link-arrow {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hero-block .link-arrow::after {
    content: '→';
    transition: transform 0.3s ease;
}

.hero-block .link-arrow:hover::after {
    transform: translateX(5px);
}

@media (max-width: 1200px) {
    .hero-block .cards-container {
        grid-template-columns: 1fr;
    }

    .hero-block .stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-block h1 {
        font-size: 36px;
    }

    .hero-block .subtitle {
        font-size: 20px;
    }
}

/* Стили для кнопки, которая будет переключать изображение на видео */
#teacherVideo {
    display: none; /* Видео скрыто по умолчанию */
    width: 100%;
    border-radius: 10px;
}

/* Для адаптивности и других улучшений */
@media (max-width: 768px) {
    .hero-block .stats {
        flex-direction: column;
        gap: 20px;
    }

    .hero-block .cards-container {
        grid-template-columns: 1fr;
    }
}


#hero-block .top {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

#hero-block .rating-def {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    height: 55px;
}

#hero-block > div.container > div > div:nth-child(1) {
    gap: 0px !important;
}

#hero-block {
    margin-top: 0 !important;
    max-height: 600px;
    margin-bottom: 320px;
    border-radius: 20px;
}

#hero-block .left-side {
    display: flex;
}

#hero-block .rating-def {
    padding: 16px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

#hero-block .holder-dot {
    position: relative !important;
    top: unset !important;
    right: unset !important;
}

#hero-block .form__holder {
    align-items: center;
}

#hero-block input,
#hero-block .h4{
    text-align: center;
}

#hero-block .policy {
    text-align: center;
}


#hero-block .h4 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#hero-block .form__floating {
    gap: 10px !important;
}

#hero-block .second-block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
    border: 1px solid var(--head);
    background: var(--card);
}


#hero-block .second-block .h5 {
    padding: 30px;
}

#hero-block .thrid-block .h5 {
    padding: 30px;
}

#hero-block .image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-height: 235px;
}

#hero-block > div.container > div > div:nth-child(1) > h1 {
    max-width: 1100px;
}

#hero-block .image-holder {
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#hero-block .type-1 .image-holder {
    height: 100%;
}

#hero-block .image-holder svg {
    position: absolute;
    top: 20px;
    left: 20px;
}

.type-1 .h6 {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    transition: all .3s ease-in;
    justify-content: center;
}
#hero-block .type-1 .image-holder img {
    max-height: 100%;
}


.type-1 .h6:hover {
    padding: 15px;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


#hero-block .thrid-block {
    display: flex;
    background: var(--card);
    flex-direction: column;
    justify-content: space-between;
    border-radius: 10px;
}

@media (max-width: 970px) {
    .hero-block .first-block,
    #hero-block .second-block .h5,
    #hero-block .thrid-block .h5 {
        padding: 10px;
    }
    .hero-block .main-info {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        width: 100%;
    }
    #hero-block {
        max-height: unset;
        margin-bottom: unset;
    }
}

@media (max-width: 600px) {
    .hero-block .main-info {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    #hero-block .rating-def {
        flex-direction: column;
        height: 100%;
    }
}