/* =========================================================
   GАРАНТ-ИНФОРМ — постепенный редизайн главной страницы
   Отдельный файл. Старый styles.css/mobile.css не переписываем.
   ========================================================= */

th {
    font-weight: bold !important;
}

/* ---------------------------------------------------------
   1. Блок «Преимущества системы ГАРАНТ»
   --------------------------------------------------------- */

.advantages {
    --garant-blue: #1D5377;
    --garant-text: #F3F2F2;
    --garant-card: rgba(243, 242, 242, 0.085);
    --garant-border: rgba(243, 242, 242, 0.22);
    --garant-border-hover: rgba(243, 242, 242, 0.38);

    position: relative;
    z-index: 1;

    width: 100%;
    box-sizing: border-box;

    margin: 30px 0 38px;   
    padding: 52px 0 34px;   

    background: var(--garant-blue);
    color: var(--garant-text);

    border-radius: 2px;
}

.advantages__container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.advantages__header {
    max-width: 720px;
    margin: 0 auto 38px;
    text-align: center;
}

.advantages__header h2 {
    margin: 0 0 12px;

    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;

    color: var(--garant-text);
}

.advantages__header p {
    margin: 0;

    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;

    color: rgba(243, 242, 242, 0.78);
}

.advantages__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.advantage-card {
    min-width: 0;

    padding: 26px 18px 24px;

    box-sizing: border-box;

    background: rgba(243, 242, 242, 0.10);

    border: 1px solid rgba(243, 242, 242, 0.22);
    border-radius: 12px;        
}

.advantage-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 19px;

    background: var(--garant-text);
    border-radius: 50%;
    color: var(--garant-blue);
}

.advantage-card__icon svg {
    width: 28px;
    height: 28px;
    display: block;
}

.advantage-card h3 {
    margin: 0 0 9px;

    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 1.125rem;
    line-height: 1.3;
    font-weight: 650;

    color: var(--garant-text);

    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.advantage-card p {
    margin: 0;

    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;

    color: rgba(243, 242, 242, 0.78);
}

/* ---------------------------------------------------------
   2. Небольшая модернизация существующих нижних секций.
   Стили действуют только внутри новых контейнеров, поэтому
   старый CSS не затрагиваем.
   --------------------------------------------------------- */

#Profline,
#UniversalLine {
    position: relative;
}

#Profline > .headerblue,
#UniversalLine > .headerblue {
    margin-bottom: 24px;
}

/* ---------------------------------------------------------
   3. Адаптивность
   --------------------------------------------------------- */

@media (max-width: 760px) {
    .advantages {
        margin-top: 20px;
        margin-bottom: 28px;
        padding: 42px 20px 26px;
    }

    .advantages__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .advantage-card {
        padding: 21px 18px 20px;
    }

    .advantage-card h3 {
        font-size: 1.0625rem;
    }

    .advantage-card p {
        font-size: 0.875rem;
    }
}

@media (max-width: 500px) {
    .advantages {
        padding: 38px 0 34px;
    }

    .advantages__header {
        margin-bottom: 28px;
    }

    .advantages__header h2 {
        font-size: 1.6875rem;
    }

    .advantages__grid {
        grid-template-columns: 1fr;
    }

    .advantage-card {
        display: grid;
        grid-template-columns: 48px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 15px;
    }

    .advantage-card__icon {
        grid-row: 1 / 3;
        width: 48px;
        height: 48px;
        margin: 0;
    }

    .advantage-card h3 {
        margin-bottom: 5px;
    }
}


/* =========================================================
   ДОПОЛНИТЕЛЬНЫЕ СЕРВИСЫ
   ========================================================= */

.services {
    position: relative;
    z-index: 1;

    width: 100%;
    box-sizing: border-box;

    /* padding: 20px 24px 40px; */

    background: #1D5377;
    color: #F3F2F2;

    padding: 0;             /* было 0 86px */
}


/* ---------------------------------------------------------
   Контейнер
   --------------------------------------------------------- */

.services__container {
    width: min(100%, 1200px);
    margin-inline: auto;
}


/* ---------------------------------------------------------
   Заголовок
   --------------------------------------------------------- */

.services__header {
    max-width: 720px;

    margin: 0 auto 45px;

    text-align: center;
}


.services__header h2 {
    margin: 0 0 12px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: clamp(1.75rem, 3vw, 2.375rem);
    line-height: 1.2;

    font-weight: 700;
    letter-spacing: -0.02em;

    color: #F3F2F2;
}


.services__header p {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.0625rem;
    line-height: 1.55;

    color: rgba(243, 242, 242, 0.78);
}


/* ---------------------------------------------------------
   Сетка
   --------------------------------------------------------- */

.services__grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 16px;
}


/* ---------------------------------------------------------
   Карточка
   --------------------------------------------------------- */

.service-card {
    display: flex;
    align-items: flex-start;

    min-width: 0;

    box-sizing: border-box;

    padding: 24px 20px;

    text-decoration: none;

    background: rgba(243, 242, 242, 0.10);

    border: 1px solid rgba(243, 242, 242, 0.22);
    border-radius: 12px;

    color: #F3F2F2;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}


.service-card:hover {
    background: rgba(243, 242, 242, 0.16);

    border-color:
        rgba(243, 242, 242, 0.38);

    transform: translateY(-3px);
}


/* ---------------------------------------------------------
   Иконка
   --------------------------------------------------------- */

.service-card__icon {
    flex: 0 0 50px;

    width: 50px;
    height: 50px;

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

    margin-right: 18px;

    border-radius: 50%;

    background: rgba(243, 242, 242, 0.96);

    overflow: hidden;
}


.service-card__icon img {
    display: block;

    width: 50px;
    height: 50px;

    object-fit: contain;

    transition: transform 180ms ease;
}


.service-card:hover .service-card__icon img {
    transform: scale(1.08);
}


/* ---------------------------------------------------------
   Текстовая часть
   --------------------------------------------------------- */

.service-card__content {
    min-width: 0;
}


/* Заголовок сервиса */

.service-card h3 {
    margin: 2px 0 8px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.0625rem;
    line-height: 1.3;

    font-weight: 650;

    color: #F3F2F2;

    overflow-wrap: anywhere;
}


/* Описание */

.service-card p {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.875rem;
    line-height: 1.5;

    color: rgba(243, 242, 242, 0.74);

    overflow-wrap: break-word;
}

.services__actions {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px 14px;

    margin-top: 18px;

    text-align: center;
}


/* ---------------------------------------------------------
   Планшет
   --------------------------------------------------------- */

@media (max-width: 1050px) {

    .services {
        padding: 60px 24px 70px;
    }

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

}


/* ---------------------------------------------------------
   Телефон
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .services {
        padding: 50px 0 60px;
    }

    .services__header {
        margin-bottom: 32px;
    }

    .services__header h2 {
        font-size: 1.75rem;
    }

    .services__header p {
        font-size: 1rem;
    }

    .services__grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .service-card {
        padding: 20px 18px;
    }

}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    position: relative;
    z-index: 1;

    width: 100%;

    box-sizing: border-box;

    padding: 54px 0 0;   /* было 54px 88px 64px */

    color: #F3F2F2;
}


.hero__container {
    /* width: min(100%, 1200px); */

    margin-inline: auto;

    display: grid;

    grid-template-columns:
        minmax(300px, 0.85fr)
        minmax(480px, 1.15fr);

    align-items: center;

    gap: 54px;
}


/* =========================================================
   ЛЕВАЯ ЧАСТЬ
   ========================================================= */

.hero__content {
    min-width: 0;

    padding: 12px 0;
}


.hero__eyebrow {
    margin: 0 0 16px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;
    line-height: 1.4;

    font-weight: 600;

    letter-spacing: 0.04em;
    text-transform: uppercase;

    color: rgba(243, 242, 242, 0.72);
}


.hero h1 {
    margin: 0 0 24px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: clamp(2.125rem, 4vw, 2.375rem);

    line-height: 1.08;

    font-weight: 700;

    letter-spacing: -0.025em;

    color: #F3F2F2;
}


.hero__description {
    max-width: 520px;

    margin: 0 0 30px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.0625rem;

    line-height: 1.6;

    color: rgba(243, 242, 242, 0.82);
}


/* =========================================================
   КНОПКИ
   ========================================================= */

.hero__actions {
    display: flex;

    flex-wrap: wrap;

    gap: 12px;
}


.hero__button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 46px;

    box-sizing: border-box;

    padding: 0 22px;

    border-radius: 8px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;

    font-weight: 600;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}


.hero__button:hover {
    transform: translateY(-2px);
}


/* Основная кнопка */

.hero__button--primary {
    background: #F3F2F2;

    border: 1px solid #F3F2F2;

    color: #1D5377;
}


.hero__button--primary:hover {
    background: #FFFFFF;

    border-color: #FFFFFF;
}


/* Вторичная */

.hero__button--secondary {
    background: transparent;

    border: 1px solid rgba(243, 242, 242, 0.55);

    color: #F3F2F2;
}


.hero__button--secondary:hover {
    background: rgba(243, 242, 242, 0.10);

    border-color: rgba(243, 242, 242, 0.85);
}


/* =========================================================
   ПРАВАЯ ЧАСТЬ
   ========================================================= */

.hero__visual {
    min-width: 0;

    position: relative;

    border-radius: 14px;
    box-shadow: 0px 0px 10px 5px rgb(221, 221, 221);
}


.hero__slider {
    position: relative;

    width: 100%;

    max-width: 680px;

    margin-left: auto;

    overflow: hidden;

    border-radius: 14px;

    /*
       Небольшая глубина, но без тяжёлого
       «карточного» эффекта.
   

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.20);

    */
}


/*
   Сохраняем соотношение сторон изображения.

   Старый слайдер имел жёсткие 480px высоты.
   Здесь высота будет определяться шириной.
*/

.hero__slider .slider {
    width: 100%;
}


.hero__slider .items li {
    position: relative;
}


.hero__slider .items li img {
    display: block;

    width: 100%;
    height: auto;

    max-width: 100%;
}


/* =========================================================
   ПОДПИСЬ НА СКРИНШОТЕ + ПАГИНАЦИЯ
   Нижняя панель: название слайда + точки.
   Ссылка только на тексте, точки поверх (z-index).
   ========================================================= */

.hero__slider .banner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 15;

    box-sizing: border-box;

    /* место снизу под точки пагинации */
    padding: 14px 18px 34px;
/*
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        rgba(0, 0, 0, 0) 100%
    );
*/
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.70) 0%,
        rgba(0, 0, 0, 0.40) 55%,
        rgba(0, 0, 0, 0) 100%
    );

    /* background: linear-gradient(to top, rgba(29,83,119, 1) 0%, rgba(29,83,119, 0.60) 70%, rgba(29,83,119, 0) 100%); */

    /* клики проходят сквозь панель, кроме самой ссылки */
    pointer-events: none;
}


.hero__slider .sliderBannerLink {
    display: inline-block; /* только текст, не на всю ширину */
    padding: 0;
    pointer-events: auto;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.875rem;
    line-height: 1.35;
    font-weight: 500;

    color: #FFFFFF;
    text-decoration: none;

    max-width: calc(100% - 8px);
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1000px) {

    .hero {
        padding: 48px 24px 58px;
    }

    .hero__container {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .hero__content {
        max-width: 720px;

        margin-inline: auto;

        text-align: center;
    }

    .hero__description {
        margin-inline: auto;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__visual {
        width: 100%;
    }

    .hero__slider {
        max-width: 100%; /* 760px; */
        max-height: 600px;
        margin-inline: auto;
    }

    /*
       max-height должен быть и на самом .slider, не только на родителе.
       Иначе при width≈868px aspect-ratio 576/480 даёт высоту ~723px,
       .hero__slider (overflow:hidden) обрезает низ, а banner + pagination
       (absolute; bottom:0 у .slider) оказываются ниже видимой области.
    */
    .hero__slider .slider {
        max-height: 600px;
    }

}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .hero {
        padding: 40px 0 48px;
    }

    .hero h1 {
        font-size: 2.125rem;
    }

    .hero__description {
        font-size: 1rem;
    }

    .hero__slider {
        border-radius: 10px;
    }

    .hero__slider .banner {
        padding: 12px 14px 30px;
    }

    .hero__slider .sliderBannerLink {
        font-size: 0.8125rem;
    }

}


/* =========================================================
   МАЛЕНЬКИЙ ТЕЛЕФОН
   ========================================================= */

@media (max-width: 430px) {

    .hero {
        padding-inline: 14px;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__button {
        width: 100%;
    }

}


/* =========================================================
   НОВИНКИ ГАРАНТа
   ========================================================= */

#divCompanyNews {
    position: relative;

    /* та же ширина, что у .page-content / секций */
    width: min(100%, var(--content-max));
    margin: 24px auto 32px;
    padding: 0;
    box-sizing: border-box;
}

#divCompanyNews a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    box-sizing: border-box;
    min-height: 64px;
    padding: 0 24px;

    border: 1px solid #F3F2F2;
    border-radius: 8px;

    background: #F3F2F2;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

#divCompanyNews a:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    transform: translateY(-2px);
}

.company-news__title {
    color: #1D5377;
    font-size: 1rem;
    font-weight: 600;
}

.company-news__link {
    color: #555;
    font-size: 1rem;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: right;
    min-width: 0;
}

.company-news__arrow {
    display: inline-block;
    margin-left: 4px;
    transition: transform 180ms ease;
}

#divCompanyNews a:hover .company-news__arrow {
    transform: translateX(4px);
}

@media (max-width: 600px) {
    #divCompanyNews a {
        flex-wrap: wrap;
        gap: 8px 16px;
        padding: 12px 16px;
        min-height: 0;
    }
    .company-news__title {
        flex: 1 1 auto;
        min-width: 0;
    }
    .company-news__link {
        flex: 1 1 auto;
        text-align: left;
    }
}

/* =========================================================
   ПРОФЕССИОНАЛЬНЫЕ СИСТЕМЫ
   ========================================================= */

.profline {
    width: 100%;

    box-sizing: border-box;
    
    /* padding: 70px 24px 60px; */
    padding: 70px 0 60px;   

    color: #F3F2F2;
}


.profline__container {
    width: min(100%, 1200px);

    margin-inline: auto;

    padding: 0;             /* было 0 62px */
}


/* =========================================================
   Заголовок
   ========================================================= */

.profline__header {
    max-width: 760px;

    margin: 0 auto 42px;

    text-align: center;
}


.profline__header h2 {
    margin: 0 0 12px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: clamp(1.5rem, 4.2vw, 2.375rem);

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.02em;

    color: #F3F2F2;
    overflow-wrap: anywhere;
    hyphens: auto;
}


.profline__header p {
    margin: 0;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.0625rem;

    line-height: 1.55;

    color: rgba(243, 242, 242, 0.76);
}


/* =========================================================
   Сетка категорий
   ========================================================= */

.profline__grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 16px;
}


/* =========================================================
   Карточка категории
   ========================================================= */

.prof-card {
    display: flex;

    align-items: flex-start;

    min-width: 0;

    box-sizing: border-box;

    padding: 24px;

    background:
        rgba(243, 242, 242, 0.07);

    border: 1px solid
        rgba(243, 242, 242, 0.18);

    border-radius: 12px;
}


/* =========================================================
   Иконка категории
   ========================================================= */

.prof-card__icon {
    flex: 0 0 64px;

    width: 64px;
    height: 64px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-right: 20px;

    border-radius: 50%;

    /* background:
        rgba(243, 242, 242, 0.96); */

    overflow: hidden;
}


.prof-card__icon img {
    display: block;

    width: 64px;
    height: 64px;

    object-fit: contain;
}


/* =========================================================
   Содержимое
   ========================================================= */

.prof-card__body {
    min-width: 0;

    flex: 1 1 auto;
}


.prof-card h3 {
    margin: 2px 0 14px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1.125rem;

    line-height: 1.3;

    font-weight: 650;

    color: #F3F2F2;
}


/* =========================================================
   Ссылки на системы
   ========================================================= */

.prof-card__links {
    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 7px;
}


.prof-card__links a {
    display: inline-flex;

    align-items: baseline;

    gap: 7px;

    max-width: 100%;

    box-sizing: border-box;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;

    line-height: 1.4;

    font-weight: 500;

    color: #F3F2F2;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition:
        color 160ms ease,
        transform 160ms ease;
}


.prof-card__links a span {
    flex: 0 0 auto;

    color: rgba(243, 242, 242, 0.55);

    transition:
        transform 160ms ease,
        color 160ms ease;
}


.prof-card__links a:hover {
    color: yellow;
}


.prof-card__links a:hover span {
    color: yellow;

    transform: translateX(3px);
}


/* =========================================================
   СХЕМА ВЫБОРА
   ========================================================= */

.profline__choice {
    display: flex;

    align-items: center;
    justify-content: center;

    flex-wrap: wrap;

    gap: 8px 14px;

    margin-top: 30px;

    padding-top: 24px;

    border-top:
        1px solid rgba(243, 242, 242, 0.16);

    text-align: center;
}


.profline__choice-text {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.875rem;

    line-height: 1.5;

    color: rgba(243, 242, 242, 0.62);
}


.profline__choice-link {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.875rem;

    line-height: 1.5;

    font-weight: 600;

    color: #F3F2F2;

    text-decoration: none;

    transition:
        color 160ms ease;
}


.profline__choice-link span {
    transition:
        transform 160ms ease;
}


.profline__choice-link:hover {
    color: yellow;
}


.profline__choice-link:hover span {
    transform: translateX(3px);
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 850px) {

    .profline {
        padding: 48px 24px 55px;
    }

    .profline__grid {
        grid-template-columns: 1fr;
    }

}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .profline {
        padding: 40px 0 50px;
    }

    .profline__header {
        margin-bottom: 32px;
    }

    .profline__header h2 {
        font-size: 1.55rem;
    }

    .profline__header p {
        font-size: 1rem;
    }

    .prof-card {
        padding: 20px 18px;
    }

    .prof-card__icon {
        flex-basis: 54px;

        width: 54px;
        height: 54px;

        margin-right: 16px;
    }

    .prof-card__icon img {
        width: 54px;
        height: 54px;
    }

    .prof-card h3 {
        font-size: 1.0625rem;
    }

    .prof-card__links a {
        font-size: 0.875rem;
    }

}


/* =========================================================
   ОЧЕНЬ МАЛЕНЬКИЙ ЭКРАН
   ========================================================= */

@media (max-width: 430px) {

    .prof-card {
        display: block;

        text-align: center;
    }

    .prof-card__icon {
        margin: 0 auto 14px;
    }

    .prof-card__links {
        align-items: center;
    }

    .profline__choice {
        flex-direction: column;
    }

}
/* =========================================================
   СИСТЕМА ГАРАНТ С ИНДИВИДУАЛЬНЫМ НАПОЛНЕНИЕМ
   ========================================================= */

.custom-system {
    width: 100%;

    box-sizing: border-box;

    padding: 20px 0 70px;   /* было 20px 88px 70px */

    color: #F3F2F2;

    position: relative;
}


.custom-system__container {
    width: min(100%, 1200px);

    min-height: 280px;

    margin-inline: auto;

    box-sizing: border-box;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(280px, 420px);

    align-items: center;

    gap: 50px;

    padding: 42px 50px;

    background:
        rgba(243, 242, 242, 0.09);

    border: 1px solid
        rgba(243, 242, 242, 0.22);

    border-radius: 14px;

    overflow: hidden;
}


/* =========================================================
   ТЕКСТ
   ========================================================= */

.custom-system__content {
    min-width: 0;
    padding: 20px;
}


.custom-system__eyebrow {
    margin: 0 0 12px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 0.875rem;

    line-height: 1.4;

    font-weight: 600;

    letter-spacing: 0.04em;

    text-transform: uppercase;

    color: rgba(243, 242, 242, 0.62);
}


.custom-system h2 {
    max-width: 650px;

    margin: 0 0 20px;
    margin-inline: auto;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: clamp(1.45rem, 4vw, 2.375rem);

    line-height: 1.2;

    font-weight: 700;

    letter-spacing: -0.02em;

    color: #F3F2F2;
    overflow-wrap: anywhere;
    /* hyphens: auto; */
}


.custom-system__description {
    max-width: 620px;

    margin: 0 0 10px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;

    line-height: 1.55;

    color: rgba(243, 242, 242, 0.78);
}


/* =========================================================
   КНОПКА
   ========================================================= */

.custom-system__button {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-top: 18px;

    min-height: 44px;

    box-sizing: border-box;

    padding: 0 20px;

    border: 1px solid
        rgba(243, 242, 242, 0.55);

    border-radius: 8px;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;

    line-height: 1;

    font-weight: 600;

    color: #F3F2F2;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}


.custom-system__button span {
    transition:
        transform 180ms ease;
}


.custom-system__button:hover {
    background:
        rgba(243, 242, 242, 0.12);

    border-color:
        rgba(243, 242, 242, 0.85);

    transform: translateY(-2px);
}


.custom-system__button:hover span {
    transform: translateX(3px);
}


/* =========================================================
   ИЗОБРАЖЕНИЕ
   ========================================================= */

.custom-system__visual {
    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 0;
}


.custom-system__visual img {
    display: block;

    width: min(100%, 380px);

    height: auto;

    max-height: 250px;

    object-fit: contain;
}


/* =========================================================
   ПЛАНШЕТ
   ========================================================= */

@media (max-width: 1200px) { /* 850px */

    .custom-system {
        padding: 15px 24px 60px;
    }

    .custom-system__container {
        grid-template-columns: 1fr;

        gap: 30px;

        padding: 38px 35px;

        text-align: center;
    }

    .custom-system__description {
        margin-inline: auto;
    }

    .custom-system__visual {
        order: -1;
    }

    .custom-system__visual img {
        width: min(100%, 300px);

        max-height: 200px;
    }

}


/* =========================================================
   ТЕЛЕФОН
   ========================================================= */

@media (max-width: 600px) {

    .custom-system {
        padding-inline: 18px;
    }

    .custom-system__container {
        padding: 32px 20px;

        border-radius: 12px;
    }

    .custom-system h2 {
        font-size: 1.5rem;
    }

    .custom-system__description {
        font-size: 1rem;
    }

    .custom-system__content {
        padding: 5px;
    }


}


/* =========================================================
   МАЛЕНЬКИЙ ТЕЛЕФОН
   ========================================================= */

@media (max-width: 430px) {

    .custom-system {
        padding-inline: 14px;
    }

    .custom-system__container {
        padding-inline: 18px;
    }

}

.custom-system__secondary-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    margin-top: 30px;

    color: #F3F2F2;
    font-family: Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;

    transition: color 0.2s ease;
}

.custom-system__secondary-link:hover {
    color: yellow;
}

.custom-system__secondary-link span {
    transition:
        transform 200ms ease;
}


.custom-system__secondary-link:hover span {
    transform: translateX(3px);
}

@media (max-width: 700px) {

    #ScrnWdthCntnr2screenWidthBackground {
        width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
    }

}
/* =========================================================
   HEADER — адаптивный редизайн 
   Работает с viewport: width=device-width, initial-scale=1
   ========================================================= */

/* Сброс старых жёстких размеров контейнера */
#SITE_ROOT.SITE_ROOT {
    max-width: none;    /* или 100% */
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.site-header {
    --header-blue: #4a7ab0;
    --header-blue-dark: #1D5377;
    --header-blue-grad-start: #6a9bc8;
    --header-blue-grad-end: #3d6a9e;
    --header-text: #A9DCFF;
    --header-accent: #FFE683;
    --header-nav-bg: #9AB4E5;
    --header-nav-active: #A90000;
    --header-nav-hover: #b3ccdd;
    --header-radius: 10px;

    position: relative;
    z-index: 100;
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--header-blue-grad-start) 0%, var(--header-blue) 45%, var(--header-blue-grad-end) 100%);
    color: #fff;
    overflow: visible;
}

.site-header__inner {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 12px 16px 0;
    box-sizing: border-box;
}

/* ---------- Сетка шапки (все устройства: бейдж | бренд+поиск | контакты) ---------- */
.site-header__grid {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "badge main contacts";
    gap: 8px 14px;
    align-items: start;
    padding-bottom: 12px;
}

/* Колонка: бренд → территория → поиск */
.site-header__main {
    grid-area: main;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    align-self: start;
    padding-top: 2px;
}

.site-header__brand {
    min-width: 0;
}

.site-header__contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    /* Прижаты вправо, иконки выровнены влево (как на ≤980px) */
    justify-self: end;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    padding-top: 4px;
}


/* Кнопка раскрытия контактов.
   На desktop и landscape скрыта: контакты отображаются как обычно. */
.site-header__contacts-toggle {
    display: none;
}

.site-header__badge {
    grid-area: badge;
    display: block;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 10px;
    line-height: 0;
    align-self: start;
    justify-self: start;
    overflow: hidden;
    box-sizing: border-box;
    /* чуть опустить, чтобы центр круга совпал с первой строкой названия */
    margin-top: 2px;
}

.site-header__badge-img {
    display: block;
    object-fit: contain;
}

/* Полный прямоугольный логотип — больше не используется */
.site-header__badge-img--full {
    display: none !important;
}

/* Малый логотип в круге — на всех устройствах */
.site-header__badge-img--small {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 0;
}

.site-header__search {
    max-width: 470px;
    min-width: 180px;
    width: 100%;
}

.site-header__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 1.125rem;
    line-height: 1.35;
    text-decoration: none;
}

.site-header__contact a {
    color: inherit;
    text-decoration: none;
}

.site-header__contact a:hover,
.site-header__contact--email:hover,
.site-header__contact--max:hover,
.site-header__contact--telegram:hover {
    color: var(--header-accent);
    text-decoration: underline;
}

.site-header__contact--email,
.site-header__contact--max,
.site-header__contact--telegram {
    text-decoration: underline;
}

.site-header__icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--header-accent);
}

.site-header__icon svg {
    display: block;
}

.site-header__territory {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 0 0 20px;
    font-size: 1rem;
    line-height: 1.3;
    /* color: rgba(255,255,255,0.92); */
    color: var(--header-text);
    text-align: left;
}

.site-header__territory .site-header__icon {
    margin-top: 1px;
    flex-shrink: 0;
}

.site-header__title {
    margin: 0;
    font-family: Impact, "Arial Black", "Helvetica Neue", sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: normal;
    line-height: 0.8;
    /* color: var(--header-text); */
    letter-spacing: 0.02em;
    text-shadow: 1px 2px 3px rgba(0,0,0,0.12);
}

.site-header__title-ip {
    font-family: Arial, "Helvetica Neue", sans-serif;
    font-size: 1.15rem;
    font-weight: normal;
    white-space: nowrap;
    letter-spacing: 0;
    opacity: 0.95;
}

.site-header__slogan {
    margin: 6px 0 0;
    /* font-family: "Times New Roman", Times, serif; */
    /* font-style: italic; */
    /* font-size: clamp(0.85rem, 2vw, 1.125rem); */
    font-size: 1rem;
    line-height: 1.15;
    color: var(--header-text);
}

/* ---------- Десктопное меню ---------- */
.site-header__nav {
    padding: 16px 0;
}

.site-header__nav-list {
    display: flex;
    flex-wrap: nowrap;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    background: transparent;
}

.site-header__nav-list > li {
    flex: 1 1 0;
    min-width: 0;
}

.site-header__nav-link {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 8px 6px;
    text-align: center;
    font-size: 1rem;
    /* font-weight: 600; */
    line-height: 1.2;
    color: #fff; /* #1a1a1a; */
    text-decoration: none;
    background-color: var(--header-nav-bg);
    border-right: 1px solid rgba(255,255,255,0.35);
    transition: background-color 0.25s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__nav-list > li:first-child .site-header__nav-link {
    border-radius: 14px 0 0 14px;
}

.site-header__nav-list > li:last-child .site-header__nav-link {
    border-right: none;
    border-radius: 0 14px 14px 0;
}

.site-header__nav-link:hover {
    background-color: var(--header-nav-hover);
}

.site-header__nav-link.selected,
.site-header__nav-link[data-state="selected"] {
    background-color: var(--header-nav-active);
    color: #fff;
}

.site-header__nav-link.selected:hover,
.site-header__nav-link[data-state="selected"]:hover {
    background-color: #C80303;
}

/* ---------- Мобильная панель (скрыта на десктопе) ---------- */
.site-header__mobile-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 6px 0 0;
    padding: 0 8px 0 0;
    background: #8aa8d8;
    min-height: 46px;
    border-radius: 10px 10px 0 0;
}

.site-header__mobile-title {
    flex: 1;
    padding: 10px 14px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    text-align: center;
    background: transparent;
}

.site-header__burger {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 48px;
    height: 48px;
    margin: 0 8px 0 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 60;
}

.site-header__burger-line {
    display: block;
    width: 28px;
    height: 3px;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.site-header__burger.is-active .site-header__burger-line:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.site-header__burger.is-active .site-header__burger-line:nth-child(2) {
    opacity: 0;
}
.site-header__burger.is-active .site-header__burger-line:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* ---------- Мобильное меню-оверлей ---------- */
.site-header__mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px 32px;
    background: rgba(29, 83, 119, 0.96);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s ease, opacity 0.3s ease;
    box-sizing: border-box;
}

.site-header__mobile-menu.is-open {
    visibility: visible;
    opacity: 1;
}

.site-header__mobile-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.site-header__mobile-close:hover {
    color: var(--header-accent);
}

.site-header__mobile-list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 360px;
    text-align: center;
}

.site-header__mobile-list > li {
    margin-bottom: 8px;
}

.site-header__mobile-link {
    display: block;
    padding: 14px 12px;
    font-size: 1.35rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

a.site-header__mobile-link:hover {
    background-color: rgba(200, 3, 3, 0.85);
}

.site-header__mobile-link--current {
    color: #03A9F4;
    cursor: default;
}

body.menu-open {
    overflow: hidden;
}

/* =========================================================
   ПЕРЕКЛЮЧЕНИЕ ДЕСКТОП / МОБИЛЬНОЕ МЕНЮ — breakpoint 1270px
   Единственный источник истины (старые правила mobile3 отключены)
   ========================================================= */

@media (min-width: 1271px) {
    .site-header__nav {
        display: block !important;
    }
    .site-header__mobile-bar {
        display: none !important;
    }
    .site-header__mobile-menu {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none;
    }
}

@media (max-width: 1270px) {
    .site-header__nav {
        display: none !important;
    }
    .site-header__mobile-bar {
        display: flex !important;
        margin-top: 8px !important;
        /* margin схлопывался с #PAGES_CONTAINER выше 980px
          (там нет overflow на inner → нет BFC). padding на родителе не схлопывается. */
        margin-bottom: 0 !important;
    }

    /* стабильный зазор под синей полосой меню на всём ≤1270 */
    .site-header__inner {
        display: flow-root;          /* BFC, без обрезки absolute/fixed */
        padding-bottom: 10px !important;
    }

    #SITE_HEADER.site-header {
        padding-bottom: 0;

    }
}

/* =========================================================
   Адаптив: планшеты и телефоны
   ========================================================= */

/* На средних экранах — меню всё ещё десктоп (до 1270), но компактнее */
@media (max-width: 900px) and (min-width: 1271px) {
    .site-header__nav-link {
        font-size: 13px;
        padding: 8px 4px;
    }
}

/* Переход на мобильный layout шапки — портрет ≤980px
   display:contents у main → brand и search снова прямые ячейки сетки */
@media (max-width: 980px) and (orientation: portrait) {

    .site-header__inner {
        padding: 10px 14px 0;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Компактная верхняя строка: логотип + название компании.
       Слоган скрывается только в portrait. */
    .site-header__grid {
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas:
            "badge brand"
            "territory territory"
            "contacts-toggle contacts-toggle"
            "contacts contacts"
            "search search";
        column-gap: 12px;
        row-gap: 8px;
        align-items: center;
        padding-bottom: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Разворачиваем обёртку — дети участвуют в grid родителя */
    .site-header__main {
        display: contents;
    }

    .site-header__badge {
        /* Белый круг: padding → логотип не касается края окружности */
        padding: 10px;
        justify-self: start;
        align-self: center;
        width: auto;
        max-width: 100%;
        margin: 0;
        border-radius: 50%;
        overflow: hidden;
        box-sizing: border-box;
    }

    .site-header__badge-img--small {
        width: 40px;
        height: 40px;
        border-radius: 0;
    }

    .site-header__brand {
        grid-area: brand;
        text-align: left;
        align-self: center;
        min-width: 0;
        max-width: 100%;
        padding: 0;
    }

    .site-header__title {
        font-family: inherit;
        font-size: clamp(1.25rem, 5vw, 1.7rem);
        word-break: normal;
        line-height: 0.95;
    }

    .site-header__title-ip {
        font-family: inherit;
        white-space: normal;
        display: block;
        margin-top: 4px;
        font-size: 1.15rem;
        line-height: 1.1;
    }

    .site-header__slogan {
        display: none;
    }

    /* Компактная кнопка раскрытия контактов — по центру,
       чтобы не промахиваться мимо (логотип тоже кликабелен) */
    .site-header__contacts-toggle {
        grid-area: contacts-toggle;
        display: inline-flex;
        align-items: center;
        justify-self: center;
        gap: 7px;

        margin: 0;
        padding: 5px 0;

        border: 0;
        background: transparent;
        color: rgba(255,255,255,0.96);

        font: inherit;
        font-size: 0.95rem;
        line-height: 1.2;
        cursor: pointer;
    }

    .site-header__contacts-toggle:hover,
    .site-header__contacts-toggle:focus-visible {
        color: var(--header-accent);
        outline: none;
    }

    .site-header__contacts-toggle-icon {
        display: inline-flex;
        color: var(--header-accent);
    }

    .site-header__contacts-toggle-arrow {
        width: 8px;
        height: 8px;
        margin-left: 2px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg) translateY(-2px);
        transition: transform 0.2s ease;
    }

    .site-header__contacts-toggle.is-active .site-header__contacts-toggle-arrow {
        transform: rotate(-135deg) translateY(-2px);
    }

    /* В portrait контакты по умолчанию скрыты и раскрываются кнопкой */
    .site-header__contacts {
        grid-area: contacts;
        display: none;
        padding-top: 0;
        justify-self: stretch;
        align-items: flex-start;
        text-align: left;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        gap: 4px;
    }

    .site-header__contacts.is-open {
        display: flex;
        padding: 8px 0 2px;
        border-top: 1px solid rgba(255,255,255,0.18);
    }

    .site-header__contact {
        font-size: 0.95rem;
        flex-wrap: wrap;
        max-width: 100%;
        gap: 6px;
        line-height: 1.3;
    }

    .site-header__contact a {
        word-break: break-word;
    }

    .site-header__territory {
        grid-area: territory;
        font-size: 0.75rem;
        text-align: left;
        max-width: 100%;
        white-space: normal;
        margin: 0;
        padding: 0;
        border-top: none;
        opacity: 0.9;
        line-height: 1.25;
    }

    .site-header__search {
        grid-area: search;
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-top: 0;
    }

}

/* Landscape на узком экране: та же схема (бейдж | main | контакты) */
@media (max-width: 980px) and (orientation: landscape) {
    .site-header__inner {
        padding: 10px 12px 0;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    .site-header__grid {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas: "badge main contacts";
        gap: 8px 12px;
        align-items: start;
    }
    .site-header__badge {
        justify-self: start;
        align-self: start;
        padding: 8px;
        margin-top: 2px;
    }
    .site-header__badge-img--small {
        width: 40px;
        height: 40px;
    }
    .site-header__main {
        gap: 8px;
    }

    .site-header__title {
        font-family: inherit;
        font-size: clamp(1.25rem, 4vw, 1.75rem);
        word-break: normal;
        line-height: 0.95;
    }

    .site-header__title-ip {
        font-family: inherit;
        white-space: normal;
        display: block;
        margin-top: 4px;
        font-size: 1.3rem;
        line-height: 1.1;
    }

    /* Блок контактов прижат к правому краю, иконки влево */
    .site-header__contacts {
        justify-self: end;
        align-items: flex-start;
        text-align: left;
        min-width: 0;
    }
    .site-header__territory {
        text-align: left;
        font-size: 0.75rem;
    }
    .site-header__contact {
        font-size: 0.9375rem;
    }

    /* поиск на всю ширину колонки */
    .site-header__search {
        width: 100%;
        max-width: none;
        min-width: 0;
    }
    #googlesearch,
    #googlesearch .gsc-control-cse,
    #googlesearch form.gsc-search-box,
    #googlesearch table.gsc-search-box {
        width: 100% !important;
        max-width: none !important;
        box-sizing: border-box;
    }
    #googlesearch td.gsc-input {
        width: 100% !important;
    }
    #googlesearch .gsc-input,
    #googlesearch .gsc-input-box,
    #googlesearch .gsib_a {
        width: 100% !important;
        box-sizing: border-box;
    }
}

@media (max-width: 480px) {
    .site-header__badge {
        padding: 8px; /* чуть меньше ободок на узких экранах */
    }

    /* На очень узких экранах малый логотип чуть компактнее */
    .site-header__badge-img--small {
        width: 36px;
        height: 36px;
        border-radius: 0;
    }

    .site-header__icon svg {
        width: 15px;
        height: 15px;
    }

    .site-header__title {
        font-family: inherit;
        font-size: 1.3rem;
    }

    .site-header__title-ip {
        font-family: inherit;
        font-size: 1.06rem;
    }

    .site-header__slogan {
        font-size: 0.82rem;
        margin: 4px 0 2px;
    }

    .site-header__contact {
        font-size: 0.9rem;
    }

    .site-header__territory {
        font-size: 0.7rem;
    }

    .site-header__mobile-title {
        font-size: 1.1rem;
        padding: 10px 8px;
    }

    .site-header__mobile-link {
        font-size: 1.2rem;
        padding: 12px 10px;
    }


}

/* Совместимость со старыми селекторами из mobile.css —
   отключаем конфликтующие правила для нового header */
#SITE_HEADER.site-header {
    min-height: 0 !important;
    max-width: none !important;
    /* width: 100% !important;  */
    left: auto !important; 
    position: relative !important;
    top: auto !important;

    /* ВРЕМЕННО */
    /* width: calc(100% + 280px); */
    /* left: -140px; */
    /* padding-bottom: 20px; */
}

.site-header .header-container,
.site-header #ORG_INFO_LOGO,
.site-header #ORG_INFO_LOGOscreenWidthBackground,
.site-header #ORG_INFO_LOGOcenteredContent,
.site-header .menu-wrapper,
.site-header #desktop-menu.s6 {
    /* старые блоки больше не используются */
}

/* Убираем отступ сверху контента, если он зависел от min-height шапки */
#PAGES_CONTAINER {
    /* margin-top: 20px !important; */
}

@media (max-width: 760px) {
    #PAGES_CONTAINER {
        margin-top: 12px !important;
    }
}

/* контейнеры секций — только 980px */
.hero__container,
.advantages__container,
.services__container,
.profline__container,
.custom-system__container {
    width: min(100%, var(--content-max));
    margin-inline: auto;
}


#SITE_FOOTER {
    position: relative;
    width: min(100% - var(--page-gutter) * 2, var(--page-max));
    margin-inline: auto;
    margin-top: 30px;
    max-width: none;

    /* фон — на самом футере */
    background: #9EB2C2;
    box-sizing: border-box;
}

/* старые фоновые слои отключаем */
#SITE_FOOTERscreenWidthBackground,
#SITE_FOOTER .s8screenWidthBackground,
#SITE_FOOTER .s8_bg {
    display: none !important;
}


#SITE_FOOTERcenteredContent {
    position: relative;
    z-index: 1;                   /* контент поверх фона */
    width: min(100%, var(--content-max));
    margin-inline: auto;
}


:root {
    --page-max: 1280px;     /* ширина цветного фона */
    --content-max: 980px;   /* ширина текста / сеток */
    --page-gutter: 24px;    /* минимальные поля на узких экранах */
}

/* Уровень 1 — фон (синий / серый / шапка) */
.page-shell {
    width: min(100% - var(--page-gutter) * 2, var(--page-max));
    margin-inline: auto;
    box-sizing: border-box;
}

/* Уровень 2 — контент 980px внутри фона */
.page-content {
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding-inline: 16px;
    box-sizing: border-box;
    padding: 10px 0;
}

.site-header {
    /* фон как сейчас */
    width: 100%; /* если нужен фон на всю ширину окна — см. ниже */
}

/* Если фон шапки тоже только 1280px (как у основного блока): */
.site-header.page-shell {
    width: min(100% - var(--page-gutter) * 2, var(--page-max));
    margin-inline: auto;
}

.site-header__inner {
    /* убрать max-width: 980px; */
    width: min(100%, var(--content-max));
    margin-inline: auto;
    padding: 20px 20px 0; 
    box-sizing: border-box;
}



/* Смартфон: убрать боковые поля у синего блока (page-shell) */
@media (max-width: 710px) {
    :root {
        --page-gutter: 0px;
    }
    .page-shell,
    #SITE_PAGES.page-shell,
    .site-header.page-shell {
        width: 100%;
        max-width: 100%;
        margin-inline: 0;
    }
    /* внутренние отступы контента сохраняем */
    .page-content,
    #divCompanyNews {
        width: min(100%, var(--content-max));
        padding-inline: 16px;
        box-sizing: border-box;
    }
    #divCompanyNews {
        margin-left: auto;
        margin-right: auto;
    }
    .advantages,
    .services,
    .profline,
    .hero {
        border-radius: 0;
    }
}

/* растягиваем карусель на всю ширину экрана на смартфоне в портретной ориентации */
@media (max-width: 600px) and (orientation: portrait)  {
    .hero__visual {
        width: calc(100vw - 20px);
        max-width: calc(100vw - 20px);
        margin-left: calc(50% - 50vw + 10px);
        margin-right: calc(50% - 50vw + 10px);
    }

    .hero__slider {
        max-width: none;
        margin-inline: 0;
        /* по желанию — без скруглений у края экрана */
        /* border-radius: 0; */
    }
}

/* =========================================================
   Footer: жёсткое выравнивание 4 блоков (перебивает styles/legacy)
   ========================================================= */
.popular_links_centered_content {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 230px));
    justify-content: center;
    justify-items: stretch;
    align-items: stretch;
    gap: 16px 20px;
    width: 100% !important;
    max-width: 980px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    box-sizing: border-box;
}

.popular_links_block,
.popular_links_block.withMarginLeft {
    float: none !important;
    margin: 0 !important;
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 230px;
    box-sizing: border-box;
}

@media (max-width: 1000px) {
    .popular_links_centered_content {
        grid-template-columns: repeat(2, minmax(0, 230px));
    }
}

@media (max-width: 520px) {
    .popular_links_centered_content {
        grid-template-columns: minmax(0, 230px);
    }
}

/* Footer copyright text — перенос на узких экранах */
.footer-text,
#SITE_STRUCTURE_WRichText_1 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    word-break: break-word;
    left: 0 !important;
    padding-inline: 12px;
}

.footer-text .font_9,
.footer-text p,
.footer-text span {
    white-space: normal !important;
    overflow-wrap: anywhere;
    word-wrap: break-word;
    max-width: 100%;
}

@media (max-width: 710px) {
    .footer-text,
    #SITE_STRUCTURE_WRichText_1 {
        padding-inline: 16px;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* =========================================================
   Footer: нижняя часть и быстрые кнопки связи
   ========================================================= */

.footer-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;

    width: 100%;
    box-sizing: border-box;

    padding: 0 12px 24px;
}


/* Текстовая часть футера */

.footer-bottom .footer-text {
    flex: 1 1 auto;
    min-width: 0;
}


/* ---------------------------------------------------------
   Быстрые кнопки в подвале сайта
   --------------------------------------------------------- */

.footer-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    flex: 0 0 auto;

    gap: 10px;

    padding-bottom: 8px;
}


/* Сама кнопка */

.footer-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 52px;
    height: 52px;

    box-sizing: border-box;

    color: #F3F2F2;

    text-decoration: none;

    border-radius: 50%;

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}


/* SVG */

.footer-action svg {
    display: block;

    width: 30px;
    height: 30px;

    transition:
        transform 0.2s ease;
}


/* Наведение */

.footer-action:hover {
    color: #ffffff;

    background-color: rgba(255, 255, 255, 0.12);

    transform: translateY(-2px);
}


/* Нажатие */

.footer-action:active {
    transform: translateY(0);
}


/* Навигация с клавиатуры */

.footer-action:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;

    background-color: rgba(255, 255, 255, 0.12);
}


/* =========================================================
   Планшеты
   ========================================================= */

@media (max-width: 760px) {

    .footer-bottom {
        gap: 20px;
    }


    .footer-actions {
        gap: 6px;
    }


    .footer-action {
        width: 46px;
        height: 46px;
    }


    .footer-action svg {
        width: 27px;
        height: 27px;
    }

}


/* =========================================================
   Смартфоны
   ========================================================= */

@media (max-width: 600px) {

    .footer-bottom {
        flex-direction: column;

        align-items: stretch;

        gap: 8px;

        padding:
            0
            16px
            24px;
    }


    .footer-actions {
        justify-content: center;

        width: 100%;

        padding-top: 8px;
        padding-bottom: 0;
    }

}


/* Очень узкие смартфоны */

@media (max-width: 380px) {

    .footer-actions {
        gap: 2px;
    }


    .footer-action {
        width: 44px;
        height: 44px;
    }


    .footer-action svg {
        width: 25px;
        height: 25px;
    }

}


/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — ОБЩИЙ БЕЛЫЙ ЛИСТ
   Все обычные страницы сайта используют #WhitePage.
   Главная страница index.php этот контейнер не использует.
   ========================================================= */

#WhitePage {
    width: min(100%, var(--content-max));
    margin-inline: auto;

    padding: 10px 0;

    box-sizing: border-box;

    background: #fff;
    border: 1px solid rgb(212, 214, 215);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}

@media (max-width: 710px) {
    #WhitePage {
        box-shadow: none;
        border-radius: 0;
        padding-inline: 16px;
    }
}


/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ — ОБЩИЙ КОНТЕНТ СТАТЬИ
   Базовые правила для всех новых внутренних страниц.
   ========================================================= */

#ArticleText {
    min-width: 0;
    overflow-wrap: break-word;
}

#ArticleText .font_7,
#ArticleText,
#ArticleText p,
#ArticleText td,
#ArticleText th,
#ArticleText li {
    font: normal 17px/1.4em Arial, sans-serif;
    color: #01153B;
}

#ArticleText .ActicleTitle {
    margin: 0;
    line-height: 1.1;
    font-size: 30px;
    font-weight: 300;
    color: #6EA4EF;
    overflow-wrap: anywhere;
}

#ArticleText .s14 {
    border-bottom: 1px solid rgb(144, 149, 151);
    height: 0 !important;
    min-height: 0 !important;
}

#ArticleText .prodlink:hover {
    text-decoration: underline;
    color: #ff0000;
}

#ArticleText .headerblue {
    padding: 7px 16px 7px 40px;
    font-size: 22px;
    color: #fff;
    background: rgb(130, 164, 211);
    border-radius: 0 0 0 25px;
    overflow-wrap: anywhere;
}

#ArticleText img
{
    max-width: 100%;
    height: auto;
}


ul.garantlist {
    margin-left: 0;
    padding-left: 0;
    text-align: justify;
}

.garantlist > li {
    list-style: none;
    position: relative;
    padding-left: 30px;
}

.garantlist > li::before {
    content: '';
    position: absolute;
    left: 5px;
    top: .26em;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #6EA4EF;
}

@media (max-width: 710px) {
    #ArticleText {
        margin: 10px 0;
    }
    #ArticleText blockquote {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}


/* =========================================================
   InfoBlocks.php — специфические правила
   ========================================================= */

/* Таблицы: убираем старые фиксированные ширины и разрешаем перенос текста */
#ArticleText table {
    max-width: 100%;
    box-sizing: border-box;
}

#table-statistic,
#ArticleText table[id^="group"],
#universal-kib-list,
#table-maximums {
    width: 100%;
    table-layout: auto;
}

#ArticleText table[id^="group"] {
    table-layout: fixed;
}

#ArticleText .blockcol1 {
    width: 48px;
    text-align: center;
}

#ArticleText .blockcol2 {
    width: auto;
    padding: 12px;
    text-align: left;
    overflow-wrap: anywhere;
    word-break: normal;
}

#ArticleText .blockcol3,
#ArticleText .blockcol4 {
    width: 55px;
    text-align: center;
}

#ArticleText .blockcol2 a,
#ArticleText td,
#ArticleText th {
    overflow-wrap: anywhere;
}

#ArticleText table[id^="group"] caption {
    padding: 0 0 10px;
}

#universal-kib-list th:first-child,
#table-maximums th:first-child {
    width: 290px !important;
}

#ArticleText .SeeExtra,
#ArticleText .SeeExtraGreen {
    box-sizing: border-box;
    max-width: 100%;
}

#ArticleText blockquote {
    max-width: 100%;
    box-sizing: border-box;
}

#Profline {
    min-width: 0;
}

#Profline table {
    width: auto;
    max-width: 100%;
}

#Profline td:last-child {
    min-width: 0;
}

#Profline a {
    overflow-wrap: anywhere;
}

@media (max-width: 710px) {
    .infoblocks-content {
        /* без дополнительного padding — как у about-content;
           .page-content даёт padding-inline: 16px */
        border-radius: 0;
    }

    #ArticleText .font_7,
    #ArticleText,
    #ArticleText p,
    #ArticleText td,
    #ArticleText th,
    #ArticleText li {
        font-size: 16px;
        line-height: 1.45em;
    }

    #ArticleText .ActicleTitle {
        font-size: 26px;
    }

    #ArticleText .headerblue {
        margin-left: -14px;
        margin-right: -14px;
        padding: 9px 14px 9px 24px;
        font-size: 20px;
        border-radius: 0 0 0 22px;
    }

    #table-statistic {
        border-spacing: 6px 0 !important;
    }

    #table-statistic td {
        padding-top: 5px;
        padding-bottom: 5px;
    }

    #ArticleText table[id^="group"] {
        table-layout: fixed;
        font-size: 14px;
    }

    #ArticleText table[id^="group"] caption {
        font-size: 20px !important;
        line-height: 1.25;
        overflow-wrap: anywhere;
    }

    #ArticleText table[id^="group"] th,
    #ArticleText table[id^="group"] td {
        padding: 7px 4px;
    }

    #ArticleText table[id^="group"] .blockcol1 {
        width: 32px;
        padding-inline: 2px;
    }

    #ArticleText table[id^="group"] .blockcol3,
    #ArticleText table[id^="group"] .blockcol4 {
        width: 42px;
        padding-inline: 2px;
    }

    #ArticleText .blockcol2 {
        padding: 8px 5px;
    }

    #ArticleText input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    #universal-kib-list,
    #table-maximums {
        table-layout: fixed;
    }

    #universal-kib-list th:first-child,
    #table-maximums th:first-child {
        width: 38% !important;
    }

    #universal-kib-list th,
    #universal-kib-list td,
    #table-maximums th,
    #table-maximums td {
        padding: 8px 6px;
        vertical-align: top;
    }

    #Profline > table,
    #Profline > table tbody,
    #Profline > table tr,
    #Profline > table td {
        max-width: 100%;
        box-sizing: border-box;
    }

    #Profline > table td:first-child {
        width: 82px;
    }

    #Profline > table img {
        max-width: 64px;
        height: auto;
        min-width: 0 !important;
        min-height: 0 !important;
        padding-left: 0 !important;
    }

    #Profline ul {
        margin-left: 0 !important;
        padding-left: 22px;
        font-size: 1.15em !important;
        max-width: 100%;
    }

    #note-not-oferta span {
        font-size: 12px !important;
    }
}

@media (max-width: 430px) {
    #table-statistic td:nth-child(2),
    #table-statistic td:nth-child(3) {
        display: none;
    }

    #ArticleText table[id^="group"] {
        font-size: 13px;
    }

    #ArticleText table[id^="group"] .blockcol1 {
        display: none;
    }

    #ArticleText table[id^="group"] th:first-child {
        display: none;
    }

    #ArticleText table[id^="group"] .blockcol3,
    #ArticleText table[id^="group"] .blockcol4 {
        width: 38px;
    }

    #universal-kib-list,
    #table-maximums {
        font-size: 14px;
    }

    #Profline > table tr {
        display: flex;
        align-items: center;
    }

    #Profline > table td:first-child {
        flex: 0 0 64px;
        width: 64px;
    }

    #Profline > table td:last-child {
        flex: 1 1 auto;
        width: calc(100% - 64px);
    }
}

/* =========================================================
   InfoBlocks.php — desktop corrections after visual review
   ========================================================= */

/* Белый лист оформляется глобально через #WhitePage.
   Здесь остаются только специфические правила InfoBlocks.php. */

#KIB_Info {
    left: 120px;
    right: 120px; 
}

@media (max-width: 710px) {
    #KIB_Info {
        left: 0;
        right: 0; 
    }
}

/* Статистика не должна растягиваться на всю ширину. Табличная
   структура здесь удобна: она сохраняет ровные вертикальные колонки. */
#table-statistic {
    width: auto;
    max-width: 100%;
    table-layout: auto;
}
#table-statistic td {
    white-space: nowrap;
}
#table-statistic td:first-child {
    text-align: left;
}
#table-statistic td:nth-child(2),
#table-statistic td:nth-child(3) {
    text-align: center;
}
#table-statistic td:nth-child(4) {
    text-align: right;
}

@media (max-width: 1270px) {
    #ArticleText li {
        margin-top: 20px !important;
        margin-bottom: 20px !important;
    }
}

/* Информационные выделенные блоки из старого дизайна.
   (старый override margins #ArticleText при min-width:980 убран —
    поля теперь единые через правило ниже, как на About.php) */

#ArticleText .SeeExtra {
    background-color: #f9f5e4;
    padding: 20px 10px 20px 20px;
    border-top: 4px solid #f0da99;
    box-shadow: 0 7px 7px -4px rgb(224, 221, 224);
}
#ArticleText .SeeExtraGreen {
    background-color: #DDE2C1;
    padding: 20px 10px 20px 20px;
    border-top: 4px solid #83B379;
    box-shadow: 0 7px 7px -4px rgb(224, 221, 224);
}

/* У каждой группы столбцы имеют разное назначение; одинаковая ширина
   здесь визуально и семантически неверна. */
#ArticleText table[id^="group"] {
    width: 100%;
    table-layout: auto;
}
#ArticleText table[id^="group"] .blockcol1 {
    width: 48px;
    white-space: nowrap;
}
#ArticleText table[id^="group"] .blockcol2 {
    width: auto;
}
#ArticleText table[id^="group"] .blockcol3,
#ArticleText table[id^="group"] .blockcol4 {
    width: 55px;
    white-space: nowrap;
}

/* Явно восстанавливаем цвет названий комплектов: старые общие правила
   больше не должны переопределять его. */
.KIB_name,
td.KIB_name,
#ArticleText .KIB_name {
    color: #008B00 !important;
    text-decoration: none !important;
}
.KIB_name *,
#ArticleText .KIB_name * {
    text-decoration: none !important;
}


@media (max-width: 710px) {
    #table-statistic td {
        white-space: normal;
    }
}


/* =========================================================
   About.php — белый лист и адаптация старого центрального контента
   ========================================================= */

.docParaGreen {
    line-height: 1.4em !important;
    text-align: justify;
    padding:20px;
    border-left: 5px solid #03B603;
    background-color: #E9F9E4;
}

.LineGradientRight {
    border: 0; 
    height: 1px !important; 
    background-image: linear-gradient(to right, rgb(144, 149, 151), rgba(0, 0, 0, 0));
}   

.LineGradientBoth {
    border: 0; 
    height: 1px; 
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgb(144, 149, 151), rgba(0, 0, 0, 0));
}

#WhitePage.about-content .zoom-container {
    /* width: min(100%, 900px); */
    max-width: 100%;
    margin-inline: auto;
}

#WhitePage.about-content .zoom-container img {
    display: block;
    width: 100%;
}

@media (max-width: 710px) {
    #WhitePage.about-content h1.ActicleTitle {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
        line-height: 1.15;
    }

    #WhitePage.about-content h2 {
        font-size: clamp(1.25rem, 5.5vw, 1.5rem);
        line-height: 1.3;
    }

    #WhitePage.about-content img[style*="width: 450px"] {
        width: min(100%, 450px) !important;
    }

    #WhitePage.about-content ol,
    #WhitePage.about-content ul {
        padding-left: 1.4em;
    }
}


/* =========================================================
   About.php — контактная информация
   ========================================================= */
/*
.about-contacts {
    margin: 34px 0 30px;
    padding: 22px 26px 24px;
    background: #f7f8f9;
    border-left: 4px solid #1d5377;
}

.about-contacts__title {
    margin: 0 0 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d5377;
}

.about-contacts__group {
    margin: 0 0 18px;
}

.about-contacts__group:last-child {
    margin-bottom: 0;
}

.about-contacts__group h3 {
    margin: 0 0 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
}

.about-contacts__group p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
    text-align: left;
}

.about-contacts__note {
    margin-top: -2px !important;
    margin-bottom: 3px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #777 !important;
}

.about-contacts__phone-note {
    margin-left: 6px;
    font-size: 13px;
    color: #777;
}

.about-contacts a {
    color: #1d5377;
    text-decoration: none;
}

.about-contacts a:hover {
    text-decoration: underline;
}

.about-contacts__email {
    padding-top: 4px;
}

.about-contacts__email-icon {
    width: 18px;
    height: 18px;
    margin-left: 5px;
    vertical-align: -4px;
}

.about-contacts__email-icon {
    display: inline-block;
    width: 17px;
    height: 17px;
    margin-left: 0;
    vertical-align: -3px;
    color: #1d5377;
}

.about-contacts__email-icon {
    transition: opacity 0.15s ease;
}

.about-contacts a:hover .about-contacts__email-icon {
    opacity: 0.75;
}
*/

/* ---------------------------------------------------------
   Мобильная версия
   --------------------------------------------------------- */
/*
@media (max-width: 700px) {

    .about-contacts {
        margin: 26px 0 24px;
        padding: 18px 18px 20px;
        border-left-width: 3px;
    }

    .about-contacts__title {
        margin-bottom: 17px;
        font-size: 19px;
    }

    .about-contacts__group {
        margin-bottom: 17px;
    }

    .about-contacts__group h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .about-contacts__group p {
        font-size: 15px;
        line-height: 1.5;
    }

    .about-contacts__note {
        font-size: 12px !important;
    }

    .about-contacts__phone-note {
        font-size: 12px;
    }

    .about-contacts__email-icon {
        width: 17px;
        height: 17px;
    }

    .about-contacts__email-icon {
        width: 16px;
        height: 16px;
        margin-left: 5px;
    }
}
*/


/* =========================================================
   About.php — контактная информация
   ========================================================= */

.about-contacts {
    margin: 34px 0 30px;
    padding: 22px 26px 24px;
    background: #f7f8f9;
    border-left: 4px solid #1d5377;
}

.about-contacts__title {
    margin: 0 0 20px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 20px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d5377;
}

.about-contacts__group {
    margin: 0 0 18px;
}

.about-contacts__group:last-child {
    margin-bottom: 0;
}

.about-contacts__group h3 {
    display: flex;
    align-items: center;
    margin: 0 0 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    color: #333;
}

.about-contacts__icon {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-right: 7px;
    color: #1d5377;
}

.about-contacts__group p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.45;
    color: #333;
    text-align: left;
}

.about-contacts__note {
    margin: -2px 0 3px !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    color: #777 !important;
}

.about-contacts__phone-note {
    margin-left: 6px;
    font-size: 13px;
    color: #777;
}

.about-contacts a {
    color: #1d5377;
    text-decoration: none;
}

.about-contacts a:hover {
    text-decoration: underline;
}


/* ---------------------------------------------------------
   Мобильная версия
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .about-contacts {
        margin: 26px 0 24px;
        padding: 18px 18px 20px;
        border-left-width: 3px;
    }

    .about-contacts__title {
        margin-bottom: 17px;
        font-size: 19px;
    }

    .about-contacts__group {
        margin-bottom: 17px;
    }

    .about-contacts__group h3 {
        font-size: 15px;
        margin-bottom: 4px;
    }

    .about-contacts__icon {
        width: 17px;
        height: 17px;
        margin-right: 6px;
    }

    .about-contacts__group p {
        font-size: 15px;
        line-height: 1.5;
    }

    .about-contacts__note {
        font-size: 12px !important;
    }

    .about-contacts__phone-note {
        font-size: 12px;
    }
}


/* =========================================================
   About.php — информационный блок
   ========================================================= */

.about-info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 30px;
    margin: 28px 0 24px;
}

.about-info__item {
    position: relative;
    padding: 20px 22px;
    background: #f7f8f9;
    border-left: 4px solid #1d5377;
    border-radius: 2px;
}

.about-info__item h2 {
    margin: 0 0 10px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 700;
    color: #1d5377;
}

.about-info__item p {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    text-align: left;
}


/* ---------------------------------------------------------
   Мобильная версия
   --------------------------------------------------------- */

@media (max-width: 700px) {

    .about-info {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 24px;
    }

    .about-info__item {
        padding: 17px 18px;
    }

    .about-info__item h2 {
        font-size: 18px;
        margin-bottom: 8px;
    }

    .about-info__item p {
        font-size: 15px;
        line-height: 1.5;
    }
}


@media (min-width: 711px) {
    #ArticleText {
        margin-top: 40px;
        margin-right: 20px;
        margin-bottom: 40px;
        margin-left: 44px;
    }
}
/* Profline / UniversalLine: prevent overflow on narrow screens */
#WhitePage.products-content #Profline table,
#WhitePage.products-content #UniversalLine table {
    width: auto;
    max-width: 100%;
}

#WhitePage.products-content #Profline td,
#WhitePage.products-content #UniversalLine td {
    vertical-align: middle;
}


@media (max-width: 710px) {
    #WhitePage.products-content h1.ActicleTitle {
        font-size: clamp(1.8rem, 8vw, 2.25rem);
        line-height: 1.15;
    }

    #WhitePage.products-content h2 {
        font-size: clamp(1.25rem, 5.5vw, 1.5rem);
        line-height: 1.3;
    }

    #WhitePage.products-content #Profline td:first-child,
    #WhitePage.products-content #UniversalLine td:first-child {
        text-align: center;
        padding-bottom: 8px;
    }

    #WhitePage.products-content #Profline img,
    #WhitePage.products-content #UniversalLine img {
        margin: 0;
        display: block;
        padding: 5px !important;
        min-width: 0 !important;
    }

    #WhitePage.products-content #Profline ul,
    #WhitePage.products-content #UniversalLine ul {
        margin-left: 0;
        padding-left: 1.4em;
    }

    #WhitePage.products-content .products-banner img {
        float: none !important;
        display: block;
        margin: 10px auto !important;
        max-width: min(250px, 100%);
    }

    #WhitePage.products-content blockquote {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0.5em;
    }
}


/* =========================================================
   ABOUT — ПОСЛЕДНИЕ ДОСТИЖЕНИЯ
   Десктоп: горизонтальная галерея с прокруткой.
   Мобильные: обычный вертикальный список.
   ========================================================= */

.awards-gallery {
    position: relative;
    width: min(100%, 1120px);
    margin: 10px auto 28px;
    padding: 0 34px;
}

.awards-gallery__viewport {
    overflow: hidden;
    width: 100%;
    padding-left: 20px; /* добавил новое */
}

.awards-gallery__track {
    display: flex;
    align-items: flex-start;
    /* gap: 18px; */
    gap: 30px; 
    will-change: transform;
    transition: transform .35s ease;
}

.awards-gallery,
.awards-gallery__viewport,
.awards-gallery__track,
.award-card,
.award-card__button,
.award-card__button img {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;

    -webkit-touch-callout: none;

    box-sizing: border-box;
}

.award-card {
    /* flex: 0 0 180px; */
    flex: 0 0 250px;
    /* width: 180px; */
    width: 250px;
    margin: 0;
    text-align: center;

    -webkit-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

.award-card__button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    /* height: 250px; */
    height: 360px;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    overflow: visible;
}

.award-card__button img {
    display: block;
    width: auto !important;
    max-width: 100%;
    /* height: 250px; */
    height: 360px;
    object-fit: contain;
    margin: 0 auto;
    transition: transform .4s ease, filter .4s ease;
}

/* Изображение нельзя перетаскивать средствами браузера */
.award-card__button img {
    -webkit-user-drag: none;
    user-drag: none;
}

/*
.award-card__button:hover img,
.award-card__button:focus-visible img {
    transform: scale(1.06);
}
*/

.award-card__button:hover img {
    transform: scale(1.06);
}

.award-card__button:focus-visible {
    outline: 2px solid #1D5377;
    outline-offset: 4px;
}

.award-card figcaption {
    margin-top: 9px;
    font-size: 13px;
    line-height: 1.3;
    color: #555;
}

.awards-gallery__arrow {
    position: absolute;
    z-index: 2;
    top: 125px;
    width: 34px;
    height: 54px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: rgba(29, 83, 119, .88);
    color: #fff;
    font-size: 27px;
    line-height: 54px;
    text-align: center;
    cursor: pointer;
    opacity: .78;
    transition: opacity .2s ease, transform .2s ease, background-color .2s ease;

    -webkit-user-select: none;
    -moz-user-select: none; 
    -ms-user-select: none; 
    user-select: none;
}

.awards-gallery__arrow:hover {
    opacity: 1;
    background: #1D5377;
}

.awards-gallery__arrow:active {
    transform: scale(.96);
}

.awards-gallery__arrow:disabled {
    display: none;
}

.awards-gallery__arrow--prev {
    left: 0;
}

.awards-gallery__arrow--next {
    right: 0;
}

/* Полноэкранный просмотр */
.award-lightbox[hidden] {
    display: none;
}

.award-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 60px;
    background: rgba(0, 0, 0, .86);
    cursor: zoom-out;
}

.award-lightbox__image {
    display: block;
    max-width: 96vw !important;
    max-height: 90vh !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .45);
    cursor: default;
}

.award-lightbox__caption {
    position: absolute;
    left: 20px;
    right: 20px;
    bottom: 14px;
    color: #fff;
    text-align: center;
    font-size: 14px;
    line-height: 1.3;
    text-shadow: 0 1px 2px #000;
}

.award-lightbox__close {
    position: absolute;
    top: 8px;
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 38px;
    line-height: 42px;
    cursor: pointer;
}

.award-lightbox__close:hover {
    opacity: .75;
}

body.award-lightbox-open {
    overflow: hidden;
}

/* На смартфоне карусель отключается полностью:
   награды возвращаются к вертикальному списку. */
@media (max-width: 710px) {
    .awards-gallery {
        width: 100%;
        margin: 10px 0 25px;
        padding: 0;
    }

    .awards-gallery__viewport {
        overflow: visible;
    }

    .awards-gallery__track {
        display: block;
        transform: none !important;
    }

    .award-card {
        width: 100%;
        margin: 0 0 30px;
    }

    .award-card__button {
        height: auto;
        min-height: 0;
        cursor: zoom-in;
    }

    .award-card__button img {
        width: auto !important;
        max-width: 100%;
        height: auto;
        max-height: none;
    }

    .award-card figcaption {
        margin-top: 7px;
        font-size: 14px;
    }

    .awards-gallery__arrow {
        display: none !important;
    }

    .award-lightbox {
        padding: 45px 12px 42px;
    }

    .award-lightbox__image {
        max-width: 98vw !important;
        max-height: 88vh !important;
    }
}


/* =========================================================
   InfoFuncProperties.php — компактная карта возможностей
   ========================================================= */
.info-func-page {
    --ifp-blue: #1D5377;
    --ifp-orange: #EC9036;
}

.info-func-page .ifp-intro {
    max-width: 900px;
    margin: 0 auto 22px;
}

.info-func-page .ifp-intro p,
.info-func-page .ifp-lead {
    line-height: 1.55;
}

.info-func-page .ifp-note {
    max-width: 900px;
    margin: 24px auto 30px;
    padding: 17px 20px 16px;
    border-left: 4px solid var(--ifp-blue);
    background: #f5f7f8;
    box-sizing: border-box;
}

.info-func-page .ifp-note p {
    margin: 6px 0 0;
    line-height: 1.45;
}

.info-func-page .ifp-nav {
    max-width: 900px;
    margin: 0 auto 38px;
    padding: 18px 22px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 28px;
    background: #f7f8f9;
    border-radius: 8px;
    box-sizing: border-box;
}

.info-func-page .ifp-nav a {
    color: var(--ifp-blue);
    text-decoration: none;
    line-height: 1.4;
}

.info-func-page .ifp-nav a:hover {
    text-decoration: underline;
}

.info-func-page .ifp-section {
    max-width: 900px;
    margin: 0 auto 48px;
    scroll-margin-top: 24px;
}

.info-func-page .ifp-section > .headerblue,
.info-func-page .ifp-final > .headerblue {
    margin-bottom: 14px;
}

.info-func-page .ifp-lead {
    margin: 0 0 22px;
}

.info-func-page .ifp-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.info-func-page .ifp-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.info-func-page .ifp-card {
    padding: 18px 20px 17px;
    border: 1px solid #dfe4e7;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.info-func-page .ifp-card:hover {
    border-color: #c5d0d7;
}

.info-func-page .ifp-card--accent {
    border-left: 4px solid var(--ifp-orange);
    background: #fffaf4;
}

.info-func-page .ifp-card h3 {
    margin: 0 0 8px;
    color: var(--ifp-blue);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    line-height: 1.3;
}

.info-func-page .ifp-card p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.48;
}

.info-func-page .ifp-card .prodlink {
    font-size: 14px;
}

.info-func-page .ifp-final {
    max-width: 900px;
    margin: 8px auto 32px;
    padding-top: 8px;
    border-top: 1px solid #d9dfe3;
}

.info-func-page .ifp-disclaimer {
    margin-top: 22px;
    padding: 13px 16px;
    background: #f7f8f9;
    color: #666;
    font-size: 13px;
    line-height: 1.45;
}

.info-func-page .ifp-home {
    max-width: 900px;
    margin: 28px auto 12px;
}

.info-func-page .ifp-note-smaller {
    color: #666;
    font-size: 13px;
    line-height: 1.45;
    margin-bottom: 10px;
}

@media (max-width: 700px) {
    .info-func-page .ifp-nav,
    .info-func-page .ifp-grid,
    .info-func-page .ifp-grid--compact {
        grid-template-columns: 1fr;
    }

    .info-func-page .ifp-nav {
        padding: 16px 18px;
        gap: 8px;
    }

    .info-func-page .ifp-section {
        margin-bottom: 38px;
    }

    .info-func-page .ifp-card {
        padding: 16px 17px;
    }

    .info-func-page .ifp-card h3 {
        font-size: 17px;
    }
}

