.moto__top {
    position: relative;
    height: auto;
}

.moto__top img {
    width: 100%;
    height: auto;
    position: relative;
    z-index: 0;
}

.moto__top .container {
    margin: 0 auto;
    z-index: 1;
    height: 100%;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.moto__top-banner-info {
    position: relative;
    color: white;
    text-align: left;
    z-index: 2;
    pointer-events: auto;
}

.moto__top-banner-info .button {
    display: inline-block;
    width: auto;
    margin-top: 20px;
    padding: 10px 45px;
    border-radius: initial;
}

.moto__top-banner-info h1 {
	font-size: 44px;
    color: #000;
    font-weight: bold;
}

.moto__top-banner-info .moto__subtitle,
.moto__advantages-title,
.moto__scheme-title,
.moto__education-title,
.moto__offer-title,
.moto__instructors-title,
.moto__questions-title {
    font-size: 30px;
    color: #000;
    font-weight: bold;
}

.moto__top-banner-info .moto__subtitle {
	font-weight: normal;
}

.moto__park-title {
    font-size: 24px;
    color: #000;
    font-weight: bold;
}

.moto__advantages {
    padding: 150px 0 150px;
    background-color: #ceebff;
    transform: skewY(-5deg);
    margin: -87px 0 0;
}

.moto__park {
    padding: 150px 0 100px;
    background-color: #ceebff;
    transform: skewY(-5deg);
    margin: -87px 0 0;
}

.moto__instructors {
    padding: 50px 0 0;
}

.moto__advantages .container,
.moto__park .container {
    transform: skewY(5deg);
}

.wrapper .moto__advantages-item img {
    width: 50px;
    height: 50px;
    max-width: 50px;
    margin: 0 0 0 15px !important;
}

.moto__advantages-value {
    color: #00a0e3;
    font-size: 50px;
    font-weight: bold;
}

.moto__advantages-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 40px 0 60px;
}

.moto__advantages-item {
    flex: 0 0 calc((100% - 30px) / 4);
}

/*.moto_advantages-left,
.moto_advantages-right {
    text-transform: uppercase;
    font-weight: 500;
}

.moto_advantages-right {
    text-align: right;
    margin-top: 30px;
}*/

.moto_advantages-bottom {
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

.moto_advantages-left,
.moto_advantages-right {
    position: relative;
    overflow: hidden;
    width: 100%;
    text-transform: uppercase;
    font-weight: 500;
    font-size: 14px;
    color: #000;
}


.moto_advantages-left {
    width: 90%;
    margin-right: 10%;
    float: left;
}


.moto_advantages-right {
    width: 90%;
    margin-left: 10%;
    margin-top: 30px;
    float: right;
    text-align: right;
}

.moto-advantages-left-container,
.moto-advantages-right-container {
    white-space: nowrap;
    display: inline-block;
}

.moto-advantages-left-container {
    animation: scrollLeft 40s linear infinite;
}

.moto-advantages-right-container {
    animation: scrollRight 40s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@media (max-width: 1200px) {
    .moto_advantages-left {
        width: 92%;
        margin-right: 8%;
    }
    .moto_advantages-right {
        width: 92%;
        margin-left: 8%;
    }
}

@media (max-width: 768px) {
    .moto_advantages-left {
        width: 95%;
        margin-right: 5%;
    }
    .moto_advantages-right {
        width: 95%;
        margin-left: 5%;
    }
}

@media (max-width: 480px) {
    .moto_advantages-left {
        width: 97%;
        margin-right: 3%;
        font-size: 12px;
    }
    .moto_advantages-right {
        width: 97%;
        margin-left: 3%;
        margin-top: 20px;
        font-size: 12px;
    }
    
    .moto-advantages-left-container {
        animation: scrollLeft 30s linear infinite;
    }
    .moto-advantages-right-container {
        animation: scrollRight 30s linear infinite;
    }
}

.moto__advantages-value {
    display: flex;
    align-items: center;
}

.moto__price {
    padding-top: 60px;
}

.violet {
    background: #ced9ff !important;
}

.cost__grid .item .image {
    background-color: initial !important;
}

.cost__grid .item {
    transform: skewY(-5deg);
    border-radius: initial !important;
}

.cost__grid .item .reverse {
    transform: skewY(5deg);
    padding-bottom: 40px;
}

.section.moto_text {
    margin-top: 120px;
}

.moto__scheme {
    padding: 150px 0 100px;
    background-color: #ebf8f7;
    transform: skewY(-5deg);
}

.moto__scheme .container {
    transform: skewY(5deg);
}

.wrapper .content .scheme-img img {
    width: 60px;
    margin-bottom: 0;
}

.wrapper .content .scheme-img {
    position: relative;
    margin-bottom: 30px;
}

.wrapper .content .scheme-img:before {
    content: '';
    position: absolute;
    display: block;
    height: 15px;
    width: 50%;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: url('/local/templates/motoshkola/img/arrow-right.svg') no-repeat;
}

.wrapper .content .moto__scheme-item:last-child .scheme-img:before {
    display: none;
}

.moto__scheme-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 70px 20px;
    margin-top: 80px;
}

.moto__scheme-item {
    flex: 1 1 calc(33.333% - 20px);
    box-sizing: border-box;
}

.moto__education {
    padding: 25px 0 50px;
}

.moto__education-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.moto__education-item {
    display: flex;
    gap: 25px;
    padding: 25px;
}

.moto__education-number {
    font-size: 180px;
    font-weight: 700;
    color: #00a0e3;
    opacity: .19;
    min-width: 50px;
    line-height: 1;
}

.moto__education-desc {
    display: flex;
    flex-direction: column; 
    flex: 1;
}

.moto__education-desc img {
    width: 100%;
    max-width: 150px !important;
    height: auto;
    margin-bottom: 15px;
}

.moto__education-inner-title {
    font-size: 17px;
    font-weight: 600;
}

.moto__education-text {
    color: #555;
    line-height: 1.5;
}

.section.moto__offer {
    margin-top: 0;
}

.moto__offer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 40px 20px;
}

.moto__offer-inner {
    width: 60%;
    padding: 20px 70px;
    box-sizing: border-box;
    transform: skewX(10deg);
}

.moto__offer-inner:nth-child(1) {
    margin-left: auto;
    margin-right: 0;
    background-color: #ebf8f7;
}

.moto__offer-inner:nth-child(2) {
    margin-left: auto;
    margin-right: auto;
    background-color: #e0f6ff;
}

.moto__offer-inner:nth-child(3) {
    margin-left: 0;
    margin-right: auto;
    background-color: #ced9ff;
}

.moto__offer-inner-title {
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    margin-left: 10px;
    transform: skewX(-10deg);
}

.moto__offer-desc {
    transform: skewX(-10deg);
}

.content ul.moto__park-ul {
    margin-left: initial;
}

.content ul.moto__park-ul li {
    margin-bottom: initial;
    padding-left: initial;
}

.content ul.moto__park-ul > li:before {
    display: none;
}

.content ul.moto__park-ul img {
    width: 24px;
}

.moto__park .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px 70px;
}

.moto__park .motorcycles-img {
    max-width: 400px;
    width: 100%;
}

.moto__instructors-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.moto__park-title {
    margin-bottom: 40px;
}

.spoiler {
    margin-bottom: 20px;
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.spoiler-content.active {
    max-height: 3000px;
    transition: max-height 0.5s ease;
}

.spoiler-toggle {
    display: inline-block;
    margin-top: 8px;
    cursor: pointer;
    color: var(--accent);
    user-select: none;
}

.spoiler-toggle:hover {
    text-decoration: underline;
}

.moto__questions {
    padding-top: 50px;
    padding-bottom: 50px;
}

.moto__instructors-title,
.moto__questions-title {
    margin-bottom: 50px;
}

.footer {
    position: relative;
    z-index: 1;
}

.moto__record {
    padding: 100px 0 0;
    background-color: #ced9ff;
    transform: skewY(-5deg);
    position: relative;
}

.moto__record .container {
    transform: skewY(5deg);
    margin-bottom: -32px;
    position: relative;
}

.moto__record::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background-color: #ced9ff;
    transform: skewY(5deg);
    transform-origin: top left;
}

.wrapper .content .discount-banner .img {
    max-width: 423px;
    margin-bottom: 0;
    width: 100%;
}

.wrapper .content .discount-banner .img img {
    margin-bottom: initial;
}

.moto__record .discount-banner {
    background-color: initial;
    box-shadow: initial;
    padding: initial;
    border-radius: initial;
}

.moto__record .discount-banner__info {
    padding: initial;
}

.moto__record .discount-banner-title {
    font-size: 28px;
    color: #000;
    font-weight: bold;
}

.moto__record .discount-banner-subtitle {
    font-size: 19px;
    color: #000;
}

.accordion__block .panel-heading:hover {
	cursor: pointer;
}

@media (min-width: 992px) {
    .moto__education-item:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .moto__education-item:nth-child(2) {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }
    
    .moto__education-item:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
}

@media (max-width: 991px) and (min-width: 768px) {
    .moto__education-wrap {
        grid-template-columns: 1fr;
    }
    
    .moto__education-item:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .moto__education-item:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .moto__offer-inner {
        width: 80%;
    }
}

@media (max-width: 839px) {
	.section.moto_text {
		margin-top: 20px;
	}
	
	.moto__advantages {
		padding: 75px 0 85px;
	}
	
	.moto__scheme {
		padding: 75px 0 75px;
	}
	
	.moto__scheme-wrap,
	.section.moto__park,
	.section.moto__record {
		margin-top: 40px;
	}
	
	.moto__record {
		padding: 50px 0 0;
	}
	
	.moto__park {
		padding: 75px 0 35px;
	}
	
	.section.moto__education {
		margin: 30px 0 0;
		padding: 50px 0 10px;
	}
	
	
}

@media (max-width: 767px) {
    .moto__education-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 15px;
    }
    
    .moto__education-item {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .moto__education-number {
        font-size: 36px;
        margin-bottom: 5px;
    }
    
    .moto__education-desc {
        align-items: center;
        text-align: center;
    }
    
    .moto__education-img {
        max-width: 120px;
    }
    
    .moto__offer-wrap {
        padding: 20px 15px;
        gap: 30px;
    }
    
    .moto__offer-inner {
        width: 100%;
        padding: 25px 20px;
    }
    
    .moto__offer-inner:nth-child(1),
    .moto__offer-inner:nth-child(2),
    .moto__offer-inner:nth-child(3) {
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
    
    .moto__offer-inner-title {
        font-size: 22px;
    }
    
    .moto__offer-desc {
        font-size: 15px;
    }
	
	.moto__advantages-item {
		flex: 0 0 calc((100% - 30px) / 2);
	}
	
	.moto__park {
		padding: 100px 0 60px;
	}
	
	.moto__education {
		padding: 30px 0 15px;
	}
	
	.moto__scheme {
		padding: 75px 0 75px;
	}
	
	.moto__scheme-item {
		flex: 1 1 calc(50% - 20px);
	}

    .moto__top-banner-info {
        bottom: 40px;
    }
	.moto__top-banner-info h1,
	.moto__top-banner-info .moto__subtitle {

		text-shadow: 1px 1px 2px #ccc;
	}
	
}

.moto__top {
    background-image: url('/local/templates/motoshkola/img/motoshkola2.jpg');
    background-size: cover;
    background-position: center;
    width: 100%;
    aspect-ratio: 16 / 9; 
    position: relative;
}

@media (max-width: 676px) {
    .moto__top {
        min-height: 450px;
    }
}

@media (max-width: 576px) {
    .moto__advantages-item {
        flex: 0 0 100%;
    }
    
    .moto__scheme-item {
        flex: 1 1 100%;
    }
    
}

@media (max-width: 568px) {
	.moto__top-banner-info h1 {
		font-size: 30px;
	}
    .moto__top-banner-info .moto__subtitle {
        font-size: 20px;
    }

}

@media (max-width: 443px) {
    .section.moto__park img {
        margin-bottom: initial !important;
    }
    .content ul.moto__park-ul li {
        margin-bottom: 20px;
    }
    .accordion__block .panel-heading span span {
        text-align: left !important;
    }
}

@media (max-width: 360px) {
	.moto__top-banner-info h1 {
		font-size: 24px;
	}
    .moto__top-banner-info .moto__subtitle {
        font-size: 18px;
    }

}
