/* Статьи: инфо-страницы, блог, контакты (этап 2, шаг 1; docs/stage2-plan.md).
   Макеты: design/figma/png/pages/info-*, contacts-*. Подключается поверх gp.css на маршрутах
   information/* и blog/*.
   Текст из редактора админки оформлен заранее (ТЗ п. 12): заголовки, списки, картинки слева,
   справа, по две в ряд, таблицы, раскрывашки - страница выглядит аккуратно, как бы ни был набран текст. */

/* ---------- Начало статьи: картинка слева, заголовок и вступление справа ---------- */

.gp-article__head--image {
	display: grid;
	grid-template-columns: 532fr 730fr;
	gap: 30px;
	align-items: start;
}

.gp-article__image img {
	width: 100%;
	height: auto;
	aspect-ratio: 532 / 414;
	border-radius: 20px;
	object-fit: cover;
	background: var(--gp-placeholder);
}

.gp-article__body {
	margin-top: 40px;
}

/* Без картинки заголовок стоит прямо над текстом */
.gp-article__head:not(.gp-article__head--image) + .gp-article__body {
	margin-top: 0;
}

/* ---------- Текст из редактора ---------- */

.gp-text {
	display: flow-root;
	line-height: 1.25;
}

.gp-text > * + * {
	margin-top: 12px;
}

.gp-text :where(h2) {
	clear: both;
	margin-top: 40px;
	margin-bottom: 16px;
	font-size: var(--gp-h2);
	font-weight: 700;
	line-height: 1.275;
}

.gp-text :where(h3, h4) {
	margin-top: 24px;
	margin-bottom: 8px;
	font-size: var(--gp-h3);
	font-weight: 700;
	line-height: 1.3;
}

.gp-text :where(h5, h6) {
	margin-top: 16px;
	margin-bottom: 4px;
	font-size: var(--gp-body);
	font-weight: 700;
}

.gp-text > :first-child {
	margin-top: 0;
}

.gp-text :where(h2, h3, h4, h5, h6) + * {
	margin-top: 0;
}

.gp-text :where(b, strong) {
	font-weight: 700;
}

.gp-text a {
	color: var(--gp-teal);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.gp-text a:hover {
	color: var(--gp-accent);
}

.gp-text :where(ul, ol) {
	padding-left: 24px;
}

.gp-text ul {
	list-style: disc;
}

.gp-text ol {
	list-style: decimal;
}

.gp-text li + li {
	margin-top: 4px;
}

.gp-text li::marker {
	font-weight: 700;
}

/* Пустые абзацы из редактора (<p></p>, <p><br></p>, <p>&nbsp;</p>) не дают лишних дыр */
.gp-text p:empty,
.gp-text p:has(> br:only-child) {
	display: none;
}

.gp-text blockquote {
	margin-inline: 0;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--gp-bg);
}

.gp-text hr {
	clear: both;
	height: 1px;
	margin-block: 30px;
	border: 0;
	background: var(--gp-line);
}

/* Картинки: скругление; по ширине колонки, но не крупнее своего размера */
.gp-text img {
	display: inline-block;
	max-width: 100%;
	height: auto;
	border-radius: 20px;
	vertical-align: top;
}

/* Обтекание - кнопки «влево» и «вправо» редактора пишут float в атрибут style */
.gp-text img[style*="float: left"],
.gp-text img[style*="float:left"] {
	float: left;
	width: min(532px, 42%) !important;
	margin: 0 30px 16px 0;
}

.gp-text img[style*="float: right"],
.gp-text img[style*="float:right"] {
	float: right;
	width: min(532px, 42%) !important;
	margin: 0 0 16px 30px;
}

/* Несколько картинок одним абзацем - в ряд, поровну */
.gp-text p:has(> img + img) {
	display: flex;
	gap: 16px;
}

.gp-text p:has(> img + img) > img {
	flex: 1 1 0;
	min-width: 0;
	object-fit: cover;
}

/* Таблица: бежевая подложка, первая колонка - подписи, колонки чередуют белый и бежевый.
   Широкая таблица прокручивается вбок внутри своей обёртки (gp.js оборачивает каждую) */
.gp-text .gp-table {
	overflow-x: auto;
	padding: 30px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-text table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--gp-small);
	line-height: 1.3;
}

.gp-text :where(th, td) {
	padding: 10px 14px;
	border-top: 1px solid var(--gp-line);
	text-align: left;
	vertical-align: top;
}

.gp-text :where(th, td):nth-child(even) {
	background: var(--gp-bg-2);
}

.gp-text :where(th, td):nth-child(odd):not(:first-child) {
	background: var(--gp-white);
}

.gp-text :where(td, th):first-child {
	padding-left: 0;
	font-weight: 700;
}

/* Строка заголовков: th или первая строка таблицы без th */
.gp-text thead :where(th, td),
.gp-text tr:first-child th {
	padding-bottom: 14px;
	border-top: 0;
	font-size: var(--gp-h3);
	font-weight: 700;
	background: none;
}

.gp-text table p {
	margin: 0;
}

/* Раскрывашки в тексте - как вопросы на главной (страница «Популярные вопросы») */
.gp-text details {
	border-radius: 12px;
	background: var(--gp-bg);
	transition: background-color var(--gp-ease);
}

.gp-text details + details {
	margin-top: var(--gp-gap);
}

.gp-text details[open],
.gp-text details:hover {
	background: var(--gp-bg-2);
}

.gp-text summary {
	position: relative;
	padding: 22px 70px 22px 40px;
	font-size: var(--gp-h3);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
}

.gp-text summary::-webkit-details-marker {
	display: none;
}

.gp-text summary::after {
	content: "";
	position: absolute;
	right: 40px;
	top: 50%;
	width: 12px;
	height: 12px;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-75%) rotate(45deg);
	transition: transform var(--gp-ease);
}

.gp-text details[open] summary::after {
	transform: translateY(-25%) rotate(-135deg);
}

.gp-text details:not([open]) summary:hover {
	color: var(--gp-accent);
}

.gp-text details > :not(summary) {
	padding: 0 40px 20px;
}

/* ---------- Разметка прежних инфо-страниц ---------- */

/* «Доставка и оплата»: вкладки «Москва / Регионы», переключает gp.js */
.gp-text .delivery__tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 24px;
}

.gp-text .delivery__tabs .tab {
	padding: 10px 24px;
	border: 1px solid var(--gp-text);
	border-radius: 30px;
	font-size: var(--gp-small);
	cursor: pointer;
	transition: color var(--gp-ease), background-color var(--gp-ease), border-color var(--gp-ease);
}

.gp-text .delivery__tabs .tab:hover {
	color: var(--gp-accent);
	border-color: var(--gp-accent);
}

.gp-text .delivery__tabs .tab_active,
.gp-text .delivery__tabs .tab_active:hover {
	color: var(--gp-white);
	border-color: var(--gp-accent);
	background: var(--gp-accent);
}

.gp-text .delivery__contents {
	margin-top: 16px;
	padding: 20px 24px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-text .delivery__content {
	display: none;
}

.gp-text .delivery__content_active {
	display: block;
}

.gp-text .delivery__content p + p {
	margin-top: 12px;
}

.gp-text .delivery__content br {
	display: none;
}

/* «Виды нанесений»: ряды «фото и текст», фото то слева, то справа */
.gp-text .row_text_img {
	display: grid;
	grid-template-columns: 532fr 730fr;
	gap: 30px;
	align-items: start;
	margin-top: 40px;
}

.gp-text .row_text_img:has(> .row_text_img__text:first-child) {
	grid-template-columns: 730fr 532fr;
}

.gp-text .row_text_img__img {
	display: grid;
	gap: 8px;
}

.gp-text .row_text_img__img img {
	width: 100%;
}

.gp-text .row_text_img__img span {
	margin-bottom: 8px;
	font-size: var(--gp-small);
	color: var(--gp-muted);
}

.gp-text .row_text_img__text > div:first-child {
	margin-bottom: 8px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-text .row_text_img__text br {
	display: none;
}

.gp-text .row_text_img__text > * + * {
	margin-top: 12px;
}

/* «О компании», «Welcome Box» и подобные: обёртки без своего оформления */
.gp-text :where(.about, .about__text, .welcome_box, .delivery) > * + * {
	margin-top: 12px;
}

/* ---------- Список статей блога ---------- */

.gp-posts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px var(--gp-gap);
	margin-top: 30px;
}

.gp-posts .gp-post__text {
	display: block;
	margin-top: 8px;
	font-size: var(--gp-small);
	color: var(--gp-muted);
}

.gp-posts__empty {
	margin-top: 20px;
}

/* ---------- Контакты ---------- */

.gp-contacts__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gp-gap);
}

.gp-contacts__card {
	display: grid;
	grid-template-columns: 40px 1fr;
	gap: 0 16px;
	padding: 20px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-contacts__card .gp-icon-badge {
	grid-row: span 2;
}

.gp-contacts__label {
	align-self: center;
}

.gp-contacts__value {
	margin-top: 18px;
	font-size: var(--gp-h3);
	font-weight: 700;
	line-height: 1.3;
}

.gp-contacts__value a {
	display: block;
}

.gp-contacts__value a + a {
	margin-top: 12px;
}

.gp-contacts__value a:hover {
	color: var(--gp-accent);
}

/* Карты - блок .gp-map из gp.css (подгрузка за экран до блока, серая подложка) */
.gp-map.gp-contacts__map {
	height: 360px;
	margin-top: 20px;
}

.gp-contacts__china {
	display: grid;
	grid-template-columns: 529fr 748fr;
	gap: 17px;
	margin-top: 20px;
}

.gp-contacts__china .gp-map.gp-contacts__map {
	height: 260px;
	margin-top: 0;
}

/* Представительство без карты - карточка во всю ширину */
.gp-contacts__china--solo {
	grid-template-columns: 1fr;
}

.gp-contacts__value .gp-contacts__tel {
	margin-top: 12px;
}

/* Кнопка на точку в китайском сервисе - под адресом, в колонке текста */
.gp-contacts__map-btn {
	grid-column: 2;
	justify-self: start;
	align-self: end;
	margin-top: 20px;
}

.gp-requisites {
	margin-top: var(--gp-section);
	padding: 30px;
	border-radius: 20px;
	background: var(--gp-bg-2);
}

.gp-requisites h2 {
	font-size: var(--gp-h3);
	font-weight: 700;
	line-height: 1.3;
}

.gp-requisites dl {
	margin: 20px 0 0;
	padding: 18px 30px;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-requisites dl div {
	display: grid;
	grid-template-columns: 500px 1fr;
	gap: 16px;
	padding: 12px 0;
}

.gp-requisites dl div + div {
	border-top: 1px solid var(--gp-line);
}

.gp-requisites dt {
	color: var(--gp-muted);
}

.gp-requisites dd {
	margin: 0;
	overflow-wrap: anywhere;
}

/* ---------- Страницы без макета (шаг 5): запрос на просчёт, «спасибо», 404, карта сайта ---------- */

/* «Запрос на просчёт» - карточка «Свяжитесь с нами» (gp.css) с заголовком страницы и полями заявки */
.gp-request__intro {
	max-width: 520px;
}

.gp-request__intro ul {
	margin-top: 8px;
}

/* «Спасибо» и 404: слева текст и кнопки, справа круг с галочкой или кодом ошибки */
.gp-state__card {
	display: grid;
	grid-template-columns: 1fr auto;
	align-items: center;
	gap: 40px;
	padding: 60px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-state__body {
	max-width: 640px;
}

.gp-state__body .gp-h1 {
	margin-bottom: 20px;
}

.gp-state__body > p + p {
	margin-top: 12px;
}

.gp-state__link {
	font-weight: 500;
	white-space: nowrap;
	text-decoration: underline;
}

.gp-state__link:hover {
	color: var(--gp-accent);
}

.gp-state__search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin-top: 30px;
}

.gp-state__search .gp-input {
	flex: 1;
	min-width: 0;
}

.gp-state__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 30px;
}

.gp-state__search + .gp-state__buttons {
	margin-top: 16px;
}

.gp-state__mark {
	display: grid;
	place-items: center;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	font-size: 96px;
	font-weight: 700;
	line-height: 1;
	color: var(--gp-accent);
	background: var(--gp-white);
}

.gp-state__mark--done {
	color: var(--gp-teal);
}

.gp-state__mark svg {
	width: 120px;
	height: 120px;
}

/* Карта сайта: подразделы колонками на бежевой подложке, третий уровень - мелким списком */
.gp-sitemap__section {
	margin-top: 40px;
}

.gp-sitemap .gp-h1 + .gp-sitemap__section {
	margin-top: 24px;
}

.gp-sitemap__title {
	margin-bottom: 16px;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
}

.gp-sitemap a:hover {
	color: var(--gp-accent);
}

.gp-sitemap__columns {
	columns: 4;
	column-gap: 30px;
	padding: 30px 30px 10px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-sitemap__columns > li {
	padding-bottom: 20px;
	break-inside: avoid;
}

.gp-sitemap__link {
	font-weight: 500;
}

.gp-sitemap__columns ul {
	display: grid;
	gap: 6px;
	margin-top: 8px;
	font-size: var(--gp-small);
}

.gp-sitemap__more {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: 30px;
	margin-top: 40px;
}

.gp-sitemap__list {
	display: grid;
	gap: 8px;
}

.gp-sitemap__list + .gp-sitemap__title {
	margin-top: 30px;
}

.gp-sitemap__list--sections {
	margin-bottom: 16px;
	font-weight: 500;
}

/* Статьи - в две колонки */
.gp-sitemap__blog .gp-sitemap__list:not(.gp-sitemap__list--sections) {
	display: block;
	columns: 2;
	column-gap: 30px;
}

.gp-sitemap__blog .gp-sitemap__list:not(.gp-sitemap__list--sections) li {
	padding-bottom: 8px;
	break-inside: avoid;
}

/* ---------- Вход и личный кабинет (шаг 5): штатные формы OpenCart ---------- */

/* Вход, регистрация, восстановление пароля - карточка «Свяжитесь с нами» (gp.css): слева текст, справа форма */
.gp-auth .gp-form {
	gap: 14px;
}

.gp-auth__intro {
	max-width: 460px;
}

.gp-auth__aside {
	margin-top: auto;
	padding-top: 40px;
}

.gp-auth__aside p {
	margin-bottom: 12px;
}

.gp-auth__link {
	font-size: var(--gp-small);
	text-decoration: underline;
}

.gp-auth__link:hover {
	color: var(--gp-accent);
}

/* Поле с подписью над ним: в формах кабинета значения уже заполнены, подсказка внутри поля не видна */
.gp-fields {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 16px;
}

.gp-field {
	display: grid;
	gap: 6px;
	align-content: start;
}

.gp-field--wide {
	grid-column: 1 / -1;
}

.gp-field__label {
	font-size: var(--gp-small);
	font-weight: 500;
	color: var(--gp-muted);
}

.gp-field__error {
	font-size: 13px;
	color: var(--gp-accent);
}

select.gp-input {
	padding-right: 44px;
	appearance: none;
	background: var(--gp-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5L6 8l3.5-3.5' fill='none' stroke='%23a29a8c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 18px center / 12px;
	cursor: pointer;
}

.gp-alert {
	padding: 14px 20px;
	border-radius: 8px;
	font-size: var(--gp-small);
	line-height: 1.35;
}

.gp-alert--success {
	color: #0b6b67;
	background: #e3f4f3;
}

.gp-alert--error {
	color: #b3361b;
	background: #ffece7;
}

.gp-alert a {
	text-decoration: underline;
}

/* Кабинет: меню слева, раздел справа */
.gp-account {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 40px;
	align-items: start;
}

.gp-account__menu {
	position: sticky;
	top: 20px;
	padding: 12px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-account__menu a {
	display: block;
	padding: 10px 16px;
	border-radius: 8px;
	font-weight: 500;
	white-space: nowrap;
}

.gp-account__menu a:hover {
	color: var(--gp-accent);
}

.gp-account__menu a.is-active {
	color: var(--gp-accent);
	background: var(--gp-white);
}

.gp-account__menu .gp-account__logout {
	color: var(--gp-muted);
}

.gp-account__main {
	min-width: 0;
}

.gp-account__main > .gp-alert {
	margin-bottom: 20px;
}

.gp-account__hello {
	margin-bottom: 24px;
	font-size: var(--gp-h3);
}

.gp-account__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gp-gap);
}

.gp-account__card {
	display: grid;
	gap: 6px;
	height: 100%;
	padding: 20px;
	border-radius: 20px;
	background: var(--gp-bg);
	transition: background-color var(--gp-ease);
}

.gp-account__card .gp-icon-badge {
	margin-bottom: 14px;
}

.gp-account__card:hover {
	background: var(--gp-bg-2);
}

.gp-account__card-title {
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-account__card-text {
	font-size: var(--gp-small);
	color: var(--gp-muted);
}

.gp-account__panel {
	padding: 30px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-account__panel > p + * {
	margin-top: 16px;
}

.gp-account__check {
	margin-top: 20px;
	font-size: var(--gp-small);
}

.gp-account__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 24px;
}

.gp-account__empty {
	color: var(--gp-muted);
}

.gp-account__addresses {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--gp-gap);
}

.gp-account__addresses--order {
	margin-top: 24px;
}

.gp-account__addresses .gp-account__panel {
	padding: 20px;
	line-height: 1.4;
}

.gp-account__links {
	display: flex;
	gap: 20px;
	margin-top: 16px;
	font-size: var(--gp-small);
	font-weight: 500;
}

.gp-account__links a,
.gp-account__more {
	text-decoration: underline;
}

.gp-account__links a:hover,
.gp-account__more:hover,
.gp-account__table a:hover {
	color: var(--gp-accent);
}

.gp-account__facts {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 40px;
}

.gp-account__facts dt {
	font-size: var(--gp-small);
	color: var(--gp-muted);
}

.gp-account__facts dd {
	margin: 2px 0 0;
	font-weight: 500;
}

.gp-account__table {
	width: 100%;
	margin-top: 24px;
	border-collapse: collapse;
}

.gp-account__table th {
	padding: 0 12px 10px 0;
	font-size: var(--gp-small);
	font-weight: 500;
	text-align: left;
	color: var(--gp-muted);
}

.gp-account__table td {
	padding: 14px 12px 14px 0;
	border-top: 1px solid var(--gp-line);
	vertical-align: top;
}

.gp-account__table td a {
	font-weight: 500;
}

.gp-account__table small {
	color: var(--gp-muted);
}

.gp-account__table tfoot td {
	padding: 8px 12px 0 0;
	border: 0;
	text-align: right;
}

.gp-account__table tfoot tr:last-child td {
	font-weight: 700;
}

.gp-account__table tfoot td:last-child {
	white-space: nowrap;
}

.gp-account__subtitle {
	margin-top: 40px;
	margin-bottom: 8px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-account__pagination {
	margin-top: 24px;
}

/* Пагинация OpenCart (system/library/pagination) */
.gp-account__pagination ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.gp-account__pagination a,
.gp-account__pagination span {
	display: grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 8px;
	border-radius: 8px;
	background: var(--gp-bg);
}

.gp-account__pagination .active span {
	color: var(--gp-white);
	background: var(--gp-accent);
}

/* ======================================================================
   Планшет (макет 768)
   ====================================================================== */

@media (max-width: 1023px) {
	.gp-article__head--image {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.gp-text .row_text_img,
	.gp-text .row_text_img:has(> .row_text_img__text:first-child) {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}

	.gp-posts {
		grid-template-columns: repeat(2, 1fr);
	}

	.gp-contacts__cards {
		grid-template-columns: repeat(2, 1fr);
	}

	.gp-contacts__cards .gp-contacts__card:last-child {
		grid-column: span 2;
	}

	.gp-contacts__china {
		grid-template-columns: 1fr;
	}

	.gp-requisites dl div {
		grid-template-columns: 40% 1fr;
	}
	.gp-state__card {
		gap: 24px;
		padding: 40px;
	}

	.gp-state__mark {
		width: 200px;
		height: 200px;
		font-size: 72px;
	}

	.gp-state__mark svg {
		width: 88px;
		height: 88px;
	}

	.gp-sitemap__columns {
		columns: 3;
	}

	.gp-sitemap__more {
		grid-template-columns: 1fr;
		gap: 40px;
	}
	.gp-account {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	/* Меню кабинета - лентой над разделом */
	.gp-account__menu {
		position: static;
		margin: 0 calc(-1 * var(--gp-gutter));
		padding: 0 var(--gp-gutter);
		border-radius: 0;
		background: none;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.gp-account__menu ul {
		display: flex;
		gap: 8px;
		width: max-content;
	}

	.gp-account__menu a {
		padding: 8px 16px;
		border-radius: 20px;
		font-size: var(--gp-small);
		background: var(--gp-bg);
	}

	.gp-account__menu a.is-active {
		color: var(--gp-white);
		background: var(--gp-accent);
	}

	.gp-account__cards {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* ======================================================================
   Телефон (макет 480): всё в столбик, фото на всю ширину
   ====================================================================== */

@media (max-width: 599px) {
	.gp-contacts__map-btn {
		grid-column: 1 / -1;
		justify-self: stretch;
	}

	.gp-article__head--image {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.gp-article__body {
		margin-top: 30px;
	}

	.gp-text {
		line-height: 1.3;
	}

	.gp-text :where(h2) {
		margin-top: 30px;
	}

	.gp-text img[style*="float"] {
		float: none !important;
		display: block;
		width: 100% !important;
		margin: 0 0 16px;
	}

	.gp-text p:has(> img + img) {
		flex-direction: column;
	}

	.gp-text .gp-table {
		padding: 16px;
	}

	.gp-text summary {
		padding: 16px 48px 16px 20px;
	}

	.gp-text summary::after {
		right: 20px;
	}

	.gp-text details > :not(summary) {
		padding: 0 20px 16px;
	}

	.gp-text .row_text_img,
	.gp-text .row_text_img:has(> .row_text_img__text:first-child) {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-top: 30px;
	}

	/* Фото ряда - над текстом, даже если в разметке оно справа */
	.gp-text .row_text_img__img {
		order: -1;
	}

	.gp-posts {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.gp-contacts__card {
		grid-template-columns: 32px 1fr;
		gap: 0 12px;
		padding: 16px;
	}

	.gp-contacts__card .gp-icon-badge {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}

	.gp-contacts__value {
		margin-top: 12px;
	}

	.gp-contacts__value a + a {
		margin-top: 6px;
	}

	.gp-map.gp-contacts__map,
	.gp-contacts__china .gp-map.gp-contacts__map {
		height: 240px;
	}

	.gp-requisites {
		padding: 20px 16px;
	}

	.gp-requisites dl {
		padding: 6px 16px;
	}

	.gp-requisites dl div {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	/* Карточки просчёта и входа на телефоне - сетка «Свяжитесь с нами»: заголовок и текст во всю ширину */
	.gp-request .gp-h1,
	.gp-request__intro,
	.gp-auth .gp-h1,
	.gp-auth__intro,
	.gp-auth__aside {
		grid-column: 1 / -1;
	}

	/* Вход и регистрация на телефоне: сначала форма, потом ссылка на соседнюю страницу */
	.gp-auth .gp-contact__card {
		row-gap: 0;
	}

	.gp-auth .gp-contact__info {
		display: contents;
	}

	.gp-auth .gp-form {
		order: 1;
		margin-top: 20px;
	}

	.gp-auth__aside {
		order: 2;
		padding-top: 20px;
	}

	.gp-fields {
		grid-template-columns: 1fr;
	}

	.gp-account__panel {
		padding: 20px 16px;
	}

	.gp-account__buttons .gp-btn {
		flex: 1 1 auto;
	}

	.gp-account__addresses {
		grid-template-columns: 1fr;
	}

	/* Таблицы кабинета - карточками: подпись столбца слева от значения */
	.gp-account__table thead {
		display: none;
	}

	.gp-account__table tbody tr {
		display: grid;
		gap: 6px;
		padding: 14px 0;
		border-top: 1px solid var(--gp-line);
	}

	.gp-account__table td {
		display: grid;
		grid-template-columns: 110px 1fr;
		gap: 12px;
		padding: 0;
		border: 0;
	}

	.gp-account__table td::before {
		content: attr(data-label);
		font-size: var(--gp-small);
		color: var(--gp-muted);
	}

	.gp-account__table td:not([data-label]) {
		display: block;
	}

	.gp-account__table td:not([data-label])::before {
		content: none;
	}

	.gp-account__table tfoot tr {
		display: flex;
		justify-content: space-between;
		gap: 12px;
	}

	.gp-account__table tfoot td {
		display: block;
		padding: 6px 0 0;
		text-align: left;
	}

	.gp-account__table tfoot td::before {
		content: none;
	}

	.gp-state__card {
		grid-template-columns: 1fr;
		gap: 20px;
		padding: 24px 20px;
	}

	.gp-state__mark {
		order: -1;
		width: 120px;
		height: 120px;
		font-size: 40px;
	}

	.gp-state__mark svg {
		width: 52px;
		height: 52px;
	}

	.gp-state__body .gp-h1 {
		margin-bottom: 16px;
	}

	.gp-state__search .gp-btn {
		padding: 0 20px;
	}

	.gp-state__buttons {
		margin-top: 24px;
	}

	.gp-state__buttons .gp-btn {
		flex: 1 1 100%;
	}

	.gp-sitemap__section {
		margin-top: 30px;
	}

	.gp-sitemap__title {
		font-size: var(--gp-h3);
	}

	.gp-sitemap__columns {
		columns: 2;
		column-gap: 16px;
		padding: 20px 16px 4px;
	}

	.gp-sitemap__columns > li {
		padding-bottom: 16px;
	}

	.gp-sitemap__blog .gp-sitemap__list:not(.gp-sitemap__list--sections) {
		columns: 1;
	}
}

@media (max-width: 419px) {
	.gp-contacts__cards {
		grid-template-columns: 1fr;
	}

	.gp-contacts__cards .gp-contacts__card:last-child {
		grid-column: auto;
	}

	.gp-sitemap__columns {
		columns: 1;
	}

	.gp-account__cards {
		grid-template-columns: 1fr;
	}
}
