/*
	Дополнительные стили поверх шаблона Phantom (html5up.net).
	Подключается после main.css.
*/

/* Шрифты: Lobster для акцентов и Source Sans Pro с кириллицей
   (main.css грузит Source Sans Pro без кириллического набора) */
@import url("https://fonts.googleapis.com/css2?family=Lobster&family=Source+Sans+Pro:wght@300;400;700;900&display=swap");

:root {
	--accent: #f2849e;
	--accent-dark: #ee5f81;
	--ink: #4a4245;
	--ink-soft: #8a7f83;
	--paper: #fdf9f6;
}

/* Тёплая «бумага»: кремовый фон с мягкими пастельными пятнами */
body {
	background-color: var(--paper);
	background-image:
		radial-gradient(ellipse 60% 40% at 12% 8%, rgba(242, 132, 158, 0.07), transparent 70%),
		radial-gradient(ellipse 50% 35% at 88% 30%, rgba(232, 168, 124, 0.08), transparent 70%),
		radial-gradient(ellipse 55% 40% at 20% 85%, rgba(132, 199, 184, 0.07), transparent 70%);
	background-attachment: fixed;
	color: var(--ink);
}

::selection {
	background: var(--accent);
	color: #ffffff;
}

/* Логотип — рукописный шрифт, чуть крупнее, с игривым наклоном при наведении */
#header .logo {
	font-family: 'Lobster', cursive;
	font-size: 1.6em;
	text-transform: lowercase;
	letter-spacing: 0.02em;
}

#header .logo .symbol img {
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(74, 66, 69, 0.15);
	transition: transform 0.3s ease;
}

#header .logo:hover .symbol img {
	transform: rotate(-8deg) scale(1.08);
}

/* Заголовки — рукописный акцент */
#main header h2,
#main > .inner > h1 {
	font-family: 'Lobster', cursive;
	font-weight: 400;
	letter-spacing: 0.01em;
	color: var(--ink);
}

/* Пунктирная «строчка»-шов под заголовком главной */
#main header h2:after {
	content: '';
	display: block;
	width: 5.5em;
	margin-top: 0.45em;
	border-bottom: 2px dashed var(--accent);
	opacity: 0.7;
}

#main header p {
	color: var(--ink-soft);
}

/* Плитки работ: скругления, мягкая тень, лёгкий «скрапбучный» разнобой */
.tiles article {
	border-radius: 14px;
	box-shadow: 0 6px 20px rgba(74, 66, 69, 0.10);
	transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.5s ease;
}

.tiles article:nth-child(odd) {
	transform: rotate(-0.7deg);
}

.tiles article:nth-child(even) {
	transform: rotate(0.7deg);
}

.tiles article > .image {
	border-radius: 14px;
	overflow: hidden;
}

.tiles article > .image:after {
	border-radius: 14px;
}

/* Пунктирная рамка-шов, проявляется при наведении */
.tiles article > a:after {
	content: '';
	position: absolute;
	top: 10px;
	right: 10px;
	bottom: 10px;
	left: 10px;
	border: 2px dashed rgba(255, 255, 255, 0.65);
	border-radius: 9px;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.4s ease;
}

body:not(.is-touch) .tiles article:hover {
	transform: rotate(0deg) translateY(-6px);
	box-shadow: 0 14px 32px rgba(74, 66, 69, 0.18);
}

body:not(.is-touch) .tiles article:hover > a:after {
	opacity: 1;
}

body:not(.is-touch) .tiles article:hover > .image {
	transform: scale(1.06);
}

.tiles article > a h2 {
	font-family: 'Lobster', cursive;
	font-weight: 400;
	font-size: 1.35em;
	letter-spacing: 0.02em;
}

/* Более тёплая и согласованная пастельная палитра плиток */
.tiles article.style1 > .image:before { background-color: #f2849e; }
.tiles article.style2 > .image:before { background-color: #8fb8de; }
.tiles article.style3 > .image:before { background-color: #84c7b8; }
.tiles article.style4 > .image:before { background-color: #e8a87c; }
.tiles article.style5 > .image:before { background-color: #b39ddb; }
.tiles article.style6 > .image:before { background-color: #e6b566; }

/* Страница работы */

#main > .inner > h1 {
	font-size: 2.4em;
	margin-bottom: 0.75em;
}

/* Сердечко после названия работы */
#main > .inner > h1:after {
	content: ' \2661';
	color: var(--accent);
	font-size: 0.65em;
	vertical-align: 0.15em;
}

/* Фото в «полароидной» рамке с лёгким наклоном */
#main .box.alt .image.fit img {
	background: #ffffff;
	padding: 12px 12px 16px;
	border-radius: 6px;
	box-shadow: 0 10px 28px rgba(74, 66, 69, 0.16);
	transform: rotate(-1deg);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
}

#main .box.alt .col-6:nth-child(even) .image.fit img {
	transform: rotate(1deg);
}

#main .box.alt .image.fit img:hover,
#main .box.alt .col-6:nth-child(even) .image.fit img:hover {
	transform: rotate(0deg) scale(1.015);
	box-shadow: 0 14px 36px rgba(74, 66, 69, 0.22);
}

#main .box.alt {
	margin-bottom: 2.5em;
}

/* На мобильных фото изделия — друг под другом */
@media screen and (max-width: 736px) {

	#main .box.alt .row > .col-6 {
		width: 100%;
	}

}

/* Лайтбокс: клик по фото — увеличение */
#lightbox {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.5em;
	background: rgba(42, 35, 38, 0.88);
	cursor: zoom-out;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

#lightbox.visible {
	opacity: 1;
	visibility: visible;
}

#lightbox img {
	max-width: 100%;
	max-height: 100%;
	background: #ffffff;
	padding: 10px;
	border-radius: 6px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
	transform: scale(0.94);
	transition: transform 0.3s ease;
}

#lightbox.visible img {
	transform: scale(1);
}

/* Характеристики изделия — ярлычки на пунктирной нитке */
#main > .inner > ul {
	list-style: none;
	padding-left: 0;
	margin-top: 1.5em;
}

#main > .inner > ul li {
	display: inline-block;
	padding: 0.45em 1.2em;
	margin: 0 0.6em 0.6em 0;
	background: #ffffff;
	border: 1.5px dashed rgba(242, 132, 158, 0.6);
	border-radius: 999px;
	color: #6e6468;
	font-size: 0.9em;
}

/* Ссылка «все работы» */
.back-link {
	display: inline-block;
	margin-bottom: 1.5em;
	font-size: 0.9em;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: lowercase;
	border-bottom: none;
	color: var(--ink-soft) !important;
	transition: color 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
	color: var(--accent) !important;
	transform: translateX(-4px);
}

/* Подвал: компактный, слева, с пунктирной «строчкой» сверху */
#footer {
	background-color: #faf3ee;
	border-top: 2px dashed rgba(242, 132, 158, 0.35);
	padding: 1.8em 0 1.6em;
}

/* Маленький ярлычок telegram — в стиле бирок на изделиях */
.footer-tg {
	display: inline-block;
	padding: 0.3em 0.95em;
	background: #ffffff;
	border: 1.5px dashed rgba(242, 132, 158, 0.6);
	border-radius: 999px;
	font-size: 0.85em;
	color: var(--ink-soft) !important;
	transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-tg:before {
	margin-right: 0.45em;
}

.footer-tg:hover {
	color: var(--accent) !important;
	border-color: var(--accent);
}

#footer > .inner .copyright {
	margin-top: 0.9em;
	color: var(--ink-soft);
}

#footer .copyright li:first-child:after {
	content: ' \2661';
	color: var(--accent);
}
