.gift-page__wrap {
	margin-bottom: 48px;
}

.gift-tabs {
	max-width: 1120px;
	margin: 0 auto;
}

.gift-tabs__list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	border-bottom: 2px solid #222;
}

.gift-tabs__button {
	min-height: 62px;
	padding: 12px 16px;
	border: 1px solid #dedede;
	border-bottom: 0;
	border-radius: 0;
	background: #fff;
	color: #555;
	font-size: 18px;
	font-weight: 700;
	cursor: pointer;
}

.gift-tabs__button + .gift-tabs__button {
	border-left: 0;
}

.gift-tabs__button.active {
	border-color: #f45b4e;
	background: #f45b4e;
	color: #fff;
}

.gift-tabs__button:focus-visible {
	position: relative;
	z-index: 1;
	outline: 3px solid #222;
	outline-offset: -4px;
}

.gift-tabs__panel[hidden] {
	display: none !important;
}

.gift-crop {
	position: relative;
	overflow: hidden;
	margin-top: 32px;
	background: #fff;
}

.gift-crop img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	max-width: none;
}

.gift-crop--shirt {
	aspect-ratio: 1463 / 2050;
}

.gift-crop--prizes {
	aspect-ratio: 1463 / 2885;
}

.gift-crop--prizes img {
	top: -71%;
}

.gift-collection {
	padding-top: 40px;
}

.gift-collection__section {
	padding: 48px 0;
	border-top: 1px solid #e8e8e8;
	text-align: center;
}

.gift-collection__section:first-child {
	padding-top: 0;
	border-top: 0;
}

.gift-collection__section h3 {
	margin: 0;
	color: #222;
	font-size: 32px;
	line-height: 1.3;
}

.gift-ticket__notice {
	display: inline-block;
	margin: 18px 0 30px;
	color: #555;
	font-size: 16px;
	font-weight: 800;
}

.gift-ticket__layout {
	max-width: 340px;
	margin: 0 auto;
}

.gift-ticket__image {
	overflow: hidden;
	margin: 0;
	border-radius: 14px;
	background: #161616;
	box-shadow: 0 12px 28px rgba(70, 27, 20, 0.18);
}

.gift-ticket__image img {
	display: block;
	width: 100%;
	height: auto;
}

.finish-medal,
.medal-gift,
.coming-gift {
	margin: 56px auto 24px;
	padding: 48px 32px;
	border-top: 1px solid #e8e8e8;
	text-align: center;
}

.coming-gift {
	min-height: 340px;
	margin-top: 0;
	border-top: 0;
	background: #fff8f6;
}

.coming-gift.advance-kerasal {
	background: transparent;
}

.gift-panel__eyebrow {
	margin: 0 0 8px;
	color: #f45b4e;
	font-size: 15px;
	font-weight: 700;
}

.finish-medal h3,
.medal-gift h3,
.coming-gift h3 {
	margin: 0;
	color: #222;
	font-size: 32px;
	line-height: 1.3;
}

.finish-medal > p:last-child {
	margin: 18px 0 0;
	color: #666;
	font-size: 16px;
	line-height: 1.7;
}

.gift-coming-soon {
	margin: 72px 0 0;
	color: #e84e3b;
	font-size: 28px;
	font-weight: 800;
	letter-spacing: .08em;
}

.advance-kerasal__name {
	margin: 18px 0 26px;
	color: #e84e3b;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.4;
}

.advance-kerasal__gallery {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.advance-kerasal__gallery figure {
	overflow: hidden;
	margin: 0;
	border: 1px solid #ece8e6;
	border-radius: 8px;
	background: #fff;
}

.advance-kerasal__gallery img {
	display: block;
	width: 100%;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

.medal-gift__image {
	max-width: 820px;
	margin: 32px auto 0;
}

.medal-gift__image img {
	display: block;
	width: 100%;
	height: auto;
}

@media (max-width: 767px) {
	.gift-tabs { margin-top: 0; }
	.gift-tabs__list { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 0; }
	.gift-tabs__button { min-height: 54px; padding: 10px 4px; border-bottom: 1px solid #dedede; font-size: 14px; }
	.gift-tabs__button + .gift-tabs__button { border-left: 1px solid #dedede; }
	.gift-crop { margin-top: 24px; }
	.gift-crop--shirt { aspect-ratio: 1259 / 3400; }
	.gift-crop--prizes { aspect-ratio: 1259 / 7155; }
	.gift-crop--prizes img { top: -47.5%; }
	.finish-medal, .medal-gift, .coming-gift { margin-top: 36px; padding: 36px 0; }
	.coming-gift { min-height: 270px; margin-top: 0; padding-right: 16px; padding-left: 16px; }
	.finish-medal h3, .medal-gift h3, .coming-gift h3 { font-size: 26px; }
	.finish-medal > p:last-child { padding: 0 8px; font-size: 14px; }
	.medal-gift__image { margin-top: 24px; }
	.gift-coming-soon { margin-top: 56px; font-size: 23px; }
	.advance-kerasal__name { margin: 16px 0 22px; font-size: 20px; }
	.advance-kerasal__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.gift-collection { padding-top: 28px; }
	.gift-collection__section { padding: 36px 0; }
	.gift-collection__section h3 { font-size: 26px; }
	.gift-ticket__notice { margin: 16px 0 24px; font-size: 14px; }
	.gift-ticket__layout { max-width: 330px; }
}
