/* Новый дизайн GIFTParad (этап 2), макет Figma «giftparad», страница «Главная».
   Ширины из макета: 1920 (контейнер 1294), 768 и 480. Раскладка: десктоп от 1024, планшет 600-1023, телефон до 600.
   Разбор макета - docs/figma-home.md. */

@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/onest-cyrillic.woff2) format('woff2');
	unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/onest-latin.woff2) format('woff2');
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
	font-family: 'Onest';
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url(fonts/onest-latin-ext.woff2) format('woff2');
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Основа: цвета - стили макета ---------- */

:root {
	--gp-text: #363333;          /* black */
	--gp-accent: #ff5732;        /* 1_color */
	--gp-accent-hover: #ff866c;  /* hover_1 */
	--gp-teal: #14a7a1;          /* 2_color */
	--gp-muted: #a29a8c;         /* dark_gray */
	--gp-line: #e5e2e2;          /* outlines */
	--gp-bg: #f5e9d6;            /* 1_background */
	--gp-bg-2: #e3d7c3;          /* 2_background */
	--gp-white: #fff;
	--gp-placeholder: #b7aaa0;   /* заливка под картинками в макете */

	--gp-container: 1294px;
	--gp-gutter: 16px;
	--gp-gap: 16px;
	--gp-section: 60px;

	--gp-h1: 40px;
	--gp-h2: 36px;
	--gp-h3: 20px;
	--gp-body: 16px;
	--gp-small: 14px;

	--gp-shadow: 0 12px 30px rgba(54, 51, 51, 0.12);
	--gp-ease: 0.2s ease;
}

:where(.gp) *,
:where(.gp) *::before,
:where(.gp) *::after {
	box-sizing: border-box;
}

body.gp {
	margin: 0;
	font-family: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	font-size: var(--gp-body);
	line-height: 1.275;
	color: var(--gp-text);
	background: var(--gp-white);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

/* Сброс через :where - нулевая специфичность, классы блоков его всегда перебивают */
:where(.gp) :where(img, svg) {
	display: block;
	max-width: 100%;
}

:where(.gp) svg {
	width: 1em;
	height: 1em;
	flex-shrink: 0;
}

:where(.gp) a {
	color: inherit;
	text-decoration: none;
	transition: color var(--gp-ease), background-color var(--gp-ease), transform var(--gp-ease), box-shadow var(--gp-ease);
}

:where(.gp) :where(p, h1, h2, h3, ul, ol, figure) {
	margin: 0;
}

:where(.gp) :where(ul, ol) {
	padding: 0;
	list-style: none;
}

:where(.gp) :where(button, input, textarea) {
	font: inherit;
	color: inherit;
}

:where(.gp) button {
	cursor: pointer;
	border: 0;
	background: none;
	padding: 0;
}

.gp [hidden] {
	display: none !important;
}

.gp :focus-visible {
	outline: 2px solid var(--gp-teal);
	outline-offset: 2px;
}

.gp-container {
	width: min(var(--gp-container), 100% - 2 * var(--gp-gutter));
	margin-inline: auto;
}

.gp-section {
	margin-top: var(--gp-section);
}

.gp-h2 {
	margin-bottom: 30px;
	font-size: var(--gp-h2);
	font-weight: 700;
	line-height: 1.275;
}

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

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

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

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

.gp-label {
	display: block;
	margin-bottom: 2px;
	font-size: var(--gp-small);
	font-weight: 500;
	color: var(--gp-muted);
}

.gp-section__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 30px;
}

.gp-section__head .gp-h2 {
	margin-bottom: 0;
}

.gp-more {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: var(--gp-small);
	font-weight: 700;
	white-space: nowrap;
}

.gp-more svg {
	width: 12px;
	height: 12px;
}

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

/* Фото блоков - picture с WebP; скругление и обрезка на обёртке, картинка её заполняет */
.gp-slider__slide picture,
.gp-steps__image,
.gp-china__image,
.gp-seo__image,
.gp-merch picture {
	display: block;
	overflow: hidden;
}

.gp-slider__slide picture img,
.gp-steps__image img,
.gp-china__image img,
.gp-seo__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ---------- Кнопки и поля ---------- */

.gp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 50px;
	padding: 0 27px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: var(--gp-body);
	font-weight: 500;
	white-space: nowrap;
	transition: background-color var(--gp-ease), color var(--gp-ease), border-color var(--gp-ease);
}

.gp-btn svg {
	width: 16px;
	height: 16px;
}

.gp .gp-btn--primary {
	color: var(--gp-white);
	background: var(--gp-accent);
}

.gp .gp-btn--primary:hover {
	background: var(--gp-accent-hover);
}

.gp .gp-btn--outline {
	padding: 0 30px;
	color: var(--gp-accent);
	background: var(--gp-white);
	border-color: var(--gp-accent);
}

.gp .gp-btn--outline:hover {
	color: var(--gp-white);
	background: var(--gp-accent);
}

.gp-btn--wide {
	width: 100%;
}

.gp-pill-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	height: 40px;
	padding: 0 23px;
	border-radius: 20px;
	font-size: var(--gp-small);
	font-weight: 700;
	color: var(--gp-text);
	background: var(--gp-white);
	transition: color var(--gp-ease);
}

.gp-pill-btn svg {
	width: 12px;
	height: 12px;
}

.gp-input {
	display: block;
	width: 100%;
	height: 50px;
	padding: 0 20px;
	border: 1px solid var(--gp-line);
	border-radius: 8px;
	background: var(--gp-white);
	font-size: var(--gp-body);
	transition: border-color var(--gp-ease);
}

textarea.gp-input {
	height: auto;
	padding-top: 14px;
	resize: vertical;
}

.gp-input::placeholder {
	color: var(--gp-muted);
	opacity: 1;
}

.gp-input:hover {
	border-color: var(--gp-bg-2);
}

.gp-input:focus {
	outline: none;
	border-color: var(--gp-teal);
}

.gp-input.errored {
	border-color: var(--gp-accent);
}

.gp-check {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--gp-muted);
	cursor: pointer;
}

.gp-check input {
	appearance: none;
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	margin: 1px 0 0;
	border: 1px solid var(--gp-muted);
	border-radius: 2px;
	background: var(--gp-white) no-repeat center / 10px;
	cursor: pointer;
}

.gp-check input:checked {
	border-color: var(--gp-teal);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M1.5 5.2l2.2 2.2L8.5 2.6' fill='none' stroke='%2314a7a1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.gp-check input.errored {
	border-color: var(--gp-accent);
}

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

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

.request_hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.gp-form__error:empty {
	display: none;
}

.gp-form__error {
	margin-top: 12px;
	font-size: var(--gp-small);
	color: var(--gp-accent);
}

.gp-form__error div + div {
	margin-top: 4px;
}

/* Поле файла: окно «Рассчитать нанесение», «Запрос на просчёт» */
.gp-file {
	position: relative;
	display: grid;
	gap: 4px;
	padding: 14px 20px;
	border: 1px dashed var(--gp-muted);
	border-radius: 8px;
	cursor: pointer;
	transition: border-color var(--gp-ease);
}

.gp-file:hover,
.gp-file:focus-within {
	border-color: var(--gp-accent);
}

.gp-file input {
	position: absolute;
	inset: 0;
	opacity: 0;
	cursor: pointer;
}

.gp-file input.errored + .gp-file__name {
	color: var(--gp-accent);
}

.gp-file__name {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.gp-file__hint {
	font-size: 12px;
	color: var(--gp-muted);
}

/* ---------- Плашка над шапкой ---------- */

.gp-notice {
	color: var(--gp-white);
	background: var(--gp-teal);
}

.gp-notice-closed .gp-notice {
	display: none;
}

.gp-notice__inner {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 30px;
	padding: 5px 28px;
}

.gp-notice__text {
	font-size: var(--gp-small);
	text-align: center;
}

.gp-notice__close {
	position: absolute;
	right: 0;
	top: 50%;
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	margin-top: -12px;
	font-size: 16px;
}

/* ---------- Шапка ---------- */

.gp-header {
	position: relative;
	z-index: 50;
	background: var(--gp-white);
}

.gp-header__pre {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 20px;
}

.gp-header__links {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 12px;
	font-size: var(--gp-small);
}

.gp-header__links a:hover,
.gp-mmenu__links a:hover {
	color: var(--gp-accent);
}

.gp-header__contacts {
	display: flex;
	align-items: baseline;
	gap: 24px;
}

.gp-header__mail {
	font-size: var(--gp-small);
}

.gp-header__phone {
	font-size: 18px;
	font-weight: 700;
	white-space: nowrap;
}

.gp-header__mail:hover,
.gp-header__phone:hover {
	color: var(--gp-accent);
}

.gp-header__main {
	display: flex;
	align-items: center;
	gap: 28px;
	margin-top: 13px;
}

.gp-header__logo {
	flex-shrink: 0;
	margin-right: 12px;
}

.gp-header__logo img {
	width: 242px;
	height: auto;
}

.gp-header__burger {
	display: none;
	width: 32px;
	height: 32px;
	font-size: 32px;
}

.gp-header__burger-close,
.gp-menu-open .gp-header__burger-open {
	display: none;
}

.gp-menu-open .gp-header__burger-close {
	display: block;
}

.gp-search {
	position: relative;
	flex: 1;
	max-width: 630px;
}

.gp-search__input {
	width: 100%;
	height: 50px;
	padding: 0 56px 0 24px;
	border: 1px solid var(--gp-line);
	border-radius: 8px;
	background: var(--gp-white);
	font-size: var(--gp-body);
	-webkit-appearance: none;
}

.gp-search__input::placeholder {
	color: var(--gp-muted);
	opacity: 1;
}

.gp-search__input:focus {
	outline: none;
	border-color: var(--gp-accent);
}

.gp-search__input::-webkit-search-cancel-button {
	-webkit-appearance: none;
}

.gp-search__submit {
	position: absolute;
	right: 14px;
	top: 50%;
	display: grid;
	place-items: center;
	width: 30px;
	height: 30px;
	margin-top: -15px;
	font-size: 20px;
}

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

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

.gp-header__icons {
	display: flex;
	align-items: center;
	gap: 24px;
	margin-left: auto;
}

.gp-header__icon {
	position: relative;
	display: flex;
	align-items: center;
	gap: 4px;
	font-size: 30px;
}

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

.gp-header__icon--search {
	display: none;
}

.gp-header__count {
	display: grid;
	place-items: center;
	min-width: 30px;
	height: 30px;
	padding: 0 6px;
	border-radius: 15px;
	font-size: var(--gp-small);
	color: var(--gp-white);
	background: var(--gp-teal);
}

.gp-header__cta {
	flex-shrink: 0;
}

/* Меню каталога: выпадающий список разделов и подразделов */

.gp-nav {
	display: flex;
	flex-wrap: wrap;
	column-gap: 40px;
	margin-top: 19px;
}

.gp-nav__item {
	position: relative;
}

.gp-nav__link {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 12px;
	white-space: nowrap;
}

.gp-nav__link svg {
	width: 8px;
	height: 8px;
	transition: transform var(--gp-ease);
}

.gp-nav__item:hover .gp-nav__link,
.gp-nav__item:focus-within .gp-nav__link {
	color: var(--gp-accent);
}

.gp-nav__item:hover .gp-nav__link svg,
.gp-nav__item:focus-within .gp-nav__link svg {
	transform: rotate(180deg);
}

.gp-drop {
	position: absolute;
	left: 0;
	top: 100%;
	display: none;
	min-width: 312px;
	border-radius: 0 0 20px 20px;
	background: var(--gp-white);
	box-shadow: var(--gp-shadow);
}

.gp-nav__item:hover .gp-drop,
.gp-nav__item:focus-within .gp-drop {
	display: block;
}

.gp-drop__list {
	width: 312px;
	max-height: 70vh;
	padding: 12px 0;
	overflow-y: auto;
}

.gp-drop__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 20px;
	font-size: var(--gp-small);
	font-weight: 700;
}

.gp-drop__link svg {
	width: 12px;
	height: 12px;
}

.gp-drop__row.is-active > .gp-drop__link,
.gp-drop__link:hover {
	color: var(--gp-accent);
}

.gp-drop__sub {
	position: absolute;
	left: 312px;
	top: 0;
	display: none;
	width: 312px;
	min-height: 100%;
	padding: 12px 20px;
	border-left: 1px solid var(--gp-line);
	border-radius: 0 0 20px 0;
	background: var(--gp-white);
}

.gp-drop__row.is-active > .gp-drop__sub {
	display: block;
}

.gp-drop__sub a {
	display: block;
	padding: 8px 0;
	font-size: var(--gp-small);
}

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

/* Мобильное меню */

.gp-mmenu {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	height: calc(100vh - 100%);
	height: calc(100dvh - 100%);
	overflow-y: auto;
	background: var(--gp-white);
	border-top: 1px solid var(--gp-line);
}

.gp-mmenu__panel {
	display: none;
	padding: 16px var(--gp-gutter) 0;
}

.gp-mmenu__panel.is-current {
	display: block;
}

.gp-mmenu__item,
.gp-mmenu__back {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 100%;
	min-height: 48px;
	padding: 12px 0;
	border-bottom: 1px solid var(--gp-line);
	font-size: var(--gp-body);
	font-weight: 700;
	text-align: left;
}

.gp-mmenu__item svg {
	width: 16px;
	height: 16px;
	margin-left: auto;
}

.gp-mmenu__panel:not([data-mmenu-panel="root"]) .gp-mmenu__item {
	font-weight: 400;
}

.gp-mmenu__item--all {
	color: var(--gp-accent);
}

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

.gp-mmenu__back svg {
	width: 20px;
	height: 20px;
}

.gp-mmenu__china .gp-mmenu__item {
	color: var(--gp-teal);
}

.gp .gp-mmenu__china-icon {
	width: 20px;
	height: 20px;
	margin: 0;
}

.gp-mmenu__links {
	display: grid;
	gap: 8px;
	padding: 20px 0;
	font-size: var(--gp-small);
}

.gp-mmenu__links a:first-child {
	color: var(--gp-accent);
}

.gp-mmenu__contacts {
	display: grid;
	justify-items: start;
	gap: 8px;
	margin: 0 calc(-1 * var(--gp-gutter));
	padding: 20px var(--gp-gutter) 24px;
	background: var(--gp-bg);
}

.gp-mmenu__phone {
	font-size: 18px;
	font-weight: 700;
}

.gp-mmenu__mail {
	margin-bottom: 12px;
	font-size: var(--gp-small);
}

/* ---------- 2. Баннер ---------- */

.gp-hero {
	display: grid;
	grid-template-columns: 749fr 530fr;
	gap: 15px;
	margin-top: 18px;
}

.gp-hero__content {
	display: flex;
	flex-direction: column;
	min-height: 414px;
	padding: 40px;
	border-radius: 30px;
	background: var(--gp-bg);
}

.gp-hero__title {
	max-width: 660px;
	font-size: var(--gp-h1);
	font-weight: 700;
	line-height: 1.275;
}

.gp-hero__text {
	max-width: 662px;
	margin-top: 16px;
}

.gp-hero__buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 30px;
}

.gp-hero__features {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 60px;
	margin-top: auto;
	padding-top: 40px;
	font-size: var(--gp-small);
}

.gp-hero__features li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.gp-hero__features svg {
	width: 24px;
	height: 24px;
}

/* Слайдер: лента со сдвигом, стрелки видны при наведении */

.gp-slider {
	position: relative;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-placeholder);
}

.gp-slider__track {
	display: flex;
	height: 100%;
	transition: transform 0.5s ease;
}

.gp-slider__slide {
	flex: 0 0 100%;
	height: 100%;
}

.gp-slider__slide img,
.gp-slider__slide picture {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gp-slider__arrow {
	position: absolute;
	top: 50%;
	display: grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin-top: -30px;
	border-radius: 50%;
	font-size: 20px;
	background: var(--gp-white);
	opacity: 0;
	transition: opacity var(--gp-ease), color var(--gp-ease);
}

.gp-slider__arrow--prev {
	left: 16px;
}

.gp-slider__arrow--next {
	right: 16px;
}

.gp-slider:hover .gp-slider__arrow,
.gp-slider__arrow:focus-visible {
	opacity: 1;
}

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

.gp-slider__dots {
	position: absolute;
	right: 40px;
	bottom: 40px;
	display: flex;
	align-items: center;
	gap: 8px;
	height: 30px;
	padding: 0 16px;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-slider__dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gp-bg-2);
	transition: background-color var(--gp-ease), width var(--gp-ease), height var(--gp-ease);
}

.gp-slider__dot.is-active {
	width: 12px;
	height: 12px;
	background: var(--gp-accent);
}

/* ---------- 3. В цифрах ---------- */

.gp-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	max-width: 1156px;
	margin-top: 40px;
	text-align: center;
}

.gp-stats b {
	display: block;
	font-size: 40px;
	line-height: 1.275;
}

.gp-stats span {
	display: block;
	margin-top: 4px;
}

/* ---------- 4. Мы предлагаем ---------- */

.gp-offers__scroll {
	width: min(var(--gp-container), 100% - 2 * var(--gp-gutter));
	margin-inline: auto;
}

.gp-offers__list {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gp-gap);
	padding-top: 10px;
}

.gp-offer {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: 298px;
	padding: 24px 20px 20px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-offer:nth-child(even) {
	background: var(--gp-bg-2);
}

.gp-offer__title {
	position: relative;
	z-index: 1;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-offer__text {
	position: relative;
	z-index: 1;
	max-width: 254px;
	margin-top: 8px;
}

/* Картинка - вырезанный предмет в левом нижнем углу, вплотную к краям карточки. Размеры по макету
   (218 x 174, 182 x 197, 139 x 171, 272 x 153 при карточке 312); на узких карточках - в той же доле ширины */
.gp-offer {
	--offer-scale: 1;
}

.gp-offer__image {
	position: absolute;
	left: 0;
	bottom: 0;
	width: min(calc(var(--offer-w) * var(--offer-scale)), var(--offer-share));
}

.gp-offer__image img {
	width: 100%;
	height: auto;
}

/* Доли - по планшетному макету, где на карточке 297 картинки те же, что на десктопе */
.gp-offer--1 { --offer-w: 218px; --offer-share: 74%; }
.gp-offer--2 { --offer-w: 182px; --offer-share: 62%; }
.gp-offer--3 { --offer-w: 139px; --offer-share: 47%; }
.gp-offer--4 { --offer-w: 272px; --offer-share: 92%; }

.gp-offer .gp-pill-btn {
	position: relative;
	z-index: 1;
	align-self: flex-end;
	margin-top: auto;
}

.gp-offer:hover {
	transform: translateY(-10px);
	box-shadow: var(--gp-shadow);
}

.gp-offer:hover .gp-pill-btn,
.gp-post:hover .gp-pill-btn {
	color: var(--gp-accent);
}

/* ---------- 5. Каталог ---------- */

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

.gp-cat {
	display: flex;
	align-items: center;
	gap: 10px;
	height: 40px;
	padding: 4px 20px 4px 4px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-cat img {
	box-sizing: content-box;
	width: 20px;
	height: 20px;
	padding: 6px;
	border-radius: 50%;
	background: var(--gp-white);
}

.gp-cat:hover,
.gp-cat:focus-visible {
	color: var(--gp-white);
	background: var(--gp-accent);
}

.gp-cat--china {
	color: var(--gp-white);
	background: var(--gp-teal);
}

.gp-cat--all {
	gap: 12px;
	padding: 4px 4px 4px 20px;
	background: var(--gp-bg-2);
}

.gp-cat__arrow {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	font-size: 16px;
	color: var(--gp-text);
	background: var(--gp-white);
}

/* ---------- 6. Портфолио: мозаика как в макете ---------- */

.gp-portfolio {
	width: min(1936px, 100%);
	margin-inline: auto;
	padding: 60px 0;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-portfolio__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	grid-template-areas:
		"w1 w2 w2 w6"
		"w1 w4 w5 w6"
		"w3 w4 w5 w6"
		"w3 w4 more more";
	/* Вторая строка - только «хвост» первой работы: так низ плиток сходится, как в макете */
	grid-template-rows: auto 53px auto auto;
	gap: var(--gp-gap);
}

.gp-work {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-work__image {
	flex: 1;
	min-height: 180px;
	background: var(--gp-placeholder);
}

.gp-work__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gp-work__body {
	padding: 12px 16px 16px;
}

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

.gp-work__text {
	margin-top: 4px;
}

.gp-work--1 { grid-area: w1; }
.gp-work--2 { grid-area: w2; }
.gp-work--3 { grid-area: w3; }
.gp-work--4 { grid-area: w4; }
.gp-work--5 { grid-area: w5; }
.gp-work--6 { grid-area: w6; }

/* Высоты картинок по макету: мозаика держится на них */
.gp-work--1 .gp-work__image { min-height: 330px; }
.gp-work--2 .gp-work__image { min-height: 280px; }
.gp-work--3 .gp-work__image { min-height: 306px; }
.gp-work--4 .gp-work__image { min-height: 375px; }
.gp-work--5 .gp-work__image { min-height: 244px; }

.gp-portfolio__more {
	grid-area: more;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-top: 24px;
}

.gp-portfolio__more p {
	max-width: 334px;
}

/* ---------- 7. Почему GIFTparad ---------- */

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

.gp-why__title {
	grid-column: span 3;
	align-self: center;
	margin: 0;
}

.gp-why__item {
	grid-column: span 3;
	padding: 20px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-why__item:nth-child(odd) {
	background: var(--gp-bg-2);
}

.gp-why__item--4,
.gp-why__item--5,
.gp-why__item--6 {
	grid-column: span 4;
}

.gp-why__name {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 12px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-icon-badge {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-size: 24px;
	color: var(--gp-accent);
	background: var(--gp-white);
}

/* ---------- 8. Кто с нами работал ---------- */

.gp-clients__viewport {
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.gp-clients__track {
	display: flex;
	align-items: center;
	gap: 40px;
	width: max-content;
	animation: gp-marquee 60s linear infinite;
}

.gp-clients__track:hover {
	animation-play-state: paused;
}

.gp-clients__track img {
	width: auto;
	max-width: none;
	height: 40px;
}

@keyframes gp-marquee {
	to {
		transform: translateX(calc(-50% - 20px));
	}
}

@media (prefers-reduced-motion: reduce) {
	.gp-clients__track {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: auto;
	}
}

/* ---------- 9. Как мы работаем ---------- */

.gp-steps {
	display: grid;
	grid-template-columns: 514fr 600fr;
	gap: 40px 101px;
	padding: 40px;
	border-radius: 30px;
	background: var(--gp-bg);
}

.gp-steps__intro .gp-h2 {
	margin-bottom: 20px;
}

.gp-steps__intro p + p {
	margin-top: 16px;
}

.gp-steps__image {
	width: 100%;
	height: 100%;
	min-height: 268px;
	object-fit: cover;
	border-radius: 20px;
	background: var(--gp-placeholder);
}

.gp-steps__list {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: var(--gp-gap);
}

.gp-steps__list li {
	min-height: 234px;
	padding: 20px;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-steps__num {
	display: flex;
	align-items: baseline;
	gap: 8px;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.275;
	color: var(--gp-accent);
}

.gp-steps__num small {
	font-size: 18px;
}

.gp-steps__list h3 {
	margin: 12px 0 4px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

/* ---------- 10. Прямые поставки из Китая: плашки заходят на фото ---------- */

.gp-china {
	display: grid;
	grid-template-columns: 327fr 111fr 327fr 93fr 437fr;
	align-items: center;
}

.gp-china__text {
	grid-column: 1;
	grid-row: 1;
	align-self: start;
}

.gp-china__text .gp-h2 {
	margin-bottom: 20px;
}

.gp-china__text .gp-btn {
	margin-top: 40px;
}

.gp-china__badges {
	position: relative;
	z-index: 1;
	grid-column: 3 / span 2;
	grid-row: 1;
	display: grid;
	gap: var(--gp-gap);
}

.gp-china__badges li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	min-height: 80px;
	padding: 20px;
	border-radius: 12px;
	font-size: var(--gp-h3);
	font-weight: 700;
	background: var(--gp-bg);
}

.gp-china__badges li:nth-child(even) {
	background: var(--gp-bg-2);
}

.gp-china__badges b {
	flex-shrink: 0;
	padding: 10px 20px;
	border-radius: 30px;
	font-size: var(--gp-body);
	font-weight: 600;
	color: var(--gp-white);
	background: var(--gp-teal);
}

.gp-china__image {
	grid-column: 4 / span 2;
	grid-row: 1;
	width: 100%;
	height: 428px;
	object-fit: cover;
	border-radius: 20px;
	background: var(--gp-placeholder);
}

/* ---------- 11. Тексты ---------- */

.gp-offer-text,
.gp-approach {
	display: grid;
	grid-template-columns: 600fr 638fr;
	align-items: start;
	gap: 56px;
}

.gp-approach {
	grid-template-columns: 642fr 600fr;
	gap: 19px;
}

.gp-offer-text__main .gp-lead + .gp-lead {
	margin-top: 12px;
}

.gp-offer-text__label {
	margin-top: 60px;
}

.gp-dots {
	display: grid;
	gap: 9px;
	margin-top: 16px;
}

.gp-dots li {
	position: relative;
	padding-left: 24px;
}

.gp-dots li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 6px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--gp-teal);
}

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

.gp-card--cta .gp-h2 {
	max-width: 530px;
	margin-bottom: 48px;
}

.gp-card--cta p {
	max-width: 495px;
}

.gp-card--cta .gp-btn {
	margin-top: 20px;
}

.gp-approach .gp-card--cta .gp-h2 {
	margin-bottom: 52px;
}

.gp-approach__text {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-self: stretch;
	gap: 24px;
}

.gp-merch {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-placeholder);
}

.gp-merch img {
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* ---------- 12. Бренды ---------- */

.gp-brands__list {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: var(--gp-gap);
	padding-top: 10px;
}

.gp-brand {
	display: flex;
	height: 120px;
	padding: 16px 20px;
	border-radius: 12px;
	background: var(--gp-bg);
}

.gp-brand img {
	width: 100%;
	height: 100%;
	padding: 22px 17px;
	border-radius: 12px;
	object-fit: contain;
	background: var(--gp-white);
}

/* Шахматный порядок фонов, как в макете: 6 в ряд */
.gp-brands__list li:nth-child(12n + 2) .gp-brand,
.gp-brands__list li:nth-child(12n + 4) .gp-brand,
.gp-brands__list li:nth-child(12n + 6) .gp-brand,
.gp-brands__list li:nth-child(12n + 7) .gp-brand,
.gp-brands__list li:nth-child(12n + 9) .gp-brand,
.gp-brands__list li:nth-child(12n + 11) .gp-brand {
	background: var(--gp-bg-2);
}

a.gp-brand:hover {
	transform: translateY(-10px);
	box-shadow: var(--gp-shadow);
}

/* ---------- 12. Тексты 2 ---------- */

.gp-seo {
	width: min(1920px, 100%);
	margin-inline: auto;
	padding: 60px 0;
	border-radius: 30px;
	background: var(--gp-bg);
}

.gp-seo__row + .gp-seo__row {
	margin-top: 40px;
}

.gp-seo__row--1,
.gp-seo__row--2 {
	display: grid;
	gap: 49px;
	align-items: start;
}

.gp-seo__row--1 {
	grid-template-columns: 824fr 421fr;
}

.gp-seo__row--2 {
	grid-template-columns: 421fr 833fr;
	gap: 40px;
}

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

.gp-seo__image {
	width: 100%;
	border-radius: 20px;
	object-fit: cover;
	background: var(--gp-placeholder);
}

.gp-seo__row--1 .gp-seo__image {
	height: 396px;
}

.gp-seo__row--2 .gp-seo__image {
	height: 204px;
}

.gp-seo__note {
	margin-top: 8px;
	padding: 20px;
	border-radius: 20px;
	font-size: var(--gp-h3);
	font-weight: 700;
	text-align: center;
	background: var(--gp-white);
}

.gp-seo__cols {
	display: grid;
	grid-template-columns: 601fr 641fr;
	gap: 52px;
}

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

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

.gp-types__intro {
	padding-right: 20px;
}

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

.gp-type {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 16px;
	min-height: 328px;
	padding: 20px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-type h3 {
	margin-bottom: 12px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-type p + p {
	margin-top: 8px;
}

.gp-type__image {
	display: block;
	flex-shrink: 0;
	align-self: flex-start;
	margin: auto 0 -20px -20px;
}

.gp-type__image img {
	width: 100%;
	height: auto;
}

/* Размеры по макету: 242 x 140, 180 x 140, 174 x 134; у широкой карточки - 140 x 198 во всю высоту слева */
.gp-type:nth-of-type(2) .gp-type__image { width: 242px; }
.gp-type:nth-of-type(3) .gp-type__image { width: 180px; }
.gp-type:nth-of-type(4) .gp-type__image { width: 174px; }

.gp-type--wide {
	grid-column: span 2;
	flex-direction: row;
	align-items: center;
	gap: 36px;
	min-height: 198px;
	padding-block: 0;
}

.gp-type--wide .gp-type__image {
	width: 140px;
	align-self: flex-end;
	margin: 0 0 0 -20px;
}

.gp-type--wide > div {
	padding: 20px 0;
}

/* ---------- 13. Вопросы ---------- */

.gp-faq__item {
	border-radius: 12px;
	background: var(--gp-bg);
	transition: background-color var(--gp-ease);
}

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

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

.gp-faq__item summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 22px 40px;
	font-size: var(--gp-h3);
	font-weight: 700;
	list-style: none;
	cursor: pointer;
	transition: color var(--gp-ease);
}

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

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

.gp-faq__icon {
	font-size: 24px;
}

.gp-faq__close,
.gp-faq__item[open] .gp-faq__open {
	display: none;
}

.gp-faq__item[open] .gp-faq__close {
	display: block;
}

.gp-faq__answer {
	padding: 0 40px 20px;
	margin-top: -6px;
}

.gp-faq__answer p + p {
	margin-top: 8px;
}

/* ---------- 14. Свяжитесь с нами ---------- */

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

.gp-contact__info {
	display: flex;
	flex-direction: column;
}

.gp-contact__info .gp-h2 {
	margin-bottom: 16px;
}

.gp-contact__info > p {
	max-width: 381px;
}

.gp-contact__lines {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 50px;
	margin-top: auto;
	padding-top: 40px;
}

.gp-contact__big {
	font-size: 24px;
	font-weight: 700;
	white-space: nowrap;
}

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

.gp-contact__open {
	margin-top: 16px;
}

.gp-socials {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.gp-socials a {
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	font-size: 24px;
	color: var(--gp-muted);
	background: var(--gp-bg-2);
}

.gp-socials a:hover {
	color: var(--gp-white);
	background: var(--gp-accent);
}

.gp-form {
	display: grid;
	gap: 8px;
	padding: 40px;
	border-radius: 20px;
	background: var(--gp-white);
}

.gp-form__title {
	margin-bottom: 12px;
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-form__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 20px;
	margin-top: 12px;
}

.gp-consents {
	display: grid;
	gap: 6px;
	max-width: 290px;
}

.gp-form__bottom .gp-form__error {
	flex-basis: 100%;
	margin-top: 0;
}

.gp-map {
	position: relative;
	height: 360px;
	margin-top: 40px;
	overflow: hidden;
	border-radius: 20px;
	background: var(--gp-bg-2);
}

/* Пока виджет собирается, он прозрачный и не ловит клики: видна заглушка со ссылкой.
   Готовая карта проявляется поверх, ссылка под ней прячется после проявления */
.gp-map iframe {
	position: absolute;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	border: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

.gp-map.is-loaded iframe {
	opacity: 1;
	pointer-events: auto;
}

.gp-map__link {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-weight: 500;
	text-decoration: underline;
	white-space: nowrap;
	transition: visibility 0s 0.5s;
}

.gp-map.is-loaded .gp-map__link {
	visibility: hidden;
}

/* ---------- 15. Новости ---------- */

.gp-news__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gp-gap);
	padding-top: 10px;
}

.gp-post {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-height: 360px;
	padding: 20px;
	border-radius: 20px;
	background: var(--gp-bg);
}

.gp-post__image {
	position: relative;
	display: block;
	aspect-ratio: 381 / 190;
	overflow: hidden;
	border-radius: 12px;
	background: var(--gp-placeholder);
}

.gp-post__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gp-post .gp-pill-btn {
	position: absolute;
	right: 10px;
	bottom: 10px;
}

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

.gp-post:hover {
	background: var(--gp-bg-2);
	transform: translateY(-10px);
	box-shadow: var(--gp-shadow);
}

/* ---------- Подвал ---------- */

.gp-footer {
	margin-top: var(--gp-section);
	border-radius: 20px 20px 0 0;
	background: var(--gp-bg);
}

.gp-footer__inner {
	display: grid;
	grid-template-columns: 437fr 327fr 328fr 197fr;
	grid-template-areas:
		"contacts col1 col2 col3"
		"contacts col1 col2 join";
	grid-template-rows: auto 1fr;
	column-gap: 5px;
	padding: 40px 0 31px;
}

.gp-footer__contacts {
	grid-area: contacts;
	display: grid;
	align-content: start;
	gap: 20px;
}

.gp-footer__logo img {
	width: 242px;
	height: auto;
	margin-bottom: 20px;
}

.gp-footer__phone {
	font-size: 24px;
	font-weight: 700;
}

.gp-footer__mail,
.gp-footer__address {
	font-size: var(--gp-h3);
	font-weight: 700;
}

.gp-footer__phone:hover,
.gp-footer__mail:hover {
	color: var(--gp-accent);
}

.gp-footer__address {
	max-width: 312px;
}

.gp-footer__col:nth-of-type(1) { grid-area: col1; }
.gp-footer__col:nth-of-type(2) { grid-area: col2; }
.gp-footer__col:nth-of-type(3) { grid-area: col3; }

.gp-footer__title {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
	font-size: var(--gp-h3);
	font-weight: 700;
	list-style: none;
	pointer-events: none;
}

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

.gp-footer__title svg {
	display: none;
	width: 20px;
	height: 20px;
	transition: transform var(--gp-ease);
}

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

.gp-footer__col a,
.gp-footer__col button {
	font-size: var(--gp-body);
	text-align: left;
}

.gp-footer__col a:hover,
.gp-footer__col button:hover {
	color: var(--gp-accent);
}

.gp-footer__join {
	grid-area: join;
	margin-top: 53px;
}

.gp-footer__join .gp-socials {
	margin-top: 12px;
}

.gp-footer__bottom {
	padding: 19px 0;
	font-size: var(--gp-body);
	color: var(--gp-muted);
	background: var(--gp-bg-2);
}

/* ---------- Окно заявки, уведомление, наверх ---------- */

.gp-modal {
	width: min(440px, calc(100% - 32px));
	max-height: calc(100% - 32px);
	padding: 0;
	border: 0;
	border-radius: 20px;
	color: var(--gp-text);
	background: var(--gp-white);
}

.gp-modal::backdrop {
	background: rgba(54, 51, 51, 0.5);
}

.gp-modal .gp-form {
	position: relative;
	padding: 32px;
}

.gp-modal__title {
	margin-bottom: 12px;
	font-size: 24px;
	font-weight: 700;
}

.gp-modal__close {
	position: absolute;
	right: 16px;
	top: 16px;
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	font-size: 20px;
	color: var(--gp-muted);
}

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

.gp-modal .gp-btn {
	margin-top: 8px;
}

.gp-modal .gp-consents {
	max-width: none;
	margin-top: 4px;
}

.gp-toast {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 100;
	display: flex;
	align-items: flex-start;
	gap: 8px;
	max-width: min(380px, calc(100% - 48px));
	padding: 16px 12px 16px 20px;
	border-radius: 12px;
	font-weight: 500;
	background: var(--gp-white);
	box-shadow: var(--gp-shadow);
}

/* С фото и заголовком - как «Товар добавлен в избранное» в макете */
.gp-toast--rich {
	max-width: min(521px, calc(100% - 48px));
	padding: 20px 12px 20px 20px;
	border: 1px solid var(--gp-line);
	font-weight: 400;
}

.gp-toast img {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 8px;
	object-fit: contain;
	background: var(--gp-white);
}

.gp-toast > div {
	flex: 1;
	min-width: 0;
}

.gp-toast__title {
	margin-bottom: 4px;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.3;
}

.gp-toast__close {
	display: grid;
	place-items: center;
	flex-shrink: 0;
	width: 24px;
	height: 24px;
	margin-top: -8px;
	font-size: 12px;
	color: var(--gp-muted);
}

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

.gp-up {
	position: fixed;
	right: 24px;
	bottom: 24px;
	z-index: 40;
	display: grid;
	place-items: center;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	font-size: 20px;
	color: var(--gp-white);
	background: var(--gp-accent);
	box-shadow: var(--gp-shadow);
}

.gp-up:hover {
	background: var(--gp-accent-hover);
}

/* ---------- Документы о персональных данных: подвал, галочка, cookie-окно ---------- */

.gp-footer__legal {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 16px 40px;
}

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

/* Справа отступ под кнопку «Наверх»: она закреплена в углу экрана и закрывала ссылки */
.gp-footer__docs {
	display: grid;
	gap: 4px;
	flex-shrink: 0;
	margin: 0;
	padding: 0 56px 0 0;
	list-style: none;
	font-size: var(--gp-small);
}

.gp-footer__docs a,
.gp-footer__docs button {
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	background: none;
	cursor: pointer;
}

.gp-footer__docs a:hover,
.gp-footer__docs button:hover {
	color: var(--gp-text);
}

.gp-consents__policy {
	padding-left: 22px;
	font-size: 12px;
	line-height: 1.3;
	color: var(--gp-muted);
	text-decoration: underline;
}

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

/* Скрытое окно не должно перекрывать низ страницы и ловить клики */
.gp-cookie {
	position: fixed;
	left: 50%;
	bottom: 24px;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: 24px;
	width: min(1100px, calc(100% - 32px));
	padding: 20px 24px;
	border-radius: 20px;
	font-size: var(--gp-small);
	line-height: 1.45;
	color: var(--gp-text);
	background: var(--gp-white);
	box-shadow: var(--gp-shadow);
	transform: translate(-50%, 16px);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity var(--gp-ease), transform var(--gp-ease), visibility 0s linear 0.2s;
}

.gp-cookie.visible {
	transform: translate(-50%, 0);
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transition: opacity var(--gp-ease), transform var(--gp-ease);
}

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

.gp-cookie__actions {
	display: grid;
	justify-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.gp-cookie__decline {
	padding: 0;
	font-size: var(--gp-small);
	color: var(--gp-muted);
	text-decoration: underline;
	background: none;
	cursor: pointer;
}

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

@media (max-width: 1023px) {
	.gp-footer__legal {
		flex-direction: column;
	}

	.gp-footer__docs {
		padding-right: 0;
	}

	.gp-cookie {
		flex-direction: column;
		align-items: stretch;
		gap: 14px;
		bottom: 16px;
		padding: 16px;
		font-size: 13px;
	}

	.gp-cookie__actions {
		grid-template-columns: auto auto;
		align-items: center;
		justify-content: start;
		gap: 20px;
	}
}

@media (max-width: 599px) {
	.gp-footer__requisites,
	.gp-footer__docs {
		font-size: 12px;
	}

	.gp-footer__docs {
		padding: 0 0 8px;
	}
}

/* ---------- Внутренние страницы: крошки, заголовок, «Другие возможности», карточки, пагинация ---------- */

.gp-page {
	padding-bottom: 20px;
}

.gp-crumbs {
	margin-top: 30px;
	font-size: 14px;
	line-height: 18px;
	color: var(--gp-muted);
}

.gp-crumbs ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 8px;
}

.gp-crumbs li + li::before {
	content: "/";
	margin-right: 8px;
}

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

.gp-h1 {
	margin-bottom: 16px;
	font-size: var(--gp-h2);
	font-weight: 700;
	line-height: 1.275;
}

.gp-crumbs + .gp-container {
	margin-top: 20px;
}

.gp-more-links ul {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.gp-pill {
	display: inline-flex;
	align-items: center;
	min-height: 50px;
	padding: 12px 30px;
	border: 1px solid var(--gp-text);
	border-radius: 30px;
	font-size: var(--gp-small);
	line-height: 1.3;
	background: var(--gp-white);
}

.gp-pill--accent {
	border-color: var(--gp-teal);
	color: var(--gp-teal);
}

.gp-pill:hover {
	border-color: var(--gp-accent);
	color: var(--gp-white);
	background: var(--gp-accent);
}

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

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

.gp-cards__item:nth-child(even) {
	background: var(--gp-bg-2);
}

.gp-cards__item h3 {
	margin-bottom: 12px;
	font-size: var(--gp-h3);
	font-weight: 700;
	line-height: 1.3;
}

.gp-cards__item h3::first-letter {
	text-transform: uppercase;
}

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

/* Пагинация OpenCart: ul.pagination с li.active */
.gp .pagination {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 40px;
}

.gp .pagination a,
.gp .pagination span {
	display: grid;
	place-items: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border-radius: 8px;
	font-weight: 500;
	background: var(--gp-bg);
}

.gp .pagination a:hover {
	color: var(--gp-white);
	background: var(--gp-accent);
}

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

@media (max-width: 1023px) {
	/* Крошки в одну строку с прокруткой вбок и полоской под ней, как в макете */
	.gp-crumbs {
		margin-top: 20px;
	}

	.gp-crumbs ol {
		flex-wrap: nowrap;
		overflow-x: auto;
		padding-bottom: 8px;
		white-space: nowrap;
		scrollbar-width: thin;
		scrollbar-color: var(--gp-bg-2) transparent;
	}

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

@media (max-width: 599px) {
	.gp-more-links ul {
		gap: 8px;
	}

	.gp-pill {
		min-height: 40px;
		padding: 10px 20px;
	}

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

/* ======================================================================
   Ноутбуки: контейнер уже 1294, колонки сжимаются
   ====================================================================== */

@media (max-width: 1279px) {
	.gp-header__main {
		gap: 20px;
	}

	.gp-header__logo img {
		width: 200px;
	}

	.gp-nav {
		column-gap: 28px;
	}

	:root {
		--gp-h1: 36px;
	}

	.gp-hero__features {
		column-gap: 32px;
	}

	.gp-steps {
		column-gap: 40px;
	}

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

	.gp-china__badges li {
		font-size: 18px;
	}
}

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

@media (max-width: 1023px) {
	:root {
		--gp-h1: 32px;
		--gp-h2: 28px;
		--gp-h3: 18px;
	}

	.gp-h2 {
		margin-bottom: 24px;
	}

	/* Шапка: бургер, логотип по центру, иконки справа */
	.gp-header {
		border-bottom: 1px solid var(--gp-line);
	}

	.gp-header__pre,
	.gp-nav,
	.gp-header__cta {
		display: none;
	}

	.gp-header__main {
		display: grid;
		grid-template-columns: 1fr auto 1fr;
		gap: 16px;
		height: 60px;
		margin: 0;
	}

	.gp-header__burger {
		display: block;
		grid-column: 1;
		grid-row: 1;
	}

	.gp-header__logo {
		grid-column: 2;
		grid-row: 1;
		margin: 0;
	}

	.gp-header__logo img {
		width: 150px;
	}

	.gp-header__icons {
		grid-column: 3;
		grid-row: 1;
		justify-self: end;
		gap: 16px;
	}

	.gp-header__icon {
		font-size: 28px;
	}

	.gp-header__icon--search {
		display: flex;
	}

	.gp-header__count {
		min-width: 24px;
		height: 24px;
		font-size: 12px;
	}

	/* Поиск открывается строкой под шапкой */
	.gp-search {
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		display: none;
		max-width: none;
		padding: 12px var(--gp-gutter);
		background: var(--gp-white);
		box-shadow: var(--gp-shadow);
	}

	.gp-search-open .gp-search {
		display: block;
	}

	.gp-search__submit {
		right: calc(var(--gp-gutter) + 14px);
	}

	/* Баннер: текст над картинкой (макет 768: 736 x 296 и 736 x 200, скругление 16, между ними 8) */
	.gp-hero {
		grid-template-columns: 1fr;
		gap: 8px;
		margin-top: 12px;
	}

	.gp-hero__content {
		min-height: 0;
		padding: 24px 20px 24px;
		border-radius: 16px;
	}

	.gp-hero__title {
		line-height: 1.16;
	}

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

	.gp-hero__features {
		justify-content: space-between;
		padding-top: 24px;
	}

	.gp-hero__media {
		height: 200px;
		border-radius: 16px;
	}

	.gp-slider__arrow {
		width: 40px;
		height: 40px;
		margin-top: -20px;
		opacity: 1;
	}

	.gp-slider__arrow--prev {
		left: 12px;
	}

	.gp-slider__arrow--next {
		right: 12px;
	}

	.gp-slider__dots {
		right: 50%;
		bottom: 12px;
		transform: translateX(50%);
	}

	.gp-stats b {
		font-size: 32px;
	}

	.gp-stats span {
		font-size: 12px;
	}

	/* Мы предлагаем: лента свайпом до края экрана */
	.gp-offers__scroll {
		width: 100%;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.gp-offers__scroll::-webkit-scrollbar {
		display: none;
	}

	.gp-offers__list {
		display: flex;
		width: max-content;
		padding: 10px var(--gp-gutter) 20px;
	}

	/* Карточки по макету 768: 297 x 298, шаг 313 */
	.gp-offer {
		width: 297px;
		min-height: 298px;
		scroll-snap-align: start;
		scroll-margin-left: var(--gp-gutter);
		padding: 20px 16px 16px;
	}

	.gp-offer:hover {
		transform: none;
	}

	/* Портфолио по макету 768: ряды «узкая + широкая» ёлочкой, 297 и 423. Три дорожки 297/110/297:
	   узкая - одна крайняя дорожка, широкая - средняя и вторая крайняя */
	.gp-portfolio {
		padding: 40px 0;
	}

	.gp-portfolio__grid {
		grid-template-columns: 297fr 110fr 297fr;
		grid-template-areas:
			"w1 w2 w2"
			"w3 w3 w4"
			"w5 w6 w6"
			"more more more";
		grid-template-rows: none;
	}

	.gp-work .gp-work__image {
		min-height: 0 !important;
		height: 234px;
		flex: none;
	}

	.gp-portfolio__more {
		padding-top: 14px;
	}

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

	.gp-why__title,
	.gp-why__item,
	.gp-why__item--4,
	.gp-why__item--5,
	.gp-why__item--6 {
		grid-column: span 1;
	}

	.gp-why__title {
		grid-column: 1 / -1;
	}

	.gp-why__title br {
		display: none;
	}

	.gp-why__item {
		padding: 16px;
	}

	/* Фон по колонкам, как в макете: левая светлая, правая тёмная */
	.gp-why .gp-why__item {
		background: var(--gp-bg);
	}

	.gp-why .gp-why__item--2,
	.gp-why .gp-why__item--4,
	.gp-why .gp-why__item--6 {
		background: var(--gp-bg-2);
	}

	.gp-why__name {
		gap: 12px;
	}

	.gp-steps {
		grid-template-columns: 1fr;
		gap: 30px;
		padding: 30px;
	}

	.gp-steps__image {
		max-width: 600px;
		height: 268px;
		min-height: 0;
	}

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

	.gp-steps__list li {
		min-height: 0;
	}

	/* Макет 768: плашки 423 слева заходят на фото 425 x 324, которое начинается с 313 */
	.gp-china {
		grid-template-columns: 313fr 110fr 313fr;
		gap: 24px 0;
	}

	.gp-china__text {
		grid-column: 1 / -1;
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: end;
		column-gap: 24px;
	}

	.gp-china__text .gp-h2 {
		grid-column: 1 / -1;
	}

	.gp-china__text .gp-btn {
		grid-column: 2;
		grid-row: 2;
		margin: 0;
	}

	.gp-china__badges {
		grid-column: 1 / span 2;
		grid-row: 2;
		gap: 8px;
	}

	.gp-china__badges li {
		min-height: 60px;
		padding: 10px 16px;
	}

	.gp-china__badges b {
		padding: 6px 12px;
		font-size: 14px;
	}

	.gp-china__image {
		grid-column: 2 / span 2;
		grid-row: 2;
		height: 324px;
	}

	.gp-offer-text,
	.gp-approach {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.gp-approach .gp-card--cta {
		order: -1;
	}

	.gp-offer-text__label {
		margin-top: 24px;
	}

	.gp-card {
		padding: 30px;
	}

	.gp-card--cta .gp-h2,
	.gp-approach .gp-card--cta .gp-h2 {
		max-width: none;
		margin-bottom: 24px;
	}

	.gp-catalog__list {
		gap: 12px;
	}

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

	.gp-brands__list li .gp-brand,
	.gp-brands__list li:nth-child(n) .gp-brand {
		background: var(--gp-bg);
	}

	.gp-brands__list li:nth-child(8n + 2) .gp-brand,
	.gp-brands__list li:nth-child(8n + 4) .gp-brand,
	.gp-brands__list li:nth-child(8n + 5) .gp-brand,
	.gp-brands__list li:nth-child(8n + 7) .gp-brand {
		background: var(--gp-bg-2);
	}

	.gp-brand {
		height: 104px;
		padding: 12px;
	}

	.gp-seo {
		padding: 40px 0;
		border-radius: 20px;
	}

	/* Макет 768: картинки 235 x 221 и 235 x 180 */
	.gp-seo__row--1 {
		grid-template-columns: 1fr 235px;
		gap: 16px;
	}

	.gp-seo__row--1 .gp-seo__image {
		height: 221px;
	}

	.gp-seo__row--2 {
		grid-template-columns: 235px 1fr;
		gap: 16px;
	}

	.gp-seo__row--2 .gp-seo__aside {
		display: contents;
	}

	.gp-seo__row--2 .gp-seo__image {
		height: 180px;
	}

	.gp-seo__note {
		grid-column: 1 / -1;
		grid-row: 2;
		margin: 0;
		font-size: var(--gp-small);
	}

	.gp-seo__cols {
		gap: 24px;
	}

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

	.gp-types__intro {
		grid-column: 1 / -1;
		padding: 0;
	}

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

	.gp-type:last-child {
		grid-column: 1 / -1;
		flex-direction: row;
		align-items: flex-end;
		min-height: 130px;
	}

	.gp-type:last-child .gp-type__image {
		order: -1;
		width: 125px;
		margin: 0 0 -16px -16px;
	}

	.gp-type {
		min-height: 0;
		padding: 16px;
	}

	.gp-type__image {
		margin: auto 0 -16px -16px;
	}

	.gp-type--wide .gp-type__image {
		margin: 0 0 -16px -16px;
	}

	.gp-merch img {
		height: 120px;
	}

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

	.gp-faq__answer {
		padding: 0 20px 16px;
	}

	/* Макет 768: слева контакты, справа форма 392 */
	.gp-contact__card {
		grid-template-columns: 1fr 392px;
		gap: 24px;
		padding: 30px;
	}

	.gp-contact__lines {
		display: grid;
		gap: 12px;
	}

	.gp-contact__big {
		font-size: 18px;
	}

	.gp-form {
		padding: 24px 20px;
	}

	.gp-form__bottom .gp-btn {
		width: 100%;
	}

	.gp-map {
		height: 280px;
		margin-top: 28px;
	}

	/* Новости: макет 768 - две карточки по 360, остальные свайпом */
	.gp-news__list {
		display: flex;
		margin: 0 calc(-1 * var(--gp-gutter));
		padding: 10px var(--gp-gutter) 20px;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scrollbar-width: none;
	}

	.gp-news__list::-webkit-scrollbar {
		display: none;
	}

	.gp-post {
		flex: 0 0 calc((100% - var(--gp-gap) - 2 * var(--gp-gutter)) / 2);
		min-height: 324px;
		scroll-snap-align: start;
		scroll-margin-left: var(--gp-gutter);
	}

	.gp-post:hover {
		transform: none;
		box-shadow: none;
	}

	/* Контакты раскладываются прямо в сетку подвала: логотип, телефон | почта, адрес | соцсети */
	.gp-footer__inner {
		grid-template-columns: 1fr 1fr;
		grid-template-areas: none;
		gap: 16px 24px;
		padding-top: 24px;
	}

	.gp-footer__contacts {
		display: contents;
	}

	.gp-footer__contacts > :nth-child(1) {
		grid-row: 1;
		grid-column: 1 / -1;
	}

	.gp-footer__contacts > :nth-child(2) {
		grid-row: 2;
		grid-column: 1;
	}

	.gp-footer__contacts > :nth-child(3) {
		grid-row: 2;
		grid-column: 2;
	}

	.gp-footer__contacts > :nth-child(4) {
		grid-row: 3;
		grid-column: 1;
		margin-bottom: 8px;
	}

	.gp-footer__col:nth-of-type(n) {
		grid-area: auto;
		grid-column: 1 / -1;
	}

	.gp-footer__col:nth-of-type(1) {
		margin-top: 8px;
	}

	.gp-footer__logo img {
		width: 180px;
		margin: 0;
	}

	.gp-footer__phone {
		font-size: 20px;
	}

	.gp-footer__mail,
	.gp-footer__address {
		font-size: var(--gp-body);
	}

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

	.gp-footer__col {
		border-top: 1px solid var(--gp-bg-2);
	}

	.gp-footer__title {
		margin: 0;
		padding: 16px 0;
		pointer-events: auto;
		cursor: pointer;
	}

	.gp-footer__title svg {
		display: block;
	}

	.gp-footer__col[open] .gp-footer__title svg {
		transform: rotate(-90deg);
	}

	.gp-footer__col ul {
		padding-bottom: 16px;
	}

	.gp-footer__join {
		grid-row: 3;
		grid-column: 2;
		margin: 0;
	}

	.gp-footer__join .gp-socials {
		margin-top: 8px;
	}

	.gp-footer__bottom {
		padding: 6px 0;
		font-size: 12px;
	}

	.gp-up {
		right: 16px;
		bottom: 16px;
		width: 44px;
		height: 44px;
	}
}

/* ======================================================================
   Телефон (макет 480)
   ====================================================================== */

@media (max-width: 599px) {
	:root {
		--gp-h1: 28px;
		--gp-h2: 24px;
		--gp-h3: 16px;
		--gp-body: 14px;
		--gp-small: 12px;
		--gp-section: 40px;
	}

	.gp-h2,
	.gp-section__head {
		margin-bottom: 20px;
	}

	.gp-header__logo img {
		width: 124px;
	}

	.gp-header__icons {
		gap: 10px;
	}

	.gp-header__icon {
		font-size: 24px;
	}

	.gp-header__count {
		min-width: 20px;
		height: 20px;
		font-size: 11px;
	}

	.gp-notice__text {
		font-size: 11px;
	}

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

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

	.gp-hero__buttons {
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 12px;
	}

	.gp-hero__buttons .gp-btn {
		padding: 0 8px;
	}

	.gp-hero__features {
		display: none;
	}

	.gp-hero__media {
		height: 160px;
	}

	.gp-stats {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 20px;
		margin-top: 20px;
	}

	.gp-stats span {
		font-size: 14px;
	}

	/* Карточки по макету 480: 255 x 224, шаг 271; картинки в 0,72 от десктопных */
	.gp-offer {
		--offer-scale: 0.72;
		width: 255px;
		min-height: 224px;
	}

	/* Пилюли: высота и кегль как на десктопе; в макете 480 показаны первые девять разделов */
	.gp-cat {
		font-size: 16px;
	}

	.gp-catalog__list li:nth-child(n + 10):not(:last-child) {
		display: none;
	}

	/* Портфолио по макету 480: ёлочка 177 и 255 */
	.gp-portfolio__grid {
		grid-template-columns: 177fr 62fr 177fr;
	}

	.gp-work .gp-work__image {
		height: 150px;
	}

	.gp-work__body {
		padding: 10px 12px 12px;
	}

	.gp-portfolio__more {
		flex-direction: column;
		align-items: flex-start;
	}

	/* Почему GIFTparad: в макете 480 две колонки по 216 */
	.gp-why {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gp-why__item {
		padding: 12px;
	}

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

	.gp-steps__image {
		height: 180px;
	}

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

	/* Макет 480: фото 448 x 324 под текстом, плашки 423 заходят на него снизу */
	.gp-china {
		grid-template-columns: 1fr;
		gap: 20px 0;
	}

	.gp-china__text {
		display: block;
	}

	.gp-china__text .gp-btn {
		margin-top: 20px;
	}

	.gp-china__badges {
		grid-column: 1;
		grid-row: 3;
		margin: -54px 12px 0;
	}

	.gp-china__badges li {
		font-size: 16px;
	}

	.gp-china__image {
		grid-column: 1;
		grid-row: 2;
		height: 324px;
	}

	/* Макет 480: три в ряд, 139 x 84, внутри белая 115 x 60 */
	.gp-brands__list {
		grid-template-columns: repeat(3, 1fr);
	}

	.gp-brand {
		height: 84px;
		padding: 12px;
	}

	.gp-brand img {
		padding: 6px 10px;
	}

	.gp-brands__list li:nth-child(n) .gp-brand {
		background: var(--gp-bg);
	}

	.gp-brands__list li:nth-child(6n + 2) .gp-brand,
	.gp-brands__list li:nth-child(6n + 4) .gp-brand,
	.gp-brands__list li:nth-child(6n + 6) .gp-brand {
		background: var(--gp-bg-2);
	}

	.gp-seo__row--1,
	.gp-seo__row--2,
	.gp-seo__cols,
	.gp-types {
		grid-template-columns: 1fr;
	}

	/* Макет 480: картинки в половину ширины, 216 x 166 и 216 x 144 */
	.gp-seo__row--1 .gp-seo__image {
		width: calc(50% - 8px);
		height: 166px;
	}

	.gp-seo__row--2 .gp-seo__image {
		grid-row: 1;
		width: calc(50% - 8px);
		height: 144px;
	}

	.gp-seo__note {
		grid-row: 2;
	}

	.gp-seo__row--2 .gp-seo__text {
		grid-row: 3;
	}

	.gp-type,
	.gp-type--wide,
	.gp-type:last-child {
		flex-direction: column;
		align-items: flex-start;
		gap: 12px;
	}

	.gp-type--wide > div {
		padding: 16px 0 0;
	}

	.gp-type:last-child .gp-type__image {
		order: 0;
	}

	.gp-type--wide .gp-type__image {
		order: 1;
		align-self: flex-start;
		width: 100px;
	}

	.gp-merch img {
		height: 100px;
	}

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

	.gp-contact__info {
		display: grid;
		grid-template-columns: 1fr auto;
		align-items: center;
		column-gap: 16px;
	}

	.gp-contact__info .gp-h2,
	.gp-contact__info > p:not(.gp-contact__open),
	.gp-contact__lines {
		grid-column: 1 / -1;
	}

	.gp-contact__lines {
		display: flex;
		gap: 12px 32px;
		padding-top: 20px;
	}

	.gp-contact__open {
		margin-top: 16px;
	}

	.gp-contact__info .gp-socials {
		margin-top: 16px;
	}

	.gp-map {
		height: 200px;
		margin-top: 20px;
	}

	.gp-contact__card {
		padding: 20px;
	}

	/* Новости: макет 480 - одна карточка на всю ширину, остальные свайпом */
	.gp-post {
		flex-basis: calc(100% - 2 * var(--gp-gutter));
		min-height: 292px;
	}

	.gp-modal .gp-form {
		padding: 24px 20px;
	}
}

/* Узкие телефоны (360-419): две колонки «Почему GIFTparad» и две кнопки баннера в ряд по макету 480
   здесь не помещаются */
@media (max-width: 419px) {
	.gp-why {
		grid-template-columns: 1fr;
	}

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

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