/* Главная (гость): стили секций template/mod_newdiz_*.php в порядке вывода (template/main.php).
   Перенесены из блоков <style> секций 03.11.2026 без изменений. Мобильные правила секции - рядом с её блоком. */

/* ===== benefits (template/mod_newdiz_benefits.php) ===== */

.section.newdiz-benefits {
    min-height: 100vh;
    position: relative;
    background-image: url(../images/fp_images/back_img1_1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Nunito', sans-serif;
}

.newdiz-container_section {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    margin: 150px 0 0 0;
}

.newdiz-benefits__inner {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 40px;
    width: 100%;
    text-align: center;
    height: 100%;
}

.newdiz-benefits__hero {
    display: grid;
    gap: 20px;
    grid-template-columns: 1.2fr 0.8fr;
    padding: 0 65px;
}

.newdiz-benefits__hero-info {
    display: flex;
    justify-content: space-between;
    flex-direction: column;
}

.line_first {
    height: 1.5px;
    background-color: white;
    margin: 75px auto 0;
    width: 90%;
}

.line_second {
    height: 1.5px;
    background-color: white;
    margin: 40px auto 0;
    width: 90%;
}

.newdiz-benefits .header-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 0 0 20px;
    text-align: center;
}

.newdiz-benefits .header-line h1 {
    color: white;
    font-size: max(20px, 3.5vmin);
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.newdiz-benefits .header-line p {
    color: white;
    font-size: max(20px, 3.5vmin);
    font-weight: 300;
    margin: 0;
    white-space: nowrap;
}

.newdiz-nowrap-text {
    white-space: nowrap;
}

.newdiz-benefits__hero-img img {
    width: 100%;
}


.first {
    text-align: center;
    color: white;
    font-size: max(50px, 6vmin);
    font-weight: 600;
    text-transform: uppercase;
    line-height: 1.35;
    margin: 0 0 10px;
}

.second {
    text-align: center;
    color: white;
    font-size: max(20px, 3.5vmin);
    font-weight: 300;
    margin: 0 0 30px;
}

.newdiz-benefits__inner>div:last-of-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 0 auto 40px;
    padding: 0 70px;
}

.newdiz-benefits__startpack {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 315px;
}

.newdiz-benefits__startpack-logo img {
    max-height: 50px;
    width: auto;
}

.newdiz-benefits__startpack-reviews {
    margin-left: 20px;
}

.newdiz-hrmsystem__btn {
    text-align: right;
}

.newdiz-hrmsystem__btn p {
    color: white;
    margin: 0 0 10px;
    font-size: 12px;
}

.newdiz-hrmsystem__btn a {
    font-size: 18px;
    background: #daac07;
    color: white;
    text-transform: none;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
}

.newdiz-hrmsystem__btn a:hover {
    background: #a48205;
    color: #2e3238;
}

.newdiz-hrmsystem__btn a:hover .demo-arrow {
    transform: translateX(2px);
}

.newdiz-hrmsystem__btn a:hover .demo-arrow path {
    stroke: #2e3238;
}

.demo-arrow {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.newdiz-header-fixed {
    position: fixed !important;
    background: white;
    color: #333;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1000px) {
    .first {
        font-size: max(28px, 4vmin);
    }

    .newdiz-benefits .header-line h1,
    .newdiz-benefits .header-line p,
    .second {
        font-size: max(16px, 2.5vmin);
    }

    .newdiz-benefits__hero {
        padding: 0 30px;
        gap: 16px;
    }

    .newdiz-benefits .header-line {
        flex-wrap: wrap;
    }

    .newdiz-benefits .header-line h1,
    .newdiz-benefits .header-line p {
        white-space: normal;
    }
}

@media (max-width: 900px) {
    /* Планшет: одна колонка, как на телефоне, крупнее текст (было 24px - мельче телефона), скриншот кабинета под текстом */
    .first {
        font-size: clamp(32px, 5.2vw, 46px);
    }

    .newdiz-benefits .header-line h1,
    .newdiz-benefits .header-line p,
    .second {
        font-size: clamp(16px, 2.6vw, 22px);
    }

    .newdiz-benefits__hero {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .newdiz-benefits__hero-img {
        max-width: 560px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .section.newdiz-benefits {
        background-attachment: scroll;
        min-height: auto;
    }

    .newdiz-container_section {
        padding: 70px 20px 30px;
        height: auto;
        min-height: calc(100vh - 70px);
        margin: 100px 0 0 0;
    }

    .newdiz-benefits__inner>div:last-of-type,
    .flex-block {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 0 20px;
    }

    .newdiz-hrmsystem__btn {
        text-align: center;
        width: 100%;
    }

    .newdiz-benefits__startpack {
        width: 100%;
        max-width: 315px;
        justify-content: center;
    }

    .line {
        width: 90%;
        margin: 20px auto;
    }

    .first br,
    .second br {
        display: none;
    }
}

@media (max-width: 700px) {
    .newdiz-benefits__hero {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }

    .newdiz-benefits__hero-img {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* телефон: первый экран ближе к шапке (было 100px сверху), подзаголовок ближе к кнопкам */
    .newdiz-container_section {
        margin: 20px 0 0 0;
    }

    .newdiz-benefits h1 {
        font-size: 18px;
    }

    .first {
        font-size: clamp(28px, 8vw, 40px);
        line-height: 1.2;
    }

    .second {
        font-size: 16px;
        margin: 0 0 15px;
    }
}

@media (max-width: 360px) {
    /* узкий телефон (320): звёзды и «9 отзывов | 4,8» Startpack и кнопка - без переноса на 2 строки */
    .newdiz-benefits__startpack-logo img {
        max-height: 36px;
    }

    .newdiz-benefits__startpack-reviews {
        margin-left: 12px;
        white-space: nowrap;
    }

    .newdiz-benefits__startpack-reviews-star span {
        font-size: 20px;
    }

    .newdiz-benefits__startpack-reviews-num p {
        font-size: 15px;
    }

    .newdiz-benefits .newdiz-hrmsystem__btn a {
        font-size: 16px;
        white-space: nowrap;
    }
}

/* ===== hrmsystem (template/mod_newdiz_hrmsystem.php) ===== */

.newdiz-hrmsystem {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background: linear-gradient(to right,
            rgba(211, 211, 211, 0.7),
            /* Светло-серый слева (light gray) */
            rgba(255, 248, 220, 0.7)
            /* Светло-бежевый справа (cornsilk) */
        );
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
}

.newdiz_hrmsystem-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
}

.newdiz_hrmsystem-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_hrmsystem-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #333;
    margin: 0;
    white-space: pre-line;
}

.newdiz_hrmsystem-description {
    text-align: left;
    margin-bottom: clamp(20px, 6vw, 30px);
}

.newdiz_hrmsystem-description p {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.newdiz_hrmsystem-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
}

.feature-main {
    background: #e6e6e6;
    padding: clamp(10px, 3vw, 15px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;

    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.feature-main h2 {
    font-size: clamp(22px, 3vw, 28px);
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.feature-main p {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.6;
    color: #555;
    margin: 0 0 15px 0;
}

.feature-main img {
    margin: 0 auto;
    width: 50%;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.newdiz-img-flex {
    display: flex;
}

.feature-main a {
    align-self: flex-start;
    padding: clamp(10px, 2vw, 15px) clamp(20px, 3vw, 30px);
    background: #212327;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(14px, 1.8vw, 16px);
    cursor: pointer;
    transition: background 0.3s;
    align-self: center;
}

.features-small {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(15px, 3vw, 25px);
}

@media (min-width: 768px) {
    .features-small {
        grid-template-columns: 1fr 1fr;
    }
}

.feature-small {
    background: #e6e6e6;
    padding: clamp(15px, 2.5vw, 25px);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    justify-content: space-between;

    transform: translateY(50px);
    opacity: 0;
    transition: all 0.8s ease-out;
}

.feature-small:nth-child(1) {
    transition-delay: 0.1s;
}

.feature-small:nth-child(2) {
    transition-delay: 0.2s;
}

.feature-small:nth-child(3) {
    transition-delay: 0.3s;
}

.feature-small:nth-child(4) {
    transition-delay: 0.4s;
}

.feature-small h2 {
    font-size: clamp(14px, 2vw, 20px);
    font-weight: bold;
    color: #333;
    margin: 0 0 10px 0;
    line-height: 1.3;
    text-align: center;
}

.feature-small p {
    font-size: clamp(12px, 1.5vw, 14px);
    line-height: 1.5;
    color: #555;
    margin: 0 0 15px 0;
    text-align: center;
}

.feature-small a {
    align-self: center;
    padding: clamp(8px, 1.5vw, 12px) clamp(15px, 2.5vw, 25px);
    background: #212327;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: clamp(12px, 1.5vw, 14px);
    cursor: pointer;
    transition: background 0.3s;
}

@media (max-width: 1200px) {
    .newdiz_hrmsystem-inner {
        grid-template-columns: 1fr;
    }

    .features-small {
        /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .newdiz_hrmsystem {
        min-height: auto;
        align-items: stretch;
        padding: 20px 0;
    }

    .newdiz_hrmsystem-title h2 br {
        display: none;
    }

    .newdiz_hrmsystem-description {
        text-align: center;
    }

    .features-small {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(12px, 2.5vw, 20px);
    }

    .feature-main img {
        width: min(50%, 220px);
        height: auto;
    }
}

@media (max-width: 500px) {
    .features-small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {

    .newdiz_hrmsystem-title h2,
    .newdiz_hrmsystem-description p {
        padding: 0 10px;
    }
}

/* Анимация для заголовка и описания (исправлено: opacity: 0 для скрытия изначально) */
.newdiz_hrmsystem-title h2,
.newdiz_hrmsystem-description p {
    transform: translateY(50px);
    opacity: 0;
    /* Изменено с 1 на 0 */
    transition: all 0.6s ease-out;
}

/* Класс активации анимации (исправлено: opacity: 1 для появления) */
.animate-in {
    transform: translateY(0) !important;
    opacity: 1 !important;
    /* Изменено с 0 на 1 */
}

/* ===== comment_one (template/mod_newdiz_comment_one.php) ===== */

.newdiz_comment {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #212327;
    z-index: -1;
    transition: width 1s ease;
}

.newdiz_comment.animate .bg-animation {
    width: 100%;
}

.newdiz_comment-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.newdiz_comment-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_comment-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_comment-title.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.newdiz_comment-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: stretch;
}

.newdiz_comment-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.newdiz_comment-part {
    padding: clamp(15px, 3vw, 25px);
    background: #2e3238;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.6s ease;
    will-change: opacity;
}

.newdiz_comment-inner.animate .newdiz_comment-part {
    opacity: 1;
}

.newdiz_comment-part:last-child {
    margin-bottom: 0;
}

.newdiz_comment-part h2 {
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: bold;
    color: #ffffff;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.newdiz_comment-part p {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
    color: #ffffff;
    margin: 0 0 10px 0;
}

.newdiz_comment-part p:last-child {
    margin-bottom: 0;
}

.newdiz_comment-part .newdiz-img-flex {
    display: flex;
    justify-content: center;
    margin-top: 15px;
}

.newdiz_comment-part img {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
}

@media (max-width: 1200px) {
    .newdiz_comment-inner {
        gap: clamp(15px, 3vw, 30px);
    }

    .newdiz_comment-part img {
        width: 75%;
    }

    .newdiz_comment-part h2 {
        font-size: clamp(16px, 2.2vw, 24px);
    }

    .newdiz_comment-part p {
        font-size: clamp(13px, 1.6vw, 15px);
    }

    .newdiz_comment-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }
}

@media (max-width: 900px) {
    /* одна колонка: между всеми карточками 15px, как между карточками внутри группы (margin-bottom у .newdiz_comment-part);
       раньше между группами gap + padding группы - у «API для разработчиков» снизу отступ втрое больше, чем сверху */
    .newdiz_comment-inner {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .newdiz_comment {
        min-height: auto;
        align-items: stretch;
        padding: 20px 0;
    }

    .newdiz_comment-part img {
        width: 70%;
    }

    .newdiz_comment-title h2 br {
        display: none;
    }
}

@media (max-width: 480px) {
    .newdiz_comment-wrapper {
        padding: 0 10px;
    }

    .newdiz_comment-title h2,
    .newdiz_comment-part h2,
    .newdiz_comment-part p {
        padding: 0 10px;
    }
}
@media (max-width: 800px) {
    .newdiz_comment-part h2 {
        font-size: clamp(16px, 2.2vw, 24px);
    }

    .newdiz_comment-part p{
        font-size: clamp(12px, 2vw, 14px);
    }

    .newdiz_comment-part img {
        width: 100%;
    }
}

/* ===== infoblock_one (template/mod_newdiz_infoblock_one.php) ===== */

.newdiz_infoblock {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.newdiz_infoblock-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.newdiz_infoblock-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: clamp(10px, 4vw, 20px);
    flex-wrap: wrap;
    gap: 10px;
}

.newdiz_infoblock-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #000000;
    margin: 0;
    white-space: pre-line;
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_infoblock-title a {
    font-size: clamp(14px, 1.8vw, 16px);
    background: #ded09f;
    color: #ffffff;
    text-transform: none;
    padding: clamp(8px, 2vw, 10px) clamp(12px, 3vw, 15px);
    text-decoration: none;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease;
    display: flex;
    justify-content: center;
    white-space: nowrap;
}

.newdiz_infoblock-title a:hover {
    background: #c9b58a;
    color: #2e3238;
}

.newdiz_infoblock-title a:hover .demo-arrow {
    transform: translateX(2px);
}

.newdiz_infoblock-title a:hover .demo-arrow path {
    stroke: #2e3238;
}

.demo-arrow {
    transition: transform 0.3s ease;
    margin-right: clamp(5px, 1vw, 8px);
    flex-shrink: 0;
}

.newdiz_infoblock-description {
    text-align: left;
    margin-bottom: clamp(20px, 5vw, 40px);
}

.newdiz_infoblock-description p {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.5;
    color: #333;
    margin: 0;
}

.newdiz_infoblock-content {
    display: flex;
    gap: clamp(10px, 3vw, 20px);
    flex-wrap: wrap;
    margin-bottom: clamp(15px, 7vw, 25px);
}

.newdiz_infoblock-part {
    flex: 1 1 calc(33.333% - clamp(10px, 3vw, 20px));
    min-width: 250px;
    padding: clamp(15px, 3vw, 25px);
    background: #e6e6e6;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    box-sizing: border-box;
}

.newdiz_infoblock-part .icon-svg,
.newdiz_infoblock-part .svg-icon-1,
.newdiz_infoblock-part .svg-icon-2,
.newdiz_infoblock-part .svg-icon-3 {
    width: min(45%, 160px);
    height: auto;
    max-height: 140px;
    margin: 0 auto clamp(10px, 2vw, 15px);
    fill: #ded09f;
    flex-shrink: 0;
}

.newdiz_infoblock-part h2 {
    font-size: clamp(16px, 2.2vw, 24px);
    font-weight: bold;
    color: #000;
    margin: 0 0 clamp(10px, 2vw, 15px) 0;
    line-height: 1.3;
}

.newdiz_infoblock-part ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.newdiz_infoblock-part li {
    font-size: clamp(12px, 2vw, 16px);
    line-height: 1.5;
    color: #555;
    margin-bottom: clamp(5px, 1vw, 10px);
    padding-left: clamp(15px, 3vw, 20px);
    position: relative;
}

.newdiz_infoblock-part li::before {
    content: "•";
    color: #ded09f;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.newdiz_infoblock-ps {
    text-align: center;
    padding: clamp(10px, 5vw, 20px) 0;
}

.newdiz_infoblock-ps h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    color: #000;
    margin: 0 0 clamp(15px, 3vw, 25px) 0;
    line-height: 1.3;
    text-align: left;
}

.newdiz_infoblock-ps_footer {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    align-items: center;
    flex-wrap: wrap;
    gap: clamp(10px, 3vw, 20px);
}

.newdiz_infoblock-ps_footer>div {
    flex: 1 1 45%;
    min-width: 200px;
}

.newdiz_infoblock-ps_footer>div:first-child {
    text-align: left;
}

.newdiz_infoblock-ps_footer>div:last-child {
    display: flex;
    flex-direction: column;
    align-items: end;
    text-align: center;
}

.newdiz_infoblock-ps_footer p {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.5;
    color: #333;
    margin: 0 0 clamp(8px, 2vw, 12px) 0;
}

.newdiz_infoblock-ps_footer>div:last-child a:first-child {
    font-size: clamp(18px, 4vw, 24px);
    font-weight: bold;
    background: #ded09f;
    color: #2e3238;
    padding: clamp(10px, 2.5vw, 15px) clamp(16px, 4vw, 20px);
    border-radius: 6px;
    display: inline-block;
    margin-bottom: clamp(10px, 2.5vw, 15px);
    transition: background 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 60%;
}

.newdiz_infoblock-ps_footer>div:last-child p:last-child {
    font-size: clamp(11px, 2vw, 13px);
    color: #666;
    font-style: italic;
    max-width: 100%;
}

@media (max-width: 768px) {
    .newdiz_infoblock-title {
        flex-direction: column;
        align-items: flex-start;
    }

    .newdiz_infoblock-title h2 br,
    .newdiz_infoblock-description p br,
    .newdiz_infoblock-ps h2 br {
        display: none;
    }

    .newdiz_infoblock-content {
        flex-direction: column;
    }

    .newdiz_infoblock-part {
        flex: 1 1 100%;
    }

    .newdiz_infoblock-ps_footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .newdiz_infoblock-ps_footer>div {
        flex: 1 1 100%;
        text-align: center;
    }

    .newdiz_infoblock-ps_footer>div:last-child {
        align-items: center;
    }
}

@media (max-width: 480px) {
    .newdiz_infoblock-wrapper {
        padding: 0 15px;
    }

    .newdiz_infoblock-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_infoblock-part h2 {
        font-size: clamp(16px, 2.2vw, 24px);
    }

    .newdiz_infoblock-ps h2 {
        font-size: clamp(18px, 2.2vw, 24px);
    }

    .newdiz_infoblock-ps_footer>div:last-child a:first-child {
        font-size: clamp(16px, 2.2vw, 20px);
        padding: clamp(8px, 3vw, 12px) clamp(12px, 4vw, 16px);
    }
}

.svg-icon-1 .cls-1 {
    fill: #dacc99;
}

.svg-icon-1 .cls-1,
.svg-icon-1 .cls-2 {
    stroke-width: 0px;
}

.svg-icon-1 .cls-2 {
    fill: #fff;
}

.svg-icon-2 .path-1 {
    fill: none;
    stroke: #fff;
    stroke-miterlimit: 10;
    stroke-width: 9px;
}

.svg-icon-2 .path-2 {
    fill: #dacc99;
    stroke-width: 0px;
}

.svg-icon-2 .path-3 {
    fill: #fff;
    stroke-width: 0px;
}

.svg-icon-3 .cls-1 {
    stroke-width: 3.7px;
}

.svg-icon-3 .cls-1,
.svg-icon-3 .cls-2,
.svg-icon-3 .cls-3 {
    fill: none;
}

.svg-icon-3 .cls-1,
.svg-icon-3 .cls-3 {
    stroke: #dacc99;
    stroke-miterlimit: 10;
}

.svg-icon-3 .cls-4 {
    fill: #dacc99;
    stroke-width: 0px;
}

.svg-icon-3 .cls-2 {
    stroke: #fff;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 11px;
}

.svg-icon-3 .cls-3 {
    stroke-width: 3px;
}

.newdiz_infoblock-title,
.newdiz_infoblock-description,
.newdiz_infoblock-part,
.newdiz_infoblock-ps {
    opacity: 0;
    transform: translateY(50px);
    /* Или другое значение для начального положения */
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .newdiz_infoblock-ps_footer > div:last-child a:first-child {
        width: 70%;
    }
}
@media (max-width: 800px) {
    .newdiz_infoblock-ps_footer > div:last-child a:first-child {
        width: 80%;
    }
}

/* ===== infoblock_two (template/mod_newdiz_infoblock_two.php) ===== */

.newdiz_infoblock_two {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #212327;
    z-index: -1;
    transition: width 1s ease;
}

.newdiz_infoblock_two.animate .bg-animation {
    width: 100%;
}

.newdiz_infoblock_two-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.newdiz_infoblock_two-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_infoblock_two-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_infoblock_two-title.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.newdiz_infoblock_two-inner {
    display: grid;
    grid-template-columns: 0.5fr 1fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: stretch;
    /* Начальное состояние: скрыто */
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_infoblock_two-inner.animate {
    /* Анимированное состояние: видимо */
    opacity: 1;
    transform: translateY(0);
}

.newdiz_infoblock_two-img img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: clamp(8px, 2vw, 16px);
}

.newdiz_infoblock_two-text {
    color: #ffffff;
    line-height: 1.6;
}

.newdiz_infoblock_two-text p {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: clamp(10px, 3vw, 20px);
    font-weight: 400;
}

.newdiz_infoblock_two-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.newdiz_infoblock_two-text li {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: clamp(8px, 2vw, 12px);
    padding-left: clamp(15px, 3vw, 25px);
    position: relative;
    line-height: 1.5;
}

.newdiz_infoblock_two-text li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ded09f;
    font-size: clamp(16px, 3vw, 20px);
}

@media (max-width: 900px) {
    .newdiz_infoblock_two-inner {
        grid-template-columns: 1fr;
    }

    .newdiz_infoblock_two-img {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .newdiz_infoblock_two-inner {
        gap: clamp(15px, 4vw, 30px);
    }

    .newdiz_infoblock_two-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_infoblock_two-title h2 br {
        display: none;
    }

    .newdiz_infoblock_two-text p {
        font-size: clamp(16px, 2.2vw, 20px);
    }

    .newdiz_infoblock_two-text li {
        font-size: clamp(16px, 4vw, 16px);
    }
}

@media (max-width: 480px) {
    .newdiz_infoblock_two-wrapper {
        padding: 0 clamp(15px, 4vw, 20px);
    }

    .newdiz_infoblock_two-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_infoblock_two-text p {
        font-size: clamp(14px, 1.8vw, 16px);
    }

    .newdiz_infoblock_two-text li {
        font-size: clamp(14px, 1.8vw, 16px);
        padding-left: clamp(20px, 5vw, 25px);
    }
}

/* ===== comment_two (template/mod_newdiz_comment_two.php) ===== */

.newdiz_brand {
    min-height: 100vh;
    padding: clamp(20px, 5vw, 40px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.newdiz_brand-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.newdiz_brand-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_brand-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #000000;
    margin: 0;
    white-space: pre-line;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0s;
}

.newdiz-brand__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: clamp(20px, 4vw, 40px);
    padding: 20px 0 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0s;
}

.newdiz-brand__item {
    flex: 0 0 auto;
    width: clamp(80px, 10vw, 120px);
    height: auto;
    /* transition: transform 0.3s ease, opacity 0.6s ease, transform 0.6s ease; */
    /* opacity: 0;
    transform: translateY(50px); */
}

.newdiz-brand__item img {
    width: 70%;
    height: 80px;
    object-fit: contain;
}

.newdiz_brand-description {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 40px);
}

.newdiz_brand-description p {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
    color: #000000;
    margin: 0;
    font-style: italic;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    font-weight: 600;
}

.newdiz_brand-comments {
    display: flex;
    flex-direction: column;
    gap: clamp(20px, 4vw, 40px);
}

.comment-item {
    display: flex;
    align-items: flex-start;
    gap: clamp(15px, 3vw, 30px);
    padding: clamp(15px, 3vw, 30px);
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.newdiz_comment-img {
    width: clamp(160px, 22vw, 250px);
    height: clamp(160px, 22vw, 250px);
}

.newdiz_comment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.newdiz_comment-info {
    flex: 1;
}

.newdiz_comment-info h3 {
    font-size: clamp(16px, 2.2vw, 20px);
    font-weight: bold;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 10px 0;
}

.newdiz_comment-info p {
    font-size: clamp(14px, 1.8vw, 16px);
    line-height: 1.5;
    color: #212327;
    margin: 0 0 10px 0;
}

.newdiz_comment-info .color-beige {
    font-style: italic;
}

.newdiz_comment-info .color-beige span {
    font-weight: bold;
}

.comment-item:first-child .newdiz_comment-info {
    text-align: left;
}

.comment-item:nth-child(2) .newdiz_comment-info {
    text-align: right;
}

@media (max-width: 768px) {
    .comment-item {
        flex-direction: column;
        text-align: center;
    }

    .newdiz_comment-img {
        align-self: center;
    }

    .comment-item:nth-child(2) .newdiz_comment-info {
        text-align: center;
    }

    .newdiz_comment-info h3 br {
        display: none;
    }
}

@media (max-width: 480px) {
    .newdiz_comment-img {
        width: min(160px, 70vw);
        height: min(160px, 70vw);
    }

    .newdiz_brand-btn a {
        font-size: 14px;
        padding: 10px 12px;
    }
}

.newdiz_brand-btn {
    display: flex;
    justify-content: center;
    padding-bottom: clamp(15px, 1.5vw, 30px);
}

.newdiz_brand-btn a {
    font-size: 18px;
    background: #ded09f;
    color: white;
    text-transform: none;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease, opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    justify-content: center;
    opacity: 0;
    transform: translateY(50px);
    /* transition-delay: 1.4s; */
}

.newdiz_brand-btn a:hover {
    background: #c9b58a;
    color: #2e3238;
}

.newdiz_brand-btn a:hover .demo-arrow {
    transform: translateX(2px);
}

.newdiz_brand-btn a:hover .demo-arrow path {
    stroke: #2e3238;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.newdiz-brand__inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: clamp(10px, 2vw, 20px);
    margin-bottom: clamp(20px, 4vw, 40px);
    padding: 20px 0 15px;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0s;
    position: relative;
    /* для позиционирования ::before и ::after */
    overflow: hidden;
    /* скрывает слайды за пределами скругления */
}

/* Глухая тёмная плашка на первых 20% */
.newdiz-brand__inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 100%;
    background: #212325;
    z-index: 3;
    pointer-events: none;
    border-radius: 10px 0 0 10px;
}

/* Градиентная вуаль */
.newdiz-brand__inner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            #212325 0%,
            #212325 20%,
            transparent 60%);
    pointer-events: none;
    z-index: 2;
    border-radius: 10px;
}

.newdiz_brand-carouselbox {
    position: relative;
}

.newdiz_brand-overlay {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    z-index: 4;
    pointer-events: none;
    box-sizing: border-box;
    width: min(52%, 420px);
    max-width: 100%;
    padding: clamp(12px, 2vw, 20px) clamp(14px, 2.2vw, 24px);
    color: #fff;
    font-size: clamp(13px, 1.7vw, 20px);
    line-height: 1.35;
    font-weight: 600;
    text-shadow: 0 1px 8px rgba(33, 35, 37, 0.45);
}

@media (max-width: 900px) {
    .newdiz-brand__inner::before {
        width: 32%;
    }

    .newdiz-brand__inner::after {
        background: linear-gradient(to right,
                #212325 0%,
                #212325 32%,
                transparent 72%);
    }

    .newdiz_brand-overlay {
        width: 50%;
        font-size: clamp(13px, 1.6vw, 17px);
    }
}

@media (max-width: 600px) {
    .newdiz-brand__inner::before {
        width: 42%;
    }

    .newdiz-brand__inner::after {
        background: linear-gradient(to right,
                #212325 0%,
                #212325 42%,
                transparent 78%);
    }

    .newdiz_brand-overlay {
        width: 54%;
        font-size: clamp(13px, 3.6vw, 16px);
        text-shadow: 0 1px 6px rgba(33, 35, 37, 0.55);
    }

    .newdiz_brand-overlay br {
        display: none;
    }
}

/* ===== brand (template/mod_newdiz_brand.php) ===== */

.newdiz_strategic {
    min-height: 100vh;
    padding: clamp(10px, 5vw, 20px) 0;
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    overflow: hidden;
}

.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background-color: #212327;
    z-index: -1;
    transition: width 1s ease;
}

.newdiz_strategic.animate .bg-animation {
    width: 100%;
}

.newdiz_strategic-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
}

.newdiz_strategic-title {
    text-align: center;
    margin-bottom: clamp(10px, 4vw, 20px);
}

.newdiz_strategic-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_strategic-title.animate h2 {
    opacity: 1;
    transform: translateY(0);
}

.newdiz_strategic-description {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #ffffff;
    line-height: 1.6;
    padding-top: clamp(20px, 4vw, 40px);
    padding-bottom: clamp(20px, 4vw, 40px);
}

.newdiz_strategic-description p {
    font-size: clamp(14px, 1.8vw, 16px);
    margin-bottom: clamp(10px, 3vw, 20px);
    font-weight: 400;
}

.newdiz_strategic-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: clamp(20px, 4vw, 40px);
    align-items: stretch;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_strategic-inner.animate {
    opacity: 1;
    transform: translateY(0);
}

.newdiz_strategic-img {
    position: relative;
}

.newdiz_strategic-img img {
    width: 100%;
    max-height: clamp(300px, 40vw, 500px);
    /* Ограничиваем высоту, чтобы не была огромной */
    height: auto;
    display: block;
    object-fit: cover;
    /* Заполняет пространство без искажений */
}

.newdiz_strategic-right_ber {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: clamp(20px, 4vw, 30px);
}

.newdiz_strategic-btn {
    margin-top: auto;
    /* Кнопка внизу правой колонки */
}

.newdiz_strategic-btn a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: clamp(12px, 2vw, 16px) clamp(20px, 3vw, 32px);
    background-color: #ffffff;
    color: #212327;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(14px, 1.8vw, 16px);
    border-radius: clamp(8px, 2vw, 12px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.newdiz_strategic-btn a:hover {
    background-color: #f0f0f0;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
    transform: translateY(-2px);
    /* Лёгкий подъём */
}

.newdiz_strategic-btn svg {
    transition: transform 0.3s ease;
}

.newdiz_strategic-btn a:hover svg {
    transform: translateX(4px);
    /* Анимация стрелки как на скрине */
}

/* Медиа-запросы */
@media (max-width: 900px) {
    .newdiz_strategic-inner {
        grid-template-columns: 1fr;
    }

    .newdiz_strategic-img {
        max-width: 520px;
        margin: 0 auto;
        width: 100%;
    }

    .newdiz_strategic-img img {
        object-fit: contain;
    }
}

@media (max-width: 768px) {
    .newdiz_strategic-inner {
        gap: clamp(15px, 4vw, 30px);
    }

    .newdiz_strategic-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_strategic-title h2 br {
        display: none;
    }

    .newdiz_strategic-description p {
        font-size: clamp(16px, 2.2vw, 20px);
    }

    .newdiz_strategic-img img {
        max-height: clamp(250px, 35vw, 350px);
        /* Меньше на планшете */
    }

    .newdiz_strategic-right_ber {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .newdiz_strategic-wrapper {
        padding: 0 clamp(15px, 4vw, 20px);
    }

    .newdiz_strategic-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_strategic-description p {
        font-size: clamp(14px, 1.8vw, 16px);
    }

    .newdiz_strategic-img img {
        max-height: clamp(200px, 30vw, 300px);
        /* Компактно на мобиле */
        border-radius: 12px;
    }

    .newdiz_strategic-btn a {
        width: 100%;
        justify-content: center;
    }
}

/* ===== request (template/mod_newdiz_request.php) ===== */

.newdiz_request {
    background-image: url(../images/fp_images/title_1.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
    /* padding: clamp(20px, 5vw, 40px) 0; */
    background-color: transparent;
    display: flex;
    align-items: center;
    font-family: 'Nunito', sans-serif;
    position: relative;
    /* overflow: hidden; */
}

.newdiz_request-wrapper {
    padding: 0 clamp(20px, 5vw, 70px);
    width: 100%;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: clamp(50px, 10vh, 100px);
    padding-bottom: clamp(50px, 10vh, 100px);
}

.newdiz_request-title {
    text-align: center;
    margin-bottom: clamp(50px, 10vw, 100px);
}

.newdiz_request-title h2 {
    font-size: clamp(20px, 4vw, 36px);
    font-weight: bold;
    line-height: 1.3;
    color: #ffffff;
    margin: 0;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    will-change: opacity, transform;
}

.newdiz_request-title h2 span {
    white-space: nowrap;
}

.newdiz_request-description {
    text-align: center;
    margin-bottom: clamp(20px, 4vw, 40px);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: clamp(15px, 3vw, 30px);
    color: #ffffff;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.description-phone,
.description-mail {
    flex: 1 1 auto;
    min-width: 160px;
}

.newdiz_request-description p {
    font-size: clamp(16px, 2.2vw, 20px);
    line-height: 1.5;
    color: #ffffff;
    margin: 0;
    font-style: italic;
}

.description-btn a {
    font-size: 18px;
    background: #ded09f;
    color: white;
    text-transform: none;
    padding: 10px 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    border-radius: 4px;
    transition: background 0.3s ease;
    width: 100%;
    display: flex;
    justify-content: center;
}

.description-btn a:hover {
    background: #c9b58a;
    color: #2e3238;
}

.description-btn a:hover .demo-arrow {
    transform: translateX(2px);
}

.description-btn a:hover .demo-arrow path {
    stroke: #2e3238;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

@media (max-width: 768px) {
    .newdiz_request {
        background-attachment: scroll;
        min-height: auto;
    }

    .newdiz_request-wrapper {
        padding-top: clamp(30px, 8vh, 60px);
        padding-bottom: clamp(30px, 8vh, 60px);
    }

    .newdiz_request-title {
        margin-bottom: clamp(30px, 8vw, 60px);
    }

    .newdiz_request-title br {
        display: none;
    }

    .newdiz_request-description {
        flex-direction: column;
        justify-content: center;
    }

    .description-btn {
        width: 100%;
        max-width: 320px;
    }
}

@media (max-width: 480px) {
    .newdiz_request-wrapper {
        padding-top: clamp(20px, 5vh, 40px);
        padding-bottom: clamp(20px, 5vh, 40px);
    }

    .newdiz_request-title {
        margin-bottom: clamp(20px, 5vw, 40px);
    }

    .newdiz_request-title h2 {
        font-size: clamp(20px, 4vw, 36px);
    }

    .newdiz_request-description p {
        font-size: clamp(14px, 1.8vw, 16px);
    }
}

/* ===== Планшет и телефон: блоки по высоте содержимого ===== */
/* На компьютере каждый блок - не ниже экрана (min-height: 100vh). На планшете (768x1024) у коротких блоков от этого пустые поля
   сверху и снизу. Первый экран и заявка с фото - на весь экран, как задумано; hrmsystem не трогаем - от высоты зависит скрипт карточек */
@media (max-width: 900px) {
    .newdiz_comment,
    .newdiz_infoblock,
    .newdiz_infoblock_two,
    .newdiz_brand,
    .newdiz_strategic {
        min-height: auto;
    }
}
