/* Стили только для главной страницы (Index) */

.hero-text {
    text-align: center;
    backdrop-filter: blur(5px);
}
.main-inner {
	max-width: 100%;
	margin: 0;
}

.blocks {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-block {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    min-height: 120px;
}



/* Блок 1: фон-картинка + затемнение градиентом, 2 колонки */
.block-1 {
    position: relative;
    background: url('../../Img/Index/Body/background_1.png') center/cover no-repeat;
    min-height: 1000px;
    display: flex;
    align-items: center;
}

.block-1::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(30, 59, 68, 1) 0%, rgb(20 108 107 / 50%) 65%, rgba(200, 200, 200, 0.55));
    z-index: 0;
}

.block1-inner {
	max-width: var(--container-width1);
	margin: 150px auto;
	padding: 0 16px;
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	width: 100%;
}

.block1-title { color: #fff; font-size: 40px; margin: 0 0 16px 40px; }
.ml-4ch { margin-left: 4ch; display: inline-block; }
.block1-text { 
	color: #fff; 
	font-size: 16px; 
	line-height: 1.6; 
	margin: 0; 
	text-align: justify;  
	text-indent: 0; 
	width: 100%;
    padding: 0 40px;
}
.block1-text2 { 
	color: #fff; 
	font-size: 16px; 
	line-height: 1.6; 
	margin: 0 0 24px; 
	padding-top: 0; 
	width: 100%;
    padding: 0 40px;
}

.block1-content { 
	width: 100%;
	max-width: 600px;
    margin-left: inherit;
    margin-right: inherit;
}
.block1-content .btn.btn-2 {
    width: 30%;
    margin: 30px;
    display: inline-block;
    text-align: center;
}
.block1-image { position: relative; }
.block1-image img { display: block; width: 80%; height: auto; filter: brightness(0.7);}


/* Блок 2: Разработки с кнопками */
.block-2 {
    /* background: #f8fafc; */
    background-image: url('../../Img/Index/Body/blurred_circle.png');
    background-repeat: no-repeat;
    background-position: calc(120% - 100px) calc(-35% + 200px);
    background-size: 500px;
    padding: 100px 0;
    height: 1000px;
}

.block2-inner {
    max-width: var(--container-width1);
    margin: 0 auto;
    padding: 0 16px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.block2-title {
    text-align: left;
    font-size: 40px;
    color: #1e293b;
    margin: 50px 0 0 100px;
}
.block2-title-link {
    text-decoration: none;
}

.block2-grid {
    display: grid;
    grid-template-columns: 1fr 2.5fr;
    gap: 20px;
    flex: 1;
    height: calc(100% - 84px); /* Вычитаем высоту заголовка и отступы */
    margin: 50px 100px;
}

.block2-column-left {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.block2-column-right {
    display: flex;
    flex-direction: column;
}

.block2-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    flex: 1;
}



.block2-column-left .button-text {
    font-size: 28px;
}



.block2-button::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.block2-button:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.block2-button:hover::before {
    background: rgba(0, 0, 0, 0.3);
}

.button-text {
    color: white;
    font-size: 40px;
    font-weight: 300;
    text-align: center;
    z-index: 2;
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    /* Главный текст в шапке */
    .hero-text {
        background: #31585e;
        padding: 20px 0;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
    
    
    
    /* Кнопки Разработки и Контакты */
    .cta-row {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        margin-top: 30px;
    }
    
    .cta-row .btn {
        width: 200px;
        text-align: center;
        padding: 12px 24px;
    }
    

    
    .block1-image {
        display: none;
    }
    
    
    .block1-content {
        text-align: center;
    }
    
    .block1-content .btn.btn-2 {
        width: 30%;
        margin: 30px;
        display: inline-block;
    }

    
    /* Блок 2 - один столбец */
    .block-2 {
        height: auto;
        min-height: 800px;
        padding: 60px 0;
    }
    
    .block2-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 40px;
    }
    
    .block2-column-left {
        gap: 20px;
        order: 1;
    }
    
    .block2-column-right {
        order: 2;
    }
    
    .block2-button {
        flex: none;
        width: 300px;
        height: 200px;
        margin: 0 auto;
    }
    
    .block2-title {
        font-size: 28px;
        margin: 30px 0 30px 40px;
    }
    
    .button-text {
        font-size: 24px;
    }
    
    /* Блок 3 - один столбец, без слайдера */
    .block-3 {
        height: auto;
        min-height: 1200px;
        padding: 60px 0;
    }
    
    .block3-carousel {
        display: none !important;
    }
    
    .block3-vertical-content {
        display: flex !important;
    }
    
    .block3-title {
        position: static;
        text-align: center;
        margin-bottom: 20px;
        font-size: 32px;
    }
    
    .block3-title2 {
        position: static;
        text-align: center;
        margin-bottom: 40px;
        font-size: 18px;
    }
    
    /* Вертикальные блоки с текстом для блока 3 */
    .block3-vertical-content {
        display: flex !important;
        flex-direction: column;
        gap: 30px;
        padding: 0 40px;
    }
    
    .block3-vertical-content .slide-content {
        background: rgba(0, 0, 0, 0.7);
        padding: 30px;
        border-radius: 20px;
        color: white;
        text-align: center;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
    
    .block3-vertical-content .slide-content::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        border-radius: 20px;
        z-index: -1;
    }
    
    .block3-vertical-content .slide-content[data-slide="0"]::before {
        background: rgb(12 29 87 / 75%);
    }
    
    .block3-vertical-content .slide-content[data-slide="1"]::before {
        background: rgb(31 121 9 / 75%);
    }
    
    .block3-vertical-content .slide-content[data-slide="2"]::before {
        background: rgb(9 87 121 / 75%);
    }
    
    .block3-vertical-content .slide-content::after {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: inherit;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 20px;
        z-index: -2;
        opacity: 0.3;
    }
    
    .block3-vertical-content .slide-number {
        font-size: 48px;
        font-weight: 200;
        color: white;
        margin-bottom: 0;
        display: inline-block;
        /* font-family: math; */
        vertical-align: top;
    }
    
    .block3-vertical-content .slide-title {
        font-size: 24px;
        font-weight: 200;
        margin-bottom: 16px;
        color: white;
        display: inline-block;
        vertical-align: top;
        line-height: 48px;
    }
    
    .block3-vertical-content .slide-line {
        width: 100%;
        height: 1px;
        background: white;
        margin-bottom: 16px;
        margin-left: 0;
    }
    
    .block3-vertical-content .slide-text {
        font-size: 12px;
        line-height: 1.6;
        color: #e5e7eb;
        margin-left: 0;
    }
    
    /* Блок 4 - адаптируем для мобильных */
    .block4-title {
        font-size: 28px;
        margin-bottom: 40px;
        padding: 0 20px;
    }
    
    .block4-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 0 20px;
    }
    
    .employee-photo {
        width: 120px;
        height: 120px;
    }
    
    .employee-name {
        font-size: 16px;
    }
    
    .employee-position {
        font-size: 13px;
    }
    
    
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .block1-inner {
        padding: 0 20px;
        margin: 60px 0;
    }
    
    .block2-grid {
        margin: 20px 20px;
    }
    
    .block2-title {
        margin: 20px 0 20px 20px;
    }
    
    .block3-vertical-content {
        padding: 0 20px;
    }
    
    .block3-vertical-content .slide-content {
        padding: 20px;
    }
    
    .block3-vertical-content .slide-number {
        font-size: 36px;
    }
    
    .block3-vertical-content .slide-title {
        font-size: 20px;
        line-height: 36px;
    }
    
    .block3-vertical-content .slide-text {
        font-size: 12px;
    }
    
    .block4-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-inner {
        padding: 30px 15px;
    }
    
    .footer-contacts {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .cta-row .btn {
        width: 180px;
    }
    
    .hero-text {
        padding: 15px;
        margin: 15px 0;
    }
    
    .header-extra-inner {
        padding: 40px 15px;
    }
}

/* Блок 3: Преимущества (Области применения) */
.block-3 {
    background: url('../../Img/Index/Body/Block3/background.png') center/cover no-repeat;
    height: 800px;
    position: relative;
    display: flex;
    align-items: center;
}

/* Скрываем мобильную версию на больших экранах */
.block3-vertical-content {
    display: none;
}

/* Показываем слайдер только на больших экранах */
.block3-carousel {
    display: block;
}

.block-3::before {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(16, 24, 30, 0.7);
    z-index: 0; 
}

.block3-inner {
    max-width: var(--container-width1);
    margin: 0 auto;
    padding: 0 16px;
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.block3-title {
    position: absolute;
    top: 60px;
    left: 60px;
    font-size: 40px;
    color: #ffffff;
    margin: 0;
    z-index: 2;
}

.block3-title2 {
    position: absolute;
    top: 110px;
    left: 60px;
    font-size: 20px;
    color: #ffffff;
    margin: 0;
    z-index: 2;
}

/* Новый слайдер */
.block3-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 40px;
}

.carousel-next {
    right: 40px;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.slide-image {
    position: absolute;
    top: 140px;
    right: 120px;
    width: 600px;
    height: 400px;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    position: absolute;
    bottom: 60px;
    left: 120px;
    background: rgba(0, 0, 0, 0.7);
    padding: 40px;
    border-radius: 50px;
    color: white;
    max-width: 500px;
    z-index: 2;
}

.slide-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    z-index: -1;
}

/* Цвета градиента для каждого слайда */
.slide-content[data-slide="0"]::before {
    background: rgb(12 29 87 / 75%);
}

.slide-content[data-slide="1"]::before {
    background: rgb(31 121 9 / 75%);
}

.slide-content[data-slide="2"]::before {
    background: rgb(9 87 121 / 75%);
}

.slide-content {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-content::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: inherit;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 50px;
    z-index: -2;
    opacity: 0.3;
}

.slide-number {
    font-size: 100px;
    font-weight: 200;
    color: white;
    margin-bottom: 0;
    display: inline-block;
    /* margin-right: 16px; */
    /* font-family: math; */
    vertical-align: top;
}

.slide-title {
    font-size: 32px;
    font-weight: 200;
    margin-bottom: 16px;
    color: white;
    display: inline-block;
    vertical-align: top;
    line-height: 100px;
}

.slide-line {
    width: 500px;
    height: 1px;
    background: white;
    margin-bottom: 16px;
    margin-left: -40px;
}

.slide-text {
    font-size: 16px;
    line-height: 1.6;
    color: #e5e7eb;
    margin-left: 56px;
}



@media (max-width: 768px) {
    .block-3 {
        height: 600px;
    }
    
    .block3-title {
        top: 30px;
        /* left: 30px; */
        font-size: 28px;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .carousel-prev {
        left: 20px;
    }
    
    .carousel-next {
        right: 20px;
    }
    
    .slide-image {
        top: 30px;
        right: 30px;
        width: 200px;
        height: 150px;
    }
    
    .slide-content {
        bottom: 0;
        left: 0;
        padding: 30px;
        max-width: none;
    }
    
    .slide-number {
        font-size: 36px;
    }
    
    .slide-title {
        font-size: 24px;
    }
    
    .slide-text {
        font-size: 14px;
    }
}

/* Блок 4: Сотрудники */
.block-4 {
    background: #ffffff;
    padding: 80px 0;
}

.block4-inner {
    max-width: var(--container-width1);
    margin: 0 auto;
    padding: 0 16px;
}

.block4-title {
    text-align: center;
    font-size: 40px;
    color: #1e293b;
    margin: 0 0 60px;
}

.block4-table {
    display: flex;
    justify-content: center;
}

.block4-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.block4-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.employee-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #e5e7eb;
}

.employee-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.employee-name {
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

.employee-position {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.4;
}

.employee-publications {
    display: inline-block;
    background: #1e293b;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    margin-top: 8px;
}

.employee-publications:hover {
    background: #374151;
}

@media (max-width: 1063px) {
    .block1-inner { grid-template-columns: 1fr; padding: 0 40px; text-align: -webkit-center;}
    .block1-image { order: -1; }
    .block1-title { margin-left: 0; }
    .ml-4ch { margin-left: 0; display: inline-block; }
    .block4-row {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .block4-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .block4-title {
        font-size: 28px;
        margin-bottom: 40px;
    }
    
    .employee-photo {
        width: 120px;
        height: 120px;
    }
    
    .employee-name {
        font-size: 16px;
    }
    
    .employee-position {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .block4-row {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}
