.brand-section {
    margin-top: 20px;
}

.project-section  {
    margin-top: 30px;
}

.pricing-header h2 {
    font-size: 18px;
}

/* --- Страницы услуг: иконки и карточки --- */
.service-wrapper {
    margin-bottom: 0;
}

/* Одинаковая высота карточек в ряду и в слайдере */
.service-section .service-wrapper .row {
    align-items: stretch;
}

.service-section .service-wrapper .row > [class*="col-"] {
    display: flex;
    flex-direction: column;
}

.service-slider .swiper-slide {
    display: flex;
    height: auto;
    align-self: stretch;
    box-sizing: border-box;
}

.service-slider .swiper-wrapper {
    align-items: stretch;
}

.service-section .service-box-items {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    height: 100%;
    padding: 24px 22px 28px;
}

.service-section .service-box-items .content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.service-section .service-box-items .icon {
    margin: 0 0 14px;
    margin-left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.service-section .service-box-items .icon img.service-icon-img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.service-section .service-box-items .icon::before {
    width: 64px;
    height: 64px;
}

/* Слайдер услуг (swiper-wrapper на главной): единый цвет иконок #384BFF */
.service-slider .swiper-wrapper .service-box-items .icon img {
    width: 48px;
    height: 48px;
    max-width: 48px;
    max-height: 48px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    /* силуэт → #384BFF (как у --theme) */
    filter: brightness(0) saturate(100%) invert(36%) sepia(98%) saturate(7496%) hue-rotate(229deg)
        brightness(100%) contrast(101%);
}

.service-slider .swiper-wrapper .service-box-items:hover .icon img,
.service-slider .swiper-wrapper .service-box-items.active .icon img {
    filter: brightness(0) invert(1);
}

/* Карточка услуги: клик по всей области (stretched-link поверх .icon z-index:2) */

/* Сайдбар «Все услуги»: ссылка на всю строку */
.main-sidebar .single-sidebar-widget .widget-categories ul li > a.widget-categories-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    gap: 12px;
    text-decoration: none;
}

.main-sidebar .single-sidebar-widget .widget-categories ul li > a.widget-categories-link .widget-categories-link__label {
    flex: 1;
    min-width: 0;
}

.service-section .service-box-items.service-box-items--link {
    position: relative;
    cursor: pointer;
}

.service-section .service-box-items.service-box-items--link .service-card-hit::after {
    z-index: 5;
}

.service-box-items.service-box-items--link::before,
.service-box-items.service-box-items--link::after,
.service-box-items.service-box-items--link .icon::before {
    pointer-events: none;
}

.service-box-items.service-box-items--link .service-card-hit:focus-visible {
    outline: none;
}

.service-box-items.service-box-items--link:focus-within {
    outline: 2px solid var(--theme);
    outline-offset: 3px;
}

.service-box-items.service-box-items--link .content h4 {
    color: var(--header);
    transition: color 0.3s ease;
}

.service-box-items.service-box-items--link:hover .content h4,
.service-box-items.service-box-items--link.active .content h4 {
    color: var(--white);
}

/* Как в main.css: заголовок-ссылка внутри карточки */
.service-box-items:hover .content h4 a {
    color: var(--white);
}

/* Компактный блок иконки на детальной странице услуги */
.service-details-section .service-icon-card {
    max-width: 112px;
    padding: 14px 16px;
    background: linear-gradient(155deg, #e8edff 0%, #f4f6fb 55%, #f0f4ff 100%);
    border: 1px solid rgba(56, 75, 255, 0.15);
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 13, 29, 0.06);
}

.service-details-section .service-icon-card .service-icon-img {
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

@media (min-width: 992px) {
    .service-details-section .service-icon-card {
        margin-left: 0;
        margin-right: auto;
    }
}

/* Герой: текст и CTA не «висят» по центру/низу относительно колонки с фото */
.hero-section.hero-1 > .container > .row {
    align-items: flex-start !important;
    align-content: flex-start !important;
}
.hero-section.hero-1 > .container > .row > [class*="col-"] {
    align-self: flex-start !important;
}
/* Высота колонки под картинку, без фиксированных 785px из темы */
.hero-section.hero-1 .hero-image {
    height: auto !important;
}
@media (max-width: 1199px) {
    .hero-section.hero-1 .hero-image {
        margin-bottom: 0 !important;
    }
}
.hero-section.hero-1 .hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-section.hero-1 .hero-content p,
.hero-section.hero-1 .hero-content .hero-button {
    flex: 0 0 auto;
}

@media (max-width: 991px) {
    /* Картинка героя — только большие экраны */
    .hero-section.hero-1 .col-lg-4 {
        display: none !important;
    }
    /* Одна колонка + WOW: текст и кнопка по центру (не только ≤575 из темы) */
    .hero-section.hero-1 .hero-content {
        align-items: stretch;
        text-align: center;
    }
    /* Центровка inline-flex-кнопки надёжнее через text-align родителя, чем только flex justify */
    .hero-section.hero-1 .hero-content .hero-button {
        display: block;
        width: 100%;
        text-align: center;
    }
    /* subtitle: тема задаёт inline-block + padding-left под ::before — визуально уезжает влево */
    .hero-section.hero-1 .hero-content h6 {
        align-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
        padding-left: 0;
        text-align: center;
        max-width: 100%;
    }
    .hero-section.hero-1 .hero-content h6::before {
        position: static;
        flex-shrink: 0;
        top: auto;
        left: auto;
        margin-right: 0;
    }
}

.hero-section.hero-1 > .container {
    padding-bottom: clamp(1.25rem, 3vw, 2.5rem);
}

/* Герой (как у темы + читаемый текст на тёмном фоне) */
.hero-1 .hero-content h1 {
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hero-1 .hero-content h6 {
    color: #9eb9ff;
}

.hero-1 .hero-content h6::before {
    filter: brightness(1.25);
}

.hero-1 .hero-content p {
    color: rgba(255, 255, 255, 0.88) !important;
}

/* Курсор «рука» на всех основных кнопках и кликабельных контролах */
.theme-btn,
.theme-btn-2,
.pricing-btn,
.video-btn,
.plus-btn,
.sidebar__toggle,
.search-trigger,
.header__hamburger,
.accordion-button,
button[type="submit"]:not(:disabled),
a.theme-btn,
a.theme-btn-2,
a.pricing-btn,
a.theme-btn.theme-btn--outline,
a.theme-btn.theme-btn--dark,
.meanmenu-reveal,
.mean-expand,
.page-numbers {
    cursor: pointer;
}

.theme-btn:disabled,
button:disabled,
input[type="submit"]:disabled {
    cursor: not-allowed;
}

/* --- Единая стилистика кнопок (форма, цвета, ховеры) --- */
:root {
    --btn-pill-radius: 40px;
}

/* Основная кнопка темы: скругление + выравнивание иконок */
.theme-btn,
button.theme-btn {
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: var(--btn-pill-radius) !important;
    gap: 0.4rem;
}

.theme-btn > span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Вторичная на светлом фоне (вместо Bootstrap bg-white border text-dark) */
.theme-btn.theme-btn--outline {
    background-color: var(--white) !important;
    color: var(--header) !important;
    border: 1px solid var(--border) !important;
}

.theme-btn.theme-btn--outline:hover {
    color: var(--white) !important;
    border-color: var(--header) !important;
}

/* Тёмная вторичная (вместо bg-dark) */
.theme-btn.theme-btn--dark {
    background-color: var(--header) !important;
    color: var(--white) !important;
}

.theme-btn.theme-btn--dark::before,
.theme-btn.theme-btn--dark::after {
    background-color: var(--theme) !important;
}

.theme-btn.theme-btn--dark:hover {
    color: var(--white) !important;
}

/* Карточки услуг / новостей: «Прочитать» в том же языке, что и тарифы */
a.theme-btn-2,
.theme-btn-2 {
    color: var(--header);
    border: 1px solid var(--border);
    padding: 16px 28px;
    border-radius: var(--btn-pill-radius);
    line-height: 1.25;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

a.theme-btn-2:hover,
.theme-btn-2:hover {
    color: var(--white);
    background-color: var(--theme);
    border-color: var(--theme);
}

/* На градиентном ховере карточки — светлая обводка текста */
.service-box-items:hover .content .theme-btn-2,
.service-box-items.active .content .theme-btn-2 {
    border-color: rgba(255, 255, 255, 0.45);
    background-color: transparent;
    color: var(--white) !important;
}

.service-box-items:hover .content .theme-btn-2:hover,
.service-box-items.active .content .theme-btn-2:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--header) !important;
}

/* Кнопки тарифов — тот же радиус */
.pricing-items .pricing-button .pricing-btn {
    border-radius: var(--btn-pill-radius) !important;
}

/* Bootstrap submit на служебных страницах — цвета темы */
.btn.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--theme);
    --bs-btn-border-color: var(--theme);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--header);
    --bs-btn-hover-border-color: var(--header);
    --bs-btn-focus-shadow-rgb: 56, 75, 255;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--header);
    --bs-btn-active-border-color: var(--header);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--theme);
    --bs-btn-disabled-border-color: var(--theme);
    font-weight: 600;
    border-radius: var(--btn-pill-radius);
    padding: 0.65rem 1.5rem;
}

/* Достижения: на мобильных заголовок по центру, счётчики — сеткой 2×2 */
@media (max-width: 991px) {
    .achievement-wrapper {
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .achievement-wrapper .section-title.mb-0 {
        text-align: center;
        width: 100%;
        max-width: 100%;
    }
    .achievement-wrapper.style-2 .counter-area {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(14px, 3.5vw, 24px);
        width: 100%;
        align-items: start;
        justify-content: stretch;
        justify-items: stretch;
    }
    .achievement-wrapper.style-2 .counter-area .counter-items {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .achievement-wrapper.style-2 .counter-area .counter-items:not(:last-child),
    .achievement-wrapper .counter-area .counter-items:not(:last-child) {
        border-right: none;
        padding-right: 0;
    }
}

/* FAQ: изображение по центру на узких экранах */
@media (max-width: 991px) {
    .faq-wrapper .faq-image {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
}

/* Новости на главной: тема тянет .news-content вверх (margin-top: -40px + z-index) — между карточками блоки налезают;
   шапка секции: кнопка «Все новости» — z-index темы у .theme-btn + WOW transform дают наложение на ряд карточек */
@media (max-width: 991px) {
    .news-section .section-title-area {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 1.125rem;
        margin-bottom: 0;
        padding-bottom: clamp(28px, 6vw, 44px);
        z-index: auto;
    }
    .news-section .section-title-area .section-title {
        width: 100%;
        text-align: center;
    }
    /* не поднимать кнопку над следующим sibling — иначе наезжает на карточки */
    .news-section .section-title-area > .theme-btn {
        align-self: center;
        z-index: auto !important;
    }
    /* margin соседних блоков схлопывается; padding у .row не схлопывается и даёт место под анимацию fadeInUp */
    .news-section > .container > .row {
        padding-top: clamp(24px, 5vw, 40px);
    }
    .news-card-items {
        isolation: isolate;
        margin-bottom: clamp(22px, 4vw, 36px);
    }
    .news-card-items .news-content {
        margin-top: 0;
        margin-right: 0;
        margin-left: 0;
        z-index: auto;
    }
}

/* Хлебные крошки (layout): блок и отступы на всех ширинах — не сливать с блоком ниже */
.breadcrumb.container {
    row-gap: 0.4rem;
    column-gap: 0.6rem;
    align-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
    padding-block: 0.75rem !important;
    padding-inline: clamp(1rem, 3.5vw, 1.75rem) !important;
    margin-top: 4px;
    margin-bottom: 0.75rem !important;
    border-radius: 12px;
    border: 1px solid var(--border);
    background-color: var(--bg);
    font-size: 0.9375rem;
    line-height: 1.55;
    --bs-breadcrumb-item-padding-x: 0.75rem;
    --bs-breadcrumb-divider: '›';
    --bs-breadcrumb-divider-color: rgba(15, 13, 29, 0.45);
    box-sizing: border-box;
}

.breadcrumb.container .breadcrumb-item {
    padding-top: 2px;
    padding-bottom: 2px;
}

.breadcrumb.container .breadcrumb-item + .breadcrumb-item::before {
    padding-right: 0.65rem;
    padding-left: 0;
    font-weight: 500;
    font-size: 0.95em;
    color: var(--bs-breadcrumb-divider-color);
}

.breadcrumb.container .breadcrumb-item a {
    color: var(--header);
    text-decoration: none;
    word-break: break-word;
}

.breadcrumb.container .breadcrumb-item a:hover {
    color: var(--theme);
}

.breadcrumb.container .breadcrumb-item.active {
    color: var(--text);
    font-weight: 600;
    max-width: 100%;
}

@media (max-width: 991px) {
    .breadcrumb.container {
        padding-block: 1rem !important;
        padding-inline: clamp(1.125rem, 4vw, 1.5rem) !important;
        font-size: 0.9rem;
    }
}

/* Футер: телефон и email компактнее, длинная почта не ломает flex */
.footer-section .contact-info-area .contact-info-items .content {
    min-width: 0;
    flex: 1 1 auto;
}

.footer-section .contact-info-area .contact-info-items .content p {
    font-size: 0.8125rem;
}

.footer-section .contact-info-area .contact-info-items .content h3,
.footer-section .contact-info-area .contact-info-items .content h3 a {
    font-size: clamp(0.8125rem, 2.2vw, 1rem);
    font-weight: 600;
    line-height: 1.35;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 1199px) {
    .footer-section .contact-info-area .contact-info-items {
        align-items: flex-start;
    }
}