/* ==========================================================================
   Адаптив сайта врача Турысбекова К. Т.
   Подключается после main.css. Брейкпоинты от большего к меньшему (desktop-first):
   1400px, 1320px, 1240px, 1180px, 1100px, 1000px, 900px, 760px, 640px, 560px
   Телефоны (макеты 390px) — блок 640px и ниже.
   ========================================================================== */

/* ── до 1400px ──────────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
	/* 10. Главная */
	.bento {
		grid-template-columns: minmax(0, 1fr);
	}
	.bento__intro {
		grid-row: auto;
		min-height: 300px;
	}
}

/* ── до 1320px ──────────────────────────────────────────────────────────── */
@media (max-width: 1320px) {
	/* 6. Шапка и меню */
	.header-phone__text {
		display: none;
	}
	.header-phone {
		width: 48px;
		height: 48px;
		justify-content: center;
		border: 1px solid var(--line);
		border-radius: 50%;
	}
}

/* ── до 1240px ──────────────────────────────────────────────────────────── */
@media (max-width: 1240px) {
	/* 10. Главная */
	.hero {
		grid-template-columns: minmax(0, 1fr) 360px;
	}
	.hero__content {
		max-width: 56%;
	}
	.hero__content .btn-row {
		flex-wrap: wrap;
	}
	.hero__photo {
		left: auto;
		right: calc(360px + 2 * var(--hero-pad) - 40px);
		width: clamp(300px, 30vw, 400px);
		transform: none;
	}
}

/* ── до 1180px ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
	/* 6. Шапка и меню */
	.nav {
		display: none;
	}
	.burger {
		display: inline-grid;
	}
	.site-header__bar {
		padding-left: 24px;
	}
}

/* ── до 1100px ──────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
	/* 7. Подвал */
	.site-footer__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
	.site-footer__about {
		grid-column: 1 / -1;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.card-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.home-articles {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 12. Страница «Услуги» */
	.acc__head {
		grid-template-columns: minmax(0, 1fr) auto;
		padding: 20px 24px;
	}
	.acc__summary {
		grid-column: 1 / -1;
		grid-row: 2;
	}
	.acc__actions {
		grid-column: 1 / -1;
		grid-row: 3;
		padding-right: 0;
	}
	.acc__icon {
		position: static;
		grid-column: 2;
		grid-row: 1;
	}
	.acc__toggle {
		display: contents;
	}
	.acc.is-open .acc__summary,
	.acc.is-open .acc__actions {
		display: none;
	}
	.acc__panel {
		grid-template-columns: minmax(0, 1fr);
		padding: 0 24px 24px;
	}
	.acc__media {
		order: -1;
	}

	/* 14. Раздел «Статьи» */
	.post-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	/* 17. Контакты */
	.way {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.way__intro,
	.way__tile {
		min-height: 220px;
	}
}

/* ── до 1000px ──────────────────────────────────────────────────────────── */
@media (max-width: 1000px) {
	/* 11. Секции, заголовки секций, карусели, карточки */
	.cta-dark {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.cta-form {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 13. Страница услуги */
	.service-hero {
		grid-template-columns: minmax(0, 1fr);
	}
	.service-hero__media {
		order: -1;
		min-height: 0;
		aspect-ratio: 16 / 10;
	}

	/* 15. Статья */
	.article {
		grid-template-columns: minmax(0, 1fr);
	}
	.article__aside {
		position: static;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 16px;
	}
	.article__aside .breadcrumbs {
		width: 100%;
	}
	.article__main {
		order: -1;
	}
	.article__aside {
		order: 1;
	}

	/* 16. О враче */
	.about-hero {
		grid-template-columns: minmax(0, 1fr);
	}
	.about-hero__photo {
		min-height: 0;
		max-height: 620px;
	}
	.about-hero__img {
		width: min(80%, 480px);
	}

	/* 16. О враче */
	.awards {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 17. Контакты */
	.contacts {
		grid-template-columns: minmax(0, 1fr);
	}
	.map {
		min-height: 420px;
	}
}

/* ── до 900px ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
	/* 10. Главная */
	.hero {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: auto;
		min-height: 0;
		gap: 24px;
	}
	.hero__slides {
		grid-row: 1;
	}
	.hero__content {
		max-width: none;
		gap: 20px;
	}
	.hero__slide {
		display: flex;
		flex-direction: column;
	}
	.hero__photo {
		position: relative;
		left: auto;
		right: auto;
		bottom: auto;
		width: min(78%, 420px);
		margin: 16px auto calc(-24px - var(--hero-pad));
		transform: none;
	}
	.hero__controls {
		grid-row: 2;
		width: auto;
	}
	.hero__form {
		grid-column: 1;
		grid-row: 3;
	}
	.hero__decor::before {
		top: 30%;
		width: 120%;
		right: -40%;
	}

	/* 10. Главная */
	.bento__row--a,
	.bento__row--b {
		grid-template-columns: 1fr 1fr;
	}
	.bento__row--a > :nth-child(3),
	.bento__row--b > :nth-child(1) {
		order: -1;
	}
	.bento__row--a > :nth-child(1),
	.bento__row--b > :nth-child(3) {
		grid-column: 1 / -1;
	}
	.tile {
		min-height: 200px;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.post-card--featured {
		flex-direction: column;
		align-items: stretch;
	}
	.post-card--featured .post-card__media {
		width: 100%;
	}
	.post-card--featured .post-card__body {
		padding: 0 8px 16px;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.split {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 12. Страница «Услуги» */
	.page-hero {
		flex-direction: column-reverse;
		align-items: stretch;
		padding: 0;
	}
	.page-hero__media {
		position: relative;
		width: 100%;
		aspect-ratio: 16 / 9;
	}
	.page-hero__media::after {
		background: linear-gradient(0deg, var(--beige) 0%, rgba(234, 228, 216, 0) 40%);
	}
	.page-hero__content {
		padding: 24px;
	}

	/* 14. Раздел «Статьи» */
	.page-head {
		grid-template-columns: minmax(0, 1fr);
	}
	.page-head__lead {
		margin-top: 0;
		grid-row: 2;
	}
}

/* ── до 760px ──────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
	/* 13. Страница услуги */
	.gallery__page {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: auto auto;
		height: auto;
	}
	.gallery__item--main {
		grid-column: 1 / -1;
		grid-row: auto;
		aspect-ratio: 4 / 3;
	}
	.gallery__item:not(.gallery__item--main) {
		aspect-ratio: 1;
	}

	/* 20. Версия для слабовидящих */
	.a11y-panel__inner {
		gap: 10px 16px;
	}
	html.a11y .a11y-panel__toggle {
		display: inline-flex;
		align-items: center;
	}
	html.a11y .a11y-panel:not(.is-expanded) .a11y-group,
	html.a11y .a11y-panel:not(.is-expanded) [data-a11y-reset] {
		display: none;
	}
	.a11y-panel__actions {
		margin-left: 0;
	}
}

/* ── до 640px ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	/* 2. Токены (цвета сняты с макета) */
	:root {
		--gutter: 16px;
		--gap: 16px;
		--r-xl: 24px;
		--r-lg: 20px;
		--r-md: 16px;
		--header-h: 64px;
	}

	/* 6. Шапка и меню */
	.site-header {
		padding-top: 12px;
	}
	.site-header__bar {
		gap: 8px;
		padding: 6px 6px 6px 20px;
	}
	.logo__name {
		font-size: 1.125rem;
	}
	.logo__tagline {
		font-size: 0.75rem;
	}
	.site-header__cta,
	.site-header__a11y,
	.site-header .lang {
		display: none;
	}
	.site-header__actions {
		gap: 8px;
	}

	/* 7. Подвал */
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
	.site-footer__bottom {
		flex-direction: column;
		align-items: flex-start;
	}
	.site-footer__disclaimer {
		text-align: left;
		min-width: 0;
	}

	/* 10. Главная */
	.hero__tabs {
		width: 100%;
	}
	.hero__tab {
		flex: 1;
		width: auto;
		font-size: var(--fs-xs);
	}
	.hero__buttons {
		width: 100%;
		justify-content: flex-end;
	}
	.hero .btn-row {
		width: 100%;
	}
	.hero .btn-row .btn {
		flex: 1 1 auto;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.section-head {
		align-items: flex-start;
		flex-direction: column;
	}
	.section-head__aside .icon-btn {
		display: none;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.carousel {
		--card-w: 78vw;
	}
	.carousel--docs {
		--card-w: 64vw;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.card-grid {
		grid-template-columns: minmax(0, 1fr);
	}
	.svc-card--photo {
		aspect-ratio: 4 / 3.4;
	}

	/* 12. Страница «Услуги» */
	.acc__head {
		padding: 16px 16px 20px 20px;
	}
	.acc__name,
	.acc.is-open .acc__name {
		font-size: 1.5rem;
	}
	.acc__panel {
		padding: 0 20px 20px;
	}

	/* 14. Раздел «Статьи» */
	.post-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	/* 17. Контакты */
	.map {
		min-height: 520px;
	}
	.map__routes .btn {
		width: 100%;
	}

	/* 17. Контакты */
	.way {
		grid-template-columns: minmax(0, 1fr);
	}
	.way__intro,
	.way__tile {
		min-height: 0;
	}
	.way__tile .round-icon {
		margin-bottom: 8px;
	}

	/* 19. Просмотр фото */
	.lightbox__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-rows: 1fr auto;
	}
	.lightbox__figure {
		grid-column: 1 / -1;
		grid-row: 1;
	}
	.lightbox__prev {
		justify-self: start;
	}
	.lightbox__next {
		justify-self: end;
	}
}

/* ── до 560px ──────────────────────────────────────────────────────────── */
@media (max-width: 560px) {
	/* 10. Главная */
	.bento {
		grid-template-columns: 1fr 1fr;
	}
	.bento__intro {
		grid-column: 1 / -1;
		min-height: 0;
	}
	.bento__btn {
		margin-top: 8px;
	}
	.bento__row {
		display: contents;
	}
	.bento .tile {
		grid-column: 1 / -1;
		order: 0;
		min-height: 0;
		padding: 20px;
	}
	.bento .tile--number {
		grid-column: auto;
		min-height: 150px;
	}
	.tile__body {
		margin-top: 0;
	}
	.motif {
		max-width: 40%;
		opacity: 0.7;
	}

	/* 11. Секции, заголовки секций, карусели, карточки */
	.post-card--row {
		gap: 16px;
		padding: 12px;
		border-radius: var(--r-lg);
	}
	.post-card--row .post-card__media {
		width: 104px;
		border-radius: 14px;
	}
	.post-card--row .post-card__title {
		font-size: 1.0625rem;
	}
	.post-card--row .post-meta {
		font-size: var(--fs-xs);
	}
}

/* ══════════════════════════════════════════════════════════════════════════
   ТЕЛЕФОНЫ — по мобильным макетам (390px).
   Поля 12px по краям и между карточками, кнопки 56px, внутренние отступы карточек 20–24px.
   Блок последний в файле, поэтому уточняет всё, что выше.
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {
	:root {
		--gutter: 12px;
		--gap: 12px;
		--r-xl: 28px;
		--r-lg: 20px;
		--r-md: 16px;
		--fs-h1: 2.5rem;
		--fs-h2: 2.375rem;
		--fs-h3: 1.75rem;
		--fs-lead: 1.0625rem;
		--header-h: 64px;
	}

	/* ── Шапка ── */
	.site-header {
		padding-top: 12px;
		margin-bottom: 12px;
	}

	.site-header__bar {
		min-height: 64px;
		padding: 8px 8px 8px 20px;
	}

	.site-header .header-phone {
		width: 48px;
		height: 48px;
		border: 0;
		background: var(--sage);
	}

	.site-header .burger {
		width: 48px;
		height: 48px;
		border: 0;
		background: var(--dark);
		color: #ffffff;
	}

	/* ── Панель быстрой связи под первым экраном ── */
	.action-bar {
		display: flex;
		align-items: center;
		gap: 8px;
		padding: 8px;
		border-radius: 999px;
		background: var(--surface);
	}

	.action-bar__main {
		flex: 1;
	}

	.action-bar__icon {
		display: grid;
		place-items: center;
		width: 56px;
		height: 56px;
		border-radius: 50%;
		background: var(--sage);
		color: var(--ink);
		flex: none;
	}

	/* ── Кнопки и формы ── */
	.btn {
		min-height: 56px;
		padding-left: 24px;
	}

	.form-card {
		padding: 24px 20px;
		border-radius: 24px;
	}

	.lead-form__title {
		font-size: 1.5rem;
		font-weight: 600;
	}

	.lead-success .btn {
		width: 100%;
	}

	/* Кнопки в колонку — на всю ширину карточки */
	:is(.service-hero__buttons, .about-hero__cta .btn-row, .acc__buttons, .contacts__buttons) {
		width: 100%;
	}

	/* ── Секции: заголовок, лента, кнопка «Все …» под лентой ── */
	.section {
		gap: 20px;
		padding-top: 36px;
	}

	.section--inset {
		padding-inline: 0;
	}

	.section-head {
		display: contents;
	}

	.section-head__text {
		display: none;
	}

	.section-head__aside {
		order: 2;
	}

	.section-head__aside:not(:has(.btn)) {
		display: none;
	}

	.section-head__aside .btn {
		width: 100%;
	}

	.carousel {
		--card-w: 264px;
		padding-bottom: 4px;
	}

	.carousel--docs {
		--card-w: 232px;
	}

	.svc-card {
		min-height: 360px;
		padding: 12px;
	}

	.svc-card__body {
		padding: 18px 20px;
	}

	/* ── Главная: первый экран без фото и формы ── */
	.hero {
		gap: 20px;
		min-height: 0;
		padding: 20px;
	}

	.hero__photo,
	.hero__form,
	.hero__tab-label,
	.hero [data-hero-prev],
	.hero [data-hero-next],
	.hero__content .btn-row .btn:nth-child(n + 2) {
		display: none;
	}

	.hero__content {
		gap: 20px;
	}

	.hero__content .btn-row .btn {
		width: 100%;
	}

	.hero__controls {
		width: 100%;
		flex-wrap: nowrap;
		gap: 12px;
	}

	.hero__tabs {
		flex: 1;
		width: auto;
		gap: 8px;
	}

	.hero__tab {
		flex: 1;
		justify-content: center;
		min-height: 48px;
		padding: 0;
	}

	.hero__buttons {
		width: auto;
	}

	.hero__decor::before,
	.bento__intro-decor,
	.about-hero__decor {
		display: none;
	}

	.hero__title {
		font-size: 2.375rem;
		line-height: 1.08;
	}

	/* ── Главная: «Шесть причин» — цифры рядом, остальное строками с иконкой слева ── */
	.bento {
		grid-template-columns: 1fr 1fr;
	}

	.bento__intro {
		grid-column: 1 / -1;
		order: -2;
		min-height: 0;
		padding: 28px 24px 24px;
	}

	.bento__text {
		display: none;
	}

	.bento__btn {
		margin-top: 12px;
	}

	.bento__row {
		display: contents;
	}

	.bento .tile {
		grid-column: 1 / -1;
		order: 0;
		flex-direction: row;
		align-items: center;
		justify-content: flex-start;
		gap: 16px;
		min-height: 0;
		padding: 18px 20px;
		border-radius: 24px;
	}

	.bento .tile:not(.tile--number) {
		background: var(--surface);
	}

	.bento .tile:not(.tile--number) .tile__icon {
		width: 48px;
		height: 48px;
		background: var(--sage);
		flex: none;
	}

	.bento .tile__body {
		margin-top: 0;
	}

	.bento .tile__title {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.bento .tile__text {
		margin-top: 2px;
	}

	.bento .tile--number {
		grid-column: auto;
		order: -1;
		flex-direction: column;
		align-items: flex-start;
		justify-content: space-between;
		min-height: 150px;
		padding: 20px;
	}

	.bento .tile--number .tile__number {
		font-size: 3.5rem;
	}

	.bento .tile--number .tile__text {
		font-size: 1rem;
		font-weight: 600;
		color: var(--ink);
	}

	.motif {
		display: none;
	}

	/* ── Карточки статей: мета обычным текстом через точку ── */
	.post-card .post-meta {
		gap: 0;
		font-size: 0.875rem;
	}

	.post-card .post-meta .chip {
		gap: 0;
		padding: 0;
		background: none;
		font-size: inherit;
		font-weight: 400;
		color: var(--muted);
	}

	.post-card .post-meta__cat {
		font-weight: 400;
		color: var(--muted);
	}

	.post-card .post-meta > :not(:last-child)::after {
		content: "·";
		margin: 0 5px;
	}

	.home-articles {
		gap: 12px;
	}

	.home-articles__list {
		gap: 12px;
	}

	.home-articles__list > li:nth-child(n + 3) {
		display: none;
	}

	.post-card--lead {
		gap: 14px;
	}

	.post-card--lead .post-card__media {
		aspect-ratio: 366 / 240;
		border-radius: 20px;
	}

	.post-card--lead .post-card__title {
		font-size: 1.375rem;
		font-weight: 600;
	}

	.post-card--row,
	.post-card--grid {
		flex-direction: row;
		align-items: center;
		gap: 14px;
		height: auto;
		padding: 12px;
		border-radius: 20px;
	}

	.post-card--row .post-card__media,
	.post-card--grid .post-card__media {
		width: 88px;
		aspect-ratio: 1;
		border-radius: 14px;
		flex: none;
	}

	.post-card--row .post-card__body,
	.post-card--grid .post-card__body {
		gap: 4px;
		padding: 0;
	}

	.post-card--row .post-card__title,
	.post-card--grid .post-card__title {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
		line-height: 1.35;
	}

	/* ── Тёмный блок записи ── */
	.cta-dark {
		gap: 20px;
		margin-top: 24px;
		padding: 28px 24px 24px;
	}

	.cta-dark__text,
	.cta-dark__wa {
		display: none;
	}

	.cta-dark .btn {
		width: 100%;
	}

	.info-item {
		padding: 16px;
	}

	.info-item__value {
		font-family: var(--font-sans);
		font-size: 1.125rem;
		font-weight: 600;
	}

	/* ── Блок с формой: заголовок, текст, форма (без кнопок телефона) ── */
	.cta-form {
		gap: 20px;
		padding: 28px 12px 12px;
	}

	.cta-form__intro {
		gap: 14px;
		padding: 0 12px;
	}

	.cta-form .pills {
		display: none;
	}

	/* ── Подвал ── */
	.site-footer {
		margin: 12px auto;
	}

	.site-footer__card {
		padding: 28px 24px;
	}

	.site-footer__grid {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding-bottom: 0;
		border-bottom: 0;
	}

	.site-footer__label,
	.site-footer__text {
		display: none;
	}

	.site-footer__name {
		font-size: 1.75rem;
	}

	.site-footer__col--nav .site-footer__list {
		display: block;
		columns: 2;
		column-gap: 16px;
	}

	.site-footer__col--nav .site-footer__list li {
		min-height: 42px;
		break-inside: avoid;
	}

	.site-footer__col--contacts .site-footer__list li {
		min-height: 30px;
	}

	.site-footer__col--social .site-footer__list {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 8px;
	}

	.site-footer__col--social .site-footer__list li {
		min-height: 0;
	}

	.site-footer__col--social .footer__link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
		padding: 0 16px;
		font-size: 1rem;
		border-radius: 999px;
		background: var(--bg);
		text-decoration: none;
	}

	.site-footer__bottom {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		justify-content: flex-start;
		gap: 16px 6px;
		padding-top: 20px;
		font-size: 0.875rem;
	}

	.site-footer__disclaimer {
		order: -1;
		flex-basis: 100%;
		text-align: left;
	}

	.site-footer__policy {
		color: var(--muted);
	}

	.site-footer__copy {
		order: 2;
	}

	.site-footer__copy::before {
		content: "· ";
	}

	.site-footer__copy-name {
		display: none;
	}

	/* ── Услуги ── */
	.page-hero {
		flex-direction: column;
		align-items: stretch;
		min-height: 0;
		padding: 24px 20px;
	}

	.page-hero__media {
		display: none;
	}

	.page-hero__content {
		gap: 20px;
		max-width: none;
		padding: 0;
	}

	.facts {
		flex-direction: column;
		width: 100%;
	}

	.fact {
		padding: 12px 18px;
	}

	.accordion {
		gap: 12px;
	}

	.acc__head {
		grid-template-columns: minmax(0, 1fr) auto;
		gap: 4px 12px;
		padding: 18px 16px 18px 20px;
	}

	.acc__name {
		grid-column: 1;
		grid-row: 1;
		font-size: 1.375rem;
		font-weight: 600;
		line-height: 1.2;
		hyphens: manual;
	}

	.acc.is-open .acc__name {
		font-size: 1.75rem;
	}

	.acc__summary,
	.acc__more {
		display: none;
	}

	.acc__subtitle {
		display: block;
		grid-column: 1;
		grid-row: 2;
		font-size: 0.9375rem;
		line-height: 1.4;
		color: var(--muted);
	}

	.acc__actions {
		grid-column: 1;
		grid-row: 3;
		padding: 0;
	}

	.acc__actions .btn {
		min-height: 28px;
		padding: 0;
		border: 0;
		background: none;
		font-size: 0.9375rem;
		font-weight: 600;
		color: var(--primary);
	}

	.acc__icon {
		position: static;
		grid-column: 2;
		grid-row: 1 / span 3;
		align-self: center;
	}

	.acc.is-open .acc__icon {
		grid-row: 1;
	}

	.acc.is-open .acc__subtitle,
	.acc.is-open .acc__actions {
		display: none;
	}

	.acc__panel {
		gap: 20px;
		padding: 0 20px 24px;
	}

	.acc__media {
		aspect-ratio: 326 / 200;
		border-radius: 20px;
	}

	.acc__buttons {
		flex-direction: column;
		align-items: stretch;
	}

	.acc__buttons .btn {
		width: 100%;
	}

	/* ── Страница услуги ── */
	.service-hero__media {
		aspect-ratio: 366 / 240;
		min-height: 0;
	}

	.service-hero__card {
		gap: 20px;
		padding: 24px 20px;
	}

	.service-hero__buttons {
		flex-direction: column;
		align-items: stretch;
		padding-top: 0;
	}

	.service-hero__buttons .btn {
		width: 100%;
	}

	.steps {
		gap: 16px;
		padding: 24px 20px;
	}

	.steps .h2 {
		font-size: var(--fs-h3);
	}

	.steps__list {
		gap: 12px;
	}

	.step {
		gap: 8px;
		padding: 16px 20px;
	}

	.step__text {
		font-size: 0.9375rem;
	}

	.step__title,
	.note-card__title,
	.timeline__title {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.panel {
		gap: 20px;
		padding: 24px 20px;
	}

	.marks__item {
		font-size: 1rem;
	}

	.note-card {
		padding: 20px;
	}

	.gallery.is-strip .gallery__viewport {
		display: grid;
		grid-auto-flow: column;
		grid-auto-columns: 76%;
		gap: 12px;
		margin: 0 calc(-1 * var(--gutter));
		padding: 0 var(--gutter);
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.gallery.is-strip .gallery__viewport::-webkit-scrollbar {
		display: none;
	}

	.gallery.is-strip .gallery__page {
		display: contents !important;
	}

	.gallery.is-strip .gallery__item {
		grid-column: auto;
		grid-row: auto;
		height: auto;
		aspect-ratio: 4 / 3;
		scroll-snap-align: start;
		animation: none;
	}

	.gallery.is-strip .gallery__pager > .dots:not(.gallery__strip-dots),
	.gallery.is-strip [data-gallery-count] {
		display: none;
	}

	.service-note {
		display: block;
		margin: 0;
		padding: 16px 20px;
		border-radius: 20px;
		background: var(--beige);
		font-size: 0.875rem;
		color: var(--muted);
	}

	/* ── О враче ── */
	.about-hero__photo {
		min-height: 0;
		max-height: none;
		padding: 72px 20px 0;
	}

	.about-hero__img {
		width: min(78%, 300px);
	}

	.about-hero__caption {
		top: 20px;
		bottom: auto;
		left: 20px;
		padding: 8px 16px;
		border-radius: 12px;
		box-shadow: none;
	}

	.about-hero__caption-label {
		display: none;
	}

	.about-hero__caption-value {
		font-size: 0.9375rem;
	}

	.about-hero__card {
		gap: 20px;
		padding: 24px 20px;
	}

	.about-hero .chips {
		flex-direction: column;
		align-items: flex-start;
	}

	.about-hero .chip {
		padding: 8px 16px;
		font-size: 1rem;
	}

	.timeline__item {
		padding-bottom: 20px;
	}

	.carousel--docs {
		--card-w: 220px;
	}

	.doc__title {
		font-size: 0.9375rem;
	}

	.awards .h2 {
		font-size: var(--fs-h3);
	}

	.about-hero__cta {
		gap: 16px;
		padding: 20px;
		background: var(--bg);
	}

	.about-hero__cta-title {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.about-hero__cta .btn-row {
		flex-direction: column;
		align-items: stretch;
	}

	.about-hero__cta .btn {
		width: 100%;
	}

	.panel__head {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.awards {
		gap: 20px;
		padding: 28px 20px;
	}

	.awards__text {
		display: none;
	}

	.awards__list {
		grid-template-columns: minmax(0, 1fr);
		gap: 12px;
	}

	.award {
		display: grid;
		grid-template-columns: 88px minmax(0, 1fr);
		column-gap: 16px;
		row-gap: 2px;
		align-items: center;
	}

	.award__media {
		grid-row: 1 / span 2;
		width: 88px;
		margin: 0;
		aspect-ratio: 1;
		border-radius: 16px;
	}

	.award__icon {
		width: 52px;
	}

	.award__year {
		align-self: end;
	}

	.award__title {
		align-self: start;
		font-family: var(--font-sans);
		font-size: 1rem;
		font-weight: 500;
	}

	/* ── Статьи ── */
	.page-head {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 8px 0 0;
	}

	.page-head__main {
		display: contents;
	}

	.page-head .breadcrumbs {
		order: 1;
	}

	.page-head .h1 {
		order: 2;
	}

	.page-head__lead {
		order: 3;
		margin: 0;
	}

	.page-head .filter {
		order: 4;
	}

	.post-card--featured {
		gap: 16px;
		padding: 12px;
		border-radius: 24px;
	}

	.post-card--featured .post-card__media {
		aspect-ratio: 342 / 240;
		border-radius: 18px;
	}

	.post-card--featured .post-card__body {
		gap: 10px;
		padding: 0 8px 12px;
	}

	.post-card--featured .post-card__title {
		font-size: 1.375rem;
		font-weight: 600;
	}

	.post-card--featured .post-card__excerpt {
		font-size: 1rem;
	}

	.post-card__btn {
		display: none;
	}

	.post-grid {
		gap: 12px;
	}

	.load-more {
		padding: 0;
	}

	.load-more .btn {
		width: 100%;
	}

	/* ── Статья: всё в одной карточке, «Поделиться» и услуга — после текста ── */
	.article {
		display: flex;
		flex-direction: column;
		gap: 20px;
		padding: 24px 20px;
	}

	.article__aside,
	.article__main {
		display: contents;
	}

	.article .breadcrumbs { order: 1; }
	.article .post-meta { order: 2; }
	.article__title { order: 3; font-size: 2.5rem; }
	.article__cover { order: 4; aspect-ratio: 326 / 240; }
	.article .prose { order: 5; }
	.article [data-share] { order: 6; justify-content: center; width: 100%; }
	.article .related-card { order: 7; }
	.article .inline-cta { order: 8; }

	.prose {
		font-size: 1.0625rem;
		line-height: 1.65;
	}

	.prose h2 {
		font-size: 1.375rem;
		font-weight: 600;
	}

	.prose .is-style-tb-note {
		padding: 20px;
	}

	.prose .is-style-tb-note :is(h2, h3, h4) {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
	}

	.inline-cta {
		padding: 0;
		background: none;
	}

	.inline-cta__title {
		display: none;
	}

	.inline-cta .btn {
		width: 100%;
	}

	.related-card__title {
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	/* Связанные услуги — лентой */
	.card-grid {
		grid-template-columns: none;
		grid-auto-flow: column;
		grid-auto-columns: 264px;
		margin: 0 calc(-1 * var(--gutter));
		padding: 0 var(--gutter) 4px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.card-grid::-webkit-scrollbar {
		display: none;
	}

	.card-grid > li {
		scroll-snap-align: start;
	}

	.svc-card--photo {
		aspect-ratio: auto;
		min-height: 360px;
	}

	/* ── Контакты ── */
	.contacts__card {
		gap: 20px;
		padding: 24px 20px;
	}

	.contact-item--phone {
		order: -1;
	}

	.contact-list {
		gap: 18px;
	}

	.contacts__card .pills {
		gap: 8px;
	}

	.contacts__card .pill {
		min-height: 44px;
		padding: 8px 16px;
		font-size: 1rem;
	}

	.contact-item .round-icon {
		width: 48px;
		height: 48px;
	}

	.contacts__buttons {
		flex-direction: column;
		align-items: stretch;
		padding-top: 0;
	}

	.contacts__buttons .btn {
		width: 100%;
	}

	.map {
		display: flex;
		flex-direction: column;
		gap: 12px;
		min-height: 0;
		border-radius: 0;
		background: none;
		overflow: visible;
	}

	.map__scheme,
	.map__frame {
		position: relative;
		inset: auto;
		z-index: 0;
		width: 100%;
		height: 300px;
		border-radius: var(--r-xl);
		background: var(--beige);
		overflow: hidden;
	}

	.map__label {
		top: 238px;
		left: 12px;
		padding: 10px 16px;
		border-radius: 14px;
		box-shadow: none;
	}

	.map__label-small {
		display: none;
	}

	.map__routes {
		position: static;
		flex-wrap: nowrap;
		gap: 8px;
	}

	.map__routes .btn {
		flex: 1;
		width: auto;
		min-height: 52px;
		padding: 8px 14px;
		border: 0;
		justify-content: center;
		font-size: 0.9375rem;
	}

	.map__routes .btn__icon {
		display: none;
	}

	.way__intro {
		gap: 8px;
		padding: 24px 20px;
	}

	.way__tile {
		display: grid;
		grid-template-columns: 48px minmax(0, 1fr);
		column-gap: 16px;
		row-gap: 2px;
		align-items: center;
		padding: 18px 20px;
		border-radius: 24px;
	}

	.way__tile .round-icon {
		grid-row: 1 / span 2;
		width: 48px;
		height: 48px;
		margin: 0;
	}

	.way__tile .tile__title {
		align-self: end;
		font-family: var(--font-sans);
		font-size: 1.0625rem;
		font-weight: 600;
	}

	.way__tile .tile__text {
		align-self: start;
		margin: 0;
	}

	/* ── Отзывы ── */
	.reviews-hero .page-hero__content {
		gap: 16px;
	}

	.story__card {
		gap: 16px;
		padding: 12px;
	}

	.story__media {
		aspect-ratio: 342 / 220;
		border-radius: 18px;
	}

	.story__body {
		gap: 12px;
		padding: 0 8px 8px;
	}

	.story__name {
		font-size: 1.75rem;
	}

	.story__fact {
		padding: 14px 16px;
	}

	.thanks-card__figure {
		padding: 22px 20px;
	}

	.thanks-card__heading {
		font-size: 1.625rem;
	}

	/* ── Окно записи — шторка снизу ── */
	.modal {
		width: 100%;
		max-width: 100%;
		max-height: 92dvh;
		margin: auto 0 0;
		border-radius: 28px 28px 0 0;
	}

	.modal__card {
		max-height: 92dvh;
		padding: 32px 20px calc(20px + env(safe-area-inset-bottom));
	}

	.modal__card::before {
		content: "";
		position: absolute;
		top: 8px;
		left: 50%;
		width: 40px;
		height: 4px;
		margin-left: -20px;
		border-radius: 4px;
		background: var(--line);
	}

	.modal__close {
		top: 22px;
		right: 16px;
	}

	.modal .lead-form__text {
		display: none;
	}

	.modal .lead-form__title {
		font-size: 1.75rem;
		font-weight: 500;
	}

	.modal::backdrop {
		background: rgba(23, 53, 47, 0.94);
	}

	.modal[open] {
		animation: tb-sheet-in 450ms var(--ease-out);
	}

	.modal.is-closing {
		animation: tb-sheet-out 260ms var(--ease-in) forwards;
	}
}
