/* ===============================
   СТИЛИ ТОЛЬКО ДЛЯ ЭТОЙ СТАТЬИ
   =============================== */
.article-banner .hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background-image: url("https://pkmm.ru/image/catalog/stroitelstvo_pod_kluch/AdobeStock_294718457-scaled.jpeg");
    /* замени фон */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: moveBackground 10s ease-in-out infinite;
}

/* затемнение */
.article-banner .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
}

/* текст */
.article-banner .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    animation: fadeInUp 1.5s ease forwards;
    opacity: 0;
}

/* заголовок и подзаголовок */
.article-banner .hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.article-banner .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #e0e0e0;
}

/* кнопки */
.article-banner .btn {
    display: inline-block;
    padding: 14px 32px;
    margin: 0 10px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.article-banner .btn-primary {
    background: #1e3a8a;
    color: #fff;
}

.article-banner .btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-3px);
}

.article-banner .btn-outline {
    border: 2px solid #fff;
    color: #fff;
}

.article-banner .btn-outline:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* анимации */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes moveBackground {
    0% {
        background-position: center;
    }

    50% {
        background-position: center 20px;
    }

    100% {
        background-position: center;
    }
}

/* адаптив */
@media (max-width: 768px) {
    .article-banner .hero {
        height: 100vh;
        background-attachment: scroll;
    }

    .article-banner .hero-content {
        padding: 0 20px;
    }

    .article-banner .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.3;
    }

    .article-banner .hero-content p {
        font-size: 1rem;
    }

    .article-banner .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

.promo-block {
    position: relative;
    overflow: hidden;
    background: #f8f9fb;
    border-radius: 20px;
    padding: 60px 40px;
    margin-top: 60px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    font-family: "Montserrat", sans-serif;
}

/* Фон с частицами */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.promo-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.promo-text {
    flex: 1 1 50%;
    max-width: 600px;
}

.promo-text h2 {
    font-size: 32px;
    color: #1c4587;
    line-height: 1.3;
    margin-bottom: 20px;
}

.promo-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
}

.promo-image {
    flex: 1 1 45%;
    display: flex;
    justify-content: center;
}

.promo-image img {
    width: 100%;
    max-width: 550px;
    border-radius: 12px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.promo-image img:hover {
    transform: scale(1.03);
}

/* Адаптив */
@media (max-width: 768px) {
    .promo-content {
        flex-direction: column-reverse;
        text-align: center;
    }

    .promo-text h2 {
        font-size: 24px;
    }

    .promo-image img {
        max-width: 100%;
    }
}

.company-scale {
    background: url("https://pkmm.ru/image/catalog/stroitelstvo_pod_kluch/texture.jpg") center/cover no-repeat;
    padding: 60px 40px;
    border-radius: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    font-family: "Montserrat", sans-serif;
    margin: 40px 0;
}

/* Карточка */
.scale-card {
    position: relative;
    background: #f8f9fa;
    border-radius: 20px;
    overflow: hidden;
    padding: 40px 30px;
    transition: transform 0.45s ease, color 0.35s ease;
    cursor: pointer;
    color: #1e1e1e;
    min-height: 220px;
    isolation: isolate;
}

/* Линии на фоне — видны всегда */
.scale-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(120deg,
            rgba(255, 255, 255, 0.1) 0,
            rgba(0, 0, 0, 0.03) 1px,
            transparent 3px,
            transparent 30px),
        repeating-linear-gradient(-45deg,
            rgba(0, 0, 0, 0.02) 0,
            rgba(0, 0, 0, 0.02) 2px,
            transparent 4px,
            transparent 15px);
    animation: waveLines 10s ease-in-out infinite alternate;
    opacity: 0.7;
    z-index: 0;
    pointer-events: none;
}

@keyframes waveLines {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-40px, 10px) rotate(1deg);
    }

    50% {
        transform: translate(-80px, -20px) rotate(-1deg);
    }

    75% {
        transform: translate(-120px, 15px) rotate(1deg);
    }

    100% {
        transform: translate(-160px, 0) rotate(-1deg);
    }
}

/* Фото — появляется при наведении */
.scale-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--bg-url);
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.6s ease, transform 0.6s ease;
    z-index: 1;
    filter: brightness(0.55);
    /* затемнение */
}

/* Наведение: фото проявляется и карточка чуть поднимается */
.scale-card:hover::before {
    opacity: 1;
    transform: scale(1);
}

.scale-card:hover {
    transform: translateY(-6px);
}

/* Контент поверх всего */
.scale-card-content {
    position: relative;
    z-index: 3;
    transition: color 0.4s ease;
}

.scale-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
    color: #1e1e1e;
    transition: color 0.4s ease;
}

.scale-card p {
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    color: #333;
    transition: color 0.4s ease;
}

/* При наведении текст становится белым */
.scale-card:hover h2,
.scale-card:hover p {
    color: #fff !important;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .company-scale {
        gap: 14px;
    }

    .scale-card {
        padding: 22px;
        min-height: 180px;
        border-radius: 14px;
    }

    .scale-card h2 {
        font-size: 18px;
    }

    .scale-card p {
        font-size: 14px;
    }
}

* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.steps-slider {
    background: linear-gradient(180deg, #0b1b33 0%, #040f21 80%, #0e2952 100%);
    padding: 60px 40px;
    border-radius: 20px 20px 0px 0px;
    color: #fff;
}

.steps-title {
    font-size: 32px;
    font-weight: 700;
    text-align: center;
    color: #002b70;
    margin-bottom: 50px;
}

.slider-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    gap: 60px;
}

.slider-col {
    flex: 1;
}

.image-side {
    text-align: right;
}

.image-side img {
    width: 100%;
    max-width: 550px;
    border-radius: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: 0.3s ease;
}

.image-side img:hover {
    transform: scale(1.02);
}

.text-side {
    background: url("https://pkmm.ru/image/catalog/stroitelstvo_pod_kluch/texture.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-blend-mode: overlay;
    border-radius: 16px;
    padding: 40px 50px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    max-width: 550px;
    transition: background 1s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
    min-height: 460px;
    overflow: hidden;
    position: relative;
}

.step-text {
    flex-grow: 1;
    /* растягивает текстовую часть */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* выравнивает текст по центру вертикали */
    transition: opacity 0.4s ease;
    /* плавная смена текста */
}

.step-text h3 {
    color: #00398f;
    font-size: 24px;
    margin-bottom: 15px;
}

.step-text p {
    color: #333;
    font-size: 17px;
    line-height: 1.7;
}

.slider-controls {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    margin-top: 25px;
}

.slider-btn {
    background: #00398f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
}

.slider-btn:hover {
    background: #0059c2;
}

#step-counter {
    font-size: 16px;
    font-weight: 600;
    color: #00398f;
}

@media (max-width: 991px) {
    .slider-wrapper {
        flex-direction: column;
        gap: 30px;
    }

    .text-side {
        max-width: 90%;
        text-align: center;
    }

    .image-side img {
        max-width: 90%;
    }
}

.projects-section {
    background: linear-gradient(180deg, #0e2952 0%, #040f21 80%, #0b1b33 100%);
    padding: 80px 0;
    color: #fff;
}

.projects-title {
    font-size: 32px;
    font-weight: normal;
    text-align: center;
    color: #002b70;
    margin-bottom: 50px;
}

/* Сетка проектов */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 35px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Карточка проекта */
.project-item {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

/* Фото */
.project-item img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

/* Текст под фото */
.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h3 {
    color: #00398f;
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
}

.project-info p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

.cta-business {
    background: transparent;
    text-align: center;
    padding: 80px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 60px;
}

.cta-business h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.cta-business p {
    font-size: 18px;
    font-weight: 300;
    max-width: 750px;
    margin: 0 auto 35px;
    line-height: 1.6;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: #ffcc00;
    color: #0b1b33;
    padding: 14px 38px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.cta-button:hover {
    background: #ffcd32;
    transform: translateY(-2px);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.6);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(255, 204, 0, 0.155);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 204, 0, 0.067);
    }
}

/* Адаптив */
@media (max-width: 600px) {
    .project-item img {
        height: 200px;
    }

    .project-info h3 {
        font-size: 18px;
    }

    .project-info p {
        font-size: 14px;
    }
}