/*
   Мини-лендинг /designers/. Только для этой страницы — подключается
   SetAdditionalCSS из index.php, все правила под .dz. Цвета, радиус и шрифт —
   шаблона kubus: тёмный #2D2823, светлый #F5F3F0, скругление 20px.
*/
.dz {
    font-family: Geologica Roman;
    font-weight: 300;
    color: #2D2823;
    margin-bottom: 64px;
}
.dz h2, .dz h3 {
    font-family: Geologica Roman;
}

.dz-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 64px;
}
.dz-hero-text p {
    font-size: 16px;
    line-height: 26px;
    margin: 0 0 16px;
}
.dz-hero .dz-lead {
    font-size: 20px;
    line-height: 30px;
}
.dz-hero-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 20px;
}
.dz-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.dz-actions .action-button {
    display: inline-block;
    color: #fff !important;
    text-decoration: none;
}
.dz-link-button {
    display: inline-block;
    padding: 15px 20px;
    border: 1px solid #2D2823;
    border-radius: 20px;
    font-size: 16px;
    line-height: 24px;
    color: #2D2823 !important;
    text-decoration: none;
    transition: background .3s ease-in-out;
}
.dz-link-button:hover {
    background: #F5F3F0;
}

.dz-title {
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    margin: 0 0 24px;
}
.dz-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}
.dz-card {
    background: #F5F3F0;
    border-radius: 20px;
    padding: 28px 24px;
}
.dz-num {
    display: block;
    font-size: 14px;
    line-height: 20px;
    color: #808080;
    margin-bottom: 40px;
}
.dz-card h3 {
    font-size: 20px;
    line-height: 26px;
    font-weight: 400;
    margin: 0 0 12px;
}
.dz-card p {
    font-size: 15px;
    line-height: 22px;
    margin: 0;
}

.dz-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}
.dz-more {
    color: #808080 !important;
    white-space: nowrap;
}
.dz-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 64px;
}
.dz-project {
    position: relative;
    display: block;
    border-radius: 20px;
    overflow: hidden;
    background: #F5F3F0;
    aspect-ratio: 10 / 7;
    color: #fff !important;
    text-decoration: none;
}
.dz-project img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease-in-out;
}
.dz-project:hover img {
    transform: scale(1.03);
}
.dz-project span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 20px 16px;
    font-size: 18px;
    line-height: 24px;
    color: #fff; /* сброс шаблона «* {…}» задаёт цвет каждому элементу — от ссылки он не наследуется */
    background: linear-gradient(transparent, rgba(0, 0, 0, .6));
}

.dz-cta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    background: #2D2823;
    color: #fff;
    border-radius: 20px;
    padding: 48px;
}
.dz-cta h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 400;
    color: #fff;
    margin: 0 0 12px;
}
.dz-cta p {
    font-size: 18px;
    line-height: 26px;
    color: rgba(255, 255, 255, .7);
    margin: 0 0 32px;
}
.dz-cta-button {
    display: inline-block;
    background: #fff;
    color: #2D2823 !important;
    border-radius: 20px;
    padding: 16px 24px;
    font-size: 16px;
    line-height: 24px;
    text-decoration: none;
    transition: background .3s ease-in-out;
}
.dz-cta-button:hover {
    background: #F5F3F0;
}
.dz-cta-contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    text-align: right;
    white-space: nowrap;
}
.dz-cta-contacts a {
    color: #fff !important;
    font-size: 20px;
    line-height: 28px;
    text-decoration: none;
}
.dz-cta-contacts span {
    font-size: 13px;
    color: rgba(255, 255, 255, .6);
    margin-bottom: 8px;
}

@media screen and (max-width: 1070px) {
    .dz-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media screen and (max-width: 900px) {
    .dz-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .dz-hero-img {
        order: -1;
    }
    .dz-projects {
        grid-template-columns: 1fr;
    }
    .dz-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }
    .dz-cta-contacts {
        align-items: flex-start;
        text-align: left;
    }
}
@media screen and (max-width: 600px) {
    .dz-cards {
        grid-template-columns: 1fr;
    }
    .dz-num {
        margin-bottom: 16px;
    }
    .dz-title, .dz-cta h2 {
        font-size: 26px;
        line-height: 32px;
    }
    .dz-hero .dz-lead {
        font-size: 18px;
        line-height: 27px;
    }
    .dz-actions a {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
}

/* Форма «У меня есть вопрос» с главной: свой отступ вместо 100px, под фиксированную шапку при переходе по якорю */
#dz-question {
    scroll-margin-top: 96px;
}
.dz #dz-question .question {
    margin: 0 0 64px;
}
