

/* Start:/local/templates/bigwig_wm/components/bitrix/news.detail/mafia_text/style.css?17908794463647*/
.page-title h1 {
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    color: #5F6065;
}

section.element-blog {
    display: flex;
    gap: 32px;
}

.element-blog-content {
    width: 65%;
}

.element-blog-info {
    width: 35%;
}

.element-blog-date {
    font-weight: 300;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 1%;
    margin-bottom: 45px;
    color: #353535;
}

img.element-blog-img {
    width: 100%;
    border-radius: 16px;
    margin-bottom: 40px;
}
.element-blog-text p {
    font-weight: 300;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
}

.element-blog-text {
    color: #353535;
}

.element-blog-text h2 {
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
    margin: 40px 0;
}

.element-blog-text table {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 40px;
}

.element-blog-text td {
    border: 1px solid #B9B9B9;
    padding: 10px 12px;
}

.element-blog-text td p {
    margin-bottom: 0;
}
.element-blog-text tr:first-child td{
    background: #EEEDF2;
}
.element-blog-info-title {
    font-weight: 300;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #5F6065;
    padding-bottom: 12px;
    border-bottom: 1px solid #EEEDF2;
    margin-bottom: 24px;
}

.element-blog-info-context {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-weight: 400;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #353535;
}
.element-blog-info-context a:first-child{
    color: #DF0611;
}
.element-blog-neighbor {
    display: flex;
    gap: 32px;
    margin-top: 40px;
    margin-bottom: 80px;
}

.element-blog-neighbor-el {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.element-blog-neighbor-el-link {
    margin-bottom: 12px;
    font-weight: 300;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #DF0611;
}

.element-blog-neighbor-el-title {
    font-weight: 300;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
    color: #353535;
    margin-bottom: 20px;
}

img.element-blog-neighbor-el-img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.element-blog-content-info {
    display: flex;
    justify-content: space-between;
}
.element-blog-soc {
    display: flex;
    gap: 16px;
}
.element-blog-share{
    font-weight: 500;
    font-style: Medium;
    font-size: 20px;
    leading-trim: NONE;
    line-height: 130%;
    letter-spacing: 0%;
}
a.soc{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #EFEEF3;
    background-repeat: no-repeat;
    background-position: center;
}
a.soc.tg{
    background-image: url("/local/templates/bigwig_wm/components/bitrix/news.detail/mafia_text/./img/telegram.svg");
}
a.soc.wa{
    background-image: url("/local/templates/bigwig_wm/components/bitrix/news.detail/mafia_text/./img/whatsapp.svg");
}
a.soc.vk{
    background-image: url("/local/templates/bigwig_wm/components/bitrix/news.detail/mafia_text/./img/vk.svg");
}
@media screen and (max-width: 600px){

    .element-blog-content {
        width: 100%;
    }
    .page-title h1 {
        font-size: 24px;
    }
    .element-blog-text h2 {
        font-size: 24px;
    }
    .element-blog-text p {
        font-size: 16px;
    }
    .element-blog-text td {
        padding: 2px;
    }
    .element-blog-neighbor {
        flex-direction: column;
    }
    .element-blog-neighbor-el {
        width: 100%;
    }
    .element-blog-info {
        display: none;
    }
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/form.result.new/small_form/style.css?1787638572667*/
.feedbackForm {
    padding: 20px;
    margin-top: 32px;
    background: #EEEDF2;
    border-radius: 12px;
}
.feedbackForm h3 {
    font-weight: 400;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
}
.feedbackForm input {
    margin-bottom: 16px;
}
.feedbackForm .btn {
    background: white;
    margin-top: 32px;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
    padding-left: 20px !important;
}
.feedbackForm button.arrow-right.btn::after{
    top: 14px;
}
.feedbackForm button.arrow-right.btn:hover::after{
    color: white;
}
form .form-image {
    max-width: 90%;
    margin-bottom: -20px;
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/news.list/course_cards_min/style.css?17908802465404*/
.programs-grid-custom {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
    margin-bottom: 3rem;
}
.program-wrapper:nth-child(1),
.program-wrapper:nth-child(2),
.program-wrapper:nth-child(3) {
    grid-column: span 2 !important;
}

/* Первые три элемента в цикле из 5 (1, 2, 3) занимают по 2 колонки (всего 6) */
.program-wrapper:nth-child(5n+4),
.program-wrapper:nth-child(5n+5) {
    grid-column: span 3;
}

/* Следующие два элемента в цикле (4, 5) занимают по 3 колонки (всего 6) */
.program-wrapper:nth-child(5n+1),
.program-wrapper:nth-child(5n+2),
.program-wrapper:nth-child(5n+3) {
    grid-column: span 2;
}

/* Чтобы последний элемент не оставлял дырок, если он "лишний" */

/* Если 1 лишний (например, 6-й, 11-й и т.д.) — на всю ширину */
.program-wrapper:last-child:nth-child(5n+1) {
    grid-column: span 6;
}

/* Если 2 лишних (например, 6-й и 7-й) — делят ряд пополам */
.program-wrapper:nth-last-child(2):nth-child(5n+1),
.program-wrapper:last-child:nth-child(5n+2) {
    grid-column: span 3;
}

.program-card {
    min-height: 350px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    background-color: #F8F9FA; /* Базовый цвет, если не сработают nth-child */
}

.card-title {
    font-size: 1.5rem;
    font-weight: 400;
    color: rgb(26, 26, 26);
    margin-bottom: 15px !important;
}

/* Цвета фона (цикл по 6 для разнообразия) */
.program-wrapper:nth-child(6n+1) .program-card { background-color: #F2F5F9; }
.program-wrapper:nth-child(6n+2) .program-card { background-color: #F9F2F2; }
.program-wrapper:nth-child(6n+3) .program-card { background-color: #F2F9F3; }
.program-wrapper:nth-child(6n+4) .program-card { background-color: #F5F2F9; }
.program-wrapper:nth-child(6n+5) .program-card { background-color: #F9F7F2; }
.program-wrapper:nth-child(6n+6) .program-card { background-color: #EDF2F6; }

.card-img-container {
    position: absolute;
    bottom: 0;
    right: 0;
    max-width: 45%;
    max-height: 75%;
    z-index: 0;
    pointer-events: none;
}

.card-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: right bottom;
}

/* Если всего элементов ровно 4, делаем сетку 2x2 */
.program-wrapper:first-child:nth-last-child(4),
.program-wrapper:first-child:nth-last-child(4) ~ .program-wrapper {
    grid-column: span 3 !important;
}

/* Опционально: ограничиваем ширину текста для 4-х карточек,
   чтобы он не налезал на картинку, как вы делали для 5n+4 */
.program-wrapper:first-child:nth-last-child(4) .card-body,
.program-wrapper:first-child:nth-last-child(4) ~ .program-wrapper .card-body {
    max-width: 65%;
}

/* Ограничение текста в ШИРОКИХ карточках (те, что по 2 в ряд) */
.program-wrapper:nth-child(5n+1) .card-body,
.program-wrapper:nth-child(5n+2) .card-body {
    max-width: 100%;
}
.program-wrapper:nth-child(5n+4) .card-body,
.program-wrapper:nth-child(5n+5) .card-body {
    max-width: 65%;
}
/* АДАПТИВНОСТЬ */
@media (max-width: 1100px) {
    /* На планшетах переходим на 2 в ряд для всех */
    .programs-grid-custom { grid-template-columns: repeat(2, 1fr); }
    .program-wrapper { grid-column: span 1 !important; }
}

@media (max-width: 768px) {
    /* На мобильных 1 в ряд */
    .programs-grid-custom { grid-template-columns: 1fr; }
    .card-body { max-width: 100% !important; }
    .card-img-container { opacity: 0.3; } /* Чтобы текст читался поверх фото */
}
/* 1. Анимация появления при загрузке страницы */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.program-wrapper {
    opacity: 0; /* Изначально скрыты */
    animation: fadeInUp 0.6s ease-out forwards;
}

/* 2. Задержка появления для эффекта "лесенки" (по желанию) */
.program-wrapper:nth-child(1) { animation-delay: 0.1s; }
.program-wrapper:nth-child(2) { animation-delay: 0.2s; }
.program-wrapper:nth-child(3) { animation-delay: 0.3s; }
.program-wrapper:nth-child(4) { animation-delay: 0.4s; }
.program-wrapper:nth-child(5) { animation-delay: 0.5s; }

/* 3. Анимация при наведении мыши (Hover) */
.program-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.program-card:hover {
    transform: translateY(-8px); /* Всплытие */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important; /* Мягкая тень */
}

/* Легкое увеличение картинки при наведении на карточку */
.program-card:hover .card-img-container img {
    transform: scale(1.05);
    transition: transform 0.4s ease;
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/news.list/shares/style.css?17810616951952*/
.align-items-stretch>div{
    min-height: 300px;
}

.promo-card-action {
    position: relative;
    overflow: hidden;
    height: 100%;

    display: flex;
    flex-direction: row;
    background-color: #f4f4f4;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
    width: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

.promo-big {
    min-height: 260px;
    padding: 40px;
}

.promo-small {
    padding: 30px;
    min-height: 260px;
    padding-top: 60px;
}

.promo-content {
    max-width: 80%;
    z-index: 2;
}
    .promo-content h3{
        font-weight: 400;
        font-size: 52px;
        line-height: 58px;
        letter-spacing: 0%;
    }
    .promo-content p{
        font-size: 18px;
    }

.promo-img {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right;
}

.promo-badge {
    position: absolute;
    top: 15px;
    right: -40px;
    background: #e30000;
    color: #fff;
    padding: 6px 50px;
    transform: rotate(45deg);
    font-weight: 600;
    font-size: 14px;
}
.promo-terms{
    font-size: 11px;
    color: #999;
}
.promo-popup {
    max-width: 600px !important;
}
.col-lg-9 .promo-content h3 {
    font-weight: 400;
    font-size: 52px;
    line-height: 58px;
    letter-spacing: 0%;
    max-width: 550px;
}
.col-lg-9 .promo-content p {
    font-weight: 400;
    font-size: 24px;
    line-height: 130%;
    letter-spacing: 0%;
}
.col-lg-3 .promo-content h3 {
    font-weight: 300;
    font-size: 20px;
    line-height: 130%;
    letter-spacing: 0%;
}
.col-lg-3 .promo-content p {
    font-weight: 300;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: 0%;
}
.promo-card-action .btn{
    padding: 16px 20px !important;
    width: 270px;
    text-align: left;
}
.promo-card-action .btn .arrow{
    margin-left: 100px;
    font-size: 30px;
    line-height: 0px;
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/news.list/why_main_block/style.css?1768562619723*/
.why-us-block {

}

.why-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
}

.why-icon i {
	font-size: 1.8rem;
	color: #dc3545;
	line-height: 1;
}

.why-icon .icon-img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.why-item h5 {
	color: #333;
	font-weight: 400;
	line-height: 1.2;
}

.why-desc {
	font-size: 0.95rem;
	line-height: 1.5;
	color: #6c757d;
}

.why-item:hover .why-icon i {
	animation: pulse 1s infinite;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.2); }
	100% { transform: scale(1); }
}

@media (max-width: 768px) {
	.why-icon i {
		font-size: 1.5rem; /* Чуть меньше на планшетах */
	}
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/news.list/contacts/style.css?17810103932174*/
/* Принудительно включаем анимацию для слайдера */
.carousel-item {
    transition: transform 0.6s ease-in-out !important;
}
.address-section h2{
    font-weight: 400;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
}
.branch-select {
    display: flex;
    justify-content: center;
    align-items: center;
}
.branch-select label{
    width: 40%;
    font-weight: 400 !important;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
    margin-bottom: 0;
}
.branch-select select{
    width: 60%;
    font-weight: 300;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
}
.school {
    padding: 20px;
    border: 1px solid #BFC0C5;
    border-radius: 12px;
}
.school h3{
    text-align: center;
}
.address-section .card-body {
    width: 100%;
    min-width: 100%;
    text-align: center;
}
.address-section .card-body .card-text{
    font-weight: 300;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 0;
}
.address-section .card-list {
    border-bottom: 1px solid #BFC0C5;
    padding-bottom: 20px;
}
.address-section .card-list h5{
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 12px;
}
.address-section .card-list button{
    border: none;
    background: none;
    font-weight: 300;
    font-size: 18px;
    leading-trim: NONE;
    line-height: 130%;
    text-align: center;
    color: #666;

}
.address-section .card-list button:hover{
    border: none;
    background: none;
    color: #666;
}
.address-section .card-body .flex-wrap{
    flex-direction: column;
}
.address-section .card-body .flex-wrap .card-list{
    width: 100%;
}
.address-section .card-body .flex-wrap .card-list .d-block{
    font-weight: 600;
    font-size: 16px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: center;
    margin-bottom: 12px;
}
.address-section .card-body .flex-wrap .card-list .data{
    font-weight: 300;
    font-size: 18px;
    line-height: 130%;
    letter-spacing: 0%;
    text-align: center;
    color: #353535;
}
/* End */


/* Start:/local/templates/bigwig_wm/components/bitrix/form.result.new/trial_block/style.css?17816765431584*/
.trial-section {
    background-color: #f0f0f0;
    /* Путь к картинке. Если она в папке шаблона, путь нужно уточнить */
    background-image: url('/local/templates/bigwig_wm/components/bitrix/form.result.new/trial_block/img/request_free_lesson_2.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: contain;
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
}
.form-control-pill {
    border-radius: 50rem !important;
    padding: 0.7rem 1.3rem !important;
    border: 1px solid #ced4da !important;
    background-color: #fff !important;
}

.btn-pill {
    border-radius: 50rem !important;
    padding-left: 2 !important;
    padding-right: 2rem !important;
}

.form-check-input:checked {
    background-color: #dc3545;
    border-color: #dc3545;
}

.benefit-list li {
    margin-bottom: 1rem;
    position: relative;
    padding-left: 1.5rem;
    color: #555;
}

.benefit-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    top: 2px;
    color: #555;
    font-weight: bold;
}

.content-relative {
    position: relative;
    z-index: 2;
}
.trial-section h2{
    font-weight: 400 !important;
    font-size: 40px;
    line-height: 120%;
    letter-spacing: 0%;
}
.trial-section{
    padding: 60px 80px;
    margin-bottom: 120px;
    margin-top: 80px;
}
.trial-section button[type="submit"]{
    background: white;
    text-align: left;
    padding-left: 20px !important;
}
.trial-section button[type="submit"]:hover{
    background: #dc3545;
}
/* End */
/* /local/templates/bigwig_wm/components/bitrix/news.detail/mafia_text/style.css?17908794463647 */
/* /local/templates/bigwig_wm/components/bitrix/form.result.new/small_form/style.css?1787638572667 */
/* /local/templates/bigwig_wm/components/bitrix/news.list/course_cards_min/style.css?17908802465404 */
/* /local/templates/bigwig_wm/components/bitrix/news.list/shares/style.css?17810616951952 */
/* /local/templates/bigwig_wm/components/bitrix/news.list/why_main_block/style.css?1768562619723 */
/* /local/templates/bigwig_wm/components/bitrix/news.list/contacts/style.css?17810103932174 */
/* /local/templates/bigwig_wm/components/bitrix/form.result.new/trial_block/style.css?17816765431584 */
