@font-face {
	font-family: "TT Drugs";
	src: url(../assets/fonts/ttdrugs-regular.woff2) format("woff2");
	font-display: swap
}

/* Под лендингом чёрный: Safari с iOS 26 красит полосу под статус-баром в цвет страницы, а прежние - по meta theme-color в index.php */
body:has(.ny) {
	background: #000
}

.ny {
	--hdr: 80px;
	--pad: 80px;
	--gap: 20px;
	--bg: #000;
	--fg: #fff;
	--chip: #fff;
	--act: #fff;
	--act-fg: #000;
	/* flow-root: нижний отступ кнопки «Все новогодние товары» остаётся внутри лендинга, на его фоне, а не белой полосой над подвалом */
	display: flow-root;
	position: relative;
	isolation: isolate;
	background: var(--bg);
	color: var(--fg);
	transition: background-color 1s, color .7s
}

.ny[data-theme=pink] {
	--bg: #F6E3E6;
	--fg: #3B2228;
	--chip: #202020;
	--act: #202020;
	--act-fg: #fff
}

.ny[data-theme=disco] {
	--bg: #17171A;
	--fg: #F2F2F3
}

.ny[data-theme=pj] {
	--bg: #F4EEE4;
	--fg: #2E2A26;
	--chip: #202020;
	--act: #202020;
	--act-fg: #fff
}

.ny::before,
.ny::after {
	content: "";
	position: fixed;
	inset: -20vmax;
	z-index: -1;
	opacity: 0;
	transition: opacity 1s;
	pointer-events: none
}

.ny::before {
	background: radial-gradient(70vmax 50vmax at 50% 20vmax, #2A2A2F, transparent)
}

.ny::after {
	background: radial-gradient(circle 35vmax at 30% 30%, rgb(255 255 255/.8), transparent), radial-gradient(circle 30vmax at 75% 75%, rgb(239 185 196/.55), transparent);
	animation: ny-drift 20s ease-in-out infinite alternate
}

.ny[data-theme=disco]::before,
.ny[data-theme=pink]::after {
	opacity: 1
}

@keyframes ny-drift {
	to {
		translate: 10vmax 8vmax
	}
}

@keyframes ny-rise {
	from {
		opacity: 0;
		translate: 0 28px
	}
}

.hero {
	margin: 0;
	padding: 88px var(--pad) 104px;
	text-align: center
}

.hero h1 {
	font: clamp(32px, 5.15vw, 96px)/1.05 "TT Drugs", sans-serif;
	text-transform: uppercase
}

.hero h1 span {
	display: block;
	animation: ny-rise 1.2s cubic-bezier(.2, .7, .2, 1) both
}

.hero h1 span+span {
	animation-delay: .12s
}

.hero p {
	max-width: 840px;
	margin: 32px auto 0;
	font-size: 19px;
	line-height: 1.5;
	animation: ny-rise 1s .45s both
}

.goats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	max-width: 1300px;
	margin: 96px auto 0
}

.goats a {
	display: grid;
	justify-items: center;
	font-size: 16px;
	line-height: 1.45;
	color: #fff;
	transition: opacity .35s;
	animation: ny-rise .9s calc(.6s + var(--i) * .12s) both
}

.goats img {
	width: auto;
	height: clamp(120px, 15.8vw, 240px);
	margin-bottom: 22px;
	transform-origin: 50% 100%;
	animation: ny-rock calc(2.6s + var(--i) * .27s) ease-in-out calc(var(--i) * -.9s) infinite alternate;
	transition: translate .45s cubic-bezier(.3, 1.6, .5, 1)
}

.goats b {
	font-weight: 400;
	color: #666;
	transition: color .35s
}

@keyframes ny-rock {
	from {
		rotate: -3deg
	}

	to {
		rotate: 3deg
	}
}

@media (hover:hover) {
	.goats a:hover img {
		translate: 0 -14px
	}

	.goats:hover a:not(:hover) {
		opacity: .4
	}

	.goats a:hover b {
		color: #fff
	}
}

.tabs {
	position: sticky;
	top: var(--hdr);
	z-index: 2;
	display: flex;
	gap: 8px;
	margin-bottom: -64px;
	padding: 12px var(--pad);
	overflow-x: auto;
	scrollbar-width: none;
	pointer-events: none;
	transition: top .35s, opacity .35s, visibility .35s
}

.ny[data-theme=intro] .tabs {
	opacity: 0;
	visibility: hidden
}

.tabs a {
	flex: none;
	display: flex;
	align-items: center;
	height: 40px;
	padding: 0 16px;
	border-radius: 20px;
	background: rgb(255 255 255/.3);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	color: var(--chip);
	font-size: 14px;
	font-weight: 500;
	white-space: nowrap;
	pointer-events: auto;
	transition: background .4s, color .4s
}

.tabs a[aria-current] {
	background: var(--act);
	color: var(--act-fg)
}

/* Сверху - ровно высота табов: после перехода по табу от табов до баннера столько же, сколько от шапки до табов */
.collection {
	margin: 0;
	padding: 64px 0 48px;
	scroll-margin-top: var(--hdr)
}

.collection:last-of-type {
	padding-bottom: 120px
}

.banner,
.look {
	display: block;
	position: relative;
	width: 100%;
	overflow: hidden;
	cursor: pointer
}

.banner {
	--eye: 24px;
	--in: 9%;
	margin-bottom: var(--gap)
}

.banner picture {
	display: block
}

.banner img {
	width: 100%
}

.looks {
	--max: 1440px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: var(--gap);
	max-width: calc(var(--max) + 2 * var(--pad));
	margin: 0 auto;
	padding: 0 var(--pad)
}

.look {
	--eye: 16px;
	aspect-ratio: 3/4
}

.look img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: scale 1s cubic-bezier(.2, .7, .2, 1)
}

.look:hover img {
	scale: 1.035
}

[data-layout=a] .looks {
	grid-template-columns: repeat(4, 1fr)
}

[data-layout=a] .look:nth-child(-n+2) {
	grid-column: span 2
}

[data-layout=b] .looks {
	--max: 980px
}

[data-layout=b] .look:first-child {
	grid-area: span 2/span 2;
	aspect-ratio: auto
}

[data-layout=b] .look:nth-child(6) {
	grid-area: 3/2/span 2/span 2;
	aspect-ratio: auto
}

[data-layout=c] .looks {
	padding-bottom: 96px
}

[data-layout=c] .look:nth-child(3n+2) {
	top: 96px
}

[data-layout=d] .looks {
	--max: 1080px
}

.eye {
	position: absolute;
	right: var(--eye);
	bottom: var(--eye);
	display: flex;
	align-items: center;
	height: 44px;
	padding: 0 10px;
	border-radius: 22px;
	background: rgb(40 40 40/.42);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	color: #fff;
	font-size: 14px;
	font-weight: 500;
	transition: background .25s
}

.eye svg {
	width: 24px;
	height: 24px
}

.eye span {
	max-width: 0;
	overflow: hidden;
	white-space: nowrap;
	transition: max-width .35s, margin .35s
}

@media (hover:hover) and (min-width:768px) {
	:is(.banner, .look):hover .eye {
		background: rgb(20 20 20/.82)
	}

	:is(.banner, .look):hover .eye span {
		max-width: 140px;
		margin: 0 6px 0 8px
	}
}

@supports (animation-timeline:view()) {
	.banner {
		view-timeline: --banner
	}

	.banner picture {
		animation: ny-open linear both
	}

	.banner img {
		animation: ny-zoom linear both
	}

	.banner .eye {
		animation: ny-follow linear both
	}

	.banner :is(picture, img, .eye) {
		animation-timeline: --banner;
		animation-range: entry 0% entry 100%
	}

	.look {
		animation: ny-rise linear both;
		animation-timeline: view();
		animation-range: entry 0% entry 40%
	}
}

@keyframes ny-open {
	from {
		clip-path: inset(var(--in))
	}

	to {
		clip-path: inset(0)
	}
}

@keyframes ny-zoom {
	from {
		scale: 1.1
	}
}

@keyframes ny-follow {
	from {
		right: calc(var(--in) + var(--eye));
		bottom: calc(var(--in) + var(--eye))
	}
}

.all {
	display: block;
	width: fit-content;
	margin: 0 auto 140px;
	padding: 15px 32px;
	border-radius: 24px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 500
}

/* Подвал сайта встаёт вплотную к лендингу: у сайта над ним отступ 4rem */
body:has(.ny) footer {
	margin-top: 0
}

/*
 * Курсоры коллекций
 */
@media (hover:hover) and (pointer:fine) {

	[href="#kingdom"],
	#kingdom,
	#kingdom button {
		cursor: url(../assets/cur/kingdom.png) 5 6, auto;
		cursor: image-set(url(../assets/cur/kingdom.png) 1x, url(../assets/cur/kingdom@2x.png) 2x) 5 6, auto
	}

	[href="#pink"],
	#pink,
	#pink button {
		cursor: url(../assets/cur/pink.png) 15 3, auto;
		cursor: image-set(url(../assets/cur/pink.png) 1x, url(../assets/cur/pink@2x.png) 2x) 15 3, auto
	}

	[href="#disco"],
	#disco,
	#disco button {
		cursor: url(../assets/cur/disco.png) 18 3, auto;
		cursor: image-set(url(../assets/cur/disco.png) 1x, url(../assets/cur/disco@2x.png) 2x) 18 3, auto
	}

	[href="#pj"],
	#pj,
	#pj button {
		cursor: url(../assets/cur/pj.png) 22 5, auto;
		cursor: image-set(url(../assets/cur/pj.png) 1x, url(../assets/cur/pj@2x.png) 2x) 22 5, auto
	}
}

/* 
 * Drawer
 */
.dw {
	width: min(1000px, 92vw);
	height: min(760px, 86vh);
	margin: auto;
	border-radius: 12px;
	background: #fff;
	color: #202020;
	opacity: 0;
	translate: 0 16px;
	transition: opacity .3s, translate .35s cubic-bezier(.2, .7, .2, 1), overlay .35s allow-discrete, display .35s allow-discrete
}

.dw[open] {
	opacity: 1;
	translate: none
}

@starting-style {
	.dw[open] {
		opacity: 0;
		translate: 0 16px
	}
}

.dw::backdrop {
	background: rgb(0 0 0/0);
	transition: background .3s, overlay .3s allow-discrete, display .3s allow-discrete
}

.dw[open]::backdrop {
	background: rgb(0 0 0/.5)
}

@starting-style {
	.dw[open]::backdrop {
		background: rgb(0 0 0/0)
	}
}

/* Стрелки меняют образ без анимации: иначе одна шторка уезжает, другая выезжает и окно моргает (js/app.js) */
.swap .dw,
.swap .dw::backdrop {
	transition: none
}

/* Под открытой шторкой страница не прокручивается. Именно body: overflow у html сделал бы body отдельной прокруткой (у сайта на нём overflow-x), и шапка с табами уехали бы вверх */
body:has(.dw[open]) {
	overflow: hidden
}

.dw-in {
	display: grid;
	grid-template: "ph t x" auto "ph f f" 1fr/49% 1fr auto;
	height: 100%
}

.ban {
	width: min(560px, 92vw)
}

.ban .dw-in {
	grid-template: "t x" auto "f f" 1fr/1fr auto
}

.ban .dw-ph {
	display: none
}

.dw-ph {
	grid-area: ph;
	position: relative;
	background: #F6F6F6
}

.dw-ph img {
	width: 100%;
	height: 100%;
	object-fit: cover
}

.dw-ph button {
	position: absolute;
	top: calc(50% - 16px);
	left: 16px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 2px 8px rgb(0 0 0/.12)
}

.dw-ph button+button {
	left: auto;
	right: 16px
}

.dw-ph span {
	position: absolute;
	left: 16px;
	bottom: 16px;
	padding: 4px 10px;
	border-radius: 12px;
	background: rgb(255 255 255/.9);
	font-size: 12px;
	font-weight: 500
}

.dw svg {
	width: 16px;
	height: 16px
}

.dw-t {
	grid-area: t;
	padding: 28px 0 16px 28px
}

/* Коллекция и номер образа над заголовком - только на телефоне: на ПК их видно по фото и счётчику */
.dw-t p {
	display: none;
	margin-bottom: 2px;
	font-size: 13px;
	color: #8A8A8A
}

.dw h2 {
	font-size: 24px;
	line-height: 1.2;
	font-weight: 600
}

.dw-x {
	grid-area: x;
	width: 32px;
	height: 32px;
	margin: 24px 20px 0 12px
}

.dw form {
	grid-area: f;
	display: flex;
	flex-direction: column;
	min-height: 0
}

.dw ul {
	flex: 1;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 0 28px
}

.it {
	display: grid;
	grid-template-columns: 20px 96px 1fr;
	gap: 16px;
	padding: 16px 0;
	border-bottom: 1px solid #EFEFEF
}

.it:last-child {
	border: 0
}

/* Чекбокс - сайтовый (рисует его ::before из base.css), обводка - border/secondary новой дизайн-системы */
.it input {
	--brdr-checkbox-base: 1px solid #BDBDBD;
	margin-top: 2px;
	cursor: pointer
}

.it img {
	width: 96px;
	height: 128px;
	object-fit: cover;
	border-radius: 4px;
	background: #F4F2EF
}

.it div {
	grid-column: 3;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	min-width: 0;
	font-size: 14px;
	line-height: 1.3
}

.it a {
	color: inherit
}

.it a:hover {
	text-decoration: underline
}

.it small {
	font-size: 12px;
	color: #8A8A8A
}

.it b {
	font-weight: 600
}

.it s {
	margin-left: 6px;
	font-weight: 400;
	color: #A6A6A6
}

.it select {
	width: 180px;
	margin-top: 8px
}

.dw-ft {
	display: flex;
	padding: 16px 28px 24px;
	border-top: 1px solid #EFEFEF
}

.dw-ft>* {
	flex: 1;
	height: 48px;
	border-radius: 8px;
	background: #000;
	color: #fff;
	font-size: 14px;
	font-weight: 500
}

.dw-ft a {
	display: none;
	align-items: center;
	justify-content: center;
	background: #2E7D4F
}

.added .buy {
	display: none
}

.added .dw-ft a {
	display: flex
}

@media (max-width:1200px) {
	.ny {
		--pad: 40px
	}
}

/* Телефон и планшет: шапка сайта - fixed поверх страницы. Здесь она прозрачная, как на главной, лендинг заходит под неё. При прокрутке вниз шапка уходит (класс .no-hdr ставит app.js), табы встают на её место. На ПК шапка сайта как есть */
@media (max-width:1022px) {
	.ny {
		margin-top: -80px
	}

	.hero {
		padding-top: calc(var(--hdr) + 88px)
	}

	body:has(.ny) header {
		transition: translate .35s
	}

	body:has(.ny) header::before {
		display: none
	}

	/* Поиск всегда чисто чёрный или белый - по тому, светлый под ним фон или тёмный: фон под значком размывается, обесцвечивается, выворачивается и контрастом доводится до чёрного и белого, а маска оставляет от этого только контур лупы (контур повторяет значок шаблона) */
	body:has(.ny) header .openSearchBtn {
		--lens: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.4' stroke-linecap='round'%3E%3Cpath d='M21 21l-4.35-4.35M19 11a8 8 0 1 1-16 0 8 8 0 0 1 16 0Z'/%3E%3C/svg%3E");
		-webkit-backdrop-filter: blur(6px) grayscale(1) invert(1) contrast(100);
		backdrop-filter: blur(6px) grayscale(1) invert(1) contrast(100);
		-webkit-mask: var(--lens) center/24px no-repeat;
		mask: var(--lens) center/24px no-repeat
	}

	body:has(.ny) header .openSearchBtn svg {
		visibility: hidden
	}

	body:has(.no-hdr) header {
		translate: 0 -100%
	}

	.no-hdr .tabs {
		top: 0
	}

	.no-hdr .collection {
		scroll-margin-top: 0
	}
}

@media (max-width:767px) {
	.ny {
		--pad: 16px;
		--gap: 8px
	}

	.hero {
		padding: calc(var(--hdr) + 32px) 16px 64px
	}

	.hero p {
		margin-top: 20px;
		font-size: 15px
	}

	.goats {
		grid-template-columns: 1fr 1fr;
		gap: 40px 12px;
		margin-top: 56px
	}

	.goats a {
		font-size: 14px
	}

	.goats img {
		height: 132px;
		margin-bottom: 16px
	}

	.tabs {
		gap: 6px;
		margin-bottom: -56px;
		padding: 10px 16px
	}

	.tabs a {
		height: 36px;
		padding: 0 14px;
		font-size: 13px
	}

	.collection {
		padding: 56px 0 24px
	}

	.collection:last-of-type {
		padding-bottom: 80px
	}

	.banner {
		--eye: 12px;
		--in: 4%
	}

	.look {
		--eye: 10px
	}

	.eye {
		height: 36px;
		padding: 0 6px
	}

	.eye svg {
		width: 22px;
		height: 22px
	}

	[data-layout] .looks {
		grid-template-columns: 1fr 1fr
	}

	[data-layout=a] .look:nth-child(-n+2) {
		grid-column: 1/-1
	}

	[data-layout=a] .look:nth-child(2) {
		order: 1
	}

	[data-layout=b] .look:is(:first-child, :nth-child(6)) {
		grid-area: auto/1/auto/-1;
		aspect-ratio: 3/4
	}

	[data-layout=c] .looks {
		padding-bottom: 48px
	}

	[data-layout=c] .look:nth-child(3n+2) {
		top: 0
	}

	[data-layout=c] .look:nth-child(even) {
		top: 48px
	}

	[data-layout=d] .look:nth-child(3n+1) {
		grid-column: 1/-1
	}

	.all {
		margin-bottom: 120px
	}

	.dw,
	.ban {
		width: 100%;
		max-width: none;
		height: calc(100% - 56px);
		max-height: none;
		margin: auto 0 0;
		border-radius: 16px 16px 0 0;
		translate: 0 100%
	}

	@starting-style {
		.dw[open] {
			translate: 0 100%
		}
	}

	.dw-in,
	.ban .dw-in {
		grid-template: "ph t x" auto "f f f" 1fr/56px 1fr auto
	}

	.dw-ph,
	.ban .dw-ph {
		display: block;
		width: 40px;
		height: 53px;
		margin: 20px 0 12px 16px;
		border-radius: 4px;
		overflow: hidden
	}

	.dw-ph :is(button, span) {
		display: none
	}

	/* Фото, заголовок и крестик - в одну строку по центру фото: отступы сверху и снизу у всех трёх как у фото */
	.dw-t {
		align-self: center;
		margin: 20px 0 12px;
		padding: 0 0 0 12px
	}

	.dw-t p {
		display: block
	}

	.dw h2 {
		font-size: 20px
	}

	.dw-x {
		align-self: center;
		margin: 20px 12px 12px
	}

	.dw ul {
		padding: 0 16px
	}

	.it {
		grid-template-columns: 20px 110px 1fr;
		gap: 12px
	}

	.it img {
		width: 110px;
		height: 147px
	}

	.it select {
		width: 100%
	}

	.dw-ft {
		padding: 12px 16px calc(12px + env(safe-area-inset-bottom))
	}
}

@media (max-width:600px) {
	.ny {
		--hdr: 54px
	}
}

@media (prefers-reduced-motion:reduce) {

	.ny *,
	.ny::after {
		animation: none !important;
		transition: none !important
	}
}