/* шапка и контент услуги — вариант A (аудит, бухгалтерия). Перенесено из инлайна шаблона buhgalter.ftp.md. */

.service-header {
        background: linear-gradient(160deg, rgba(12, 40, 88, 0.92), rgba(0, 82, 166, 0.88) 50%, rgba(12, 40, 88, 0.95)), url('../img/services/photo_2_2026-03-02_11-54-05.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        color: white;
        padding: 36px 0 28px;
        margin-bottom: 0;
        position: relative;
        overflow: hidden;
    }

    .service-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -20%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(0, 209, 255, 0.06) 0%, transparent 70%);
        pointer-events: none;
        animation: floatGlow 8s ease-in-out infinite alternate;
    }

    .service-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
        pointer-events: none;
        animation: floatGlow 10s ease-in-out infinite alternate-reverse;
    }

    @keyframes floatGlow {
        0% {
            transform: translate(0, 0) scale(1);
        }

        100% {
            transform: translate(30px, -20px) scale(1.1);
        }
    }

    .service-header .container {
        position: relative;
        z-index: 1;
    }

    @keyframes drawLine {
        from {
            width: 0;
        }

        to {
            width: 60px;
        }
    }

    .service-title {
        font-size: 2rem;
        font-weight: 800;
        margin-bottom: 8px;
        color: #fff;
        text-shadow: 0 2px 30px rgba(0, 0, 0, 0.15);
        letter-spacing: -0.5px;
        line-height: 1.15;
        animation: fadeInUp 0.8s ease-out 0.2s both;
    }

    .service-description {
        font-size: 1.15rem;
        max-width: 650px;
        margin: 0 auto 14px;
        line-height: 1.85;
        font-weight: 300;
        color: rgba(255, 255, 255, 0.85);
        animation: fadeInUp 0.8s ease-out 0.35s both;
    }

    .service-header-btn {
        display: inline-block;
        background: #ffffff;
        color: var(--theme-color);
        border: 1px solid rgba(255, 255, 255, 0.3);
        padding: 16px 36px;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        letter-spacing: 0.3px;
        animation: fadeInUp 0.8s ease-out 0.5s both;
        position: relative;
        overflow: hidden;
    }

    .service-header-btn.first {
        background: transparent;
        color: #ffffff;
        border: 2px solid rgba(255, 255, 255, 0.6);
        margin-right: 0;
    }

    .service-header-btn.first:hover {
        background: #ffffff;
        color: var(--theme-color);
        border-color: #ffffff;
    }

    .service-header-btn.first i {
        margin-left: 10px;
    }

    .service-header-btn:hover {
        background: var(--theme-color);
        color: #ffffff;
        border-color: #ffffff;
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

    .service-header-btn i {
        margin-left: 8px;
        transition: transform 0.3s ease;
    }

    .service-header-btn:hover i {
        transform: translateX(4px);
    }

    /* Buttons wrapper */
    .make-it-wrap {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 12px;
    }

    .make-it-wrap .service-header-btn {
        margin: 0;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(25px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .content-section {
        padding: 80px 0;
        background-color: #f8fafc;
    }

    /* Tabbed Content Container */
    .tabbed-main-container {
    }

    /* Bottom section: STICKY SIDEBAR + scrollable content */
    .bottom-row {
        display: grid;
        grid-template-columns: 280px 1fr;
        gap: 80px;
        align-items: flex-start;
        padding-bottom: 100px;
    }

    .left-sticky-col {
        position: sticky;
        top: 160px;
        height: fit-content;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .left-sticky-col .sticky-title {
        font-size: 32px;
        margin: 0;
        line-height: 1.2;
        max-width: 420px;
        border: none;
        padding: 0;
        font-weight: 800;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.3s ease, max-height 0.3s ease;
    }

    .left-sticky-col .sticky-title.visible {
        opacity: 1;
        max-height: 200px;
        padding-top: 10px;
        text-align: left;
        max-width: 100%;
    }

    .tabs-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .tab-btn {
        background: #ffffff;
        border: 1px solid #e2e8f0;
        padding: 16px 22px;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        color: var(--text-main, #1e293b);
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: left;
    }

    .tab-btn:hover {
        background: var(--smoke-color);
        color: var(--theme-color);
    }

    .tab-btn.active {
        background: var(--smoke-color);
        color: var(--theme-color);
        border: 1px solid var(--theme-color);
        transform: translateX(10px);
    }

    .content-area {
        flex: 1;
    }

    .goal-label {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--theme-color);
        font-weight: 600;
        font-size: 14px;
        margin-bottom: 15px;
    }

    .header-row {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        margin-bottom: 50px;
    }

    .header-row h2 {
        font-size: 44px;
        margin: 0;
        line-height: 1.15;
        max-width: 420px;
        border: none;
        padding: 0;
        font-weight: 800;
    }

    .header-row p {
        font-size: 18px;
        color: var(--body-color);
        max-width: 380px;
        line-height: 1.7;
        margin-top: 50px;
    }

    .items-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .tab-pane {
        display: none;
    }

    .tab-pane.active {
        display: grid;
        animation: slideIn 0.4s ease forwards;
    }

    .feature-item {
        margin-bottom: 60px;
        padding: 40px;
        background: white;
        border-radius: 24px;
        box-shadow: 0 4px 20px rgba(0, 82, 166, 0.03);
        transition: all 0.5s ease;
    }

    .feature-item-inner {
        display: flex;
        gap: 15px;
        align-items: flex-start;
    }

    .icon-arrow {
        color: var(--theme-color);
        font-weight: bold;
        font-size: 20px;
        line-height: 31px;
        flex-shrink: 0;
    }

    .feature-item h4 {
        font-family: Inter, sans-serif;
        font-size: 22px;
        font-weight: 700;
        color: var(--title-color);
        line-height: 31.174px;
        letter-spacing: normal;
        margin: 0 0 6px 0;
    }

    .feature-item .subtitle {
        font-family: Inter, sans-serif;
        font-size: 22px;
        font-weight: 500;
        line-height: 29px;
        color: rgba(12, 40, 88, 0.7);
        letter-spacing: normal;
        margin-bottom: 18px;
        display: block;
    }

    .feature-list {
        list-style: none;
        padding: 0;
        margin: 0;
        font-family: Inter, sans-serif;
        font-size: 16px;
        font-weight: 400;
        line-height: 26px;
        color: var(--body-color);
    }

    .feature-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        font-family: Inter, sans-serif;
        font-size: 18px;
        font-weight: 400;
        line-height: 26px;
        color: var(--body-color);
        letter-spacing: normal;
        margin-bottom: 20px;
    }

    .check-icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .check-icon svg {
        width: 18px;
        height: 18px;
        stroke: var(--theme-color);
        stroke-width: 2.5;
        fill: none;
    }

    /* Original service-content hidden by default, used as data source */
    .service-content-source {
        display: none;
    }

    /* Fallback service-content styles */
    .service-content {
        font-size: 1.1rem;
        line-height: 1.8;
        color: #555;
    }

    .service-content h1,
    .service-content h2,
    .service-content h3,
    .service-content h4,
    .service-content h5,
    .service-content h6 {
        color: var(--title-color);
        font-weight: 700;
        margin: 30px 0 20px;
    }

    .service-content h2 {
        font-size: 1.8rem;
        border-bottom: 1px solid var(--theme-color);
        padding-bottom: 10px;
    }

    .service-content h3 {
        font-size: 1.5rem;
    }

    .service-content p {
        margin-bottom: 25px;
        color: var(--title-color);
    }

    .service-content ul,
    .service-content ol {
        margin: 20px 0;
        padding-left: 30px;
    }

    .service-content li {
        margin-bottom: 10px;
        line-height: 1.6;
    }

    .service-content strong {
        color: var(--title-color);
        font-weight: 700;
    }

    .service-content blockquote {
        border-left: 4px solid var(--theme-color);
        padding: 20px;
        margin: 25px 0;
        font-style: italic;
        border-radius: 0 10px 10px 0;
    }

    .service-content a {
        color: var(--theme-color);
        text-decoration: none;
        font-weight: 600;
        transition: color 0.3s ease;
    }

    .service-content a:hover {
        color: var(--title-color);
        text-decoration: underline;
    }

    .keywords-section {
        background-color: var(--smoke-color, #ebf3ee);
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
        padding: 70px 0 100px 0;
        position: relative;
    }

    .keywords-section h3 {
        font-weight: 700;
        color: var(--title-color, #19352d);
        margin-bottom: 40px;
    }

    .keywords-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .keyword-badge {
        display: inline-flex;
        align-items: center;
        background-color: var(--white-color, #ffffff);
        color: var(--title-color, #19352d);
        padding: 12px 28px;
        border-radius: 100px;
        font-family: var(--title-font, Inter, sans-serif);
        font-weight: 400;
        font-size: 18px;
        line-height: 26px;
        border: 1px solid var(--theme-color, #196164);
        transition: all 0.3s ease;
        cursor: default;
    }

    .keyword-badge:hover {
        background-color: var(--theme-color, #196164);
        color: var(--white-color, #ffffff);
        border-color: var(--theme-color, #196164);
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 82, 166, 0.25);
    }

    .features-section {
        padding: 80px 0;
        background: linear-gradient(135deg, var(--smoke-color) 0%, #ffffff 100%);
    }

    .feature-card-premium {
        background: #ffffff;
        border-radius: 15px;
        padding: 40px 30px;
        height: 100%;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: 1px solid #e8eded;
        box-shadow: 0 4px 20px rgba(0, 82, 166, 0.08);
        position: relative;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .feature-card-premium:hover {
        transform: translateY(-8px);
        border-color: var(--theme-color);
        box-shadow: 0 12px 40px rgba(0, 82, 166, 0.15);
    }

    .feature-number-premium {
        width: 80px;
        height: 80px;
        background: linear-gradient(135deg, var(--smoke-color) 0%, #ffffff 100%);
        border-radius: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 24px;
        transition: all 0.3s ease;
        border: 2px solid var(--smoke-color);
        font-size: 28px;
        font-weight: 800;
        color: var(--theme-color);
    }

    .feature-card-premium:hover .feature-number-premium {
        border-color: var(--theme-color);
        transform: rotate(5deg) scale(1.05);
    }

    .feature-card-header {
        display: flex;
        align-items: center;
        gap: 16px;
        margin-bottom: 16px;
    }

    .feature-card-header .feature-number-premium {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-card-header h4 {
        margin: 0;
        color: var(--theme-color);
        transition: color 0.3s ease;
    }

    .carousel-item img {
        height: 660px;
        object-fit: cover;
    }

    .carousel-indicators {
        background-color: rgba(0, 0, 0, 0.7);
        border-radius: 30px;
        padding: 6px 10px;
        margin: 0 auto 20px;
        position: absolute;
        bottom: 0;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        width: fit-content;
        justify-content: center;
    }

    .carousel-indicators [data-bs-target] {
        background-color: rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        width: 10px;
        height: 10px;
        border: none;
        opacity: 1;
        margin: 0;
        padding: 0;
        transition: all 0.4s ease;
        flex-shrink: 0;
    }

    .carousel-indicators .active {
        background-color: #ffffff;
        border-radius: 20px;
        width: 28px;
        height: 10px;
    }

    @media (max-width: 900px) {
        .bottom-row {
            grid-template-columns: 1fr;
            gap: 40px;
            padding-bottom: 50px;
        }

        .left-sticky-col .sticky-title.visible {
            text-align: center;
        }

        .left-sticky-col {
            position: sticky;
            top: 108px;
            width: 100%;
            z-index: 10;
            background: var(--bg-body, #f8fafc);
            gap: 12px;
            overflow: hidden;
        }

        .left-sticky-col .sticky-title {
            font-size: 22px;
        }

        .tabs-sidebar {
            width: 100%;
            flex-direction: row;
            overflow-x: auto;
            gap: 10px;
            padding-bottom: 10px;
            scrollbar-width: none;
            -ms-overflow-style: none;
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
        }

        .tabs-sidebar::-webkit-scrollbar {
            display: none;
        }

        .tab-btn {
            padding: 12px 20px;
            white-space: nowrap;
            flex-shrink: 0;
            border-left: none;
            text-align: center;
        }

        .tab-btn.active {
            border: 1px solid var(--theme-color);
            transform: none;
        }

        .header-row {
            flex-direction: column;
            gap: 20px;
        }

        .header-row h2 {
            font-size: 28px;
            max-width: 100%;
        }

        .header-row p {
            max-width: 100%;
        }

        .feature-item {
            margin-bottom: 60px;
            padding: 30px 20px;
        }
    }

    @media (max-width: 768px) {
        .service-header {
            padding: 45px 0 35px;
        }

        .service-title {
            font-size: 2.2rem;
        }

        .service-description {
            font-size: 1rem;
            margin-bottom: 30px;
        }

        .content-section {
            padding: 50px 0;
        }

        .features-section {
            padding: 60px 0;
        }

        .feature-card-premium {
            padding: 30px 24px;
        }

        .feature-number-premium {
            width: 65px;
            height: 65px;
            font-size: 24px;
        }

        .keywords-section {
            padding: 60px 0;
        }

        .keywords-section h3 {
            font-size: 36px;
            line-height: 44px;
        }

        .keyword-badge {
            padding: 10px 20px;
            font-size: 14px;
        }
    }

    @media (max-width: 576px) {
        .service-header {
            padding: 35px 0 25px;
        }

        .service-title {
            font-size: 1.8rem;
        }

        .service-description {
            font-size: 0.95rem;
        }

        .content-section {
            padding: 40px 0;
        }

        .features-section {
            padding: 40px 0;
        }

        .feature-card-premium {
            padding: 28px 20px;
        }

        .feature-number-premium {
            width: 60px;
            height: 60px;
            font-size: 22px;
            border-radius: 12px;
        }

        .keywords-section {
            padding: 50px 0;
        }

        .keywords-section h3 {
            font-size: 28px;
            line-height: 36px;
            margin-bottom: 25px;
        }

        .keyword-badge {
            padding: 8px 18px;
            font-size: 13px;
        }
    }
