/* ==================================================================
 * Страница статьи по макету Figma.
 * Все классы с префиксом fa- (figma article), чтобы не конфликтовать
 * с глобальным style.css темы.
 * ================================================================== */

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-Medium.woff2") format("woff2"), url("../fonts/Manrope-Medium.woff") format("woff");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-Medium.woff2") format("woff2"), url("../fonts/Manrope-Medium.woff") format("woff");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-Bold.woff2") format("woff2"), url("../fonts/Manrope-Bold.woff") format("woff");
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Manrope";
	src: url("../fonts/Manrope-ExtraBold.woff2") format("woff2");
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	--fa-blue: #196dff;
	--fa-ink: #3a3a3a;
	--fa-ink-2: #494949;
	--fa-grey: rgba(87, 87, 87, .9);
	--fa-grey-80: rgba(87, 87, 87, .8);
	--fa-grey-70: rgba(87, 87, 87, .7);
	--fa-grey-60: rgba(87, 87, 87, .6);
	--fa-line: rgba(58, 58, 58, .4);
	--fa-wrap: 1400px;
	--fa-gutter: 20px;
}

.fa-page {
	--fa-blue: #196dff;
	--fa-ink: #3a3a3a;
	--fa-ink-2: #494949;
	--fa-grey: rgba(87, 87, 87, .9);
	--fa-grey-80: rgba(87, 87, 87, .8);
	--fa-grey-70: rgba(87, 87, 87, .7);
	--fa-grey-60: rgba(87, 87, 87, .6);
	--fa-line: rgba(58, 58, 58, .4);
	--fa-wrap: 1400px;
	--fa-gutter: 20px;

	margin: 0;
	/* Сброс в style.css задаёт html, body { height: 100% }. Из-за этого body
	   ростом ровно в экран, а sticky-шапка живёт только внутри своего контейнера
	   и отлипала, докрутив до его низа (~на пятом абзаце статьи). */
	height: auto;
	background: #fff;
	color: var(--fa-ink);
	font-family: "Manrope", Arial, sans-serif;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

.fa-page *,
.fa-page *::before,
.fa-page *::after {
	box-sizing: border-box;
}

.fa-page :where(img) {
	display: block;
	max-width: 100%;
}

/* :where() обнуляет вклад селектора в специфичность, иначе этот сброс
   перебивал бы цвет у .fa-nav__link, .fa-crumbs__link, .fa-toc__link и т.д. */
.fa-page :where(a) {
	color: inherit;
	text-decoration: none;
}

.fa-page :where(ul, ol) {
	margin: 0;
	padding: 0;
}

.fa-page p {
	margin: 0;
}

body.hairclinics-single-post::after {
	content: none;
	display: none;
}

/* Кнопки не наследуют шрифт от body — возвращаем базовое начертание Manrope Medium. */
.fa-page :where(button) {
	font-family: inherit;
	font-weight: 500;
}

.fa-accent {
	color: var(--fa-blue);
}

.fa-header__inner,
.fa-main {
	max-width: 1400px;
	width: calc(100% - 30px);
	margin: 0 auto;
	margin-inline: auto;
}

.fa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 53px;
	padding: 0 23px;
	border-radius: 130px;
	background: var(--fa-blue);
	font-weight: 700;
	font-size: 16px;
	line-height: 1.2;
	color: #fff;
	text-transform: uppercase;
	white-space: nowrap;
	transition: opacity .2s;
}

.fa-btn:hover {
	opacity: .88;
}

.fa-btn-text--mobile {
	display: none;
}

.fa-btn--ghost {
	width: 100%;
	background: transparent;
	border: 2px solid rgba(25, 109, 255, .2);
	border-radius: 12px;
	color: var(--fa-blue);
}

.fa-h2 {
	margin: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 39px;
	color: var(--fa-ink-2);
	word-break: break-word;
}

/* ================= шапка ================= */
.fa-header {
	--fa-header-pad: 20px;
	position: sticky;
	top: calc(var(--fa-header-top) - var(--fa-header-pad));
	z-index: 80;
	padding-top: var(--fa-header-pad);
}

/* Панель WP-админки перекрыла бы плашку, поэтому в залогиненном виде шапка
   липнет ниже. Но её высота и поведение зависят от ширины: до 783px панель
   становится 46px вместо 32px, а до 601px ещё и position: absolute — уезжает
   вместе со страницей, и подпирать уже нечего. Из-за одного зафиксированного
   top: 12px на узких экранах над плашкой оставалась полоса страницы в 32px.
   Главная этого не показывала: index.php не зовёт body_class(), класса
   admin-bar на ней просто нет. */
body.admin-bar .fa-header {
	top: calc(32px + var(--fa-header-top) - var(--fa-header-pad));
}

@media (max-width: 782px) {
	body.admin-bar .fa-header {
		top: calc(46px + var(--fa-header-top) - var(--fa-header-pad));
	}
}

@media (max-width: 600px) {
	body.admin-bar .fa-header {
		top: calc(var(--fa-header-top) - var(--fa-header-pad));
	}
}

.home-page .fa-nav__link[href*="choose-clinic"],
.home-page .fa-menu__link[href*="choose-clinic"] {
	display: none !important;
}

.wrapper:has(.fa-header) {
	overflow: visible;
}

@media (min-width: 769px) {
	.wrapper:has(.fa-header) .main {
		padding-top: 65px;
	}
}

.fa-header__inner {
	position: relative;
}

/* Бургер и мобильное меню — только на узких экранах. */
.fa-burger,
.fa-menu {
	display: none;
}

.fa-header__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: 102px;
	padding: 0 30px;
	background: var(--fa-blue);
	border-radius: 20px;
	filter: drop-shadow(0 4px 12px rgba(203, 212, 227, .4));
	transition: filter .25s ease, transform .25s ease;
}

.fa-brand {
	display: flex;
	align-items: center;
	gap: 18px;
	flex-shrink: 0;
}

.fa-brand__logo {
	width: 129px;
	height: auto;
}

.fa-brand__divider {
	width: 1px;
	height: 34px;
	background: rgba(255, 255, 255, .5);
}

.fa-brand__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	color: #fff;
}

.fa-brand__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 800;
	font-size: 17px;
	line-height: 1;
}

.fa-brand__sub {
	font-size: 16px;
	line-height: 1.2;
	white-space: nowrap;
	font-family: "Manrope", sans-serif;
	font-weight: 500;
}

.fa-nav {
	flex: 0 1 562px;
}

.fa-nav__list {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 8px 0;
	list-style: none;
	border-bottom: 1px solid rgba(255, 255, 255, .3);
}

.fa-nav__item {
	position: relative;
}

.home-page .fa-nav__list>.fa-nav__item:first-child,
.home-page .fa-menu__list>.fa-menu__item:first-child {
	display: none !important;
}

.fa-nav__link {
	display: block;
	font-weight: 600;
	font-size: 17px;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	transition: color .2s;
}

/* Ховер: пункт желтеет, а общая черта под меню под этим пунктом меняет цвет. */
.fa-nav__item::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -9px;
	height: 1px;
	background: transparent;
	transition: background .2s;
}

.fa-nav__item:hover .fa-nav__link {
	color: #f4d943;
}

.fa-nav__item:hover::after {
	background: #f4d943;
}

.fa-contact {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 6px;
	flex-shrink: 0;
}

.fa-contact__text {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	justify-content: center;
	color: #fff;
	white-space: nowrap;
}

.fa-contact__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 800;
	font-size: 17px;
	line-height: 1;
}

.fa-contact__sub {
	font-size: 16px;
	line-height: 1.2;
	font-family: "Manrope", sans-serif;
	font-weight: 500;
}

.fa-socials {
	display: flex;
	align-items: center;
	gap: 6px;
}

.fa-socials__item {
	display: flex;
	border-radius: 50%;
	transition: transform .2s;
}

.fa-socials__item:hover {
	transform: translateY(-2px);
}

.fa-socials__item--plate {
	background: #fff;
	border: 1.128px solid #fff;
}

.fa-socials__item img {
	width: 37px;
	height: 37px;
	border-radius: 50%;
}

.fa-socials--sm img {
	width: 34px;
	height: 34px;
}

/* Отступ от подписи «Онлайн-консультация» до иконок. 8px бокса = 11px
   визуально (line-height 21 при шрифте 15 даёт 3px полулида) — в макете 11.5.
   Без него было 3px, и иконки прилипали к тексту. Тот же шаг, что у
   .fa-footer__label сверху. */
.fa-footer .fa-socials--sm {
	margin-top: 8px;
}

/* ================= сетка ================= */
.fa-main {
	padding: 44px 0 60px;
}

.fa-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 380px;
	column-gap: 70px;
	row-gap: 20px;
	align-items: start;
}

.fa-crumbs {
	grid-column: 1 / -1;
}

.fa-article {
	grid-column: 1;
}

.fa-aside {
	grid-column: 2;
}

/* ================= хлебные крошки ================= */
.fa-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	line-height: 1.5;
	word-break: break-word;
}

.fa-crumbs__link,
.fa-crumbs__sep {
	color: var(--fa-grey-80);
}

.fa-crumbs__link:hover {
	color: var(--fa-blue);
}

.fa-crumbs__current {
	color: var(--fa-blue);
}

/* ================= статья ================= */
.fa-article {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.fa-article__head,
.fa-article__body {
	display: flex;
	flex-direction: column;
	gap: 32px;
}

.fa-article__title {
	margin: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: 39px;
	color: var(--fa-ink);
	word-break: break-word;
}

.fa-article__meta {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	flex-wrap: wrap;
}

.fa-author__summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	background: none;
	border: 0;
	font-family: inherit;
	text-align: left;
	cursor: pointer;
}

.fa-author__chevron {
	width: 9px;
	height: 5px;
	background: url("../img/common/article/author-chevron.svg") center / contain no-repeat;
	transform: rotate(180deg);
	transition: transform .2s;
}

.fa-author__summary.is-open .fa-author__chevron {
	transform: rotate(0deg);
}

.fa-author__card[hidden] {
	display: none;
}

/* Раскрытая карточка автора: встроенный блок на всю ширину колонки,
   слева квадратный портрет, справа имя, факты и биография. */
.fa-author__card {
	position: relative;
	display: grid;
	grid-template-columns: 239px minmax(0, 1fr);
	align-items: center;
	height: 239px;
	padding-right: 36px;
	overflow: hidden;
	background: #fff;
	border: 1px solid rgba(25, 109, 255, .15);
	border-radius: 20px;
	box-shadow: 0 6px 25px rgba(0, 0, 0, .07);
	/* cubic-bezier(.22,.61,.36,1) — плавный выход с затуханием в конце;
	   с линейным ease раскрытие обрывалось резко. Длительности продублированы
	   в article.js (animateDisclosure), там они должны быть не меньше.
	   Все свойства одной длительности: при opacity .3s карточка исчезала
	   раньше, чем схлопывалась высота. */
	transition: max-height .42s cubic-bezier(.22, .61, .36, 1),
		margin-bottom .42s cubic-bezier(.22, .61, .36, 1),
		opacity .42s cubic-bezier(.22, .61, .36, 1),
		transform .42s cubic-bezier(.22, .61, .36, 1);
	will-change: max-height, margin-bottom, opacity, transform;
}

/* margin-bottom: -32px гасит gap контейнера .fa-article__head. У свёрнутой
   карточки высота 0, но gap остаётся, а при hidden он исчезает вместе с
   элементом (4 ребёнка → 3 гэпа становятся 2) — hero прыгал вверх на 34px
   в самом конце сворачивания. */
.fa-author__card.is-opening,
.fa-author__card.is-closing {
	opacity: 0;
	transform: translateY(-14px);
	margin-bottom: -32px;
}

.fa-author__card.is-open {
	opacity: 1;
	transform: translateY(0);
}

.fa-author__portrait-wrap {
	position: relative;
	width: 239px;
	height: 239px;
	overflow: hidden;
	flex-shrink: 0;
}

.fa-author__portrait {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fa-author__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 12px;
	padding-left: 32px;
}

.fa-author__fullname {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: normal;
	color: var(--fa-ink);
}

.fa-author__facts {
	position: relative;
	display: flex;
	gap: 4px;
	list-style: none;
	min-width: 0;
}

/* Manrope Regular в теме нет — 400 подхватит Medium, ближайшее начертание. */
.fa-author__fact {
	padding: 7px 15px;
	border: 1px solid rgba(25, 109, 255, .2);
	border-radius: 40px;
	font-weight: 400;
	font-size: 15px;
	line-height: 1.2;
	color: var(--fa-grey);
	white-space: nowrap;
}

.fa-author__bio {
	font-size: 19px;
	line-height: 1.5;
	color: var(--fa-grey);
}

.fa-author__close {
	position: absolute;
	top: 19px;
	right: 19px;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	padding: 0;
	background: none;
	border: 0;
	color: var(--fa-blue);
	cursor: pointer;
	transition: opacity .2s;
}

.fa-author__close-icon {
	width: 16px;
	height: 16px;
}

.fa-author__close:hover {
	opacity: .7;
}

.fa-author__avatar {
	width: 47px;
	height: 47px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.fa-author__text {
	display: flex;
	flex-direction: column;
}

.fa-author__row {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.fa-author__name {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 600;
	font-size: 18px;
	line-height: 1.3;
	letter-spacing: -.54px;
	color: var(--fa-ink-2);
}

.fa-author__chevron {
	display: inline-block;
	flex: 0 0 auto;
	width: 9px;
	height: 5px;
	margin-top: 4px;
}

.fa-author__role {
	font-size: 15px;
	line-height: 1.5;
	color: var(--fa-grey-70);
}

.fa-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
}

.fa-chip {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 12px;
	background: rgba(25, 109, 255, .07);
	border-radius: 30px;
}

.fa-chip__icon {
	width: 13px;
	height: 13px;
	flex-shrink: 0;
}

.fa-chip__icon--views {
	width: 16px;
	height: 11px;
}

.fa-chip__text {
	font-size: 15px;
	line-height: 1.4;
	color: var(--fa-grey-60);
	white-space: nowrap;
}

.fa-article__hero {
	width: 100%;
	height: auto;
	/* 2:1 — на десктопе это ровно 950×475. Тот же формат у карточек статей. */
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border: 1px solid var(--fa-line);
	border-radius: 30px;
}

/* ---- контент из редактора ---- */
.fa-article__body .content-section {
	font-size: 19px;
	line-height: 1.5;
	color: var(--fa-grey);
}

.fa-article__body .content-section>*+* {
	margin-top: 10px;
}

/* Итоговая секция статьи — плашка с градиентом и синей линией слева. */
.fa-article__body .content-section--outro {
	padding: 26px 30px;
	border-left: 1px solid var(--fa-blue);
	background: linear-gradient(90deg, rgba(25, 109, 255, .048) 0%, rgba(25, 109, 255, 0) 100%);
}

.fa-article__body .content-section--outro h2 {
	margin-bottom: 10px;
	letter-spacing: -.72px;
	color: var(--fa-blue);
}

.fa-article__body h2,
.fa-section-title {
	margin: 0 0 12px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 29px;
	text-transform: uppercase;
	color: var(--fa-ink);
}

.fa-article__body h3 {
	margin: 0 0 10px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 600;
	font-size: 20px;
	color: var(--fa-ink);
}

.fa-article__body strong,
.fa-article__body b {
	font-weight: 800;
	color: #575757;
}

.fa-article__body ol,
.fa-article__body ul {
	padding-left: 1.5em;
	margin-left: 0;
}

.fa-article__body ol {
	list-style: decimal;
}

.fa-article__body ul {
	list-style: disc outside;
}

.fa-article__body li {
	display: list-item;
}

/* Маркер задаём на самом li: в style.css есть глобальный сброс
   `ul li { list-style: none }` (специфичность 0,0,2), и он бьёт list-style
   с родительского ul, потому что применяется прямо к li. Селектор
   `.fa-article__body ul li` (0,1,2) его перекрывает — !important не нужен. */
.fa-article__body ul li {
	list-style-type: disc;
}

.fa-article__body ol li {
	list-style-type: decimal;
}

.fa-article__body li+li {
	margin-top: 8px;
}

.fa-article__body a {
	color: var(--fa-blue);
	text-decoration: underline;
}

.fa-article__body .content-image,
.fa-article__body figure {
	overflow: visible;
	border-radius: 0;
}

.fa-article__body .content-image img,
.fa-article__body figure img,
.fa-article__body img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 8;
	object-fit: cover;
	border-radius: 30px;
	border: 1px solid var(--fa-line);
}

.fa-article__body figure {
	margin: 0;
	display: flow-root;
}

.fa-article__body figcaption {
	position: static;
	display: block;
	clear: both;
	margin-top: 8px;
	padding-bottom: 2px;
	font-size: 15px;
	line-height: 1.35;
	color: var(--fa-grey-60);
}

.fa-sources {
	font-size: 17px;
	line-height: 1.5;
	color: var(--fa-grey);
}

.fa-sources ul {
	padding-left: 1.5em;
	list-style: disc;
}

.fa-sources ul li {
	list-style-type: disc;
}

.fa-sources li+li {
	margin-top: 6px;
}

/* ================= пример пересадки ================= */
.fa-case {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 24px;
	background: #f5f7fb;
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 30px;
	filter: drop-shadow(0 4px 18px rgba(0, 0, 0, .04));
	margin-top: 28px;
}

.fa-case__grid {
	display: grid;
	grid-template-columns: 356px minmax(0, 1fr);
	gap: 15px;
	align-items: stretch;
}

.fa-case__card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid rgba(58, 58, 58, .2);
	border-radius: 24px;
	overflow: hidden;
}

.fa-case__photos {
	display: flex;
	gap: 1px;
	flex: 1 1 auto;
	min-height: 0;
	margin: 11px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--fa-line);
	filter: drop-shadow(0 5px 10px rgba(105, 105, 105, .12));
}

.fa-case__photos img {
	flex: 1 1 0;
	min-width: 0;
	width: 100%;
	min-height: 303px;
	object-fit: cover;
}

.fa-case__stats {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin: 0;
	padding: 19px 28px 24px;
}

/* flex: 1 1 auto — колонки растягивают свободное место, поэтому зазор между
   ними остаётся ровно gap (18px). При justify-content: space-between он был
   переменным (фактически 43px), и слэш на left: -15px уезжал вправо от центра.
   Базис auto, а не 0, чтобы «120 000 ₽» не переносилось на узких экранах. */
.fa-case__stat {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	flex: 1 1 auto;
	text-align: center;
	line-height: 1.1;
}

/* left: -9px = половина gap → с translateX(-50%) слэш ровно посередине зазора. */
.fa-case__stat+.fa-case__stat::before {
	content: "";
	position: absolute;
	left: -9px;
	top: 50%;
	width: 2px;
	height: 41px;
	background: rgba(25, 109, 255, .4);
	transform: translate(-50%, -50%) rotate(16deg);
}

.fa-case__stat dt {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 600;
	font-size: 18px;
	letter-spacing: -.54px;
	color: var(--fa-ink-2);
}

.fa-case__stat dd {
	margin: 0;
	font-weight: 600;
	font-size: 15px;
	color: #575757;
}

/* В макете подпись «стоимость» на 2px крупнее соседних. */
.fa-case__stat:nth-of-type(2) dd {
	font-size: 17px;
}

.fa-case__side {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* flex: 1 1 auto — карточка добирает высоту строки грида, чтобы её низ
   совпал с низом карточки «до/после» слева. */
.fa-case__review {
	display: flex;
	flex-direction: column;
	gap: 7px;
	flex: 1 1 auto;
	padding: 15px;
	background: #fff;
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 24px;
	overflow: hidden;
}

/* Скриншот отзыва — своей пропорцией и целиком. Раньше стояли
   aspect-ratio: 4096/2009 (2.04) и object-fit: cover при картинке 2177×721
   (3.02), из-за чего срезались ник слева и правый край текста. */
.fa-case__review-shot {
	width: 100%;
	height: auto;
	flex-shrink: 0;
}

/* Мини-фото пациента под отзывом (макет 37:4624). padding-left повторяет
   внутреннее поле самого скриншота — 1.61% его ширины ≈ 9px, — чтобы
   миниатюры встали ровно под аватаром и текстом. */
.fa-case__review-thumbs {
	display: flex;
	gap: 9px;
	padding-left: 9px;
}

.fa-case__review-thumbs img {
	width: 71px;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 12px;
}

.fa-case__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 24px;
}

.fa-case__cta-title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	color: var(--fa-ink-2);
}

/* ================= FAQ ================= */
.fa-faq {
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 28px;
}

.fa-faq__item {
	position: relative;
	padding: 0;
	border-bottom: 1px solid var(--fa-line);
}

.fa-faq__item:first-child {
	border-top: 1px solid var(--fa-line);
}

.fa-faq__item summary {
	list-style: none;
	cursor: pointer;
	font-weight: 800;
	font-size: 18px;
	line-height: 1.4;
	color: var(--fa-ink);
	transition: color .2s;
	padding: 24px 50px 24px 0;
	display: block;
	width: 100%;
	box-sizing: border-box;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.fa-faq__item summary::-webkit-details-marker {
	display: none;
}

.fa-faq__item[open] summary,
.fa-faq__item summary:hover {
	color: var(--fa-blue);
}

.fa-faq__item summary::after,
.fa-faq__item summary::before {
	content: "";
	position: absolute;
	right: 0;
	top: 32px;
	width: 15px;
	height: 3.5px;
	background: currentColor;
	border-radius: 2px;
	transition: transform .3s ease, opacity .3s ease;
	pointer-events: none;
}

.fa-faq__item summary::before {
	transform: rotate(90deg);
}

.fa-faq__item[open] summary::before,
.fa-faq__item.is-open summary::before {
	opacity: 0;
	transform: rotate(0deg);
}

.fa-faq__answer {
	overflow: hidden;
	max-height: 0;
	opacity: 0;
	transform: translateY(-8px);
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.35s ease, transform 0.35s ease, margin-top 0.35s ease;
	margin-top: 0;
}

.fa-faq__item[open] .fa-faq__answer,
.fa-faq__item.is-open .fa-faq__answer {
	opacity: 1;
	transform: translateY(0);
	margin-top: 10px;
}

.fa-faq__answer p+p {
	margin-top: 10px;
}

/* ================= сайдбар ================= */
.fa-aside {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.fa-toc {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 32px;
	background: #fff;
	/* Рамка та же серая, что у обложки статьи; тени нет. */
	border: 1px solid var(--fa-line);
	border-radius: 25px;
	word-break: break-word;
}

.fa-toc__title,
.fa-similar__title {
	margin: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 29px;
	color: var(--fa-blue);
}

.fa-toc__list {
	display: flex;
	flex-direction: column;
	gap: 8px;
	list-style: none;
}

.fa-toc__item {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #e5e5e5;
	font-size: 17px;
}

.fa-toc__item:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.fa-toc__num {
	flex-shrink: 0;
	line-height: 1.5;
	color: var(--fa-blue);
}

.fa-toc__link {
	line-height: 1.4;
	color: var(--fa-grey);
	transition: color .2s;
}

.fa-toc__link:hover {
	color: var(--fa-blue);
}

.fa-similar {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fa-similar__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fa-rel-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
	padding: 13px;
	background: #f6f7fb;
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 25px;
}

.fa-rel-card__img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border: 1px solid var(--fa-line);
	border-radius: 15px;
}

.fa-rel-card__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	padding: 0 10px 10px;
}

.fa-rel-card__title {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -.57px;
	color: var(--fa-ink-2);
	word-break: break-word;
}

.fa-rel-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fa-blue);
	text-decoration: underline;
}

.fa-rel-card__link img {
	width: 7px;
	height: 10px;
}

/* ---- промо-карточка ---- */
/* Геометрия по макету (карточка 380×517, padding 32):
   заголовок 32…129, группа фото 174…495, большое фото right: 20 от края.
   Отсюда gap 45 (129 → 174) и padding-bottom 20 — чтобы отступ снизу
   совпал с отступом справа, как в правке. */
.fa-promo {
	display: flex;
	flex-direction: column;
	gap: 45px;
	padding: 32px 32px 20px;
	overflow: hidden;
	background: #f6f7fb;
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 25px;
}

.fa-promo__head {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.fa-promo__kicker {
	font-size: 22px;
	line-height: 1.15;
	color: #47484a;
}

.fa-promo__line {
	height: 1px;
	background: rgba(25, 109, 255, .3);
}

.fa-promo__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 25px;
	line-height: 1.1;
	letter-spacing: -.75px;
	color: #47484a;
	word-break: break-word;
}

/* Медиа-бокс = контентная ширина карточки (316). Сама «группа» фото в макете
   шире — 340 (x 20…360), поэтому фото вылезают за бокс отрицательными
   отступами по 12px = -3.8%. Высота бокса 321 = высота большого фото. */
.fa-promo__media {
	position: relative;
	width: 100%;
	max-width: 316px;
	aspect-ratio: 316 / 321;
}

/* В макете плашки начинаются на 10px выше верха фото (164 против 174). */
.fa-promo__badge {
	position: absolute;
	left: -5px;
	top: -10px;
	z-index: 3;
	padding: 9px 10px;
	background: var(--fa-blue);
	border-radius: 20px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 22px;
	line-height: 1;
	color: #fff;
	white-space: nowrap;
}

.fa-promo__badge--price {
	top: 34px;
	color: #ffe014;
}

.fa-promo__photo {
	position: absolute;
	right: -3.8%;
	top: 0;
	width: 65.8%;
	height: 100%;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 24px;
	box-shadow: 11px 9px 17px rgba(0, 0, 0, .05);
}

/* left, а не right: в макете левый край мини-фото стоит на x 20 карточки —
   то есть на -12px (-3.8%) от контентного бокса, ровно как правый край
   большого фото с другой стороны. Через right: 50.9% он оказывался на +1.6px.
   bottom: 4.87% (15.6px) — с поворотом -7.63° нижний левый угол выходит на
   6.4px выше низа большого фото, как в макете. Было -1.1% → угол свисал
   на 12.8px ниже. */
.fa-promo__mini {
	position: absolute;
	left: -3.8%;
	bottom: 4.87%;
	z-index: 2;
	width: 48.6%;
	height: auto;
	aspect-ratio: 153.441 / 215.919;
	object-fit: cover;
	border: 2px solid #fff;
	border-radius: 17px 20px 20px 17px;
	box-shadow: 1px 4px 12.7px rgba(0, 0, 0, .19);
	transform: rotate(-7.63deg);
}

.fa-promo__btn {
	width: 100%;
	height: 48px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 15px;
	line-height: 1;
	color: #fff;
	background: var(--fa-blue);
	text-transform: uppercase;
	letter-spacing: .5px;
	transition: background-color .2s, transform .2s;
}

.fa-promo__btn:hover {
	background: #1459d9;
}

/* ================= лента статей ================= */
.fa-feed {
	display: flex;
	flex-direction: column;
	gap: 24px;
	margin-top: 60px;
}

.fa-feed--knowledge {
	width: min(var(--fa-wrap), 100% - var(--fa-gutter) * 2);
	margin: 80px auto 60px;
}

.fa-feed--knowledge .fa-feed__title {
	text-transform: uppercase;
	letter-spacing: -.96px;
}

/* Нода 53:7164: подпись Manrope Medium в обычном регистре, а не капсом
   и жирным, как у остальных .fa-btn. */
.fa-feed--knowledge .fa-btn--ghost {
	font-weight: 500;
	text-transform: none;
}

.fa-feed__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

.fa-feed__title {
	margin: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	color: var(--fa-ink);
}

.fa-feed__sub {
	font-size: 20px;
	line-height: 1.5;
	color: var(--fa-grey);
}

.fa-feed__nav {
	display: flex;
	gap: 8px;
}

.fa-feed__arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 47px;
	height: 45px;
	background: var(--fa-blue);
	border: 0;
	border-radius: 11px;
	color: #fff;
	cursor: pointer;
	transition: opacity .2s;
}

.fa-feed__arrow:hover {
	opacity: .85;
}

.fa-feed__arrow.swiper-button-disabled {
	opacity: .35;
	cursor: default;
}

/* сбрасываем ширину и центрирование, которые приходят из глобального .swiper */
.fa-feed__slider {
	width: 100%;
	max-width: none;
	overflow: hidden;
	/* Swiper тянет слайд ровно на высоту контейнера, и нижняя граница карточки
	   ложится точно на край overflow: hidden. При дробной высоте (378.19px) её
	   срезает. Пара пикселей запаса, снятых отрицательным margin, чтобы отступ
	   до кнопки остался ровно 24px. */
	margin: 0 0 -2px;
	padding-bottom: 2px;
}

.fa-feed-card {
	display: flex;
	flex-direction: column;
	gap: 15px;
	height: auto;
	padding: 12px;
	background: #f6f7fb;
	border: 1px solid var(--fa-line);
	border-radius: 25px;
}

.fa-feed-card__img {
	width: 100%;
	height: auto;
	aspect-ratio: 2 / 1;
	object-fit: cover;
	border: 1px solid var(--fa-line);
	border-radius: 15px;
}

.fa-feed-card__body {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 auto;
	padding: 10px;
}

.fa-feed-card__title {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 600;
	font-size: 19px;
	line-height: 1.3;
	letter-spacing: -.57px;
	color: var(--fa-ink-2);
}

/* Ровно 2 строки, как в карточках на странице всех статей.
   min-height 57px = 2 × 28.5 (19px × 1.5), чтобы короткий текст не поднимал
   ссылку «Подробнее» выше, чем в соседних карточках. */
.fa-feed-card__text {
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 57px;
	font-size: 19px;
	line-height: 1.5;
	color: var(--fa-grey);
}

/* margin-top: auto прижимает ссылку к низу — заголовок в одну строку иначе
   поднимал её выше соседних (та же правка, что у .posts-card__link). */
.fa-feed-card__link {
	margin-top: auto;
	align-self: flex-start;
	font-size: 17px;
	line-height: 1.5;
	color: var(--fa-blue);
	text-decoration: underline;
}

/* ================= контакты и футер ================= */
.fa-contacts {
	position: relative;
	width: min(var(--fa-wrap), 100% - var(--fa-gutter) * 2);
	/* Просвет под футером — padding, а не margin. Блок последний в .wrapper,
	   и нижний margin схлопывался наружу: страница кончалась ровно по нижнему
	   краю футера, все 40px уходили в никуда. */
	margin: 60px auto 0;
	padding-bottom: 30px;
}

/* Ярлык-«флажок» — 1 в 1 с вектором из макета (нода 22:418, Rectangle 240649537).
   Взята широкая фигура (258×91): подпись теперь одна на оба состояния —
   «Адреса клиник», и узкий вариант на 217 под «Контакты» больше не нужен.
   Размеры фигуры в макете фиксированы, поэтому режем ярлык одним слоем: сборка
   из двух слоёв давала светлую полосу на стыке при дробной ширине. */
.fa-contacts__tab {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: flex-start;
	gap: 9px;
	width: 258px;
	height: 91px;
	margin-bottom: -28px;
	padding: 20px 0 0 25px;
	background: var(--fa-tab-fill);
	border: 0;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.6px;
	color: #fff;
	white-space: nowrap;
	cursor: pointer;
	transition: transform .25s ease, filter .25s ease;
	clip-path: path("M0 20C0 8.954 8.954 0 20 0H204.944C212.878 0 220.061 4.689 223.254 11.952L258 91H0Z");
	filter: drop-shadow(0 8px 15.5px #e7ebf5);
	--fa-tab-fill: linear-gradient(180deg, #196dff 0%, #003bcd 100%);
}

/* Ховер — плоская заливка #ffcc25, подпись остаётся белой. Градиент в
   плоский цвет напрямую не интерполируется, поэтому жёлтый кладём отдельным
   слоем и гасим его opacity — только так переход получается плавным.
   clip-path родителя режет и ::before, так что форма флажка сохраняется. */
.fa-contacts__tab::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	background: #ffcc25;
	opacity: 0;
	transition: opacity .25s ease;
}

.fa-contacts__tab:hover::before {
	opacity: 1;
}

/* Подпись и стрелка — над жёлтым слоем. */
.fa-contacts__tab>* {
	position: relative;
	z-index: 1;
}

.fa-contacts__tab:hover {
	transform: translateY(-3px);
	filter: drop-shadow(0 11px 18px #dce4f4);
}

/* Стрелка — сам вектор из макета (Vector 996), 12×5 со stroke 2. Раньше её
   собирали из двух border'ов повёрнутого квадрата, но такой уголок всегда
   прямой, а в макете он развёрнутый (12 в ширину при 5 в высоту) — стрелка
   выглядела задранной. Заливка не currentColor, а белая: подпись ярлыка белая
   в обоих состояниях и на ховере тоже. */
.fa-contacts__tab-arrow {
	width: 14px;
	height: 8px;
	margin: 9px 0 0;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' fill='none'%3E%3Cpath d='M12.64 6.302 6.64 1.302l-6 5' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E") center / 14px 8px no-repeat;
	transition: transform .25s;
}

.fa-contacts[data-contacts-open] .fa-contacts__tab-arrow {
	margin-top: 9px;
	transform: rotate(180deg);
}

.fa-contacts__panel {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 463px minmax(0, 1fr);
	margin-bottom: -28px;
	background: #fff;
	border: 1px solid rgba(25, 109, 255, .15);
	border-radius: 30px 30px 0 0;
	box-shadow: 0 8px 31px #e7ebf5;
	overflow: hidden;
	transition: max-height .46s cubic-bezier(.22, .61, .36, 1),
		margin-bottom .46s cubic-bezier(.22, .61, .36, 1),
		padding .46s cubic-bezier(.22, .61, .36, 1);
}

.fa-contacts__panel[hidden] {
	display: none;
}

/* margin-bottom: 0 вместо базовых -28px. Свёрнутая панель ещё тянет футер
   наверх этим отрицательным отступом, а при hidden он пропадает вместе с
   элементом — футер прыгал вниз на 26px в самом конце сворачивания.
   Базовое значение оставлено на .fa-contacts__panel, чтобы изначально
   раскрытая панель (главная страница) не анимировалась при загрузке.

   Раскрытие, как и сворачивание, идёт только по высоте. Прозрачность и сдвиг
   вниз на 22px отсюда убраны: под верхней кромкой панели лежат нижние 28px
   флажка, и пока панель полупрозрачная и приспущена, они видны. С 47 по 199мс
   верхним в этой полосе рисовался сам флажок. */
.fa-contacts__panel.is-opening {
	margin-bottom: 0;
}

/* Сворачивание идёт по высоте, без прозрачности: сквозь полупрозрачную панель
   просвечивал бы подъезжающий футер. Появление гасить можно — там под панелью
   ещё ничего не едет.
   Убираются две вещи, которые оставались висеть на ярлыке в самом конце:
   — рамка. max-height: 0 не схлопывает бокс в ноль: 1px сверху и 1px снизу
     остаются, и поперёк флажка через всю ширину лежала белая полоса в 2px,
     пока её не снимал hidden. Анимировать border-width бесполезно — Chrome
     рисует любую ненулевую рамку целым пикселем, так что снимаем сразу;
     сама рамка почти невидима (rgba(25,109,255,.15)), потери никакой.
   — тень. Размытая на 31px, она светлым ореолом ложилась на флажок и на
     подъехавший футер; гасим её раньше, чем панель станет узкой полоской.

   Кривая тут своя, не общая. Флажок обрезан по верхней кромке панели, а футер
   стоит по нижней — значит между ними всегда ровно столько белого, сколько
   осталось от панели. Замедляющаяся кривая снимает 87% высоты за половину
   времени, а последние 20px тянет ещё 120мс: как раз та полоска, что мигает
   под флажком в конце. У этой прогресс ровный (31/57/80% к четвертям времени),
   и тоньше 20px панель живёт три кадра. Раскрытие остаётся на замедляющейся —
   входить принято мягко, уходить быстро. */
.fa-contacts__panel.is-closing {
	margin-bottom: 0;
	border-width: 0;
	box-shadow: 0 8px 31px rgba(231, 235, 245, 0);
	transition:
		max-height .46s cubic-bezier(.25, .35, .6, .7),
		margin-bottom .46s cubic-bezier(.25, .35, .6, .7),
		padding .46s cubic-bezier(.25, .35, .6, .7),
		box-shadow .34s linear;
}

/* Поднимать флажок над панелью на время сворачивания нельзя: у .fa-footer
   z-index: 1, и флажок вылезал бы и поверх футера — в макете (нода 22:416)
   его скошенный низ уходит за футер. */

/* .is-open в CSS больше не нужен: гасить и сдвигать панель нечем, а высоту
   на раскрытой снимает сам скрипт. Класс скрипт по-прежнему ставит — на нём
   держится начальное состояние. */

.fa-contacts__cities {
	display: flex;
	flex-direction: column;
	gap: 32px;
	padding: 50px 50px 90px;
	border-right: 1px solid rgba(25, 109, 255, .15);
}

.fa-contacts__cities-title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 800;
	font-size: 32px;
	line-height: normal;
	letter-spacing: -.96px;
	text-transform: uppercase;
	color: var(--fa-ink-2);
}

.fa-contacts__cities-arrow {
	display: inline-block;
	vertical-align: bottom;
	width: 20.35px;
	height: 20.35px;
	margin-left: 10px;
	background: #2b7fff;
	-webkit-mask: url("../img/common/article/city-arrow.png") center / contain no-repeat;
	mask: url("../img/common/article/city-arrow.png") center / contain no-repeat;
	transform: rotate(90deg) scaleY(-1);
}

.fa-city-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
	list-style: none;
}

.fa-city {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-bottom: 12px;
	border-bottom: 1px solid rgba(172, 201, 253, .5);
}

.fa-city:last-child {
	padding-bottom: 0;
	border-bottom: 0;
}

.fa-city__mobile-card {
	display: none;
}

.fa-city__text {
	display: flex;
	flex-direction: column;
}

.fa-city__name {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.6px;
	color: var(--fa-ink-2);
}

.fa-city.is-active .fa-city__name {
	color: var(--fa-blue);
}

.fa-city__address {
	font-size: 16px;
	line-height: 1.5;
	color: var(--fa-grey-80);
}

/* Обе подписи лежат в одной ячейке грида, поэтому кнопка всегда по ширине
   длинной из них и не меняет размер при выборе города. Раньше у выбранного
   состояния была фиксированная ширина 86px, подогнанная под Manrope: на
   главной страница набрана Montserrat, и «Выбрано» заметно ужималось. */
.fa-city__btn {
	display: grid;
	justify-items: center;
	flex-shrink: 0;
	padding: 5px 14px 6px;
	background: var(--fa-blue);
	border: 1px solid var(--fa-blue);
	border-radius: 30px;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	color: #fff;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.fa-city__btn-idle,
.fa-city__btn-active {
	grid-area: 1 / 1;
}

.fa-city__btn-active {
	visibility: hidden;
}

.fa-city.is-active .fa-city__btn {
	background: transparent;
	color: var(--fa-blue);
	cursor: default;
}

.fa-city.is-active .fa-city__btn-idle {
	visibility: hidden;
}

.fa-city.is-active .fa-city__btn-active {
	visibility: visible;
}

.fa-contacts__detail {
	padding: 60px 60px 90px;
}

.fa-city-card {
	display: none;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}

.fa-city-card.is-active {
	display: flex;
}

.fa-city-card__title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.2;
	color: var(--fa-ink-2);
}

.fa-city-card__info {
	display: flex;
	align-items: center;
	gap: 32px;
	flex-wrap: wrap;
	padding-top: 20px;
	border-top: 1px solid rgba(25, 109, 255, .15);
}

.fa-city-card__cell {
	position: relative;
	display: flex;
	flex-direction: column;
}

.fa-city-card__cell+.fa-city-card__cell::before {
	content: "";
	position: absolute;
	left: -16px;
	top: 4px;
	bottom: 4px;
	width: 1px;
	background: rgba(25, 109, 255, .15);
}

.fa-city-card__label {
	font-size: 16px;
	line-height: 1.5;
	color: var(--fa-grey-80);
}

.fa-city-card__value {
	font-weight: 700;
	font-size: 20px;
	line-height: 31px;
	color: var(--fa-ink-2);
}

.fa-city-card__msgrs {
	display: flex;
	gap: 8px;
	margin-left: auto;
}

.fa-city-card__msgrs img {
	width: 43px;
	height: 43px;
}

/* flex-basis 0 — карта занимает остаток высоты панели, а не тянет её своей
   натуральной пропорцией (в макете так же: flex-[1_0_0] min-h-px). */
.fa-city-card__map {
	position: relative;
	display: block;
	flex: 1 1 0;
	margin-top: 10px;
	min-height: 330px;
	border: 1px solid rgba(25, 109, 255, .15);
	border-radius: 20px;
	overflow: hidden;
	cursor: default;
}

.fa-city-card__map picture,
.fa-city-card__map picture img {
	display: block;
	width: 100%;
	height: 100%;
}

.fa-city-card__map picture {
	position: absolute;
	inset: 0;
}

.fa-city-card__map picture img {
	object-fit: cover;
	object-position: center center;
}

.fa-city-card__marker {
	position: absolute;
	left: var(--marker-x);
	top: var(--marker-y);
	z-index: 1;
	width: 0;
	height: 0;
	pointer-events: none;
}

.fa-city-card__marker-pin {
	position: absolute;
	left: 0;
	bottom: -24px;
	width: 71.23px;
	height: 84.89px;
	object-fit: contain;
	transform: translateX(-40%);
	filter: drop-shadow(0 9px 7.75px rgba(0, 0, 0, .21));
}

.fa-city-card__marker-label {
	position: absolute;
	left: 35px;
	top: -55px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	width: var(--marker-label-width);
	min-width: 158px;
	min-height: 42.24px;
	box-sizing: border-box;
	padding: 6.89px 9.18px;
	background: linear-gradient(112deg, #196dff 6.59%, #2355ad 93.41%);
	border: .765px solid #fff;
	border-radius: 8.42px;
	box-shadow: 0 9px 7.75px rgba(0, 0, 0, .21);
	white-space: nowrap;
}

.fa-city-card__marker-title {
	margin-bottom: -1.53px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 800;
	font-size: 10.71px;
	line-height: 1.3;
	letter-spacing: -.32px;
	text-transform: uppercase;
	color: #fff;
}

.fa-city-card__marker-address {
	font-family: "Manrope", Arial, sans-serif;
	font-weight: 500;
	font-size: 10.71px;
	line-height: 1.5;
	color: rgba(255, 255, 255, .8);
}

.fa-city-card__route {
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 6px 12px;
	background: #fff;
	border: 0;
	border-radius: 10px;
	box-shadow: 0 2px 7px rgba(0, 0, 0, .15);
	font-weight: 600;
	font-size: 16px;
	line-height: 31px;
	color: #303030;
	white-space: nowrap;
	cursor: pointer;
	transition: all .2s ease;
}

.fa-city-card__route:hover {
	transform: translateY(-2px);
	box-shadow: 0 5px 14px rgba(0, 0, 0, .2);
}

.fa-city-card__route img {
	width: 12px;
	height: 15px;
	object-fit: contain;
}

.fa-footer {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 315px 249px minmax(0, 1fr);
	gap: 59px;
	padding: 50px;
	padding-right: 15px;
	background: var(--fa-blue);
	border-radius: 30px;
	color: #fff;
}

.fa-footer__col {
	display: flex;
	flex-direction: column;
}

.fa-footer__mobile {
	display: none;
}

.fa-footer__logo {
	width: 129px;
	height: auto;
	margin-bottom: 10px;
}

.fa-footer__brand-title {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 800;
	font-size: 17px;
}

.fa-footer__brand-sub {
	margin-bottom: 14px;
	font-size: 16px;
	line-height: 1.2;
	font-weight: 500;
	line-height: 120%;
	font-family: "Manrope", sans-serif;
}

.fa-footer__note,
.fa-footer__policy {
	font-size: 15px;
	line-height: 1.4;
	color: rgba(232, 240, 255, .6);
}

/* nowrap — «Политика конфиденциальности» в одну строку, как в макете.
   Текст 231px, поэтому первая колонка футера расширена с 230 до 236. */
.fa-footer__policy {
	align-self: flex-start;
	margin-top: 4px;
	padding-bottom: 2px;
	border-bottom: 1px solid rgba(232, 240, 255, .6);
	white-space: nowrap;
	cursor: pointer;
}

.fa-footer__heading {
	margin-bottom: 14px;
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
}

.fa-footer__label {
	font-size: 15px;
	line-height: 1.4;
	color: rgba(232, 240, 255, .6);
}

.fa-footer__phone {
	font-size: 17px;
	line-height: 1.4;
	color: rgba(255, 255, 255, .9);
	margin-bottom: 14px;
}

.fa-footer__cities {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 23px;
	align-content: flex-start;
}

.fa-footer__city {
	display: flex;
	gap: 8px;
	width: 195px;
}

/* В макете это не «пин», а точка 6×6 с отступом сверху 12 (Ellipse 107). */
.fa-footer__city::before {
	content: "";
	flex-shrink: 0;
	width: 6px;
	height: 6px;
	margin-top: 12px;
	background: #fff;
	border-radius: 50%;
}

.fa-footer__city-name,
.fa-footer__city-address {
	display: block;
}

.fa-footer__city-name {
	font-weight: 700;
	font-size: 17px;
	line-height: 1.4;
	line-height: 140%;
	font-family: "Manrope", sans-serif;
}

.fa-footer__city-address {
	font-size: 15px;
	line-height: 140%;
	white-space: nowrap;
	color: rgba(232, 240, 255, 0.60);
	font-family: 'Manrope', sans-serif;

}

.fa-footer__rf {
	width: 195px;
	padding-left: 14px;
}

.fa-footer__rf-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 17px;
	padding: 10px 15px;
	background: rgba(255, 255, 255, .05);
	border: 1px solid transparent;
	border-radius: 12px;
	font-weight: 700;
	font-size: 15px;
	line-height: 1.4;
	color: #fff;
	overflow: hidden;
}

.fa-footer__rf-link::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	padding: 1px;
	background: linear-gradient(120deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .16));
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	pointer-events: none;
}

/* ================= компактная шапка ================= */
@media (max-width: 1350px) {
	.fa-header__bar {
		gap: 20px;
	}

	.fa-nav {
		display: none;
	}

	.fa-burger {
		display: flex;
		flex-direction: column;
		gap: 7px;
		width: 31px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
	}

	.fa-burger span {
		height: 2px;
		background: #fff;
		border-radius: 25px;
	}

	.fa-menu {
		display: block;
		position: absolute;
		z-index: 5;
		top: calc(100% + 6px);
		left: 0;
		width: 280px;
		padding: 24px;
		background: var(--fa-blue);
		border-radius: 20px;
		filter: drop-shadow(0 4px 12px rgba(203, 212, 227, .4));
	}

	.fa-menu[hidden] {
		display: none;
	}

	.fa-menu__list {
		display: flex;
		flex-direction: column;
		gap: 14px;
		list-style: none;
	}

	.fa-menu__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 5px;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
		font-weight: 600;
		font-size: 16px;
		color: #fff;
	}
}

/* ================= планшет ================= */
@media (max-width: 1279px) {
	.fa-header__bar {
		gap: 16px;
		padding: 0 20px;
	}

	.fa-nav {
		flex: 0 1 460px;
	}

	.fa-nav__list {
		gap: 12px;
	}

	.fa-nav__link {
		font-size: 15px;
	}

	.fa-nav__cursor {
		display: none;
	}

	.fa-layout {
		grid-template-columns: minmax(0, 1fr) 340px;
		column-gap: 40px;
	}

	.fa-case__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fa-contacts__panel {
		grid-template-columns: minmax(0, 1fr);
	}

	.fa-contacts__cities {
		border-right: 0;
		border-bottom: 1px solid rgba(25, 109, 255, .15);
	}

	.fa-footer {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	}

	.fa-footer__cities {
		grid-column: 1 / -1;
	}
}

@media (min-width: 1024px) and (max-width: 1279px) {
	.fa-footer {
		grid-template-columns: 220px 220px minmax(0, 1fr);
		gap: 28px;
		padding: 40px;
	}

	.fa-footer__cities {
		grid-column: auto;
		gap: 16px 22px;
	}

	.fa-footer__city,
	.fa-footer__rf {
		width: 168px;
	}
}

/* ================= одна колонка ================= */
@media (max-width: 1023px) {
	.fa-nav {
		display: none;
	}

	.fa-contact {
		flex-direction: column-reverse;
		align-items: flex-end;
		gap: 6px;
	}

	.fa-contact__title {
		display: none;
	}

	.fa-main {
		padding: 20px 0 40px;
	}

	.fa-layout {
		display: flex;
		flex-direction: column;
		gap: 0;
	}

	.fa-article,
	.fa-aside,
	.fa-similar,
	.fa-similar__list {
		display: contents;
	}

	.fa-crumbs,
	.fa-article__head,
	.fa-toc,
	.fa-article__body,
	.fa-promo,
	.fa-similar__title,
	.fa-rel-card,
	.fa-case,
	.fa-faq {
		width: 100%;
	}

	.fa-crumbs {
		order: 1;
		margin-bottom: 12px;
	}

	.fa-article__head {
		order: 2;
		margin-bottom: 24px;
	}

	.fa-toc {
		order: 3;
		margin-bottom: 24px;
	}

	.fa-article__body {
		order: 4;
		margin-bottom: 60px;
	}

	.fa-case {
		order: 5;
		margin-bottom: 60px;
		margin-top: 0;
	}

	.fa-faq {
		order: 6;
		margin-bottom: 60px;
		margin-top: 0;
	}

	/* Ниже 1024 .fa-aside становится display: contents, и промо растягивается
	   на всю ширину колонки, а медиа-бокс упирается в max-width: 316px —
	   справа образуется дыра (на 480px это было 108px). Ограничиваем карточку
	   её макетной шириной 380 и центрируем: контент снова ровно 316,
	   отступы держатся 20px. */
	.fa-promo {
		order: 7;
		max-width: 380px;
		margin-inline: auto;
		margin-bottom: 28px;
	}

	.fa-similar__title {
		order: 8;
		margin-bottom: 12px;
	}

	.fa-rel-card {
		order: 9;
		margin-bottom: 12px;
	}

	.fa-rel-card:last-child {
		margin-bottom: 0;
	}

	.fa-case__cta {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ================= мобильные ================= */
@media (max-width: 767px) {

	/* Ширина контента в макете 350px при экране 375px. */
	.fa-page {
		--fa-gutter: 12.5px;
	}

	/* Вертикальный ритм мобильного макета: 8 после крошек, 20 внутри шапки статьи,
	   50 между крупными блоками, 42 перед промо и «Похожими статьями». */
	.fa-crumbs {
		margin-bottom: 8px;
	}

	.fa-article__head {
		margin-bottom: 20px;
	}

	.fa-toc {
		margin-bottom: 50px;
	}

	.fa-article__body {
		margin-bottom: 60px;
	}

	.fa-case {
		margin-bottom: 60px;
	}

	.fa-faq {
		margin-bottom: 42px;
	}

	.fa-promo {
		margin-bottom: 42px;
	}

	/* Шапка мобильного макета: бургер 31px, логотип 115×37, мессенджеры и подпись 12px. */
	.fa-header {
		--fa-header-pad: 15px;
		margin: 0 auto;
	}

	.home-page .fa-header,
	body:not(.fa-page) .fa-header {
		position: relative !important;
		top: 0 !important;
	}

	.home-page .fa-nav__link[href*="choose-clinic"],
	.home-page .fa-menu__link[href*="choose-clinic"] {
		display: none !important;
	}

	.fa-header__bar {
		height: auto;
		padding: 13px 15px;
	}

	.fa-brand__divider,
	.fa-brand__text {
		display: none;
	}

	.fa-brand__logo {
		width: 115px;
		margin-top: 0;
		margin-top: -6px;
	}

	.fa-contact {
		flex-direction: column-reverse;
		align-items: center;
		gap: 4px;
		padding: 0;
	}

	.fa-contact__title {
		display: none;
	}

	.fa-contact__sub {
		font-size: 12px;
		font-weight: 500;
		line-height: 120%;
	}

	.fa-socials {
		gap: 8px;
	}

	.fa-socials__item img {
		width: 30.5px;
		height: 30.5px;
	}

	.fa-burger {
		display: flex;
		flex-direction: column;
		justify-content: center;
		gap: 6px;
		width: 31px;
		height: 24px;
		padding: 0;
		background: none;
		border: 0;
		cursor: pointer;
		position: relative;
		z-index: 6;
	}

	.fa-burger span {
		display: block;
		width: 100%;
		height: 2px;
		background: #fff;
		border-radius: 25px;
		transition: transform .3s ease, opacity .3s ease;
		transform-origin: center;
	}

	.fa-burger[aria-expanded="true"] span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.fa-burger[aria-expanded="true"] span:nth-child(2) {
		opacity: 0;
	}

	.fa-burger[aria-expanded="true"] span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.fa-menu {
		display: block !important;
		position: absolute;
		z-index: 5;
		top: calc(100% + 6px);
		left: 2.5px;
		width: 237px;
		padding: 24px;
		background: var(--fa-blue);
		border-radius: 20px;
		filter: drop-shadow(0 4px 12px rgba(203, 212, 227, .4));
		opacity: 1;
		transform: translateY(0);
		visibility: visible;
		transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
	}

	.fa-menu[hidden] {
		opacity: 0;
		transform: translateY(-10px);
		visibility: hidden;
		pointer-events: none;
	}

	.fa-menu__list {
		display: flex;
		flex-direction: column;
		gap: 14px;
		list-style: none;
	}

	.fa-menu__link {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding-bottom: 5px;
		border-bottom: 1px solid rgba(255, 255, 255, .1);
		font-family: 'Manrope', sans-serif;
		font-weight: 600;
		font-size: 16px;
		color: #fff;
	}

	.fa-crumbs {
		gap: 6px;
		min-width: 0;
		max-width: 100%;
		flex-wrap: nowrap;
		font-size: 14px;
	}

	.fa-crumbs__link {
		white-space: nowrap;
	}

	.fa-crumbs__current {
		min-width: 0;
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.fa-article__head {
		gap: 20px;
	}

	.fa-article__body {
		gap: 32px;
	}

	/* gap здесь 20px, а не 32 — гасим ровно его, иначе в конце сворачивания
	   карточка автора оставляет лишние 12px. */
	.fa-author__card.is-opening,
	.fa-author__card.is-closing {
		margin-bottom: -20px;
	}

	.fa-article__title {
		font-size: 24px;
		line-height: 1.2;
	}

	/* В макете на мобиле чипы стоят над строкой автора. */
	.fa-article__meta {
		flex-direction: column-reverse;
		align-items: flex-start;
		gap: 20px;
	}

	.fa-chips {
		gap: 4px;
	}

	.fa-chip {
		padding: 6px 10px;
	}

	.fa-chip__text {
		font-size: 14px;
	}

	.fa-chip__long {
		display: none;
	}

	.fa-author__avatar {
		width: 47px;
		height: 47px;
	}

	.fa-author__name {
		font-size: 18px;
	}

	.fa-author__role {
		font-size: 15px;
	}

	/* карточка автора: портрет сверху, тело под ним */
	.fa-author__card {
		grid-template-columns: minmax(0, 1fr);
		height: auto;
		padding-right: 0;
		overflow: hidden;
	}

	.fa-author__portrait-wrap {
		width: 100%;
		height: auto;
		aspect-ratio: 1 / 1;
	}

	.fa-author__body {
		gap: 12px;
		padding: 27px;
	}

	.fa-author__fullname {
		font-size: 20px;
	}

	.fa-author__facts {
		align-self: stretch;
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-right: 42px;
		-webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 42px), rgba(0, 0, 0, 0));
		mask-image: linear-gradient(90deg, #000 calc(100% - 42px), rgba(0, 0, 0, 0));
		scrollbar-width: none;
	}

	.fa-author__facts::-webkit-scrollbar {
		display: none;
	}

	.fa-author__fact {
		flex: 0 0 auto;
		padding: 7px 12px;
		font-size: 14px;
		white-space: nowrap;
	}

	.fa-author__bio {
		font-size: 16px;
	}

	.fa-author__close {
		top: 16px;
		right: 16px;
		color: #fff;
	}

	.fa-author__close-icon {
		filter: brightness(0) invert(1);
	}

	.fa-article__body .content-section {
		font-size: 16px;
		line-height: 1.5;
	}

	.fa-article__body h2,
	.fa-section-title {
		font-size: 20px;
		line-height: normal;
	}

	.fa-article__body .content-section--outro {
		padding: 24px 28px;
	}

	.fa-article__body .content-section--outro h2 {
		letter-spacing: -.6px;
	}

	.fa-h2 {
		font-size: 22px;
		line-height: 1.2;
	}

	.fa-feed__title {
		font-size: 22px;
		line-height: 1.2;
	}

	.fa-toc {
		gap: 15px;
		padding: 28px;
		border-radius: 25px;
	}

	.fa-toc__title {
		font-size: 20px;
		line-height: normal;
	}

	.fa-toc__item {
		font-size: 16px;
	}

	.fa-toc__num {
		font-size: 14px;
	}

	.fa-similar__title {
		font-size: 24px;
		line-height: normal;
	}

	.fa-rel-card {
		padding: 10px;
		border-radius: 25px;
	}

	.fa-rel-card__body {
		padding: 0 0 6px;
	}

	.fa-rel-card__title {
		font-size: 16px;
		letter-spacing: -.3px;
	}

	/* Мобильный макет: карточка 350×457, padding 24, заголовок 24…111,
	   группа фото 145…433.9. Отсюда gap 34 и padding-bottom 20 (снизу столько
	   же, сколько справа). Контентный бокс здесь 302, а группа — 306,
	   поэтому фото вылезают на 2px = -1.32%, а не на -3.8% как на десктопе. */
	/* max-width 350 = ширина карточки в мобильном макете, контент тогда ровно
	   302 под вылеты -1.32%. На 375px контейнер и так 350, а на широких
	   «мобильных» (до 767) карточка не расползается. */
	.fa-promo {
		gap: 34px;
		max-width: 350px;
		padding: 24px 24px 20px;
		border-radius: 25px;
	}

	.fa-promo__kicker {
		font-size: 20px;
	}

	.fa-promo__title {
		font-size: 22px;
		letter-spacing: -.66px;
	}

	.fa-promo__media {
		aspect-ratio: 302 / 288.9;
	}

	.fa-promo__photo {
		right: -1.32%;
	}

	.fa-promo__mini {
		left: -1.32%;
	}

	.fa-promo__badge {
		padding: 9px 10px;
		font-size: 18px;
		top: -8px;
	}

	.fa-promo__badge--price {
		top: 31px;
	}

	.fa-case {
		gap: 20px;
		padding: 24px var(--fa-gutter, 15px);
		margin-inline: calc(var(--fa-gutter, 15px) * -1);
		width: calc(100% + var(--fa-gutter, 15px) * 2);
		background: #f5f7fb;
		border-top: 1px solid rgba(58, 58, 58, .3);
		border-bottom: 1px solid rgba(58, 58, 58, .3);
		border-left: 0;
		border-right: 0;
		border-radius: 25px;
		filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .04));
	}

	.fa-case__cta .fa-btn .fa-btn-text--desktop {
		display: none;
	}

	.fa-case__cta .fa-btn .fa-btn-text--mobile {
		display: inline;
	}

	.fa-case__grid {
		gap: 8px;
	}

	.fa-case__card {
		border-radius: 20px;
	}

	.fa-case__photos {
		border-radius: 14px;
	}

	.fa-case__photos img {
		min-height: 292px;
	}

	/* В мобильном макете 8px между карточкой фото и отзывом (это .fa-case__grid),
	   а до кнопки — 16px. */
	.fa-case__side {
		gap: 16px;
	}

	.fa-case__review {
		height: auto;
		padding: 8px;
		border-radius: 20px;
	}

	/* Подпись «Бесплатная онлайн-консультация» в мобильном макете снята,
	   остаётся кнопка во всю ширину. */
	.fa-case__cta {
		padding: 0;
		background: none;
		border: 0;
		border-radius: 0;
	}

	.fa-case__cta-title {
		display: none;
	}

	.fa-case__cta .fa-btn {
		width: 100%;
	}

	.fa-faq__item {
		padding: 0;
	}

	.fa-faq__item summary {
		font-size: 16px;
		padding: 18px 30px 18px 0;
	}

	.fa-faq__item summary::after,
	.fa-faq__item summary::before {
		top: 25px;
		width: 12px;
		height: 2px;
	}

	.fa-faq__answer {
		font-size: 16px;
	}

	/* В мобильном макете ленты «Статьи о пересадке» нет — сразу «Похожие статьи». */
	.fa-feed {
		display: none;
	}

	/* Нода 53:9296. Стрелки уезжают из шапки вниз, в один ряд с «Смотреть все
	   статьи»: 48 + 4 + 48 | 18 | остаток (232 при ширине 350). Шапку распускаем
	   через display: contents, чтобы .fa-feed__nav стала прямым элементом сетки
	   и не пришлось трогать разметку, общую с десктопом. */
	/* Ширина — по сетке соседних блоков: на главной это .container
	   (100% - 30px), на странице статьи — .fa-main (100% - --fa-gutter * 2).
	   Потолок в 350px делал эти блоки уже соседей на экранах шире 380px. */
	.fa-feed--knowledge {
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		gap: 18px;
		width: min(var(--fa-wrap), 100% - 30px);
		margin: 40px auto;
	}

	.fa-feed--knowledge .fa-feed__head {
		display: contents;
	}

	/* Обёртка заголовка — именно первый ребёнок: .fa-feed__nav рядом с ней тоже div. */
	.fa-feed--knowledge .fa-feed__head> :first-child {
		grid-area: 1 / 1 / auto / -1;
	}

	.fa-feed--knowledge .fa-feed__slider {
		grid-area: 2 / 1 / auto / -1;
	}

	.fa-feed--knowledge .fa-feed__title {
		font-size: 22px;
		letter-spacing: -0.66px;
		font-weight: 700;
	}

	.fa-feed-card__text {
		display: none;
	}

	.fa-feed--knowledge .fa-feed__nav {
		display: flex;
		grid-area: 3 / 1;
		gap: 4px;
		align-self: center;
	}

	/* Круглая обводка вместо синего квадрата, стрелка со стержнем (17×15 с учётом
	   обводки в 2px). Инлайновый шеврон в разметке общий с десктопом, поэтому на
	   мобильных прячем его и рисуем фоном. */
	.fa-feed--knowledge .fa-feed__arrow {
		width: 48px;
		height: 48px;
		background: transparent;
		border: 1px solid var(--fa-blue);
		border-radius: 50%;
	}

	.fa-feed--knowledge .fa-feed__arrow svg {
		display: none;
	}

	.fa-feed--knowledge .fa-feed__arrow::before {
		content: "";
		width: 17px;
		height: 15px;
		background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='15' fill='none'%3E%3Cpath d='M16 7.5H1M8.619 14L1 7.5 8.619 1' stroke='%23196DFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 17px 15px no-repeat;
	}

	.fa-feed--knowledge [data-feed-next]::before {
		transform: scaleX(-1);
	}

	.fa-feed--knowledge .fa-btn--ghost {
		display: inline-flex;
		grid-area: 3 / 2;
		gap: 10px;
		width: auto;
		min-height: 48px;
		padding: 0 20px;
		border: 1.19px solid var(--fa-blue);
		border-radius: 130px;
		font-size: 16px;
		line-height: normal;
	}

	.fa-feed--knowledge .fa-btn--ghost::after {
		content: "";
		flex: 0 0 auto;
		width: 7px;
		height: 10px;
		background: url("../img/common/article/arrow-link.svg") center / 7px 10px no-repeat;
	}

	.fa-contacts {
		width: min(var(--fa-wrap), 100% - 30px);
		margin: 40px auto 0;
		padding-bottom: 24px;
	}

	.fa-page .fa-contacts {
		width: min(var(--fa-wrap), 100% - var(--fa-gutter) * 2);
	}

	/* Мобильный ярлык — свой вектор (нода 22:616), 207×71:
	     M0 15.604 C0 6.986 6.891 0 15.392 0 H166.169
	                C172.275 0 177.803 3.659 180.26 9.325 L207 71 H0 Z
	   Подпись 16px на отступе 21px. */
	.fa-contacts__tab {
		gap: 7px;
		width: 207px;
		height: 71px;
		margin-bottom: -29px;
		padding: 12px 0 0 21px;
		font-size: 16px;
		letter-spacing: -.48px;
		clip-path: path("M0 15.604C0 6.986 6.891 0 15.392 0H166.169C172.275 0 177.803 3.659 180.26 9.325L207 71H0Z");
	}

	/* Ховера на тач-экране нет: палец оставлял ярлык жёлтым и приподнятым до
	   следующего тапа по странице. */
	.fa-contacts__tab:hover {
		transform: none;
		filter: drop-shadow(0 8px 15.5px #e7ebf5);
	}

	.fa-contacts__tab:hover::before {
		opacity: 0;
	}

	.fa-contacts__tab-arrow,
	.fa-contacts[data-contacts-open] .fa-contacts__tab-arrow {
		width: 10.33px;
		height: 7.33px;
		margin: 7.9px 0 0;
		background-size: 9.33px 5.33px;
	}

	.fa-city__btn {
		font-family: "Manrope", sans-serif;
		font-size: 14px;
		font-weight: 500;
		line-height: 150%;
	}

	.fa-contacts__cities,
	.fa-contacts__detail {
		padding: 24px 20px;
	}

	.fa-contacts__cities-title {
		font-size: 22px;
		font-weight: 700;
		letter-spacing: -0.66px;
	}

	.fa-city__name {
		font-size: 16px;
		font-weight: 700;
		line-height: 130%;
		letter-spacing: -0.48px;
	}

	.fa-city__address {
		color: rgba(87, 87, 87, 0.80);
		font-family: "Manrope", sans-serif;
		font-size: 14px;
		font-style: normal;
		font-weight: 500;
		line-height: 150%;
	}

	.fa-contacts__cities-arrow {
		width: 16.25px;
		height: 16.25px;
		margin-left: 6px;
	}

	/* Вся мобильная раскладка панели висела на [data-contacts-open]. Скрипт
	   снимает этот атрибут в первый же кадр сворачивания, а панель ещё стоит
	   в полный рост — она разом возвращалась к десктопной сетке 463px в окне
	   на 375, вылезал спрятанный .fa-contacts__detail, и вот это месиво потом
	   уезжало по высоте. Цепляемся за саму панель: hidden на ней ровно тогда,
	   когда она закрыта, а на обеих анимациях его нет. */
	.fa-contacts__panel:not([hidden]) {
		box-sizing: border-box;
		width: 100%;
		margin-inline: 0;
		margin-bottom: -40px;
		padding: 24px 24px 64px;
		border-color: rgba(25, 109, 255, .3);
		border-radius: 30px 30px 0 0;
		box-shadow: 0 0 12.5px rgba(0, 0, 0, .1);
	}

	/* Поля панели едут вместе с высотой. box-sizing здесь border-box, а
	   max-height не может ужать бокс ниже собственных полей: с 24 сверху и 64
	   снизу высота упиралась в 88 и стояла там 56мс, пока max-height давно был
	   в нуле, — а потом hidden ронял футер сразу на 48px. */
	.fa-contacts__panel.is-opening,
	.fa-contacts__panel.is-closing {
		padding-top: 0;
		padding-bottom: 0;
	}

	.fa-contacts__panel:not([hidden]) .fa-contacts__cities {
		gap: 20px;
		width: 100%;
		padding: 0;
		border: 0;
	}

	.fa-contacts__panel:not([hidden]) .fa-city-list {
		align-items: center;
		width: 100%;
	}

	.fa-contacts__panel:not([hidden]) .fa-city {
		flex-wrap: wrap;
		width: 100%;
		gap: 12px;
	}

	.fa-city.is-active {
		width: 100%;
	}

	.fa-city__mobile-card {
		order: 3;
		flex: 0 0 100%;
		width: 100%;
	}

	.fa-city.is-active .fa-city__mobile-card {
		display: block;
	}

	.fa-contacts__panel:not([hidden]) .fa-contacts__detail {
		display: none;
	}

	.fa-city-mobile-map {
		position: relative;
		height: 310px;
		margin-top: 0;
		border: 1px solid rgba(25, 109, 255, .3);
		border-radius: 18px 18px 28px 28px;
		overflow: hidden;
	}

	.fa-city-mobile-map picture,
	.fa-city-mobile-map picture img {
		display: block;
		width: 100%;
		height: 100%;
	}

	.fa-city-mobile-map picture img {
		object-fit: cover;
	}

	.fa-city-mobile-map__top {
		position: absolute;
		top: 10px;
		left: 10px;
		right: 10px;
		z-index: 2;
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 6px;
	}

	.fa-city-mobile-map__top span,
	.fa-city-mobile-map__top a {
		display: flex;
		align-items: center;
		justify-content: center;
		min-height: 34px;
		padding: 8px 10px;
		background: #fff;
		border: 1px solid rgba(25, 109, 255, .3);
		border-radius: 10px;
		box-shadow: 0 2px 7px rgba(0, 0, 0, .15);
		font-size: 12px;
		line-height: 1.2;
		font-weight: 700;
		color: #303030;
		white-space: nowrap;
		font-family: "Manrope", sans-serif;
		gap: 3px;
	}

	.fa-city-mobile-map__top span b {
		color: rgba(87, 87, 87, 0.80);
		font-weight: 500;
	}

	.fa-city-mobile-map__top a {
		font-weight: 700;
		color: var(--fa-blue);
	}

	.fa-city-mobile-map .fa-city-card__route {
		left: 12px;
		bottom: 72px;
		font-size: 14px;
		line-height: 1.3;
	}

	.fa-city-mobile-map__cta {
		position: absolute;
		left: -1px;
		right: -1px;
		bottom: -1px;
		z-index: 2;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 62px;
		padding: 6px 9px 6px 18px;
		background: var(--fa-blue);
		border-radius: 130px;
		color: #fff;
		font-weight: 700;
		font-size: 18px;
	}

	.fa-city-mobile-map__cta div {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.fa-city-mobile-map__cta a {
		display: flex;
		align-items: center;
		justify-content: center;
		width: 46px;
		height: 46px;
		background: rgba(255, 255, 255, .9);
		border-radius: 50%;
	}

	.fa-city-mobile-map__cta img {
		width: 40px;
		height: 40px;
		border-radius: 50%;
	}

	.fa-city-card__info {
		gap: 16px;
	}

	.fa-city-card__cell+.fa-city-card__cell::before {
		display: none;
	}

	.fa-city-card__msgrs {
		margin-left: 0;
	}

	.fa-city-card__marker {
		gap: 4px;
		transform: scale(.82);
		transform-origin: left top;
	}

	/* Мобильный футер из макета: синяя карточка с логотипом и мессенджерами. */
	.fa-footer {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 25px;
		padding: 25px 20px 20px;
		border: 1px solid rgba(25, 109, 255, .2);
		border-radius: 30px;
	}

	.fa-footer__col--contacts,
	.fa-footer__cities,
	.fa-footer__logo,
	.fa-footer__brand-title,
	.fa-footer__brand-sub {
		display: none;
	}

	.fa-footer__col {
		align-items: center;
		width: 100%;
	}

	.fa-footer__note {
		font-size: 9px;
	}

	.fa-footer__policy {
		align-self: center;
		margin-top: 0;
		font-size: 9px;
	}

	.fa-footer__mobile {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
		width: 100%;
	}

	.fa-footer__mobile-logo {
		width: 160px;
		height: auto;
	}

	.fa-footer__mobile-title {
		font-family: "Montserrat", Arial, sans-serif;
		font-weight: 800;
		font-size: 17px;
		color: #fff;
	}

	.fa-footer__msgrs {
		display: flex;
		flex-direction: column;
		gap: 8px;
		width: 100%;
	}

	.fa-msgr {
		display: flex;
		align-items: center;
		gap: 28px;
		padding: 16px;
		background: rgba(255, 255, 255, .1);
		border: 1px solid rgba(255, 255, 255, .3);
		border-radius: 50px;
	}

	.fa-msgr__icon {
		flex: 0 0 auto;
		width: 40px;
		height: 40px;
		border-radius: 473.684px;
		border: 1px solid rgba(255, 255, 255, 0.40);
		box-shadow: 0 4.211px 7.947px 0 rgba(0, 0, 0, 0.18);
	}

	.fa-msgr__btn {
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
		flex: 1;
		padding: 10px 16px;
		background: linear-gradient(47.53deg, rgba(255, 255, 255, .2) 17.315%, rgba(255, 255, 255, .08) 50%, rgba(255, 255, 255, .2) 82.685%);
		border: 1px solid rgba(255, 255, 255, .3);
		border-radius: 69px;
		/* Футер общий с главной, а она набрана Montserrat: «Написать в WhatsApp»
		   там 164px против 146px в Manrope и не влезало в 210px — подпись
		   переносилась на вторую строку. Ширина 210 и 14px взяты из ноды
		   53:9265, она же набрана Manrope. */
		font-family: "Manrope", Arial, sans-serif;
		font-size: 14px;
		line-height: 1.5;
		white-space: nowrap;
		color: #fff;
	}
}

/* ==================================================================
 * Блоки для встраивания в статьи: [hair_stages] и [hair_prices].
 * Ноды 53:7166 и 53:7203.
 *
 * Блоки печатаются не по месту шорткода, а секциями под статьёй — на всю
 * ширину контента, как лента «Статьи о пересадке». На десктопе это ровно
 * 1400 из макета: три этапа в ряд и три тарифа в ряд.
 *
 * Раскладка внутри — на @container, а не @media: .fa-main ужимается
 * гуттером, а на планшете и телефоне ширина блока с шириной экрана уже не
 * совпадает. Контейнер меряет сам блок, так что порядок колонок не зависит
 * от того, куда его поставили. Метрики карточек ровно из макета, ничего не
 * масштабируется.
 *
 * База — две колонки этапов и одна колонка тарифов: столько безопасно
 * помещается в узкое место. Браузер без @container останется на ней и
 * вёрстка не рассыплется, просто не развернётся в три.
 * ================================================================== */

.hc-block {
	container-type: inline-size;
	margin-top: 60px;
	font-family: "Manrope", Arial, sans-serif;
}

/* Шапка служебной страницы /blocks-preview/. */
.hc-preview-note {
	margin: 40px 0 0;
	padding: 16px 20px;
	background: rgba(25, 109, 255, .06);
	border-left: 2px solid var(--fa-blue);
	border-radius: 0 12px 12px 0;
	font-family: "Manrope", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	color: var(--fa-grey);
}

.hc-preview-note code {
	padding: 1px 6px;
	background: #fff;
	border: 1px solid var(--fa-line);
	border-radius: 6px;
	font-size: 15px;
	color: var(--fa-ink-2);
}

.hc-block__title {
	margin: 0 0 24px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: normal;
	color: var(--fa-ink);
	overflow-wrap: break-word;
}

/* ================= этапы пересадки ================= */
.hc-stages__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

@container (min-width: 1180px) {
	.hc-stages__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.hc-stage {
	--hc-stage-pad: 34px;
	/* Столько отдано номеру: сама цифра занимает 38, остальное — просвет.
	   Больше нельзя: «ВОССТАНОВЛЕНИЕ» набором 32 занимает 339 при 392
	   внутренних, и запас там всего полсотни пикселей. */
	--hc-stage-num: 46px;

	position: relative;
	padding: var(--hc-stage-pad);
	background: #fff;
	border: 1px solid rgba(209, 226, 255, .7);
	border-radius: 20px;
	filter: drop-shadow(0 4px 9px rgba(0, 0, 0, .06));
}

.hc-stage--accent {
	background: var(--fa-blue);
	border-color: var(--fa-blue);
	filter: none;
}

.hc-stage__num {
	position: absolute;
	top: var(--hc-stage-pad);
	right: var(--hc-stage-pad);
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: normal;
	letter-spacing: -.96px;
	color: rgba(0, 0, 0, .2);
}

.hc-stage--accent .hc-stage__num {
	color: rgba(255, 255, 255, .2);
}

/* Справа зарезервировано место под номер: он absolute, и без отступа первая
   строка заголовка заезжала бы под цифру. Раньше номер стоял во float, но
   тогда он съедал начало первой строки и «БЕЗБОЛЕЗНЕННАЯ» рвалось посередине
   слова. overflow-wrap, а не word-break: рвём слово только если оно и правда
   не влезает, а не при каждом удобном случае. */
.hc-stage__title {
	margin: 0 0 24px;
	padding-right: var(--hc-stage-num);
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 32px;
	line-height: normal;
	color: var(--fa-ink);
	overflow-wrap: break-word;
}

.hc-stage__text {
	margin: 0;
	font-weight: 500;
	font-size: 17px;
	line-height: 1.5;
	color: var(--fa-grey-80);
}

.hc-stage--accent .hc-stage__title,
.hc-stage--accent .hc-stage__text {
	color: #fff;
}

/* ================= стоимость пересадки ================= */
.hc-prices {
	padding: 43px;
	background: linear-gradient(90deg, rgba(25, 109, 255, .05) 0%, rgba(25, 109, 255, 0) 100%);
	border: 1px solid rgba(58, 58, 58, .3);
	border-radius: 41px;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .04);
}

.hc-prices__title {
	margin-bottom: 32px;
	color: var(--fa-ink-2);
}

.hc-prices__brand {
	color: var(--fa-blue);
}

.hc-prices__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 30px;
	/* Плашка «Стадия N» висит на 20px выше карточки — без запаса сверху
	   её срезал бы край панели. */
	padding-top: 20px;
}

/* 840 — это ширина внутри панели, то есть за вычетом её полей: @container
   меряет content-box. Ниже карточка выходит уже 273, и «ЭТО МОЙ СЛУЧАЙ»
   перестаёт помещаться в строку. Промежуточных двух колонок нет намеренно:
   тарифов три, и второй ряд из одной карточки выглядел бы обрывом. */
@container (min-width: 840px) {
	.hc-prices__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 10px;
	}
}

.hc-price {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 40px 30px 30px;
	background: #fff;
	border: 1px solid rgba(58, 58, 58, .4);
	border-radius: 25px;
	filter: drop-shadow(0 0 12.5px rgba(0, 0, 0, .1));
}

.hc-price__badge {
	position: absolute;
	top: -20px;
	left: 29px;
	padding: 6px 14px;
	background: var(--fa-blue);
	border-radius: 43px;
	font-weight: 500;
	font-size: 20px;
	line-height: 1.3;
	letter-spacing: -.6px;
	color: #fff;
	white-space: nowrap;
}

.hc-price__grafts {
	margin: 0 0 2px;
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 26px;
	line-height: 1.3;
	letter-spacing: -.78px;
	color: var(--fa-ink-2);
}

.hc-price__desc {
	margin: 0;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fa-grey-80);
}

.hc-price__photos {
	display: flex;
	gap: 5px;
	/* Фото прижимаются к низу карточки, а подвал с ценой — под ними. */
	margin-top: auto;
}

.hc-price__photo {
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
	flex: 1 1 0;
	min-width: 0;
	/* Пропорция коробки из макета (183 × 204). Фиксированная высота на
	   узкой колонке дала бы почти вертикальную полоску и срезала лицо. */
	aspect-ratio: 183 / 204;
	background: #f6fafd;
	border: 1px solid rgba(58, 58, 58, .2);
	border-radius: 20px;
}

.hc-price__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center bottom;
}

/* wrap, а не фиксированная строка: на узкой колонке кнопка сама уходит
   под цену и растягивается на всю ширину карточки. */
.hc-price__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 8px;
}

.hc-price__cost {
	display: flex;
	flex-direction: column;
	white-space: nowrap;
}

.hc-price__cost-label {
	font-weight: 500;
	font-size: 15px;
	line-height: 1.5;
	color: var(--fa-grey-80);
}

.hc-price__cost-value {
	font-family: "Montserrat", Arial, sans-serif;
	font-weight: 700;
	font-size: 24px;
	line-height: 1.3;
	letter-spacing: -.72px;
	color: var(--fa-ink-2);
}

.hc-price__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	/* По бокам 24, а не 34 из макета: в колонке статьи карточка выходит
	   280px, и с 34 подпись «Это мой случай» переносилась на вторую строку. */
	padding: 14px 24px;
	background: var(--fa-blue);
	border-radius: 130px;
	font-weight: 700;
	font-size: 18px;
	line-height: 31px;
	text-align: center;
	text-transform: uppercase;
	color: #fff;
	transition: opacity .2s;
}

.hc-price__btn:hover {
	opacity: .85;
}

/* Все пороги ниже отмерены по самому длинному слову заголовка —
   «ВОССТАНОВЛЕНИЕ»: 339px набором 32, 276 набором 26, 233 набором 22.
   Как только оно перестаёт помещаться в строку рядом с номером, набор
   уменьшается на ступень. Первое правило — про три колонки (карточка
   становится уже 454), второе — про две (уже 918). */
@container (min-width: 1180px) and (max-width: 1381px) {
	.hc-stage {
		--hc-stage-pad: 24px;
		--hc-stage-num: 40px;
	}

	.hc-stage__num,
	.hc-stage__title {
		font-size: 26px;
	}

	.hc-stage__title {
		margin-bottom: 16px;
	}
}

@container (max-width: 917px) {
	.hc-stage {
		--hc-stage-pad: 24px;
		--hc-stage-num: 40px;
	}

	.hc-stage__num,
	.hc-stage__title {
		font-size: 26px;
	}

	.hc-stage__title {
		margin-bottom: 16px;
	}
}

@container (max-width: 737px) {
	.hc-stage {
		--hc-stage-pad: 20px;
		--hc-stage-num: 36px;
	}

	.hc-stage__num,
	.hc-stage__title {
		font-size: 22px;
	}

	.hc-stage__text {
		font-size: 16px;
	}
}

@container (max-width: 628px) {
	.hc-stages__grid {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Сам блок под @container не попадает — контейнером служит он же.
   Его поля и заголовок зависят от экрана, а не от колонки, так что здесь
   обычный @media. */
@media (max-width: 767px) {
	.hc-block {
		margin-top: 40px;
	}

	.hc-block__title {
		margin-bottom: 16px;
		font-size: 24px;
	}

	.hc-prices {
		padding: 16px;
		border-radius: 24px;
	}

	.hc-prices__title {
		margin-bottom: 24px;
	}
}

@media (min-width: 768px) and (max-width: 1023px) {
	.hc-prices {
		padding: 24px;
		border-radius: 28px;
	}
}