/* =========================================================
   СТРАНИЦА «ПРОГРАММНЫЕ ПРОДУКТЫ 1С»
   ========================================================= */

.software-products-page {
    --products-dark: #1a2332;
    --products-text: #64748b;
    --products-red: #dc2626;
    --products-orange: #f59e0b;
    --products-yellow: #fbbf24;
    --products-border: #e5e7eb;
    --products-gradient:
        linear-gradient(
            135deg,
            #dc2626 0%,
            #f59e0b 55%,
            #fbbf24 100%
        );

    position: relative;
    left: 50%;

    width: calc(100vw - 24px);
    max-width: 1920px;

    margin: 0;
    padding: 70px 12px 85px;

    color: var(--products-dark);

    box-sizing: border-box;

    transform: translateX(-50%);
}

.software-products-page *,
.software-products-page *::before,
.software-products-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   ШАПКА СТРАНИЦЫ
   ========================================================= */

.software-products-page__header,
.software-products-section__heading {
    max-width: 880px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.software-products-page__header {
    margin-bottom: 38px;
}

.software-products-page__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;
    padding: 9px 20px;

    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 999px;

    background: rgba(251, 191, 36, 0.08);
    color: #b45309;

    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.software-products-page__title {
    position: relative;

    margin: 0 0 24px !important;
    padding: 0 0 20px !important;

    color: var(--products-dark) !important;

    font-size: 42px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;

    text-align: center !important;
    text-transform: uppercase;
}

.software-products-page__title::after {
    content: "";

    position: absolute;
    bottom: 0;
    left: 50%;

    width: 90px;
    height: 4px;

    border-radius: 999px;

    background: var(--products-gradient);

    transform: translateX(-50%);
}

.software-products-page__intro,
.software-products-section__heading p {
    max-width: 790px;
    margin: 0 auto;

    color: var(--products-text);

    font-size: 17px;
    line-height: 1.7;
}


/* =========================================================
   ОБЩИЕ КНОПКИ
   ========================================================= */

.software-products-page__primary-button,
.software-product-card__button,
.software-products-cta__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 48px;
    padding: 12px 24px;

    border: 0 !important;
    border-radius: 999px;
    outline: none !important;

    background: var(--products-gradient) !important;
    color: #ffffff !important;

    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none !important;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.software-products-page__primary-button::before,
.software-products-page__primary-button::after,
.software-product-card__button::before,
.software-product-card__button::after,
.software-products-cta__button::before,
.software-products-cta__button::after {
    display: none !important;
    content: none !important;
}

.software-products-page__primary-button {
    margin-top: 28px;
    padding-right: 30px;
    padding-left: 30px;

    box-shadow:
        0 9px 22px rgba(245, 158, 11, 0.23);
}

.software-products-page__primary-button:hover,
.software-products-page__primary-button:focus,
.software-product-card__button:hover,
.software-product-card__button:focus,
.software-products-cta__button:hover,
.software-products-cta__button:focus {
    color: #ffffff !important;

    box-shadow:
        0 12px 26px rgba(245, 158, 11, 0.3);

    text-decoration: none !important;

    transform: translateY(-2px);
}

.software-products-page__primary-button:active,
.software-product-card__button:active,
.software-products-cta__button:active {
    outline: none !important;
    transform: translateY(0);
}


/* =========================================================
   НАВИГАЦИЯ ПО КАТЕГОРИЯМ
   ========================================================= */

.software-products-nav {
    position: relative;

    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: center;

    gap: 12px;

    width: 100%;
    max-width: 1120px;

    margin: 0 auto 72px;
    padding: 18px;

    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            rgba(251, 191, 36, 0.08) 100%
        );

    box-shadow:
        0 10px 30px rgba(15, 23, 42, 0.07);
}

.software-products-nav::before,
.software-products-nav::after {
    display: none !important;
    content: none !important;
}

.software-products-nav a {
    position: relative;

    display: inline-flex;
    flex: 1 1 220px;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 12px 18px;

    border: 2px solid rgba(245, 158, 11, 0.5);
    border-radius: 16px;
    outline: none !important;

    background: #ffffff;
    color: var(--products-dark) !important;

    box-shadow:
        0 4px 13px rgba(15, 23, 42, 0.06);

    font-size: 14px;
    font-weight: 800;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.software-products-nav a::before {
    content: "";

    display: block;
    flex: 0 0 auto;

    width: 9px;
    height: 9px;
    margin-right: 10px;

    border-radius: 50%;

    background: var(--products-gradient);

    box-shadow:
        0 3px 8px rgba(245, 158, 11, 0.28);
}

.software-products-nav a::after {
    display: none !important;
    content: none !important;
}

.software-products-nav a:hover,
.software-products-nav a:focus {
    border-color: var(--products-orange);

    background:
        linear-gradient(
            135deg,
            rgba(251, 191, 36, 0.16) 0%,
            rgba(245, 158, 11, 0.08) 100%
        );

    color: var(--products-dark) !important;

    box-shadow:
        0 9px 22px rgba(245, 158, 11, 0.18);

    text-decoration: none !important;

    transform: translateY(-3px);
}

.software-products-nav a:active {
    outline: none !important;
    transform: translateY(-1px);
}


/* =========================================================
   РАЗДЕЛЫ ПРОДУКТОВ
   ========================================================= */

.software-products-section {
    width: 100%;
    scroll-margin-top: 30px;
    margin-top: 78px;
}

.software-products-section:first-of-type {
    margin-top: 0;
}

.software-products-section__heading {
    margin-bottom: 38px;
}

.software-products-section__heading h2 {
    margin: 0 0 14px !important;
    padding: 0 !important;

    color: var(--products-dark) !important;

    font-size: 32px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;

    text-align: center !important;
    text-transform: uppercase;
}


/* =========================================================
   СЕТКА — 6 КАРТОЧЕК В РЯД
   ========================================================= */

.software-products-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    align-items: stretch;

    width: 100%;
    gap: 18px;
}


/* =========================================================
   КАРТОЧКА ПРОДУКТА
   ========================================================= */

.software-product-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    overflow: hidden;

    border: 1px solid var(--products-border);
    border-top: 4px solid transparent;
    border-radius: 22px;

    background: #ffffff;

    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.07);

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.software-product-card::before,
.software-product-card::after {
    display: none !important;
    content: none !important;
}

.software-product-card:hover {
    border-color: rgba(245, 158, 11, 0.35);
    border-top-color: var(--products-orange);

    box-shadow:
        0 17px 42px rgba(15, 23, 42, 0.12);

    transform: translateY(-5px);
}


/* =========================================================
   ИЗОБРАЖЕНИЕ ПРОДУКТА — ВОЗВРАЩЁН ПРЕЖНИЙ РАЗМЕР
   ========================================================= */

.software-product-card__image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 235px;
    padding: 22px 12px 10px;

    overflow: hidden;

    background: #ffffff;
}

.software-product-card__image img {
    display: block;

    width: 100% !important;
    height: 195px !important;
    max-width: 205px !important;
    max-height: 195px !important;
    margin: 0 auto !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;

    object-fit: contain !important;
    object-position: center !important;

    transform: scale(1);

    transition:
        transform 0.3s ease;
}

.software-product-card:hover .software-product-card__image img {
    transform: scale(1.045);
}


/* =========================================================
   СОДЕРЖИМОЕ КАРТОЧКИ
   ========================================================= */

.software-product-card__content {
    display: flex;
    flex: 1;
    flex-direction: column;

    min-width: 0;
    padding: 18px 18px 20px;

    border-top:
        1px solid rgba(229, 231, 235, 0.8);
}


/* Категория */

.software-product-card__category {
    display: inline-flex;
    align-self: flex-start;

    max-width: 100%;
    margin-bottom: 9px;
    padding: 5px 9px;

    border-radius: 999px;

    background: rgba(251, 191, 36, 0.11);
    color: #b45309;

    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}


/* Заголовок продукта */

.software-product-card h3 {
    margin: 0 0 10px !important;
    padding: 0 !important;

    color: var(--products-dark) !important;

    font-size: 17px !important;
    font-weight: 800 !important;
    line-height: 1.35 !important;

    text-align: left !important;
    text-transform: none !important;

    overflow-wrap: break-word;
}


/* Описание продукта */

.software-product-card p {
    margin: 0 0 18px;

    color: var(--products-text);

    font-size: 13px;
    line-height: 1.55;
    text-align: left;
}


/* Кнопка продукта */

.software-product-card__button {
    width: 100%;
    min-height: 44px;

    margin-top: auto;
    padding: 11px 10px;

    font-size: 12px;
    line-height: 1.25;
    text-align: center;
}


/* =========================================================
   ФИНАЛЬНЫЙ БЛОК
   ========================================================= */

.software-products-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 36px;

    width: 100%;

    margin-top: 80px;
    padding: 38px 42px;

    border:
        1px solid rgba(245, 158, 11, 0.28);
    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(220, 38, 38, 0.05),
            rgba(251, 191, 36, 0.14)
        );
}

.software-products-cta__content {
    max-width: 840px;
}

.software-products-cta__label {
    color: #b45309;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.software-products-cta h2 {
    margin: 8px 0 10px !important;
    padding: 0 !important;

    color: var(--products-dark) !important;

    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
}

.software-products-cta p {
    margin: 0;

    color: var(--products-text);

    font-size: 15px;
    line-height: 1.65;
}

.software-products-cta__button {
    flex: 0 0 auto;
}


/* =========================================================
   АДАПТИВНОСТЬ
   ========================================================= */


/* Широкие ноутбуки — 5 карточек */

@media (max-width: 1550px) {

    .software-products-page {
        width: calc(100vw - 20px);
        padding-right: 10px;
        padding-left: 10px;
    }

    .software-products-grid {
        grid-template-columns:
            repeat(5, minmax(0, 1fr));
    }
}


/* Небольшие ноутбуки — 4 карточки */

@media (max-width: 1279px) {

    .software-products-grid {
        grid-template-columns:
            repeat(4, minmax(0, 1fr));

        gap: 18px;
    }

    .software-product-card__image {
        height: 235px;
    }

    .software-product-card__image img {
        height: 195px !important;
        max-width: 205px !important;
        max-height: 195px !important;
    }
}


/* Планшеты и узкие ноутбуки — 3 карточки */

@media (max-width: 1023px) {

    .software-products-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    .software-products-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Вертикальные планшеты — 2 карточки */

@media (max-width: 767px) {

    .software-products-page {
        width: calc(100vw - 16px);
        padding-right: 8px;
        padding-left: 8px;
    }

    .software-products-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 16px;
    }

    .software-product-card__image {
        height: 225px;
    }

    .software-product-card__image img {
        height: 190px !important;
        max-width: 200px !important;
        max-height: 190px !important;
    }
}


/* Телефоны — 1 карточка */

@media (max-width: 600px) {

    .software-products-page {
        position: relative;
        left: auto;

        width: 100%;
        max-width: 100%;

        margin: 0 auto;
        padding: 42px 14px 60px;

        transform: none;
    }

    .software-products-page__title {
        font-size: 28px !important;
    }

    .software-products-page__intro {
        font-size: 16px;
    }

    .software-products-nav {
        align-items: stretch;
        flex-direction: column;

        margin-bottom: 54px;
        padding: 14px;
    }

    .software-products-nav a {
        flex: 0 0 auto;

        width: 100%;
        min-height: 48px;
    }

    .software-products-section {
        margin-top: 58px;
    }

    .software-products-section__heading h2 {
        font-size: 25px !important;
    }

    .software-products-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .software-product-card__image {
        height: 235px;
    }

    .software-product-card__image img {
        height: 195px !important;
        max-width: 205px !important;
        max-height: 195px !important;
    }

    .software-product-card__content {
        padding: 20px 20px 22px;
    }

    .software-product-card h3 {
        font-size: 18px !important;
    }

    .software-product-card p {
        font-size: 14px;
        line-height: 1.62;
    }

    .software-product-card__button {
        min-height: 44px;
        padding: 11px 15px;

        font-size: 13px;
    }

    .software-products-cta {
        margin-top: 58px;
        padding: 28px 22px;
    }

    .software-products-cta h2 {
        font-size: 23px !important;
    }

    .software-products-cta__button {
        width: 100%;
    }
}