/* Стили для страницы разработок */

/* Блок 2: Разработки с кнопками */
.block-2 {
    /* background: #f8fafc; */
    background-image: url('/Assets/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-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) {
    /* Блок 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;
    }
}

/* Дополнительные стили для очень маленьких экранов */
@media (max-width: 480px) {
    .block2-grid {
        margin: 20px 20px;
    }
    
    .block2-title {
        margin: 20px 0 20px 20px;
    }
}

/* Вариант 2: Карточки с превью страниц */
.development-cards {
    padding: 60px 0;
    background: #f8fafc;
}

.development-cards-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.development-cards-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    text-align: center;
    margin-bottom: 50px;
}

.development-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.development-card {
    display: block;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.development-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.card-preview {
    height: 200px;
    overflow: hidden;
}

.card-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    margin: 0 0 15px 0;
}

.card-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin: 0 0 20px 0;
}

.card-link {
    color: var(--theme-color, #1e3a8a);
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: color 0.3s ease;
    cursor: pointer;
}

.development-card:hover .card-link {
    color: #1e40af;
}

/* 4 квадрата разработок */
.development-squares {
    padding: 60px 0;
    background: white;
}

.development-squares-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.development-squares-title {
    font-size: 36px;
    font-weight: 300;
    text-align: center;
    margin-bottom: 50px;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.development-squares-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 1000px;
    margin: 0 auto;
}

.development-square {
    position: relative;
    display: block;
    width: 100%;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.development-square:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: white;
}

.square-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 25px 25px;
    text-align: center;
}

.square-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.square-description {
    font-size: 16px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .development-squares-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .development-square {
        height: 250px;
    }
    
    .development-squares-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    .square-overlay {
        padding: 20px 15px 15px;
    }
    
    .square-title {
        font-size: 20px;
    }
    
    .square-description {
        font-size: 14px;
    }
}

.development-minimal-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.development-minimal-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    text-align: center;
    margin-bottom: 50px;
}

.development-minimal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.minimal-card {
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.minimal-card:hover {
    background: white;
    border-color: var(--theme-color, #1e3a8a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.minimal-icon {
    width: 60px;
    height: 60px;
    margin-right: 20px;
    flex-shrink: 0;
}

.minimal-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
}

.minimal-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--theme-color, #1e3a8a);
    margin: 0 0 5px 0;
}

.minimal-content p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Адаптивность для новых блоков */
@media (max-width: 768px) {
    .development-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .development-minimal-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .minimal-card {
        padding: 15px;
    }
    
    .minimal-icon {
        width: 50px;
        height: 50px;
        margin-right: 15px;
    }
}