/*
Theme Name: Hello Elementor Child
Theme URI: https://digitalflow.by/
Description: Дочерняя тема для сайта digitalflow.by
Author: Denis Malashchenko
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/
.df-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 80px 20px;
    background: #ffffff;
    text-align: center;
}

.df-404__inner {
    width: 100%;
    max-width: 720px;
}

.df-404__code {
    margin: 0 0 8px;
    color: #2f2f2f;
    font-size: clamp(90px, 16vw, 180px);
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.06em;
}

.df-404__title {
    margin: 28px 0 14px;
    color: #2f2f2f;
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
}

.df-404__text {
    max-width: 560px;
    margin: 0 auto;
    color: #666666;
    font-size: 18px;
    line-height: 1.6;
}

.df-404__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
}

.df-404__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border: 1px solid #2f2f2f;
    border-radius: 4px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: 0.2s ease;
}

.df-404__button--primary {
    color: #ffffff;
    background: #2f2f2f;
}

.df-404__button--primary:hover {
    color: #ffffff;
    background: #000000;
    border-color: #000000;
}

.df-404__button--secondary {
    color: #2f2f2f;
    background: #ffffff;
}

.df-404__button--secondary:hover {
    color: #ffffff;
    background: #2f2f2f;
}

.df-404__links {
    margin-top: 42px;
    color: #666666;
    font-size: 15px;
}

.df-404__links p {
    margin: 0 0 12px;
}

.df-404__links a {
    display: inline-block;
    margin: 5px 10px;
    color: #2f2f2f;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.df-404__links a:hover {
    color: #777777;
}

@media (max-width: 767px) {
    .df-404 {
        min-height: 60vh;
        padding: 56px 18px;
    }

    .df-404__text {
        font-size: 16px;
    }

    .df-404__buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .df-404__button {
        width: 100%;
    }
}

/* ===== Страница 404 — digitalflow.by ===== */

.df-404-page {
    margin: 0;
    background: #ffffff;
    color: #2d2d2d;
}

.df404 {
    overflow: hidden;
    background: #ffffff;
}

.df404__wrap {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.df404__hero {
    padding: 36px 0 76px;
    background: #ffffff;
    border-bottom: 1px solid #ececec;
}

.df404__brand {
    display: inline-block;
    color: #2d2d2d;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    text-decoration: none;
}

.df404__brand::before {
    display: inline-block;
    width: 32px;
    height: 20px;
    margin: 0 9px 0 0;
    border-radius: 12px 3px 12px 3px;
    background: linear-gradient(135deg, #303030 0%, #777777 100%);
    content: "";
    transform: skewX(-23deg);
}

.df404__error {
    max-width: 720px;
    margin: 50px auto 0;
    text-align: center;
}

.df404__number {
    margin: 0;
    color: #2d2d2d;
    font-size: clamp(92px, 15vw, 170px);
    font-weight: 800;
    letter-spacing: -0.08em;
    line-height: 0.9;
}

.df404__title {
    margin: 24px 0 12px;
    color: #2d2d2d;
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 700;
    line-height: 1.15;
}

.df404__subtitle {
    max-width: 590px;
    margin: 0 auto;
    color: #6a6a6a;
    font-size: 17px;
    line-height: 1.6;
}

.df404__home-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    margin-top: 28px;
    padding: 12px 26px;
    border: 1px solid #303030;
    border-radius: 4px;
    color: #ffffff;
    background: #303030;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.df404__home-button:hover {
    border-color: #000000;
    color: #ffffff;
    background: #000000;
    transform: translateY(-2px);
}

.df404-services {
    padding: 64px 0 78px;
    background: #ffffff;
}

.df404-services__title {
    margin: 0 0 38px;
    color: #2d2d2d;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.df404-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.df404-service {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 255px;
    padding: 22px 16px 20px;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #2d2d2d;
    background: #ffffff;
    text-align: center;
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.df404-service:hover {
    border-color: #d2d2d2;
    color: #2d2d2d;
    box-shadow: 0 10px 28px rgba(0, 0, 0, .08);
    transform: translateY(-4px);
}

.df404-service__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    margin-bottom: 15px;
    color: #353535;
    font-size: 43px;
    font-weight: 700;
    line-height: 1;
}

.df404-service__icon .fa-brands,
.df404-service__icon .fa-solid {
    font-size: 42px;
}

.df404-service__icon--yandex {
    font-family: Arial, sans-serif;
    font-size: 48px;
    font-weight: 400;
}

.df404-service__icon--google {
    font-family: Arial, sans-serif;
    font-size: 52px;
    font-weight: 700;
}

.df404-service__name {
    display: block;
    margin-bottom: 13px;
    color: #303030;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.25;
}

.df404-service__text {
    display: block;
    color: #4f4f4f;
    font-size: 15px;
    line-height: 1.55;
}

@media (max-width: 1024px) {
    .df404-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }

    .df404-service {
        min-height: 225px;
    }
}

@media (max-width: 767px) {
    .df404__wrap {
        width: min(100% - 32px, 560px);
    }

    .df404__hero {
        padding: 28px 0 52px;
    }

    .df404__brand {
        font-size: 24px;
    }

    .df404__brand::before {
        width: 27px;
        height: 17px;
        margin-right: 7px;
    }

    .df404__error {
        margin-top: 44px;
    }

    .df404__subtitle {
        font-size: 16px;
    }

    .df404-services {
        padding: 48px 0 56px;
    }

    .df404-services__title {
        margin-bottom: 26px;
    }

    .df404-services__grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .df404-service {
        min-height: auto;
        padding: 20px 18px;
    }

    .df404-service__icon {
        min-height: 42px;
        margin-bottom: 10px;
        font-size: 38px;
    }

    .df404-service__icon .fa-brands,
    .df404-service__icon .fa-solid {
        font-size: 37px;
    }

    .df404-service__name {
        margin-bottom: 8px;
        font-size: 19px;
    }
}

.custom-single {
    width: 100%;
    max-width: 1040px;
    margin-inline: auto;
    padding: 40px 20px;
    box-sizing: border-box;
}

/* Выравниваем ширину непосредственных блоков внутри записи */
.custom-single__content > :not(.alignleft):not(.alignright):not(.alignfull) {
    max-width: 100%;
    margin-inline: auto;
}