/* ═══════════════════════════════════════════════════════════
   Общие стили для страниц услуг pilatalisa.ru
   ═══════════════════════════════════════════════════════════ */

/* ── BANNER ─────────────────────────────────────────────── */
.srv-banner {
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: #0f0035;
    background-size: cover;
    background-position: center center;
    padding: 100px 0 60px;
    position: relative;
    overflow: hidden;
}
/* Тёмный оверлей поверх фото */
.srv-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(8, 0, 28, 0.68);
    z-index: 0;
    pointer-events: none;
}
/* Фиолетовый световой акцент */
.srv-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(139,92,246,0.25) 0%, transparent 65%);
    pointer-events: none;
    z-index: 1;
}
/* Контент поверх оверлея */
.srv-banner__inner {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

/* ── Фоновые изображения по странице ───────────────────── */
.srv-banner--sites   { background-image: url('/img/site_banner.webp'); }
.srv-banner--b24     { background-image: url('/img/bitrix24_banner.png'); }
.srv-banner--auto    { background-image: url('/img/avtomation_banner.webp'); }
.srv-banner--ai      { background-image: url('/img/AI_banner.webp'); }
.srv-banner--uslugi  {
    background: linear-gradient(135deg, #0b0524 0%, #170b4d 55%, #2a126b 100%);
    min-height: 0;
    padding: 60px 0 50px;
}
.srv-banner__label {
    display: inline-block;
    background: rgba(139,92,246,0.3);
    border: 1px solid rgba(139,92,246,0.5);
    color: #c4b5fd;
    font-size: 13px;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 22px;
}
.srv-banner h1 {
    font-size: clamp(28px, 4.5vw, 52px);
    color: #fff;
    line-height: 1.18;
    margin-bottom: 20px;
}
.srv-banner h1 span { color: #c084fc; }
.srv-banner__sub {
    font-size: clamp(16px, 2vw, 20px);
    color: rgba(255,255,255,0.75);
    line-height: 1.55;
    margin-bottom: 32px;
    max-width: 680px;
}
.srv-back {
    display: inline-block;
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    margin-bottom: 18px;
    text-decoration: none;
    transition: color .2s;
}
.srv-back:hover { color: #c084fc; }
.srv-banner__btns { display: flex; gap: 16px; flex-wrap: wrap; }
.srv-btn-primary {
    display: inline-block;
    background: linear-gradient(135deg,#8b5cf6,#6d28d9);
    color: #fff;
    padding: 14px 32px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s, transform .1s;
}
.srv-btn-primary:hover { opacity: .9; transform: translateY(-1px); }
.srv-btn-secondary {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.3);
    color: rgba(255,255,255,0.85);
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 16px;
    text-decoration: none;
    transition: border-color .2s, color .2s;
}
.srv-btn-secondary:hover { border-color: #c084fc; color: #c084fc; }

/* ── ОБЩИЕ СЕКЦИИ ────────────────────────────────────────── */
.srv-section {
    padding: 64px 0;
}
.srv-section--white { background: #fff; }
.srv-section--light { background: #f8f4ff; }
.srv-section--dark  {
    background: linear-gradient(135deg, #1a0050 0%, #0f003a 100%);
    color: #fff;
}
.srv-section--dark h2,
.srv-section--dark h3 { color: #fff; }
.srv-section--dark .srv-section__sub { color: rgba(255,255,255,0.75); }
.srv-section h2 { text-align: center; margin-bottom: 8px; }
.srv-section__sub {
    text-align: center;
    color: #666;
    font-size: 17px;
    margin-bottom: 44px;
}

/* ── КАРТОЧКИ ПРЕИМУЩЕСТВ ────────────────────────────────── */
.srv-creds {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
}
.srv-cred {
    background: #fff;
    border: 1px solid #e8dcff;
    border-radius: 14px;
    padding: 22px 20px;
    text-align: center;
}
.srv-section--dark .srv-cred {
    background: rgba(255,255,255,0.07);
    border-color: rgba(139,92,246,0.3);
}
.srv-cred__icon { font-size: 32px; margin-bottom: 10px; }
.srv-cred__num  {
    font-size: 30px;
    font-weight: 800;
    color: #8b5cf6;
    line-height: 1;
    margin-bottom: 6px;
}
.srv-cred h4 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.srv-cred p  { font-size: 13px; color: #666; line-height: 1.5; }
.srv-section--dark .srv-cred p { color: rgba(255,255,255,0.6); }

/* ── ЧТО ДЕЛАЮ (пронумерованные элементы) ───────────────── */
.srv-work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}
.srv-work-grid--4 {
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
}
.srv-work-item {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: 12px;
    padding: 22px 20px;
}
.srv-section--white .srv-work-item,
.srv-section--light .srv-work-item {
    background: #fff;
    border-color: #e8dcff;
}
.srv-work-num {
    font-size: 28px;
    font-weight: 900;
    color: #8b5cf6;
    opacity: .4;
    line-height: 1;
    margin-bottom: 8px;
}
.srv-work-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.srv-work-item p  { font-size: 14px; line-height: 1.6; color: #555; }
.srv-section--dark .srv-work-item p { color: rgba(255,255,255,0.7); }
.srv-section--dark .srv-work-item h4 { color: #fff; }

/* ── МИНИ-КЕЙСЫ ─────────────────────────────────────────── */
.srv-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}
.srv-case {
    border: 1px solid #e8dcff;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
    transition: box-shadow .2s, transform .15s;
}
.srv-case:hover {
    box-shadow: 0 8px 30px rgba(139,92,246,.15);
    transform: translateY(-3px);
}
.srv-case__img {
    height: 160px;
    background: linear-gradient(135deg,#1a0060,#6d28d9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
}
.srv-case__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.srv-case__tag {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b5cf6;
    margin-bottom: 6px;
    font-weight: 600;
}
.srv-case h4 { font-size: 17px; margin-bottom: 8px; }
.srv-case p  { font-size: 14px; color: #555; line-height: 1.5; flex: 1; }
.srv-case__link {
    display: inline-block;
    margin-top: 14px;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.srv-case__link:hover { text-decoration: underline; }

/* ── ПРОЦЕСС РАБОТЫ ──────────────────────────────────────── */
.srv-process {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    counter-reset: proc;
}
.srv-step {
    position: relative;
    padding: 20px 18px 20px 54px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8dcff;
}
.srv-step::before {
    counter-increment: proc;
    content: counter(proc);
    position: absolute;
    left: 16px;
    top: 20px;
    font-size: 22px;
    font-weight: 900;
    color: #8b5cf6;
    opacity: .5;
    line-height: 1;
}
.srv-step h4 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.srv-step p  { font-size: 13px; color: #666; line-height: 1.5; }

/* ── БЛОК СТОИМОСТИ ──────────────────────────────────────── */
.srv-price-block {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 16px;
    padding: 32px 36px;
    border: 1px solid #e8dcff;
    max-width: 820px;
    margin: 0 auto;
}
.srv-price-num {
    font-size: 48px;
    font-weight: 900;
    color: #8b5cf6;
    white-space: nowrap;
}
.srv-price-note { font-size: 15px; color: #555; line-height: 1.6; }
.srv-price-note strong { color: #1a0050; }

/* ── АДАПТИВ ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .srv-work-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .srv-banner { padding: 80px 0 50px; min-height: auto; }
    .srv-banner h1 { font-size: 28px; }
    .srv-price-block { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px; }
    .srv-price-num { font-size: 36px; }
    .srv-work-grid { grid-template-columns: 1fr; }
    .srv-work-grid--4 { grid-template-columns: 1fr; }
    .srv-cases-grid { grid-template-columns: 1fr; }
}

/* ── Сертификаты на страницах услуг ─────────────────────── */
.srv-certs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 24px;
    margin-top: 8px;
}
.srv-cert {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .2s;
}
.srv-cert:hover { transform: translateY(-5px); }
.srv-cert__img {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}
.srv-cert__img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(40,10,90,.15));
    transition: filter .2s;
}
.srv-cert:hover .srv-cert__img img {
    filter: drop-shadow(0 12px 28px rgba(40,10,90,.25));
}
.srv-cert__cat {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #8b5cf6;
    margin-bottom: 4px;
}
.srv-cert__title { font-size: 13px; color: #333; line-height: 1.4; }
@media (max-width: 640px) {
    .srv-certs-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .srv-cert__img { height: 140px; }
}

/* ── Карусель сертификатов (как на главной) ──────────────── */

/* Карточка cert-card без родителя .certs-v2 — дублируем нужные правила */
.certs-v2__wrapper .carousel-item.cert-card {
    background: none;
    animation: none;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: transform .25s;
    box-sizing: border-box;
}
.certs-v2__wrapper .carousel-item.cert-card:hover {
    box-shadow: none;
    transform: translateY(-6px);
}

/* Стрелки сертификатной карусели вне .certs-v2 */
.certs-v2__wrapper .carousel-arrow {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    color: #8b5cf6;
    border: 1px solid rgba(120, 90, 200, 0.2);
    box-shadow: 0 4px 16px rgba(40, 10, 90, 0.12);
    padding: 0;
    z-index: 20;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.certs-v2__wrapper .carousel-arrow svg { width: 36px; height: 36px; display: block; }
.certs-v2__wrapper .carousel-arrow-left  { left: 0; }
.certs-v2__wrapper .carousel-arrow-right { right: 0; }
.certs-v2__wrapper .carousel-arrow:hover {
    color: #fff;
    background: linear-gradient(135deg, #ff27a9, #8b5cf6);
    transform: translateY(-50%) scale(1.08);
    box-shadow: 0 8px 24px rgba(255, 62, 201, 0.35);
}

/* ── Карусель проектов (текстовые карточки) ──────────────── */
.srv-projects-carousel .carousel-item .blog_inner_article {
    border-radius: 16px;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}
.srv-projects-carousel .carousel-item .blog_inner_article h5 {
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    margin-top: 8px;
    color: #1a0050;
}
.srv-projects-carousel .carousel-item .blog_inner_article p {
    text-align: left;
    flex: 1;
    margin-top: 8px;
    font-size: 14px;
    color: #555;
    line-height: 1.5;
}
.srv-projects-carousel .srv-case__tag {
    display: inline-block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #8b5cf6;
    font-weight: 600;
}
.srv-projects-carousel .carousel-item .srv-case__link {
    display: inline-block;
    margin-top: 14px;
    color: #8b5cf6;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}
.srv-projects-carousel .carousel-item .srv-case__link:hover { text-decoration: underline; }

/* ── КАРТОЧКИ СТОИМОСТИ ПРОЕКТОВ ─────────────────────────── */
.srv-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 36px;
    align-items: start;
}
.srv-pricing-card {
    background: #fff;
    border-radius: 20px;
    padding: 28px 24px 24px;
    border: 1.5px solid #ede8ff;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}
.srv-pricing-card--featured {
    border-color: #c084fc;
    box-shadow: 0 6px 32px rgba(139, 92, 246, 0.13);
}
.srv-pricing-card__badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #ff3ec9, #8b5cf6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.srv-pricing-card__price {
    font-size: 28px;
    font-weight: 900;
    color: #7c3aed;
    line-height: 1;
    margin-top: 4px;
}
.srv-pricing-card__type {
    font-size: 17px;
    font-weight: 700;
    color: #1a0050;
    margin: 0;
    line-height: 1.3;
}
.srv-pricing-card__sub {
    font-size: 12px;
    color: #e83aac;
    font-weight: 600;
    margin: 0;
}
.srv-pricing-card__desc {
    font-size: 13px;
    color: #555;
    line-height: 1.6;
    margin: 0;
}
.srv-pricing-card__example {
    font-size: 13px;
    color: #444;
    line-height: 1.5;
    background: #f7f4ff;
    border-radius: 10px;
    padding: 10px 14px;
    margin: 0;
}
.srv-pricing-card__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.srv-pricing-card__list li {
    font-size: 13px;
    color: #555;
    padding-left: 18px;
    position: relative;
    line-height: 1.5;
}
.srv-pricing-card__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #8b5cf6;
    font-weight: 700;
}
.srv-pricing-card__note {
    background: #fdf4ff;
    border-left: 3px solid #c084fc;
    border-radius: 0 8px 8px 0;
    padding: 10px 14px;
    font-size: 12px;
    color: #6a3ea1;
    line-height: 1.5;
    margin-top: 4px;
}
.srv-pricing-bottom-note {
    text-align: center;
    margin-top: 28px;
    font-size: 15px;
    color: #888;
}
.srv-pricing-bottom-note a { color: #8b5cf6; }
@media (max-width: 960px) {
    .srv-pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .srv-pricing-card--featured { margin-top: 16px; }
}

/* ── БАННЕР СТРАНИЦЫ АУДИТА ──────────────────────────────── */
.srv-banner--audit { background-image: url('/img/site_banner.webp'); }
.srv-banner--dop-uslugi { background-image: url('/img/servis_banner.png'); background-position: center right; }

/* ── 2-КОЛОНОЧНЫЙ ГРИД ───────────────────────────────────── */
.srv-work-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
/* Одиночный последний элемент в 2-колоночном гриде — центрируем */
.srv-work-grid--2col .srv-work-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 10px);
    margin-inline: auto;
    width: 100%;
}
@media (max-width: 640px) {
    .srv-work-grid--2col { grid-template-columns: 1fr; }
    .srv-work-grid--2col .srv-work-item:last-child:nth-child(odd) {
        max-width: 100%;
    }
}
/* Одиночный последний элемент в 3-колоночном авто-гриде — центрируем */
.srv-work-item--center-3col { grid-column: 2 / 3; }
@media (max-width: 640px) {
    .srv-work-item--center-3col { grid-column: auto; }
}

/* ── ПАКЕТЫ АУДИТА ───────────────────────────────────────── */
.audit-packages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}
.audit-package {
    background: #fff;
    border-radius: 20px;
    padding: 32px 28px;
    border: 1.5px solid #e8dcff;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
.audit-package--featured {
    border-color: #c084fc;
    box-shadow: 0 8px 36px rgba(139, 92, 246, 0.16);
}
.audit-package__badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    width: fit-content;
}
.audit-package__badge--free {
    background: linear-gradient(135deg, #4dd6c5, #1cb19c);
    color: #fff;
}
.audit-package__badge--base {
    background: #e8f4ff;
    color: #1571e6;
}
.audit-package__badge--ext {
    background: linear-gradient(135deg, #ff3ec9, #8b5cf6);
    color: #fff;
}
.audit-package__price {
    font-size: 40px;
    font-weight: 900;
    color: #7c3aed;
    line-height: 1;
}
.audit-package--featured .audit-package__price { color: #c026d3; }
.audit-package__desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0e8ff;
}
.audit-package__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.audit-package__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}
.audit-pkg-icon {
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    flex-shrink: 0;
    margin-bottom: 0 !important;
}
.audit-package__cta {
    display: block;
    text-align: center;
    margin-top: 8px;
}
@media (max-width: 700px) {
    .audit-packages { grid-template-columns: 1fr; }
    .audit-package { padding: 24px 20px; }
    .audit-package__price { font-size: 32px; }
}
.audit-packages.price-cards--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 860px;
}
@media (max-width: 700px) {
    .audit-packages.price-cards--two { grid-template-columns: 1fr; }
}

.audit-packages__remote-note {
    text-align: center;
    font-size: 14px;
    color: #6a6088;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* ═══════════════════════════════════════════════════════════
   МОДАЛЬНОЕ ОКНО ЗАКАЗА УСЛУГИ
   ═══════════════════════════════════════════════════════════ */
.order-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.order-modal.is-open { display: flex; }

.order-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 3, 40, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    cursor: pointer;
}
.order-modal__box {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: 24px;
    padding: 36px 32px 32px;
    width: 100%;
    max-width: 520px;
    max-height: 92vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(40, 10, 90, 0.28);
    animation: modalSlideUp .28s ease both;
}
@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(20px) scale(.98); }
    to   { opacity: 1; transform: none; }
}
.order-modal__close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #aaa;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    transition: color .2s, background .2s;
}
.order-modal__close:hover { color: #333; background: #f5f0ff; }
.order-modal__icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}
.order-modal__title {
    font-size: 22px;
    font-weight: 700;
    color: #1a103d;
    margin: 0 0 6px;
}
.order-modal__subtitle {
    font-size: 14px;
    color: #888;
    margin: 0 0 22px;
    line-height: 1.4;
}
.order-modal__field { margin-bottom: 13px; }
.order-modal__label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #3a3060;
    margin-bottom: 5px;
}
.order-modal__input,
.order-modal__textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0d9f5;
    border-radius: 10px;
    font-size: 15px;
    color: #1a103d;
    background: #fdfcff;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s;
    font-family: inherit;
}
.order-modal__input:focus,
.order-modal__textarea:focus { border-color: #8b5cf6; }
.order-modal__input[readonly] {
    background: #f3eeff;
    color: #6d28d9;
    font-weight: 600;
    cursor: default;
}
.order-modal__textarea {
    resize: vertical;
    min-height: 72px;
}
.order-modal__submit {
    display: block;
    width: 100%;
    margin-top: 10px;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
}
.order-modal__submit:hover { opacity: .9; transform: translateY(-1px); }
body.modal-open { overflow: hidden; }

/* Кнопка открытия модалки */
.btn-order-modal {
    display: inline-block;
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
    color: #fff;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity .2s, transform .15s;
}
.btn-order-modal:hover { opacity: .88; transform: translateY(-1px); color: #fff; }
.btn-order-modal--secondary {
    background: transparent;
    border: 1.5px solid rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.9);
}
.btn-order-modal--secondary:hover { border-color: #c084fc; color: #c084fc; background: transparent; }

@media (max-width: 600px) {
    .order-modal__box {
        padding: 24px 18px 28px;
        border-radius: 20px;
        max-height: 95vh;
    }
    .order-modal__title { font-size: 19px; }
    .order-modal__subtitle { font-size: 13px; }
}

/* ═══════════════════════════════════════════════════════════
   ЗНАЧКИ СЕРТИФИКАТОВ БИТРИКС
   ═══════════════════════════════════════════════════════════ */
.bitrix-certs {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    background: rgba(255,255,255,0.10);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 10px 14px;
}
/* На hero-v2 (главная) — правый нижний угол, выше от края */
.hero-v2 .bitrix-certs {
    position: absolute;
    bottom: 90px;
    right: 28px;
    z-index: 3;
}
/* На баннерах страниц услуг — правый край, по центру по вертикали */
.srv-banner .bitrix-certs {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 28px;
    z-index: 3;
}
.bitrix-cert {
    display: block;
    transition: transform 0.2s, opacity 0.2s;
    cursor: pointer;
}
.bitrix-cert:hover { transform: scale(1.06); opacity: 0.9; }
.bitrix-cert img {
    display: block;
    height: 70px;
    width: auto;
    border-radius: 6px;
}
/* Битрикс24 — второй логотип, делаем чуть меньше */
.bitrix-cert:last-child img {
    height: 52px;
}
@media (max-width: 900px) {
    .hero-v2 .bitrix-certs,
    .srv-banner .bitrix-certs {
        right: 14px;
        padding: 7px 10px;
        gap: 8px;
    }
    .bitrix-cert img { height: 52px; }
    .bitrix-cert:last-child img { height: 40px; }
}
@media (max-width: 760px) {
    .hero-v2 .bitrix-certs { display: none; }
}
@media (max-width: 600px) {
    .bitrix-cert img { height: 40px; }
    .bitrix-cert:last-child img { height: 32px; }
}

/* ═══════════════════════════════════════════════════════════
   ТАБЛИЦА ЛИЦЕНЗИЙ 1С-БИТРИКС: УПРАВЛЕНИЕ САЙТОМ
   ═══════════════════════════════════════════════════════════ */
.bitrix-lic-section {
    padding: 72px 0 80px;
}
.bitrix-lic__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-radius: 14px;
    overflow: hidden;
    border: 1.5px solid #e8dcff;
    margin-top: 32px;
}
.bitrix-lic__row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 20px;
    padding: 18px 24px;
    background: #fff;
    border-bottom: 1px solid #ede8ff;
    transition: background 0.15s;
}
.bitrix-lic__row:last-child { border-bottom: none; }
.bitrix-lic__row:hover { background: #faf6ff; }
.bitrix-lic__info { display: flex; flex-direction: column; gap: 4px; }
.bitrix-lic__name {
    font-size: 15px;
    font-weight: 700;
    color: #1a0050;
    display: flex;
    align-items: center;
    gap: 8px;
}
.bitrix-lic__badge {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
}
.bitrix-lic__badge--green { background: #d1fae5; color: #065f46; }
.bitrix-lic__badge--blue  { background: #dbeafe; color: #1e40af; }
.bitrix-lic__badge--teal  { background: #ccfbf1; color: #0f766e; }
.bitrix-lic__badge--violet { background: #ede9fe; color: #5b21b6; }
.bitrix-lic__badge--orange { background: #ffedd5; color: #9a3412; }
.bitrix-lic__desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}
.bitrix-lic__price {
    font-size: 20px;
    font-weight: 800;
    color: #7c3aed;
    white-space: nowrap;
    text-align: right;
    min-width: 130px;
}
.bitrix-lic__price small {
    display: block;
    font-size: 12px;
    font-weight: 400;
    color: #888;
    margin-top: 1px;
}
.bitrix-lic__btn {
    white-space: nowrap;
}
@media (max-width: 700px) {
    .bitrix-lic__row {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .bitrix-lic__price { text-align: left; min-width: 0; }
}

/* ═══════════════════════════════════════════════════════════
   ТАРИФЫ БИТРИКС24
   ═══════════════════════════════════════════════════════════ */
.b24-plans-section {
    padding: 72px 0 80px;
    background: linear-gradient(135deg, #f6efff 0%, #ede8ff 100%);
}
.b24-plans {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-top: 32px;
    align-items: stretch;
}
.b24-plan {
    background: #fff;
    border: 1.5px solid #e8dcff;
    border-radius: 18px;
    padding: 24px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: relative;
}
.b24-plan--popular {
    border-color: #c084fc;
    box-shadow: 0 8px 32px rgba(139,92,246,0.18);
}
.b24-plan__popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(90deg, #8b5cf6, #6d28d9);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.b24-plan__name {
    font-size: 16px;
    font-weight: 800;
    color: #1a0050;
}
.b24-plan__desc {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}
.b24-plan__specs {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.b24-plan__spec {
    font-size: 13px;
    color: #444;
}
.b24-plan__spec strong { color: #1a0050; }
.b24-plan__price-block {
    margin-top: 4px;
}
.b24-plan__price-old {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}
.b24-plan__discount {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 8px;
    margin-left: 4px;
}
.b24-plan__price {
    font-size: 22px;
    font-weight: 800;
    color: #7c3aed;
    line-height: 1.2;
}
.b24-plan__price--free { color: #16a34a; }
.b24-plan__price-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.b24-plan__footer { margin-top: auto; }
@media (max-width: 900px) {
    .b24-plans {
        grid-template-columns: repeat(2, 1fr);
    }
    .b24-plans > :first-child {
        grid-column: 1 / -1;
    }
}
@media (max-width: 500px) {
    .b24-plans { grid-template-columns: 1fr; }
    .b24-plans > :first-child { grid-column: auto; }
}

/* Блок условий акции B24 */
.b24-promo-notice {
    margin-top: 28px;
    background: #fff;
    border: 1.5px solid #c084fc;
    border-radius: 14px;
    padding: 20px 24px;
}
.b24-promo-notice__title {
    font-size: 16px;
    font-weight: 700;
    color: #1a0050;
    margin-bottom: 12px;
}
.b24-promo-notice__list {
    padding-left: 20px;
    margin: 0 0 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.b24-promo-notice__list li {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}
.b24-promo-notice__link {
    font-size: 13px;
    color: #7c3aed;
    text-decoration: none;
}
.b24-promo-notice__link:hover { text-decoration: underline; }
