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

/* ---------------------------------------------------------
   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;
}


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

@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 64px;   /* было 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%;
}


/* =========================================================
   ПОДПИСЬ НА СКРИНШОТЕ
   ========================================================= */

.hero__slider .banner {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    padding: 14px 18px;

    box-sizing: border-box;

    background:
        linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72),
            rgba(0, 0, 0, 0)
        );
}


.hero__slider .sliderBannerLink {
    display: block;

    padding-top: 18px;

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

    font-size: 0.875rem;

    line-height: 1.4;

    font-weight: 500;

    color: #FFFFFF;

    text-decoration: none;
}


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

@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: 760px;

        margin-inline: auto;
    }

}


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

@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 .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: 56px 0 60px;   /* top −20% от 70px */ 

    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;
}


.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;

    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;
    }

}


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

@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);
}

/* ТЕСТ  */
.slider {
    max-width: 100%;
}

@media (max-width: 600px) {
    .slider {
        outline: 3px solid red !important;
    }

    .slider .pic {
        outline: 3px solid blue !important;
    }
}

@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: 1fr auto auto;
    grid-template-areas:
        "brand contacts badge"
        "search search badge";
    gap: 8px 20px;
    align-items: start;
    padding-bottom: 12px;
}

.site-header__brand {
    grid-area: brand;
    min-width: 0;
}

.site-header__contacts {
    grid-area: contacts;
    display: flex;
    flex-direction: column;
    /* align-items: flex-end; */
    gap: 2px;
    text-align: right;
    padding-top: 4px;
}

.site-header__badge {
    grid-area: badge;
    display: block;
    background: #fff;
    border-radius: var(--header-radius);
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    padding: 20px 20px;
    line-height: 0;
    align-self: start;
}

.site-header__badge-img {
    display: block;
    height: 75px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.site-header__search {
    grid-area: search;
    max-width: 470px;
    min-width: 180px;
    margin-top: 4px;
}

.site-header__contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--header-accent);
    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 {
    color: #fff;
    text-decoration: underline;
}

.site-header__contact--email {
    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 {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.3;
    color: rgba(255,255,255,0.92);
    text-align: left;
}

.site-header__title {
    margin: 0;
    font-family: Impact, "Arial Black", sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: normal;
    line-height: 1.05;
    color: var(--header-text);
    letter-spacing: 0.01em;
}

.site-header__title-ip {
    /* font-family: Arial, sans-serif; */
    font-size: 1.25rem;
    font-weight: normal;
    white-space: nowrap;
}

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

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

.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: #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
   В landscape возвращаем исходную сетку (бейдж | контакты)
   Вариант: логотип по центру → бренд сразу под ним → контакты → поиск */
@media (max-width: 980px) and (orientation: portrait) {

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

    .site-header__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "badge"
            "brand"
            "contacts"
            "search";
        gap: 8px;
        padding-bottom: 8px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .site-header__badge {
        padding: 10px 14px;
        justify-self: center;
        width: fit-content;
        max-width: 100%;
        margin-bottom: 2px;
    }

    .site-header__badge-img {
        height: 52px;
        max-width: min(150px, 100%);
    }

    /* Бренд сразу под логотипом, по центру */
    .site-header__brand {
        text-align: center;
        min-width: 0;
        max-width: 100%;
        padding: 0 4px;
    }

    .site-header__title {
        font-size: clamp(1.35rem, 5.5vw, 1.85rem);
        word-break: break-word;
        line-height: 1.1;
    }

    .site-header__title-ip {
        white-space: normal;
        display: block;
        margin-top: 2px;
        font-size: 0.95rem;
    }

    .site-header__slogan {
        margin: 6px 0 4px;
        font-size: clamp(0.8rem, 2.8vw, 0.95rem);
        line-height: 1.25;
        text-align: center;
    }

    /* Контакты — компактный блок */
    .site-header__contacts {
        grid-area: contacts;
        padding-top: 4px;
        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__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 {
        font-size: 0.75rem;
        text-align: left;
        max-width: 100%;
        white-space: normal;
        margin-top: 4px;
        opacity: 0.9;
        line-height: 1.25;
    }

    .site-header__search {
        width: 100%;
        max-width: none;
        min-width: 0;
        margin-top: 4px;
    }
}


/* Landscape на узком экране: исходная 2-колоночная сетка шапки */
@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 1fr;
        grid-template-areas:
            "badge contacts"
            "brand brand"
            "search search";
        gap: 8px 16px;
        align-items: start;
    }
    .site-header__badge {
        justify-self: start;
        padding: 8px 12px;
    }
    .site-header__badge-img {
        height: 48px;
        max-width: 140px;
    }
    .site-header__contacts {
        justify-self: end;
        align-items: flex-end;
        text-align: right;
        min-width: 0;
    }
    .site-header__territory {
        text-align: right;
        font-size: 0.75rem;
    }
    .site-header__contact {
        font-size: 0.9375rem;
    }
    .site-header__title {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    /* поиск на всю ширину, как меню ниже */
    .site-header__search {
        grid-area: 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 12px;
    }

    .site-header__badge-img {
        height: 46px;
        max-width: min(130px, 100%);
    }

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

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

    .site-header__title-ip {
        font-size: 0.85rem;
    }

    .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;
    box-sizing: border-box;
}

.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;
    }
}


/* =========================================================
   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;
    }
}
