/* --- ОСНОВНЫЕ ПЕРЕМЕННЫЕ --- */
:root {
    --nv-blue: #4A90E2;
    --nv-blue-dark: #357ABD;
    --nv-accent: #F5A623;
    --nv-dark: #1A1A2E; /* Наш глубокий синий */
    --nv-text: #2C3E50;
    --nv-gray: #6C757D;
    --nv-radius: 12px;
    --nv-shadow: 0 10px 30px rgba(74, 144, 226, 0.15);
}

/* --- ОБЩИЕ СТИЛИ СТРАНИЦ --- */
.dev-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- РАДИКАЛЬНЫЙ ТЕМНЫЙ HERO БЛОК --- */
.dev-page .dev-hero-modern {
    /* Глубокий темно-синий фон, который точно не сольется */
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
    padding: 140px 0 120px;
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #fff; /* Весь текст в блоке теперь белый */
}

/* Добавляем декоративный элемент (светящееся пятно) для объема */
.dev-page .dev-hero-modern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.dev-page .hero-content-wrap {
    max-width: 950px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

/* Плашка с телефоном — теперь яркая */
.dev-page .hero-phone-link {
    display: inline-block;
    padding: 10px 25px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: var(--nv-accent); /* Телефон теперь оранжевый */
    font-weight: 800;
    font-size: 1.2rem;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: 0.3s;
    margin-bottom: 30px;
}

.dev-page .hero-phone-link:hover {
    background: var(--nv-accent);
    color: #fff;
    transform: translateY(-2px);
}

.dev-page .company-name {
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.dev-page .hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    margin: 0 0 30px 0;
    letter-spacing: -0.01em;
}

.dev-page .hero-subtitle {
    font-size: 1.35rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 850px;
    margin: 0 auto 50px;
    line-height: 1.6;
}

/* --- КНОПКИ --- */
.dev-page .hero-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dev-page .btn {
    display: inline-flex;
    align-items: center;
    padding: 18px 45px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 1.1rem;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.dev-page .btn-primary {
    background: var(--nv-accent);
    color: #fff;
    box-shadow: 0 10px 30px rgba(245, 166, 35, 0.4);
}

.dev-page .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(245, 166, 35, 0.6);
}

.dev-page .btn-outline {
    border: 2px solid #fff;
    color: #fff;
    background: transparent;
}

.dev-page .btn-outline:hover {
    background: #fff;
    color: var(--nv-dark);
    transform: translateY(-3px);
}

/* --- КАРТОЧКИ (БЕЛЫЕ НА СЕРОМ ФОНЕ) --- */
.dev-page .info-section {
    background: #fdfdfd;
    padding: 100px 0;
    /* Тень сверху, чтобы заходить под темный HERO */
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.05);
}

.dev-page .info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    height: auto !important;
}

.dev-page .info-card {
    min-height: 350px;
    display: flex;
    flex-direction: column;
    padding: 40px;
    background: #fff;
    border-radius: var(--nv-radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: all 0.4s ease;
}

.dev-page .info-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.1);
}

.dev-page .info-icon {
    width: 65px;
    height: 65px;
    background: var(--nv-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 1.3rem;
    font-weight: 800;
}

.dev-page .info-card h4 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--nv-dark);
    text-align: center;
}

.dev-page .info-card p {
    color: var(--nv-gray);
    line-height: 1.7;
    text-align: center;
}

/* --- СИСТЕМНОЕ --- */
.content-head { margin: 0 !important; height: 0 !important; overflow: hidden; }
.breadcrumbs, .page-h1 { display: none !important; }

/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 768px) {
    .dev-page .dev-hero-modern { padding: 80px 0; }
    .dev-page .hero-title { font-size: 2.2rem; }
    .dev-page .btn { width: 100%; justify-content: center; }
}

/* --- СЕКЦИЯ ЭТАПЫ РАБОТ --- */
.steps-section {
    padding: 80px 0;
    background: #fff;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
    gap: 30px; 
    position: relative;
    margin-top: 50px;
}

.step-item {
    text-align: center;
    position: relative;
    padding: 20px;
}

/* Настраиваем линии для 6 элементов (на десктопе отключаем на последнем) */
@media (min-width: 1200px) {
    .step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -20%; /* Увеличили длину линии для 5 шагов */
        width: 40%;
        height: 2px;
        background: #e2e8f0;
        z-index: 1;
    }
}

/* Линия-соединитель между шагами на десктопе */
@media (min-width: 992px) {
    .step-item:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 45px;
        right: -10%;
        width: 20%;
        height: 2px;
        background: #e2e8f0;
        z-index: 1;
    }
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--nv-blue);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-weight: 800;
    font-size: 1.2rem;
    position: relative;
    z-index: 2;
    box-shadow: 0 4px 10px rgba(74, 144, 226, 0.3);
}

.step-item h4 {
    font-size: 1.1rem;
    color: var(--nv-dark);
    margin-bottom: 10px;
    font-weight: 700;
}

.step-item p {
    font-size: 0.9rem;
    color: var(--nv-gray);
    line-height: 1.5;
}

/* Акцентный цвет для четных шагов или при наведении */
.step-item:hover .step-number {
    background: var(--nv-accent);
    transform: scale(1.1);
    transition: 0.3s;
}