/* Decorela — site styles */

:root {
	--ivory: #faf6f1;
	--paper: #f3ece3;
	--blush: #ecdcd2;
	--sage: #dfe3d8;
	--ink: #2c2522;
	--muted: #6f625b;
	--accent: #a46f5b;
	--accent-dark: #8a5a48;
	--gold: #b99a62;
	--line: rgba(44, 37, 34, 0.14);

	--serif: "Cormorant Garamond", "Times New Roman", serif;
	--sans: "Manrope", "Helvetica Neue", Arial, sans-serif;

	--wrap: 1160px;
	--gutter: clamp(16px, 4vw, 40px);
	--header-h: 84px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-h);
	/* same layout width on short pages (e.g. Портфолио) as on scrolling ones, so the header doesn't shift */
	overflow-y: scroll;
}

body {
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: var(--ivory);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
}

main { flex: 1; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 {
	font-family: var(--serif);
	font-weight: 400;
	line-height: 1.15;
	margin: 0;
	letter-spacing: 0.01em;
}

p { margin: 0 0 1.4em; }

.wrap {
	width: 100%;
	max-width: var(--wrap);
	margin: 0 auto;
	padding: 0 var(--gutter);
}

.visually-hidden {
	position: absolute;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* ---------- Ornament (replaces the old swirls image) ---------- */

.ornament {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 22px auto 28px;
	color: var(--gold);
}
.ornament::before,
.ornament::after {
	content: "";
	height: 1px;
	width: min(90px, 22vw);
	background: linear-gradient(to var(--dir, right), transparent, currentColor);
}
.ornament::after { --dir: left; }
.ornament span {
	width: 7px; height: 7px;
	border: 1px solid currentColor;
	transform: rotate(45deg);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.45);
}
.section--paper .ornament span { box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px rgba(185, 154, 98, 0.45); }

/* ---------- Header ---------- */

.site-header {
	--rule: rgba(185, 154, 98, 0.7);
	--rule-2: rgba(185, 154, 98, 0.35);
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 50;
	height: var(--header-h);
	/* always a solid bar, so the header is visible on every page and at every scroll position */
	background: rgba(250, 246, 241, 0.96);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
	box-shadow: 0 10px 30px -24px rgba(44, 37, 34, 0.5);
}
.site-header .wrap {
	position: relative;
	max-width: none;
	padding: 0 clamp(16px, 2.5vw, 40px);
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
/* double rule under the bar, like the frames elsewhere */
.site-header .wrap::after {
	content: "";
	position: absolute;
	left: 0; right: 0;
	bottom: 0;
	height: 4px;
	border-top: 1px solid var(--rule);
	border-bottom: 1px solid var(--rule-2);
	pointer-events: none;
}

.brand {
	display: inline-flex;
	line-height: 0;
}
.brand__logo {
	display: block;
	width: auto;
	height: 64px;
}

.nav ul {
	display: flex;
	align-items: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
/* small gold diamonds between the items */
.nav li + li::before {
	content: "";
	display: inline-block;
	width: 4px; height: 4px;
	margin: 0 clamp(12px, 1.8vw, 26px);
	border: 1px solid var(--gold);
	transform: rotate(45deg);
	vertical-align: middle;
}
.nav a {
	position: relative;
	display: inline-block;
	font-family: var(--serif);
	font-size: 17px;
	font-weight: 500;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	padding: 8px 0;
	vertical-align: middle;
	transition: color .25s ease;
}
.nav a:not(.nav__icon)::after {
	content: "";
	position: absolute;
	left: 0; right: 0.14em; bottom: 2px;
	height: 1px;
	background: var(--gold);
	transform: scaleX(0);
	transition: transform .35s ease;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--accent); }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }

/* Facebook: gold line icon in a double circle, as on the contact card */
.nav .nav__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 34px; height: 34px;
	margin-left: 4px;
	padding: 0 !important;
	border: 1px solid rgba(185, 154, 98, 0.6);
	border-radius: 50%;
	outline: 1px solid rgba(185, 154, 98, 0.22);
	outline-offset: 2px;
	transition: border-color .25s ease;
}
.nav__icon svg {
	width: 16px; height: 16px;
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .25s ease;
}
.nav__icon:hover { border-color: var(--accent); }
.nav__icon:hover svg { stroke: var(--accent); }

.nav-toggle {
	display: none;
	width: 44px; height: 44px;
	margin-right: -10px;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	width: 24px; height: 1px;
	margin: 6px auto;
	background: currentColor;
	transition: transform .3s ease, opacity .3s ease, width .3s ease;
}
.nav-toggle span:nth-child(2) { width: 16px; }
.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
	.nav a { font-size: 15px; letter-spacing: 0.1em; }
	.nav li + li::before { margin: 0 10px; }
}

@media (max-width: 820px) {
	:root { --header-h: 70px; }
	.brand__logo { height: 52px; }
	.nav-toggle { display: block; }
	/* full-screen framed menu */
	.nav {
		position: fixed;
		top: var(--header-h);
		left: 0; right: 0;
		height: calc(100vh - var(--header-h));
		height: calc(100svh - var(--header-h));
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 18px;
		background: var(--ivory);
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
	}
	.nav::before {
		content: "";
		position: absolute;
		inset: 18px;
		border: 1px solid var(--line);
		outline: 1px solid rgba(185, 154, 98, 0.45);
		outline-offset: -10px;
		pointer-events: none;
	}
	.is-open .nav {
		opacity: 1;
		visibility: visible;
		transform: none;
		transition: opacity .35s ease, transform .35s ease;
	}
	.nav ul { flex-direction: column; gap: 0; }
	.nav li { display: flex; flex-direction: column; align-items: center; }
	.nav li + li::before { margin: 14px 0; }
	.nav a { font-size: 26px; letter-spacing: 0.12em; padding: 6px 0; }
	.nav li:last-child { padding-top: 10px; }
	.nav li:last-child::before { margin-bottom: 26px; }
	.nav__icon { width: 40px; height: 40px; margin: 0; }
	.nav__icon svg { width: 18px; height: 18px; }
}

/* ---------- Hero (home) ---------- */

.hero {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
	overflow: hidden;
	background:
		radial-gradient(ellipse 60% 50% at 15% 20%, rgba(236, 220, 210, 0.9), transparent 70%),
		radial-gradient(ellipse 55% 45% at 88% 85%, rgba(223, 227, 216, 0.95), transparent 70%),
		var(--ivory);
}
/* thin wreath rings */
.hero::before,
.hero::after {
	content: "";
	position: absolute;
	left: 50%; top: 50%;
	border-radius: 50%;
	border: 1px solid rgba(185, 154, 98, 0.35);
	transform: translate(-50%, -50%);
	pointer-events: none;
}
.hero::before { width: min(760px, 120vw); height: min(760px, 120vw); }
.hero::after  { width: min(700px, 110vw); height: min(700px, 110vw); border-color: rgba(164, 111, 91, 0.18); }

.hero__inner { position: relative; max-width: 820px; }

.hero__lead {
	font-family: var(--serif);
	font-size: clamp(32px, 5.2vw, 60px);
	font-weight: 400;
	font-style: italic;
	line-height: 1.18;
	margin: 0 0 32px;
}
.hero__text {
	max-width: 520px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 16px;
	letter-spacing: 0.02em;
}

.scroll-cue {
	position: absolute;
	left: 50%;
	bottom: 34px;
	transform: translateX(-50%);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	font-size: 10.5px;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--muted);
}
.scroll-cue::after {
	content: "";
	width: 1px; height: 48px;
	background: linear-gradient(var(--accent), transparent);
	animation: cue 2.2s ease-in-out infinite;
	transform-origin: top;
}
@keyframes cue {
	0%   { transform: scaleY(0); opacity: 1; }
	60%  { transform: scaleY(1); opacity: 1; }
	100% { transform: scaleY(1); opacity: 0; }
}

/* Photo hero (home) */
/* Retro look: film-graded photo (baked into the image), sepia wash, vignette, grain */
.hero--photo {
	color: #f7ecd9;
	isolation: isolate;
	background: var(--ink);
}
/* slideshow: four photos crossfading, each slowly zooming in while shown */
.hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	overflow: hidden;
}
.hero__slide {
	position: absolute;
	inset: 0;
	background: center / cover no-repeat;
	opacity: 0;
	transform-origin: 50% 45%;
	animation: hero-slide 28s linear infinite;
	will-change: opacity, transform;
}
.hero__slide--2 { background-image: url("../images/intro-slide-3.jpg"); animation-delay: -1.5s; }
.hero__slide--3 { background-image: url("../images/intro-slide-2.jpg"); animation-delay: 5.5s; }
.hero__slide--4 { background-image: url("../images/intro-slide-4.jpg"); animation-delay: 12.5s; }
.hero__slide--5 { background-image: url("../images/intro-slide-5.jpg"); animation-delay: 19.5s; }
/* 28s cycle, 7s per photo: 1.5s fade in, hold, 1.5s fade out overlapping the next photo */
@keyframes hero-slide {
	0%      { opacity: 0; transform: scale(1); }
	5.36%   { opacity: 1; }
	25%     { opacity: 1; }
	30.36%  { opacity: 0; transform: scale(1.08); }
	100%    { opacity: 0; transform: scale(1.08); }
}

/* film grain */
.hero--photo::before {
	inset: 0;
	left: 0; top: 0;
	width: auto; height: auto;
	border: 0;
	border-radius: 0;
	transform: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.5 0 0 0 0 0.45 0 0 0 0 0.4 0 0 0 0.9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
	opacity: 0.12;
	mix-blend-mode: overlay;
}
/* sepia wash + vignette, fixed over the zooming photo */
.hero--photo::after {
	inset: 0;
	left: 0; top: 0;
	width: auto; height: auto;
	z-index: -1;
	border: 0;
	border-radius: 0;
	transform: none;
	background:
		radial-gradient(ellipse 80% 75% at 50% 50%, rgba(40, 26, 16, 0.32) 0%, rgba(40, 26, 16, 0.3) 55%, rgba(24, 14, 8, 0.72) 100%),
		linear-gradient(rgba(90, 58, 30, 0.12), rgba(90, 58, 30, 0.12));
}
.hero--photo .hero__inner {
	max-width: 900px;
	text-wrap: balance;
	padding: clamp(34px, 4vw, 52px) clamp(24px, 5vw, 80px);
	border: 1px solid rgba(247, 236, 217, 0.55);
	outline: 1px solid rgba(185, 154, 98, 0.75);
	outline-offset: -10px;
	background: rgba(30, 20, 14, 0.22);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}
/* gold diamonds on the frame, as in the section ornaments */
.hero--photo .hero__inner::before,
.hero--photo .hero__inner::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 9px; height: 9px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px rgba(30, 20, 14, 0.35), 0 0 0 5px rgba(185, 154, 98, 0.6);
}
.hero--photo .hero__inner::before { top: -5px; }
.hero--photo .hero__inner::after { bottom: -5px; }
.hero--photo .hero__text { margin: 0 auto; }
.hero--photo .hero__lead {
	font-size: clamp(30px, 3.8vw, 54px);
	text-shadow: 0 2px 30px rgba(20, 10, 4, 0.55), 0 1px 2px rgba(20, 10, 4, 0.4);
}
.hero--photo .hero__text {
	color: rgba(247, 236, 217, 0.92);
	text-shadow: 0 1px 12px rgba(20, 10, 4, 0.6);
}
.hero--photo .scroll-cue { color: rgba(247, 236, 217, 0.9); }
.hero--photo .scroll-cue::after { background: linear-gradient(#f7ecd9, transparent); }

@media (max-width: 820px) {
	/* keep the couples in frame on narrow screens */
	.hero__slide--3 { background-position: 27% center; }
	.hero__slide--5 { background-position: 58% center; }
	.hero--photo::after {
		background:
			radial-gradient(ellipse 95% 75% at 50% 50%, rgba(40, 26, 16, 0.42) 0%, rgba(40, 26, 16, 0.42) 55%, rgba(24, 14, 8, 0.75) 100%),
			linear-gradient(rgba(90, 58, 30, 0.12), rgba(90, 58, 30, 0.12));
	}
}

/* No animation for visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
	.hero__slide--2 { opacity: 1; }
}

/* Intro stays pinned while the sections below scroll up over it */
.hero--photo {
	position: sticky;
	top: 0;
	z-index: 0;
}
.hero--photo ~ .section {
	position: relative;
	z-index: 1;
}
.hero--photo ~ .section:not(.section--paper) { background-color: var(--ivory); }
/* Services & gallery: transparent sections with framed cards floating over the pinned slideshow */
.hero--photo ~ .section.section--over {
	background: transparent;
	padding: clamp(60px, 8vw, 100px) 0 clamp(20px, 3vw, 40px);
}
.float-card {
	position: relative;
	max-width: 1120px;
	margin: 0 auto;
	padding: clamp(48px, 6vw, 80px) clamp(22px, 5vw, 72px) clamp(48px, 6vw, 76px);
	background:
		radial-gradient(ellipse 70% 40% at 50% 0%, rgba(236, 220, 210, 0.75), transparent 75%),
		rgba(250, 246, 241, 0.94);
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(247, 236, 217, 0.7);
	outline: 1px solid rgba(185, 154, 98, 0.55);
	outline-offset: -12px;
	box-shadow: 0 40px 80px -30px rgba(24, 14, 8, 0.6);
}
/* Услуги and Контакти cards: same pale bow-photo background as the inner pages */
#one .float-card,
#contact .float-card {
	background:
		linear-gradient(rgba(250, 246, 241, 0.74), rgba(250, 246, 241, 0.74)),
		url("../images/bow-retro.jpg") 35% 60% / cover no-repeat,
		var(--ivory);
}
/* Фото Галерия card: the five portfolio collections side by side, softly washed */
#work .float-card {
	background:
		linear-gradient(rgba(250, 246, 241, 0.54), rgba(250, 246, 241, 0.54)),
		url("../images/portfolio/collections-mosaic.jpg") center / cover no-repeat,
		var(--ivory);
}
#work .float-card .button { background: rgba(250, 246, 241, 0.85); }
#work .float-card .button:hover { background: var(--ink); }
.float-card::before,
.float-card::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 11px; height: 11px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px rgba(250, 246, 241, 0.94), 0 0 0 5px rgba(185, 154, 98, 0.65);
}
.float-card::before { top: -6px; }
.float-card::after { bottom: -6px; }
.float-card .section__head { margin-bottom: clamp(36px, 5vw, 56px); }

/* more room under the last card before the footer */
.hero--photo ~ .section.section--last { padding-bottom: clamp(60px, 8vw, 100px); }

/* home footer: see-through over the pinned slideshow, like the footers on the other pages */
.hero--photo ~ .site-footer {
	position: relative;
	z-index: 1;
	color: rgba(247, 236, 217, 0.85);
	border-top-color: rgba(247, 236, 217, 0.3);
}

/* the next section slides over the slideshow on a solid background */
.section--over + .section:not(.section--over) {
	margin-top: clamp(40px, 6vw, 80px);
	border-top: 1px solid rgba(185, 154, 98, 0.5);
	box-shadow: 0 -28px 60px -24px rgba(24, 14, 8, 0.55);
}

/* ---------- Sections ---------- */

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section--paper { background: var(--paper); }

.section__head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.section__head h1,
.section__head h2 { font-size: clamp(40px, 6vw, 64px); }
.section__head p {
	max-width: 560px;
	margin: 0 auto;
	color: var(--muted);
	font-size: 18px;
}

/* Page heading for inner pages */
.page-head {
	padding: calc(var(--header-h) + clamp(56px, 9vw, 110px)) var(--gutter) clamp(40px, 6vw, 70px);
	text-align: center;
	background:
		radial-gradient(ellipse 50% 80% at 50% 0%, rgba(236, 220, 210, 0.8), transparent 75%),
		var(--ivory);
}
.page-head h1 { font-size: clamp(46px, 8vw, 84px); font-style: italic; }
.page-head .ornament { margin-bottom: 0; }

/* ---------- Services list (home) ---------- */

.services {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px clamp(24px, 4vw, 56px);
	max-width: 1000px;
	margin: 0 auto;
	padding: 0;
	list-style: none;
}
.services li {
	display: flex;
	align-items: center;
	gap: 18px;
	font-family: var(--serif);
	font-size: clamp(21px, 2vw, 25px);
	line-height: 1.25;
}
/* home Услуги card: slightly larger, bolder text */
#one .services li {
	font-size: clamp(23px, 2.2vw, 28px);
	font-weight: 500;
}
#one .section__head p {
	font-size: 19.5px;
	font-weight: 500;
	color: #5a4e48;
}

.services__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 56px; height: 56px;
	border: 1px solid rgba(185, 154, 98, 0.6);
	border-radius: 50%;
	outline: 1px solid rgba(185, 154, 98, 0.25);
	outline-offset: 3px;
	color: var(--gold);
	transition: background-color .35s ease, color .35s ease, border-color .35s ease;
}
.services__icon svg {
	width: 30px; height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 860px) {
	.services { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
	.services { grid-template-columns: 1fr; gap: 20px; max-width: 320px; }
}

/* ---------- Gallery (empty, ready for new photos) ---------- */

.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 14px;
	margin-bottom: 48px;
}
.gallery:empty { display: none; }
.gallery a {
	display: block;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	background: var(--blush);
}
.gallery img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .8s ease;
}
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Buttons ---------- */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 17px 38px;
	border: 1px solid var(--ink);
	border-radius: 0;
	background: transparent;
	color: var(--ink);
	font-family: var(--sans);
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}
.button:hover { background: var(--ink); color: var(--ivory); }
.button--solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.button--solid:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button[disabled] { opacity: .6; cursor: wait; }

.center { text-align: center; }

/* ---------- Contact ---------- */

.contact {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(40px, 7vw, 100px);
	align-items: stretch;
	max-width: 1000px;
	margin: 0 auto;
}
.contact__info {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
	background:
		radial-gradient(ellipse 90% 60% at 50% 0%, rgba(236, 220, 210, 0.7), transparent 70%),
		var(--ivory);
	border: 1px solid var(--line);
	outline: 1px solid rgba(185, 154, 98, 0.45);
	outline-offset: -10px;
	box-shadow: 0 24px 50px -32px rgba(44, 37, 34, 0.35);
}
/* gold diamonds on the frame, as on the home intro */
.contact__info::before,
.contact__info::after {
	content: "";
	position: absolute;
	left: 50%;
	width: 9px; height: 9px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.6);
}
.contact__info::before { top: -5px; }
.contact__info::after { bottom: -5px; }
.contact__info .brand { align-self: center; margin: 0; }
.contact__info .brand__logo { height: auto; width: 100%; max-width: 230px; }
.contact__info .ornament { margin: 18px auto 26px; }
.contact__info .ornament span { box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.45); }

.contact__list { list-style: none; margin: 0; padding: 0; }
.contact__list li + li { border-top: 1px solid var(--line); }
.contact__list a {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 0;
	font-size: 16.5px;
	letter-spacing: 0.02em;
	transition: color .25s ease;
}
.contact__icon {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px; height: 40px;
	border: 1px solid rgba(185, 154, 98, 0.6);
	border-radius: 50%;
	outline: 1px solid rgba(185, 154, 98, 0.22);
	outline-offset: 2px;
	transition: border-color .25s ease;
}
.contact__icon svg {
	width: 18px; height: 18px;
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: stroke .25s ease;
}
.contact__list a:hover { color: var(--accent); }
.contact__list a:hover .contact__icon { border-color: var(--accent); }
.contact__list a:hover .contact__icon svg { stroke: var(--accent); }
.contact__list .social {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--accent);
}

.form { display: grid; gap: 16px; }
/* spam trap: hidden from visitors, bots fill it in */
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Framed field with icon and floating label */
.field { position: relative; }
.field input,
.field textarea {
	display: block;
	width: 100%;
	height: 60px;
	padding: 24px 18px 8px 52px;
	border: 1px solid rgba(44, 37, 34, 0.16);
	border-radius: 2px;
	background: rgba(255, 255, 255, 0.72);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
	color: var(--ink);
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
	transition: border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
	-webkit-appearance: none;
	appearance: none;
}
.field textarea { height: auto; min-height: 160px; padding-top: 30px; resize: vertical; }
.field input:hover,
.field textarea:hover { border-color: rgba(185, 154, 98, 0.6); }
.field input:focus,
.field textarea:focus {
	outline: none;
	border-color: var(--gold);
	background: #fff;
	box-shadow: 0 0 0 4px rgba(185, 154, 98, 0.14);
}

.field__icon {
	position: absolute;
	z-index: 1;
	left: 18px; top: 19px;
	width: 21px; height: 21px;
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.3;
	stroke-linecap: round;
	stroke-linejoin: round;
	pointer-events: none;
	transition: stroke .25s ease;
}
.field:focus-within .field__icon { stroke: var(--accent); }

.field label {
	position: absolute;
	z-index: 1;
	left: 52px; top: 19px;
	color: var(--muted);
	font-size: 16px;
	line-height: 1.4;
	pointer-events: none;
	transform-origin: left top;
	transition: transform .2s ease, color .2s ease, letter-spacing .2s ease;
}
/* float the label up when the field is focused or filled */
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
	transform: translateY(-11px) scale(0.72);
	color: var(--accent);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.form .actions { margin-top: 10px; }
.form .actions .button { width: 100%; padding: 19px 38px; }

@media (max-width: 520px) {
	.form__row { grid-template-columns: 1fr; }
}

#message:empty { display: none; }
#message { margin-bottom: 24px; }
#message .error_message {
	padding: 14px 18px;
	border-left: 2px solid var(--accent);
	background: var(--blush);
	font-size: 15px;
}
#message fieldset { border: 0; margin: 0; padding: 0; }
#message #success_page h1 { font-size: 38px; font-style: italic; }
#message #success_page br { display: none; }
#message #success_page p { margin-top: 14px; color: var(--muted); }

/* Inner pages: very pale retro bow photo behind the whole page */
.page-bg::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: -1;
	background:
		linear-gradient(rgba(250, 246, 241, 0.74), rgba(250, 246, 241, 0.84)),
		url("../images/bow-retro.jpg") 35% 60% / cover no-repeat;
	pointer-events: none;
}
.page-bg .page-head { background: transparent; }

/* grid items and inputs may shrink below their natural width on narrow screens */
.contact > *,
.form > *,
.form__row > *,
.field input,
.field textarea { min-width: 0; }

@media (max-width: 820px) {
	.contact { grid-template-columns: 1fr; }
}
/* very small phones: slimmer padding inside the nested cards */
@media (max-width: 380px) {
	.float-card { padding-left: 14px; padding-right: 14px; }
	.contact__info { padding-left: 18px; padding-right: 18px; }
	.contact__list a { gap: 12px; font-size: 15.5px; }
}

/* ---------- About page ---------- */

.prose {
	max-width: 1000px;
	margin: 0 auto;
	font-size: 19px;
	line-height: 1.9;
}
.prose > p:first-of-type::first-letter {
	float: left;
	font-family: var(--serif);
	font-size: 5.2em;
	line-height: 0.8;
	padding: 0.06em 0.12em 0 0;
	color: var(--accent);
}
.prose .ornament { margin: 56px auto; clear: both; }

/* Founders' photo as a round profile bubble */
.profile {
	position: relative;
	float: left;
	width: clamp(200px, 26vw, 280px);
	margin: 6px 44px 28px 6px;
	/* let the text follow the circle */
	shape-outside: circle(50%);
	shape-margin: 22px;
}
@media (max-width: 600px) {
	.profile { float: none; margin: 0 auto 48px; }
}
.profile img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	border: 6px solid var(--ivory);
	outline: 1px solid rgba(185, 154, 98, 0.75);
	outline-offset: 6px;
	box-shadow: 0 0 0 7px rgba(185, 154, 98, 0.35), 0 30px 60px -28px rgba(44, 37, 34, 0.55);
}
/* gold diamond at the bottom of the ring */
.profile::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -12px;
	width: 10px; height: 10px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.6);
}
.prose .closing {
	margin-top: 60px;
	text-align: center;
	font-family: var(--serif);
	font-size: clamp(22px, 2.6vw, 28px);
	font-style: italic;
	line-height: 1.45;
}
.prose .closing p { margin-bottom: 0.9em; }
.prose .closing p:first-child { color: var(--accent); }

/* ---------- Services page ---------- */

/* wider content area on this page so the text has more room */
#uslugi .wrap { max-width: 1400px; }

.service {
	display: grid;
	grid-template-columns: 5fr 7fr;
	gap: clamp(24px, 6vw, 80px);
	padding: clamp(44px, 6vw, 72px) 0;
	border-top: 1px solid var(--line);
}
.service:last-child { border-bottom: 1px solid var(--line); }
/* title + photo bubbles stay in view while the text scrolls */
.service__side {
	position: sticky;
	top: calc(var(--header-h) + 30px);
	align-self: start;
}
.service h3 {
	font-size: clamp(30px, 3.6vw, 44px);
	font-style: italic;
}
.service h3::after {
	content: "";
	display: block;
	width: min(100%, 200px); height: 1px;
	margin-top: 22px;
	background: linear-gradient(to right, var(--gold) 60%, transparent);
}
.service__body { font-size: 19px; line-height: 1.85; }
.service__body p:last-child { margin-bottom: 0; }

/* two overlapping round photos, framed like the За Нас profile */
.service__pics {
	position: relative;
	width: min(100%, 420px);
	aspect-ratio: 1 / 1.02;
	margin-top: 34px;
}
.bubble {
	position: absolute;
	display: block;
	border-radius: 50%;
	border: 5px solid var(--ivory);
	outline: 1px solid rgba(185, 154, 98, 0.75);
	outline-offset: 5px;
	box-shadow: 0 0 0 6px rgba(185, 154, 98, 0.3), 0 26px 50px -24px rgba(44, 37, 34, 0.55);
}
.bubble img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 50%;
}
.bubble--lg { left: 0; top: 0; width: 74%; aspect-ratio: 1; }
.bubble--sm { right: 0; bottom: 0; width: 48%; aspect-ratio: 1; }
/* gold diamond under the large photo */
.bubble--lg::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -16px;
	width: 9px; height: 9px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.6);
}

@media (max-width: 760px) {
	.service { grid-template-columns: 1fr; gap: 20px; }
	.service__side { position: static; }
	.service__pics { width: min(90%, 340px); margin: 28px auto 16px; }
	.service__body { font-size: 18px; }
}

/* ---------- Footer ---------- */

.site-footer {
	padding: 40px 0;
	border-top: 1px solid var(--line);
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--muted);
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
}

.nowrap { white-space: nowrap; }

/* Section heading that links to its page */
.section__link {
	background: linear-gradient(var(--gold), var(--gold)) 50% 100% / 0 1px no-repeat;
	transition: color .3s ease, background-size .35s ease;
}
.section__link:hover,
.section__link:focus-visible { color: var(--accent); background-size: 100% 1px; }

/* ---------- Portfolio collections ---------- */

.collections {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: clamp(24px, 3vw, 40px);
	max-width: 1120px;
	margin: 0 auto;
}
.collection {
	position: relative;
	flex: 0 1 320px;
	padding: 16px 16px 22px;
	border: 1px solid var(--line);
	outline: 1px solid rgba(185, 154, 98, 0.45);
	outline-offset: -8px;
	background: rgba(250, 246, 241, 0.9);
	color: var(--ink);
	font: inherit;
	text-align: center;
	cursor: pointer;
	box-shadow: 0 24px 50px -34px rgba(44, 37, 34, 0.45);
	transition: transform .35s ease, box-shadow .35s ease;
}
/* gold diamond on the top edge */
.collection::before {
	content: "";
	position: absolute;
	left: 50%; top: -5px;
	z-index: 1;
	width: 9px; height: 9px;
	background: var(--gold);
	transform: translateX(-50%) rotate(45deg);
	box-shadow: 0 0 0 4px var(--ivory), 0 0 0 5px rgba(185, 154, 98, 0.6);
}
.collection:hover,
.collection:focus-visible {
	transform: translateY(-6px);
	box-shadow: 0 34px 60px -30px rgba(44, 37, 34, 0.55);
}
.collection:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }

.collection__cover {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: center / cover no-repeat;
}
/* soft themed covers until photos are added */
.collection--boho .collection__cover      { background-color: #d9b59a; background-image: linear-gradient(135deg, #efdccb, #c99a7a); }
.collection--forest .collection__cover    { background-color: #a9b79f; background-image: linear-gradient(135deg, #dfe5d4, #8fa287); }
.collection--classical .collection__cover { background-color: #e6d7b8; background-image: linear-gradient(135deg, #f7f1e6, #d6c096); }
.collection--colourful .collection__cover { background-color: #f0d2c8; background-image: linear-gradient(135deg, #f6c9c4, #f3e1a8 35%, #bfe3d7 68%, #c9c6f0); }
.collection--events .collection__cover    { background-color: #d8b8b0; background-image: linear-gradient(135deg, #f3e2dc, #b98e86); }
.collection__cover.has-photo .collection__icon { display: none; }
.collection__cover::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(transparent 55%, rgba(24, 14, 8, 0.18));
	transition: opacity .35s ease;
}
.collection__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 92px; height: 92px;
	border: 1px solid rgba(255, 255, 255, 0.75);
	border-radius: 50%;
	outline: 1px solid rgba(255, 255, 255, 0.35);
	outline-offset: 5px;
	transition: transform .5s ease;
}
.collection__icon svg {
	width: 46px; height: 46px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.1;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.collection:hover .collection__icon { transform: scale(1.06); }

.collection__name {
	display: block;
	margin-top: 18px;
	font-family: var(--serif);
	font-size: 30px;
	font-style: italic;
	line-height: 1.2;
}
.collection__name::after {
	content: "";
	display: block;
	width: 60px; height: 1px;
	margin: 12px auto 0;
	background: linear-gradient(to right, transparent, var(--gold), transparent);
	transition: width .35s ease;
}
.collection:hover .collection__name::after { width: 120px; }

/* ---------- Collection pop-up ---------- */

html.lightbox-open { overflow: hidden; }

.popup {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(12px, 3vw, 40px);
	background: rgba(24, 16, 11, 0.72);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	opacity: 0;
	transition: opacity .3s ease;
}
.popup[hidden] { display: none; }
.popup.is-visible { opacity: 1; }

/* the framed ivory panel, in the site's card style */
.popup__panel {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(100%, 1180px);
	max-height: 100%;
	padding: clamp(22px, 3.5vw, 44px) clamp(16px, 3.5vw, 44px) 0;
	background:
		linear-gradient(rgba(250, 246, 241, 0.9), rgba(250, 246, 241, 0.9)),
		url("../images/bow-retro.jpg") 35% 60% / cover no-repeat,
		var(--ivory);
	border: 1px solid rgba(247, 236, 217, 0.7);
	outline: 1px solid rgba(185, 154, 98, 0.55);
	outline-offset: -10px;
	box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
	transform: translateY(12px) scale(0.985);
	transition: transform .35s ease;
}
.popup.is-visible .popup__panel { transform: none; }

.popup__bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 0 52px;
	position: relative;
}
.popup__title {
	margin: 0;
	font-family: var(--serif);
	font-size: clamp(32px, 4vw, 48px);
	font-style: italic;
	font-weight: 400;
}
.popup__close { position: absolute; right: 0; top: 50%; margin-top: -21px; }
.popup__panel > .ornament { margin: 14px auto 24px; }

.popup__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(46%, 190px), 1fr));
	gap: clamp(10px, 1.4vw, 18px);
	align-content: start;
	grid-auto-rows: max-content;
	flex: 1 1 auto;
	min-height: 0;
	overflow-y: auto;
	padding: 4px 4px clamp(22px, 3vw, 40px);
	margin: 0 -4px;
	overscroll-behavior: contain;
}
.popup__thumb {
	position: relative;
	display: block;
	padding: 0;
	border: 4px solid #fff;
	outline: 1px solid rgba(185, 154, 98, 0.5);
	background: var(--blush);
	cursor: zoom-in;
	overflow: hidden;
	box-shadow: 0 14px 30px -20px rgba(44, 37, 34, 0.6);
	transition: transform .3s ease, box-shadow .3s ease, outline-color .3s ease;
}
.popup__thumb img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
	transition: transform .6s ease;
}
.popup__thumb:hover,
.popup__thumb:focus-visible {
	transform: translateY(-3px);
	outline-color: var(--gold);
	box-shadow: 0 20px 36px -20px rgba(44, 37, 34, 0.7);
}
.popup__thumb:hover img { transform: scale(1.06); }
.popup__thumb:focus-visible { outline: 2px solid var(--gold); }

/* expanded photo */
.viewer {
	position: fixed;
	inset: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: clamp(14px, 2.5vh, 26px);
	padding: 18px clamp(12px, 3vw, 40px) clamp(16px, 3vh, 34px);
	background: rgba(24, 16, 11, 0.94);
	animation: viewer-in .3s ease;
}
/* top row: grid button · prev · counter · next · close */
.viewer__bar {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	padding: 6px 6px 0;
}
.viewer__nav {
	display: flex;
	align-items: center;
	gap: clamp(18px, 3vw, 34px);
}
.viewer[hidden] { display: none; }
@keyframes viewer-in { from { opacity: 0; } to { opacity: 1; } }
.viewer__img {
	display: block;
	flex: 0 1 auto;
	max-width: min(100%, 1400px);
	max-height: 100%;
	min-width: 0;
	min-height: 0;
	object-fit: contain;
	margin: auto 0;
	border: 6px solid #f7ecd9;
	outline: 1px solid rgba(185, 154, 98, 0.8);
	outline-offset: 6px;
	box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
	opacity: 0;
	transform: scale(0.97);
	transition: opacity .4s ease, transform .5s ease;
}
.viewer__img.is-loaded { opacity: 1; transform: none; }
.viewer__count {
	min-width: 64px;
	text-align: center;
	font-size: 12px;
	letter-spacing: 0.24em;
	color: rgba(247, 236, 217, 0.8);
}

/* diamond-shaped buttons, like the dividers */
.popup__btn {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px; height: 42px;
	padding: 0;
	border: 1px solid rgba(185, 154, 98, 0.8);
	background: rgba(250, 246, 241, 0.6);
	color: var(--ink);
	cursor: pointer;
	transform: rotate(45deg);
	transition: background-color .25s ease, color .25s ease;
}
.viewer .popup__btn { background: rgba(24, 16, 11, 0.4); color: #f7ecd9; }
.popup__btn svg {
	width: 18px; height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
	transform: rotate(-45deg);
}
.popup__btn:hover,
.popup__btn:focus-visible,
.viewer .popup__btn:hover,
.viewer .popup__btn:focus-visible { background: var(--gold); color: #fff; outline: none; }

@media (max-width: 600px) {
	.popup { padding: 10px; }
	.popup__bar { padding: 0 44px; justify-content: flex-start; }
	.viewer { padding: 12px 10px 16px; }
	.viewer__nav { gap: 14px; }
	.viewer__count { min-width: 52px; letter-spacing: 0.14em; }
}

/* ---------- Short screens (phones turned sideways) ---------- */

@media (max-height: 520px) and (orientation: landscape) {
	:root { --header-h: 60px; }
	.brand__logo { height: 44px; }
	/* keep the pinned intro within the screen */
	.hero--photo { padding: calc(var(--header-h) + 14px) var(--gutter) 18px; }
	.hero--photo .hero__inner { padding: 22px clamp(20px, 5vw, 56px); max-width: 760px; }
	.hero--photo .hero__lead { font-size: clamp(22px, 3.4vw, 32px); margin-bottom: 12px; }
	.hero--photo .hero__text { font-size: 14px; line-height: 1.6; }
	.hero--photo .scroll-cue { display: none; }
	/* phone menu: one row across the screen so it fits the low height */
	.nav ul { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center; }
	.nav li { flex-direction: row; }
	.nav li + li::before { margin: 0 16px; }
	.nav a { font-size: 19px; }
	.nav li:last-child { padding-top: 0; }
	.nav li:last-child::before { margin: 0 16px; }
	/* pop-up: use the full height */
	.popup { padding: 8px 16px; }
	.popup__panel { padding-top: 14px; }
	.popup__title { font-size: 26px; }
	.popup__panel > .ornament { margin: 6px auto 12px; }
	.popup__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.viewer { padding: 8px 16px 10px; gap: 8px; }
	.viewer .popup__btn { width: 34px; height: 34px; }
}
