:root {
    /* Базовый стек (старое имя — для совместимости с остальным кодом шаблона). */
    --pl-font-exo: 'Exo 2', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    /* Текст интерфейса: шапка, футер, меню, поля, подсказки компактного поиска */
    --pl-font-base: var(--pl-font-exo);
    /* Заголовки и акцентная типографика */
    --pl-font-head: var(--pl-font-exo);
    /* Крупные поля/кнопки поиска на главной и его подсказки */
    --pl-font-ui: var(--pl-font-exo);

    --pl-color-primary: #193F79;
    --pl-color-secondary: #C27F39;
}

/* =============================================================================
   ProfiLine Header
   ============================================================================= */

.pl-header {
    background: #ffffff;
    color: #333333;
    border-top: 3px solid var(--pl-color-primary);
    position: sticky;
    top: 0;
    z-index: 115;
    --pl-mega-menu-viewport-offset: 96px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.045);
}

.pl-header__bar {
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    gap: 16px;
}

.pl-header__left {
    width: 176px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.pl-header__burger {
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.pl-header__burger-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
}

.pl-header__burger-line {
    position: absolute;
    left: 3px;
    width: 18px;
    height: 0;
    border-top: 2px solid #333333;
    border-radius: 1px;
    transform: none;
    transform-origin: center center;
    transition: transform 0.2s ease, opacity 0.2s ease;
    top: 11px;
}

.pl-header__burger-line--1 {
    transform: translateY(-5px);
}

.pl-header__burger-line--2 {
    transform: translateY(0);
}

.pl-header__burger-line--3 {
    transform: translateY(5px);
}

/* Turn burger into a "close" X when menu is open */
.active .pl-header__burger-line--1 {
    transform: rotate(45deg);
}

.active .pl-header__burger-line--2 {
    opacity: 0;
}

.active .pl-header__burger-line--3 {
    transform: rotate(-45deg);
}

.pl-header__logo {
    width: 131px;
    height: 50px;
    object-fit: contain;
    display: block;
}

.pl-header__center {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pl-header__catalog {
    align-self: stretch;
    padding: 12px 24px 12px 16px;
    border-radius: 6px;
    border: 1px solid var(--pl-color-primary);
    background: #ffffff;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.pl-header__catalog-icon {
    width: 16px;
    height: 16px;
    position: relative;
    display: inline-block;
    transition: transform 0.2s;
}

.active .pl-header__catalog-icon {
    transform: rotate(180deg);
}

.pl-header__catalog-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--pl-color-primary);
}

.pl-header__search-slot {
    flex: 0 1 auto;
    min-width: 0;
}

.pl-header__right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pl-header__link {
    text-decoration: none;
    font-family: var(--pl-font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #333333;
}

.pl-header__link:hover {
    text-decoration: underline;
}

.pl-header__link--b2b {
    color: var(--pl-color-primary);
}

.pl-header__cta {
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--pl-color-primary);
    border: 1px solid var(--pl-color-primary);
    text-decoration: none;
    font-family: var(--pl-font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.pl-header__cta:hover {
    text-decoration: none;
    color: #f5f5f5;
}

.pl-header__phone,
.pl-header__phone a {
    font-family: var(--pl-font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: #333333;
    text-decoration: none;
}

.pl-header__phone:hover,
.pl-header__phone a:hover {
    text-decoration: underline;
}

.pl-header__mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    z-index: 120;
    box-sizing: border-box;
    max-height: calc(100vh - var(--pl-mega-menu-viewport-offset) - env(safe-area-inset-top, 0px));
    max-height: calc(100dvh - var(--pl-mega-menu-viewport-offset) - env(safe-area-inset-top, 0px));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
}

.pl-header__mega-menu.active {
    display: block;
}

.pl-header__drop {
    position: relative;
}

.pl-header__drop-menu {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    display: none;
    z-index: 130;
}

.active > .pl-header__drop-menu {
    display: block;
}


@media (max-width: 990px) {
    .pl-header__search-slot {
        display: none;
    }
}

/* Mobile header bar (burger | logo | CTA); above mobile menu overlay */
@media (max-width: 768px) {
    .pl-header {
        --pl-mega-menu-viewport-offset: 64px;
    }

    /* Мегаменю только для десктопа — при сжатии окна не показывать, даже если остался .active */
    .pl-header__mega-menu,
    .pl-header__mega-menu.active {
        display: none !important;
    }

    .pl-header__bar {
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 56px;
        padding: 12px 16px;
    }

    .pl-header__left {
        display: contents;
    }

    .pl-header__center {
        display: none;
    }

    .pl-header__right {
        display: contents;
    }

    .pl-header__burger {
        order: 0;
        width: 40px;
        height: 40px;
        margin: -8px 0 -8px -8px;
        padding: 8px;
        box-sizing: border-box;
        flex-shrink: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .pl-header__burger-icon {
        width: 24px;
        height: 24px;
    }

    .pl-header__logo {
        order: 1;
        height: 32px;
        width: auto;
        max-width: 120px;
        margin-right: auto;
        flex-shrink: 0;
    }

    .pl-header__wrap-logo {
        margin-right: auto;
    }

    .pl-header__right > .pl-header__phone,
    .pl-header__right > .pl-header__link {
        display: none;
    }

    .pl-header__cta {
        order: 2;
        flex-shrink: 0;
        height: 32px;
        padding: 0 24px;
        border-radius: 4px;
        white-space: nowrap;
    }
}

/* =============================================================================
   ProfiLine Footer
   ============================================================================= */

.pl-footer {
    /* Тёмно-серый футер (нейтральный, без синего) */
    --pl-footer-bg: #2a2a2c;
    --pl-footer-text: #ffffff;
    --pl-footer-muted: rgba(255, 255, 255, 0.68);
    --pl-footer-subtle: rgba(255, 255, 255, 0.5);
    --pl-footer-line: rgba(255, 255, 255, 0.14);
    --pl-footer-cta-bg: #ffffff;
    --pl-footer-cta-text: var(--pl-color-primary);

    font-family: var(--pl-font-base);
    background: var(--pl-footer-bg);
    color: var(--pl-footer-text);
    border-top: 3px solid rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
}

.pl-footer__inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 28px 20px 24px;
    box-sizing: border-box;
}

.pl-footer__top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pl-footer-line);
}

.pl-footer__top-lead {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px 32px;
    /* Не растягиваем на всю ширину — иначе соцсети уезжают к кнопкам из‑за space-between */
    flex: 0 1 auto;
    min-width: 0;
}

.pl-footer__brand {
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.pl-footer__brand-name {
    font-family: var(--pl-font-head);
    font-size: clamp(32px, 4.2vw, 40px);
    font-weight: 600;
    line-height: 1.12;
    color: var(--pl-footer-text);
    letter-spacing: 0.02em;
}

.pl-footer__brand-tagline {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    color: var(--pl-footer-muted);
}

.pl-footer__about {
    margin: 0;
    flex: 1 1 220px;
    min-width: 200px;
    max-width: 420px;
    padding: 0 0 0 28px;
    border-left: 1px solid var(--pl-footer-line);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
    color: var(--pl-footer-muted);
    box-sizing: border-box;
}

.pl-footer__networks {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    flex-shrink: 0;
    padding-left: 30px;
    position: relative;
}

.pl-footer__networks:before {
    content: '';
    position: absolute;
    width: 1px;
    height: 40px;
    top: 16px;
    left: 0;
    background: var(--pl-footer-line);
}

.pl-footer__networks-title {
    margin: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--pl-footer-muted);
    letter-spacing: 0.02em;
}

.pl-footer__networks-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pl-footer__network-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
    border-radius: 10px;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.pl-footer__network-link:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.pl-footer__network-link:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}

.pl-footer__network-link img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.pl-footer__top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 12px 24px;
}

.pl-footer__phone {
    text-align: center;
    padding: 10px 0;
}

.pl-footer__phone,
.pl-footer__phone a {
    font-family: var(--pl-font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    color: var(--pl-footer-text);
    text-decoration: none;
}

.pl-footer__phone:hover,
.pl-footer__phone a:hover {
    text-decoration: underline;
    color: var(--pl-footer-text);
}

.pl-footer__b2b {
    padding: 12px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    font-family: var(--pl-font-base);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    color: var(--pl-footer-text);
}

.pl-footer .pl-footer__b2b:any-link {
    color: var(--pl-footer-text);
}

.pl-footer__b2b:hover {
    border-color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
}

.pl-footer__cta {
    padding: 12px 18px;
    border-radius: 6px;
    background: var(--pl-footer-cta-bg);
    border: 1px solid var(--pl-footer-cta-bg);
    font-size: 14px;
    font-weight: 400;
    line-height: 18px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.pl-footer .pl-footer__cta:any-link {
    color: var(--pl-footer-cta-text);
}

.pl-footer__cta:hover {
    filter: brightness(0.97);
}

.pl-footer__bottom {
    padding-top: 20px;
    border-top: 1px solid var(--pl-footer-line);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.pl-footer__copy {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    color: var(--pl-footer-muted);
}

.pl-footer__bottom-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.pl-footer__bottom-link {
    font-size: 12px;
    line-height: 18px;
    text-decoration: none;
}

.pl-footer .pl-footer__bottom-link:any-link {
    color: rgba(255, 255, 255, 0.82);
}

.pl-footer__bottom-link:hover {
    text-decoration: underline;
    color: var(--pl-footer-text);
}

@media (max-width: 600px) {
    .pl-footer__inner {
        padding: 20px 16px 20px;
    }

    .pl-footer__top {
        flex-direction: column;
        align-items: stretch;
        gap: 24px;
    }

    .pl-footer__top-lead {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .pl-footer__about {
        flex: none;
        max-width: none;
        min-width: 0;
        width: 100%;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--pl-footer-line);
    }

    .pl-footer__top-lead > .pl-footer__networks {
        border-left: 0;
        padding: 16px 0;
        border-top: 1px solid var(--pl-footer-line);
        border-bottom: 1px solid var(--pl-footer-line);
    }

    .pl-footer__networks:before {
        display: none;
    }

    .pl-footer__networks {
        display: flex;
        align-items: center;
        align-self: center;
        width: 100%;
    }

    .pl-networks {
        align-items: center;
    }

    .pl-footer__top-actions {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        margin-left: 0;
    }

    .pl-footer__cta,
    .pl-footer__b2b {
        width: 100%;
    }

    .pl-footer__bottom {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .pl-footer__bottom-row {
        justify-content: center;
    }
}

/* =============================================================================
   ProfiLine Mobile navigation
   ============================================================================= */

.pl-mobile-nav {
    --pl-mobile-text: #333333;
    --pl-mobile-border: #e5e5e5;
    --pl-mobile-divider: #cccccc;
    /* Под липкой шапкой: 3px бордер + min-height полосы 56px */
    --pl-mobile-nav-top: 59px;
    font-family: var(--pl-font-base);
}

.pl-mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    pointer-events: none;
    visibility: hidden;
}

.pl-mobile-nav.is-open {
    pointer-events: auto;
    visibility: visible;
}

.pl-mobile-nav__backdrop {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--pl-mobile-nav-top);
    bottom: 0;
    background: rgba(0, 0, 0, 0.35);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.pl-mobile-nav.is-open .pl-mobile-nav__backdrop {
    opacity: 1;
}

.pl-mobile-nav__sheet {
    position: absolute;
    top: var(--pl-mobile-nav-top);
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    transform: translateY(-100%);
    transition: transform 0.28s ease;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-radius: 0 0 12px 12px;
}

.pl-mobile-nav.is-open .pl-mobile-nav__sheet {
    transform: translateY(0);
}

.pl-mobile-nav__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px 16px 16px;
    -webkit-overflow-scrolling: touch;
}

.pl-mobile-nav__search {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 5px 12px;
    border: 1px solid var(--pl-mobile-border);
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 24px;
}

/* Сбросы + !important, как у .pl-header-search__input — глобальные стили не ломают поле */
.pl-mobile-nav .pl-mobile-nav__search-input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    max-width: none;
    width: auto;
    height: auto;
    display: block;
    box-sizing: border-box !important;

    -webkit-appearance: none;
    appearance: none;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;

    font-family: var(--pl-font-base) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: var(--pl-mobile-text) !important;
    opacity: 0.8;
    vertical-align: middle;
}

.pl-mobile-nav .pl-mobile-nav__search-input::placeholder {
    color: var(--pl-mobile-text) !important;
    opacity: 0.65;
    font-family: var(--pl-font-base) !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

.pl-mobile-nav .pl-mobile-nav__search-input:focus,
.pl-mobile-nav .pl-mobile-nav__search-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border: 0 !important;
    color: var(--pl-mobile-text) !important;
}

.pl-mobile-nav__search-icon-wrap {
    flex-shrink: 0;
    display: inline-flex;
    opacity: 0.8;
}

.pl-mobile-nav__bottom {
    flex: 0 0 auto;
    padding: 16px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pl-mobile-nav__b2b {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.pl-mobile-nav__b2b-label {
    font-size: 16px;
    line-height: 1.3;
    color: var(--pl-mobile-text);
}

.pl-mobile-nav__b2b:hover .pl-mobile-nav__b2b-label {
    text-decoration: underline;
}

.pl-mobile-nav__divider {
    height: 1px;
    background: var(--pl-mobile-divider);
    width: 100%;
}

.pl-mobile-nav__foot-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.pl-mobile-nav__phone,
.pl-mobile-nav__phone a {
    font-family: var(--pl-font-base);
    font-size: 16px;
    line-height: 1.3;
    color: var(--pl-mobile-text);
    text-decoration: none;
}

.pl-mobile-nav__phone:hover,
.pl-mobile-nav__phone a:hover {
    text-decoration: underline;
    color: var(--pl-mobile-text);
}

@media (min-width: 769px) {
    .pl-mobile-nav {
        display: none !important;
    }
}


/* =============================================================================
   Custom overrides
   ============================================================================= */

.articles .item .image_block img {
    object-fit: cover;
}

.news-detail-img {
    margin-bottom: 1em;
}

.header .toogle-block-title2 span {
    display: none !important;
}

@media (max-width: 500px) {
    .header .toogle-block2 {
        display: none !important;
    }
}

.cols2 > .col1 .toogle-title.active {
    font-weight: 600;
    background: #f9f9f9;
}
