/* Service pages — coded layout from Figma "advokat" (frames 154:3315, 154:2597, 154:3025, 154:2722). Needs advp-common.css. */

.advp--practice {
	background: var(--advp-white);
}

/* The theme wraps content in padded containers; this layout is full width. */
.advp-page .site-content {
	padding-top: 0;
	padding-bottom: 0;
}

/* ---------------------------------------------------------------- Hero */

.advp-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	max-width: var(--advp-max);
	margin: 0 auto;
	padding: calc(var(--advp-header) + 40px) var(--advp-gutter) 40px;
}

/* Lady Justice: 439×796 at x=947, y=210 of the 1280 frame, showing the right part of the image. */
.advp-hero__art {
	position: absolute;
	top: calc(var(--advp-header) + 210px);
	left: 947px;
	width: 439px;
	height: 796px;
	overflow: hidden;
	pointer-events: none;
}

.advp-hero__art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: right center;
}

.advp-hero__head {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
	text-align: center;
}

.advp-hero__eyebrow {
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.2px;
	color: var(--advp-text-200);
}

.advp .advp-hero__title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	max-width: 900px;
	font-size: 52px;
	font-weight: 500;
	line-height: 50px;
	letter-spacing: 0.5px;
	color: var(--advp-text-100);
}

.advp-hero__accent {
	display: block;
	color: var(--advp-primary);
}

.advp-hero__accent::first-letter {
	text-transform: uppercase;
}

.advp-hero__lead {
	position: relative;
	width: 704px;
	max-width: 100%;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.4px;
	text-align: center;
	color: var(--advp-text-200);
}

.advp-hero__lead p + p {
	margin-top: 8px;
}

.advp-hero__lead strong {
	font-weight: 600;
	color: var(--advp-text-100);
}

/* Price card */

.advp-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 28px;
	width: 579px;
	max-width: 100%;
	padding: 28px;
	border-radius: 16px;
	background: var(--advp-base);
}

.advp-card__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.advp .advp-card__title {
	font-size: 28px;
	font-weight: 500;
	line-height: 30px;
	letter-spacing: 0.2px;
	color: var(--advp-text-100);
}

.advp-card__subtitle {
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
}

.advp-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 6px;
}

.advp-card__amount {
	font-size: 58px;
	font-weight: 500;
	line-height: 56px;
	color: var(--advp-text-100);
}

.advp-card--inquiry .advp-card__amount {
	font-size: 36px;
	line-height: 40px;
}

.advp-card__note {
	padding-top: 10px;
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.2px;
	color: var(--advp-text-100);
}

.advp-card__cta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.advp .advp-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 46px;
	padding: 12px 24px;
	border-radius: 8px;
	background: var(--advp-primary);
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-white);
	transition: background-color 0.2s ease;
}

.advp .advp-btn:hover,
.advp .advp-btn:focus-visible {
	background: #7466f0;
	color: var(--advp-white);
}

.advp-card__privacy {
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.3px;
	text-align: center;
	color: var(--advp-text-200);
}

.advp .advp-card__divider {
	width: 100%;
	height: 1px;
}

.advp-card__included {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.advp .advp-card__included-title {
	font-size: 18px;
	font-weight: 500;
	line-height: 20px;
	letter-spacing: 0.5px;
	color: var(--advp-text-100);
}

.advp-checklist {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.advp-checklist li {
	display: flex;
	align-items: center;
	gap: 14px;
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-text-100);
}

.advp-checklist img {
	flex: 0 0 20px;
}

.advp-card__footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
}

.advp-card__footer p {
	padding: 8px 0;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.3px;
	color: var(--advp-primary);
}

/* Trust badge: x=81, 40px above the bottom of the hero frame. */

.advp-trust {
	position: absolute;
	left: 81px;
	bottom: 40px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 14px 16px;
	border-radius: 12px;
	background: var(--advp-white);
}

.advp-trust__rating {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.advp-trust__stars {
	display: flex;
	gap: 4px;
}

.advp-trust__rating p {
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.4px;
	color: var(--advp-text-200);
}

.advp-trust__faces {
	display: flex;
	align-items: center;
}

.advp-trust__face,
.advp-trust__more {
	position: relative;
	flex: 0 0 45px;
	width: 45px;
	height: 45px;
	border-radius: 8px;
	overflow: hidden;
}

.advp-trust__face {
	margin-right: -25px;
	border: 1px solid var(--advp-border);
}

.advp-trust__face img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.advp-trust__more {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--advp-faq-bg);
}

/* ---------------------------------------------------------------- Steps */

.advp-steps {
	display: flex;
	flex-direction: column;
	gap: 40px;
	max-width: var(--advp-max);
	margin: 0 auto;
	padding: 40px var(--advp-gutter);
}

/* Heading starts at the text column (135px image + 52px gap). */
.advp-steps__head {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-left: 187px;
}

.advp .advp-steps__title {
	font-size: 42px;
	font-weight: 500;
	line-height: 46px;
	letter-spacing: 0.3px;
	color: var(--advp-black);
}

.advp-steps__subtitle {
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
}

.advp-steps__list {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.advp-step {
	display: flex;
	align-items: stretch;
	gap: 52px;
	min-height: 135px;
}

.advp .advp-step__img {
	flex: 0 0 135px;
	width: 135px;
	height: 135px;
	border-radius: 4px;
	background: var(--advp-base);
	object-fit: cover;
}

.advp .advp-step__img--bottom {
	object-position: center bottom;
}

.advp-step__body {
	display: flex;
	flex: 1 1 0;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
	padding: 16px 0;
	border-bottom: 1px solid var(--advp-border);
}

.advp-step:first-child .advp-step__body {
	border-top: 1px solid var(--advp-border);
}

.advp .advp-step__title {
	display: flex;
	gap: 16px;
	font-size: 20px;
	font-weight: 500;
	line-height: 22px;
	letter-spacing: 0.3px;
	color: var(--advp-text-100);
}

.advp-step__num {
	flex: 0 0 auto;
}

.advp-step__text {
	padding: 0 34px 0 38px;
	font-size: 18px;
	line-height: 20px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
}

/* ---------------------------------------------------------------- Text sections + side menu + TOC */

.advp-info {
	display: grid;
	grid-template-columns: 250px minmax(0, 1fr) 202px;
	align-items: start;
	gap: 38px;
	max-width: var(--advp-max);
	margin: 0 auto;
	padding: 40px var(--advp-gutter);
}

.advp-info--no-menu {
	grid-template-columns: minmax(0, 1fr) 202px;
}

.advp-menu {
	position: sticky;
	top: var(--advp-anchor-offset);
	display: flex;
	flex-direction: column;
	gap: 14px;
	padding-right: 24px;
	border-right: 1px solid var(--advp-border);
}

.advp .advp-menu__title {
	font-size: 24px;
	font-weight: 500;
	line-height: 26px;
	letter-spacing: 0.3px;
	color: var(--advp-text-100);
}

.advp-menu ul {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.advp .advp-menu a {
	display: block;
	padding: 8px 0;
	font-size: 16px;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
	transition: color 0.2s ease;
}

.advp .advp-menu a:hover,
.advp .advp-menu a[aria-current="page"] {
	color: var(--advp-primary);
}

/* Prose: the sections from the editor. */

.advp-prose {
	display: flex;
	flex-direction: column;
	min-width: 0;
	font-size: 14px;
	line-height: 16px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
}

.advp .advp-prose > * + * {
	margin-top: 24px;
}

.advp .advp-prose h2,
.advp .advp-prose h3 {
	scroll-margin-top: var(--advp-anchor-offset);
	font-weight: 500;
	letter-spacing: 0.3px;
	color: var(--advp-text-100);
}

.advp .advp-prose h2 {
	font-size: 24px;
	line-height: 26px;
}

.advp .advp-prose h3 {
	font-size: 18px;
	line-height: 20px;
}

/* 28px between sections + 16px section bottom padding in the design. */
.advp .advp-prose > h2:not(:first-child),
.advp .advp-prose > h3:not(:first-child) {
	margin-top: 44px;
}

/* Intro line under a heading, before its list. */
.advp .advp-prose > h2 + p:has(+ ul),
.advp .advp-prose > h3 + p:has(+ ul) {
	margin-top: 12px;
	font-size: 16px;
	line-height: 18px;
}

.advp .advp-prose > p + p {
	margin-top: 16px;
}

.advp-prose strong {
	font-weight: 600;
	color: var(--advp-text-100);
}

.advp-prose a {
	color: var(--advp-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Bullets: 6px violet dot. A "<strong>Title</strong> rest" item shows the title on its own line. */
.advp-prose ul:not([class*="company-note"]) {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.advp-prose ul:not([class*="company-note"]) > li {
	position: relative;
	padding-left: 20px;
}

.advp-prose ul:not([class*="company-note"]) > li::before {
	content: "";
	position: absolute;
	top: 5px;
	left: 0;
	width: 6px;
	height: 6px;
	background: url("../img/practice/bullet.svg") no-repeat center / 6px 6px;
}

/* Titled item: dot + 8px + bold title, description on the next line (Figma 154:3126). */
.advp-prose ul:not([class*="company-note"]) > li:has(> .advp-li-text) {
	padding-left: 14px;
}

.advp-prose ul:not([class*="company-note"]) > li > strong:first-child:has(+ .advp-li-text) {
	display: block;
	margin-bottom: 8px;
}

.advp-prose .advp-li-text {
	display: block;
	padding-left: 1px;
}

.advp-prose ol:not([class*="company-note"]) {
	display: flex;
	flex-direction: column;
	gap: 14px;
	counter-reset: advp-ol;
}

.advp-prose ol:not([class*="company-note"]) > li {
	position: relative;
	padding-left: 24px;
	counter-increment: advp-ol;
}

.advp-prose ol:not([class*="company-note"]) > li::before {
	content: counter(advp-ol) ".";
	position: absolute;
	left: 0;
	width: 16px;
	text-align: center;
	color: var(--advp-primary);
}

/* Callouts (warning / "what you get"): violet bar, tinted box, violet numbers. */
.advp-prose .company-note {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding: 16px 16px 16px 16px;
	border-radius: 6px 8px 8px 6px;
	background: var(--advp-primary-soft);
	box-shadow: inset 4px 0 0 var(--advp-primary);
}

.advp .advp-prose .company-note__title {
	font-size: 16px;
	font-weight: 400;
	line-height: 18px;
	letter-spacing: 0.3px;
	color: var(--advp-text-200);
}

.advp-prose .company-note__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	counter-reset: advp-note;
}

.advp-prose .company-note__list > li {
	position: relative;
	padding-left: 24px;
	counter-increment: advp-note;
}

.advp-prose .company-note__list > li::before {
	content: counter(advp-note) ".";
	position: absolute;
	left: 0;
	width: 16px;
	text-align: center;
	color: var(--advp-primary);
}

.advp-prose .company-note strong {
	font-weight: 400;
	color: inherit;
}

.advp-prose .company-note-line {
	font-size: 16px;
	line-height: 18px;
}

/* Tables (e.g. comparison on the freelancer page). */
.advp-prose .company-table-wrap {
	overflow-x: auto;
}

.advp-prose table {
	width: 100%;
	margin: 0;
	border-collapse: collapse;
	font-size: 14px;
	line-height: 18px;
}

.advp-prose th,
.advp-prose td {
	padding: 10px 12px;
	border: 0;
	border-bottom: 1px solid var(--advp-border);
	text-align: left;
	vertical-align: top;
}

.advp-prose th {
	font-weight: 500;
	color: var(--advp-text-100);
	background: var(--advp-base);
}

/* "На тази страница" */

.advp-toc {
	position: sticky;
	top: var(--advp-anchor-offset);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.advp-toc__title {
	font-size: 14px;
	font-weight: 500;
	color: var(--advp-text-100);
}

.advp-toc__body {
	position: relative; /* offsetParent for the links, so the bar (inside the rail) lines up with them */
	display: flex;
	gap: 4px;
}

.advp-toc__rail {
	position: relative;
	flex: 0 0 2px;
	border-radius: 9999px;
	background: var(--advp-border);
	overflow: hidden;
}

.advp-toc__bar {
	position: absolute;
	top: 0;
	left: 0;
	width: 2px;
	height: 34px;
	border-radius: 9999px;
	background: var(--advp-primary);
	transition: transform 0.25s ease, height 0.25s ease;
}

.advp-toc ul {
	flex: 1 1 0;
	min-width: 0;
}

.advp .advp-toc a {
	display: block;
	padding: 8px;
	font-size: 12px;
	line-height: 18px;
	letter-spacing: 0.6px;
	color: var(--advp-text-200);
	transition: color 0.2s ease;
}

.advp .advp-toc a:hover,
.advp .advp-toc a.is-active {
	color: var(--advp-primary);
}

/* ---------------------------------------------------------------- Responsive */

@media (max-width: 1279px) {
	.advp-hero__art {
		left: auto;
		right: -106px;
	}
}

@media (max-width: 1199px) {
	.advp-hero__art {
		display: none;
	}

	.advp-trust {
		position: static;
		flex-direction: row;
		align-items: center;
		gap: 24px;
	}

	.advp-info {
		grid-template-columns: 220px minmax(0, 1fr);
	}

	.advp-info--no-menu {
		grid-template-columns: minmax(0, 1fr);
	}

	.advp-toc {
		display: none;
	}
}

@media (max-width: 860px) {
	.advp-info {
		grid-template-columns: minmax(0, 1fr);
	}

	.advp-menu {
		position: static;
		order: 2;
		padding: 24px 0 0;
		border-right: 0;
		border-top: 1px solid var(--advp-border);
	}

	.advp-steps__head {
		padding-left: 0;
	}

	.advp-step {
		gap: 24px;
	}
}

@media (max-width: 767px) {
	.advp-hero {
		gap: 24px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.advp .advp-hero__title {
		gap: 6px;
		font-size: 32px;
		line-height: 36px;
		letter-spacing: 0.3px;
	}

	.advp-card {
		padding: 20px;
		gap: 24px;
	}

	.advp .advp-card__title {
		font-size: 22px;
		line-height: 26px;
	}

	.advp-card__amount {
		font-size: 44px;
		line-height: 46px;
	}

	.advp-card--inquiry .advp-card__amount {
		font-size: 28px;
		line-height: 32px;
	}

	.advp-checklist li {
		align-items: flex-start;
		font-size: 15px;
		line-height: 20px;
	}

	.advp .advp-steps__title {
		font-size: 28px;
		line-height: 32px;
	}

	.advp-steps {
		gap: 28px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.advp-step {
		gap: 16px;
		min-height: 0;
	}

	.advp .advp-step__img {
		flex-basis: 72px;
		width: 72px;
		height: 72px;
		margin-top: 16px;
	}

	.advp .advp-step__title {
		gap: 10px;
		font-size: 17px;
		line-height: 22px;
	}

	.advp-step__text {
		padding: 0;
		font-size: 15px;
		line-height: 20px;
	}

	.advp-info {
		gap: 32px;
		padding-top: 32px;
		padding-bottom: 32px;
	}

	.advp-prose {
		font-size: 15px;
		line-height: 20px;
	}

	.advp .advp-prose h2 {
		font-size: 22px;
		line-height: 26px;
	}

}

