/* Сгенерировано из инлайн-блоков buhgalter.ftp.md при переносе в тему. Правки — здесь. */

/* ---- hero (перенесено из инлайна шаблона ftp-версии) ---- */
/* .hero-img {
		background-image: url("../img/hero/hero_bg_1_1.webp");
		filter: hue-rotate(120deg);
	} */

	.hero-img::before {
		content: "";
		position: absolute;
		inset: 0;
		background-image: url("../img/hero/hero_bg_1_1.webp");
		background-size: cover;
		background-position: center;

		/* filter: hue-rotate(120deg); */
		filter: hue-rotate(170deg) saturate(350%) brightness(85%) contrast(110%);
		/* aici pui filtrul */

		z-index: 0;
	}

	/* Right Visual - Analytics Dashboard */
	.right-visual {
		position: relative;
		height: 600px;
		display: flex;
		align-items: center;
		justify-content: center;
		z-index: 2;
	}

	.visual-container {
		position: relative;
		width: 100%;
		height: 100%;
		display: flex;
		align-items: center;
		justify-content: center;
	}

	.analytics-dashboard {
		position: relative;
		width: 500px;
		height: 500px;
		animation: slideInRight 1s ease-out;
	}

	.circle-bg {
		position: absolute;
		width: 450px;
		height: 450px;
		border-radius: 50%;
		background: white;
		box-shadow: 0 20px 60px rgba(33, 150, 243, 0.15);
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		z-index: 1;
	}

	.floating-card {
		position: absolute;
		background: white;
		border-radius: 16px;
		box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
		padding: 20px;
		animation: cardFloat 6s ease-in-out infinite;
		z-index: 3;
	}

	.floating-card.card-1 {
		top: 10%;
		left: -50px;
		animation-delay: 0s;
	}

	.floating-card.card-2 {
		top: 40%;
		right: -100px;
		animation-delay: 2s;
	}

	.floating-card.card-3 {
		bottom: 5%;
		left: -30px;
		animation-delay: 4s;
	}

	@keyframes cardFloat {

		0%,
		100% {
			transform: translateY(0);
		}

		50% {
			transform: translateY(-10px);
		}
	}

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

	.floating-card .card-icon {
		width: 32px;
		height: 32px;
		border-radius: 8px;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 16px;
	}

	.floating-card .card-icon img {
		width: 20px;
		height: 20px;
		filter: invert(24%) sepia(96%) saturate(2421%) hue-rotate(196deg) brightness(94%) contrast(101%);
	}

	.icon-green {
		background: #e8f5e9;
		color: #4CAF50;
	}

	.icon-blue {
		background: #e3f2fd;
		color: #2196F3;
	}

	.icon-orange {
		background: rgba(242, 119, 0, 0.12);
		color: #f27700;
	}

	.floating-card .card-title {
		font-size: 12px;
		color: #78909c;
		font-weight: 600;
		text-transform: uppercase;
		letter-spacing: 0.5px;
	}

	.floating-card .card-value {
		font-size: 24px;
		font-weight: 700;
		color: #1a237e;
	}

	.floating-card .card-change {
		font-size: 12px;
		color: #4CAF50;
		margin-top: 4px;
	}

	.central-svg {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 300px;
		height: 300px;
		z-index: 2;
	}

	@keyframes drawLine {
		to {
			stroke-dashoffset: 0;
		}
	}

	.pie-slice {
		transform-origin: center;
		animation: pieGrow 1s ease-out forwards;
		opacity: 0;
	}

	.pie-slice:nth-child(1) {
		animation-delay: 0.5s;
	}

	.pie-slice:nth-child(2) {
		animation-delay: 0.7s;
	}

	.pie-slice:nth-child(3) {
		animation-delay: 0.9s;
	}

	@keyframes pieGrow {
		from {
			transform: scale(0) rotate(-90deg);
			opacity: 0;
		}

		to {
			transform: scale(1) rotate(0deg);
			opacity: 1;
		}
	}

	.data-point {
		animation: dashPulse 2s infinite;
	}

	@keyframes dashPulse {

		0%,
		100% {
			opacity: 1;
			transform: scale(1);
		}

		50% {
			opacity: 0.7;
			transform: scale(1.1);
		}
	}

	.decorative-triangle {
		position: absolute;
		width: 0;
		height: 0;
		border-left: 40px solid transparent;
		border-right: 40px solid transparent;
		border-bottom: 70px solid rgba(33, 150, 243, 0.1);
		top: 20%;
		right: 20%;
		transform: rotate(15deg);
		animation: dashRotate 20s linear infinite;
	}

	.decorative-square {
		position: absolute;
		width: 60px;
		height: 60px;
		border: 3px solid rgba(33, 150, 243, 0.2);
		top: 60%;
		left: 15%;
		transform: rotate(45deg);
		animation: dashRotate 25s linear infinite reverse;
	}

	@keyframes dashRotate {
		from {
			transform: rotate(0deg);
		}

		to {
			transform: rotate(360deg);
		}
	}

	@keyframes slideInRight {
		from {
			opacity: 0;
			transform: translateX(50px);
		}

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

	@media (max-width: 1199px) {
		.right-visual {
			height: 450px;
			margin-top: 40px;
		}

		.analytics-dashboard {
			width: 400px;
			height: 400px;
		}

		.circle-bg {
			width: 350px;
			height: 350px;
		}

		.central-svg {
			width: 250px;
			height: 250px;
		}

		.floating-card {
			padding: 16px;
		}

		.floating-card .card-value {
			font-size: 20px;
		}

		.floating-card.card-1 {
			left: -50px;
			top: 5%;
		}

		.floating-card.card-2 {
			right: -150px;
		}

		.floating-card.card-3 {
			left: -50px;
		}
	}

	@media (max-width: 968px) {
		.right-visual {
			height: 400px;
			margin-top: 30px;
		}

		.analytics-dashboard {
			width: 350px;
			height: 350px;
		}

		.circle-bg {
			width: 300px;
			height: 300px;
		}

		.central-svg {
			width: 200px;
			height: 200px;
		}

		.floating-card {
			padding: 12px;
			font-size: 13px;
		}

		.floating-card .card-value {
			font-size: 18px;
		}

		.floating-card .card-title {
			font-size: 10px;
		}

		.floating-card .card-change {
			font-size: 10px;
		}

		.floating-card.card-1 {
			left: -30px;
			top: 2%;
		}

		.floating-card.card-2 {
			right: -150px;
			top: 35%;
		}

		.floating-card.card-3 {
			left: -40px;
			bottom: 8%;
		}

		.decorative-triangle,
		.decorative-square {
			display: none;
		}
	}

	@media (max-width: 767px) {
		.right-visual {
			height: 350px;
			margin-top: 20px;
		}

		.analytics-dashboard {
			width: 300px;
			height: 300px;
		}

		.circle-bg {
			width: 260px;
			height: 260px;
		}

		.central-svg {
			width: 170px;
			height: 170px;
		}

		.floating-card {
			padding: 10px;
			font-size: 12px;
		}

		.floating-card .card-value {
			font-size: 16px;
		}

		.floating-card .card-icon {
			width: 26px;
			height: 26px;
			font-size: 13px;
		}

		.floating-card.card-1 {
			left: -25px;
			top: 0;
		}

		.floating-card.card-2 {
			right: -150px;
			top: 33%;
		}

		.floating-card.card-3 {
			left: -60px;
			bottom: -5%;
		}
	}

	@media (max-width: 480px) {
		.analytics-dashboard {
			display: none;
		}

		.right-visual {
			display: none;
		}
	}

/* ---- вкладки услуг (перенесено из инлайна шаблона ftp-версии) ---- */
#servicesTabs .nav-link {
		background: var(--white-color);
		border: 2px solid var(--border-color);
		border-radius: 50px;
		padding: 14px 32px;
		font-size: 16px;
		font-weight: 600;
		font-family: var(--title-font);
		color: var(--title-color);
		transition: all .3s ease;
	}
	#servicesTabs .nav-link:hover {
		border-color: var(--theme-color);
		color: var(--theme-color);
	}
	#servicesTabs .nav-link.active {
		background: var(--theme-color);
		border-color: var(--theme-color);
		color: var(--white-color);
		box-shadow: 0 8px 25px rgba(22,63,98,.25);
	}
	#servicesTabContent .tab-pane {
		animation: svcFadeUp .4s ease;
	}
	@keyframes svcFadeUp {
		from { opacity:0; transform:translateY(15px); }
		to   { opacity:1; transform:translateY(0); }
	}
	@media(max-width:575px) {
		#servicesTabs { flex-direction:column; align-items:center; }
		#servicesTabs .nav-link { width:100%; text-align:center; }
	}

/* ---- «Подходит ли вам» и «Как мы работаем» (перенесено из инлайна шаблона ftp-версии) ---- */
/* ===== PARTNER RECOMMENDATION - PREMIUM LAYOUT ===== */

    /* Section 1: Compare */
    .pr-section-compare {
        /* min-height: 70vh; */
        display: flex;
        align-items: center;
        padding: 5rem 0;
        border-top: 1px solid var(--border-color);
        border-bottom: 1px solid var(--border-color);

    }

    .pr-grid-compare {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        width: 100%;
        align-items: flex-start;
    }

    .pr-grid-compare>.pr-content-block:first-child {
        position: sticky;
        top: 160px;
        height: fit-content;
    }


    .pavel {
        margin: 0px 8px 0 0px !important;
    }

    .pr-content-block>p {

        max-width: 480px;

    }

    .pr-status-item {
        padding: 1.2rem 1.4rem;
        border-left: 2px solid var(--border-color);
        margin-bottom: 0.5rem;
        transition: all 0.3s ease;
        border-radius: 0 6px 6px 0;
    }

    .pr-status-item:hover {
        border-left-color: var(--theme-color2);
        background: var(--smoke-color);
    }

    .pr-status-item h5 {

        color: var(--theme-color);

    }

    .pr-status-item span {
        font-family: var(--body-font);
        font-size: 0.95rem;
        color: var(--body-color);
        line-height: 1.6;
    }

    /* CTA Bar */

    /* Section 2: Roadmap */
    .pr-section-roadmap {

        padding: 5rem 0;
        display: flex;
        flex-direction: column;
        justify-content: center;

    }

    .pr-section-roadmap h2 {
        text-align: center;
    }

    .pr-roadmap-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    /* Row 1: 3 cards (each spans 2 of 6 columns) */
    .pr-step-card:nth-child(1),
    .pr-step-card:nth-child(2),
    .pr-step-card:nth-child(3),
    .pr-step-card:nth-child(4) {
        grid-column: span 2;
    }

    

    .pr-step-card:nth-child(5) {
        grid-column: 4 / 7;
    }
  .pr-step-card:nth-child(6) {
    grid-column: 1 / -1; /* sau 2/6 pentru centrat */
}

    .pr-step-card {
        padding: 2rem 1.5rem;
        background: var(--white-color);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        text-align: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }

    .pr-step-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 16px 40px rgba(0, 82, 166, 0.08);
    }

    .pr-step-number {
        font-family: var(--title-font);
        font-size: 1.6rem;
        color: var(--color-orange);
        font-weight: 700;
        margin-bottom: 1rem;
        display: block;
        letter-spacing: 0.05em;
    }



    /* Responsive */
    @media (max-width: 1024px) {
        .pr-roadmap-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .pr-step-card:nth-child(1),
        .pr-step-card:nth-child(2),
        .pr-step-card:nth-child(3),
        .pr-step-card:nth-child(4),
        .pr-step-card:nth-child(5) {
            grid-column: span 1;
        }

        .pr-step-card:nth-child(5) {
            grid-column: 1 / -1;
        }

        .pr-grid-compare {
            grid-template-columns: 1fr;
            gap: 2.5rem;
        }

        .pr-grid-compare>.pr-content-block:first-child {
            position: static;
        }

        .pr-section-compare,
        .pr-section-roadmap {
            min-height: auto;
        }
    }

    @media (max-width: 767px) {
        .pr-roadmap-grid {
            grid-template-columns: repeat(2, 1fr);
        }

        .pr-content-block h2 {
            font-size: 1.65rem;
        }

        .pr-section-compare {
            padding: 3rem 0;
        }

        .pr-section-roadmap {
            padding: 3rem 0;
        }
    }

    @media (max-width: 480px) {
        .pr-roadmap-grid {
            grid-template-columns: 1fr;
        }

        .pr-step-card:nth-child(5) {
            grid-column: span 1;
        }
    }

/* ---- отзывы (перенесено из инлайна шаблона ftp-версии) ---- */
/* ===== TESTIMONIAL OVERLAPPING LAYOUT ===== */
    .ts-section {
        /* padding: 80px 0; */
        overflow: hidden;
    }

    .ts-wrapper {
        position: relative;
        display: flex;
        align-items: center;
        min-height: 520px;
    }

    /* Left Image */
    .ts-image {
        width: 480px;
        min-width: 480px;
        height: 520px;
        border-radius: 16px;
        overflow: hidden;
        position: relative;
        z-index: 1;
        flex-shrink: 0;
    }

    .ts-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Card overlapping */
    .ts-card {
        position: relative;
        margin-left: -80px;
        z-index: 2;
        background: var(--smoke-color);
        border-radius: 20px;
        padding: 50px 70px 50px 50px;
        box-shadow: 0 20px 50px rgba(0, 82, 166, 0.08);
        flex: 1;
        overflow: hidden;
    }

    /* Background quote */
    .ts-quote-bg {
        position: absolute;
        right: 40px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 260px;
        font-family: serif;
        line-height: 0;
        z-index: 0;
        user-select: none;
        -webkit-text-stroke: 2px rgba(0, 82, 166, 0.08);
        color: transparent;
        pointer-events: none;
    }

    .ts-card-inner {
        position: relative;
        z-index: 1;
        cursor: grab;
        user-select: none;
    }

    .ts-card-inner.dragging {
        cursor: grabbing;
    }

    /* Stars */
    .ts-stars {
        display: flex;
        gap: 4px;
        margin-bottom: 20px;
    }

    .ts-stars .ts-star {
        font-size: 24px;
        color: var(--yellow-color);
    }

    .ts-stars .ts-star.empty {
        color: var(--border-color);
    }

    /* Text */
    .ts-text {
        font-family: var(--body-font);
        font-size: 1.05rem;
        line-height: 1.75;
        color: var(--title-color);
        margin-bottom: 32px;
        max-width: 92%;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    /* Author */
    .ts-author {
        display: flex;
        align-items: center;
        gap: 16px;
        transition: opacity 0.4s ease, transform 0.4s ease;
    }

    .ts-avatar {
        width: 72px;
        height: 72px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid var(--white-color);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }

    .ts-avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .ts-author-name {
        font-family: var(--title-font);
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--title-color);
        margin-bottom: 2px;
    }

    .ts-author-role {
        font-family: var(--body-font);
        font-size: 0.88rem;
        color: var(--light-color);
    }

    /* Nav Controls - inside card, bottom-right */
    .ts-nav {
        position: absolute;
        right: 24px;
        bottom: 24px;
        display: flex;
        flex-direction: row;
        gap: 8px;
        z-index: 3;
    }

    .ts-nav-btn {
        width: 44px;
        height: 44px;
        background: var(--white-color);
        border: 1.5px solid var(--border-color);
        border-radius: 8px;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all 0.3s ease;
        color: var(--theme-color);
        font-size: 14px;
    }

    .ts-nav-btn:hover {
        background: var(--theme-color);
        border-color: var(--theme-color);
        color: var(--white-color);
    }

    /* Transition states */
    .ts-card-inner.fading .ts-text,
    .ts-card-inner.fading .ts-author,
    .ts-card-inner.fading .ts-stars {
        opacity: 0;
        transform: translateX(20px);
    }

    /* Responsive */
    @media (max-width: 1100px) {
        .ts-wrapper {
            flex-direction: column;
            min-height: auto;
        }

        .ts-image {
            width: 100%;
            min-width: auto;
            height: 320px;
        }

        .ts-card {
            margin-left: 0;
            margin-top: -50px;
            width: 95%;
            padding: 36px 40px;
        }

        .ts-nav {
            right: 16px;
            bottom: 16px;
        }
    }

    @media (max-width: 576px) {
        .ts-section {
            padding: 50px 0;
        }

        .ts-image {
            height: 240px;
        }

        .ts-card {
            padding: 28px 24px;
        }

        .ts-text {
            font-size: 0.95rem;
            max-width: 100%;
        }

        .ts-quote-bg {
            font-size: 160px;
            right: 10px;
        }

        .ts-avatar {
            width: 56px;
            height: 56px;
        }
    }

/* ---- [5.3] Hero: одна основная кнопка + телефон рядом ---- */
.hero-phone {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--title-color);
	text-align: left;
}
.hero-phone:hover {
	color: #f27700;
}
.hero-phone__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 6px 20px rgba(12, 40, 88, 0.12);
	color: #f27700;
	font-size: 18px;
}
.hero-phone__body {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
}
.hero-phone__label {
	font-size: 14px;
	color: var(--body-color);
}
.hero-phone__number {
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

/* ---- [5.5] Компактный блок услуг сразу под hero ---- */
.ad-quick-services {
	position: relative;
	z-index: 3;
	padding: 32px 0 8px;
}
.ad-quick-services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.ad-quick-services__col {
	background: #fff;
	border: 1px solid rgba(0, 82, 166, 0.1);
	border-radius: 14px;
	padding: 18px 20px 10px;
	box-shadow: 0 8px 24px rgba(12, 40, 88, 0.06);
}
.ad-quick-services__cat {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
	color: var(--title-color);
	font-size: 19px;
	font-weight: 700;
}
.ad-quick-services__cat:hover {
	color: #f27700;
}
.ad-quick-services__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	background: rgba(242, 119, 0, 0.1);
	color: #f27700;
	font-size: 16px;
}
.ad-quick-services__arrow {
	margin-left: auto;
	color: #f27700;
	font-size: 14px;
}
.ad-quick-services__list {
	list-style: none;
	margin: 0;
	padding: 0;
}
.ad-quick-services__list li + li {
	border-top: 1px solid rgba(0, 82, 166, 0.08);
}
.ad-quick-services__list a {
	display: block;
	padding: 8px 0;
	color: var(--body-color);
	font-size: 15px;
	line-height: 1.35;
}
.ad-quick-services__list a:hover {
	color: #f27700;
}
@media (max-width: 991px) {
	/* Телефон и планшет: категории — лента карточек, листается вбок. Блок низкий, и до сегментов (5.10)
	   с первого экрана остаётся меньше одного скролла. Прокрутка — внутри ленты, страница вбок не едет. */
	.ad-quick-services__grid {
		display: flex;
		gap: 12px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		-webkit-overflow-scrolling: touch;
		padding-bottom: 8px;
		scrollbar-width: thin;
	}
	.ad-quick-services__col {
		flex: 0 0 82%;
		scroll-snap-align: start;
	}
	.ad-quick-services__col {
		padding: 14px 16px 6px;
	}
	.ad-quick-services__cat {
		font-size: 17px;
	}
	.ad-quick-services__list a {
		font-size: 14px;
		padding: 7px 0;
	}
	/* На телефоне — по три главные услуги: блок остаётся компактным, остальные — на странице категории. */
	.ad-quick-services__list li:nth-child(n + 4) {
		display: none;
	}
}

/* ---- [5.10] Кому мы подходим: 4 сегмента сразу под блоком услуг ---- */
.ad-segments {
	padding: 36px 0 12px;
}
.ad-segments__title {
	margin: 0 0 20px;
	font-size: 30px;
	text-align: center;
}
.ad-segments__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.ad-segments__card {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 20px 18px;
	border-radius: 14px;
	background: var(--smoke-color, #f3f7fb);
	border: 1px solid rgba(0, 82, 166, 0.08);
	color: var(--body-color);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.ad-segments__card:hover {
	transform: translateY(-3px);
	border-color: rgba(242, 119, 0, 0.35);
	box-shadow: 0 10px 26px rgba(12, 40, 88, 0.08);
	color: var(--body-color);
}
.ad-segments__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 12px;
	background: #fff;
	color: #f27700;
	font-size: 18px;
}
.ad-segments__name {
	color: var(--title-color);
	font-size: 18px;
	font-weight: 700;
	line-height: 1.3;
}
.ad-segments__text {
	font-size: 15px;
	line-height: 1.5;
}
.ad-segments__more {
	margin-top: auto;
	color: #f27700;
	font-size: 14px;
	font-weight: 600;
}
@media (max-width: 1199px) {
	.ad-segments__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 575px) {
	.ad-segments__title {
		font-size: 24px;
	}
	.ad-segments__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}
	.ad-segments__card {
		padding: 16px;
		gap: 6px;
	}
}
