/* Ysabeau, SIL Open Font License (assets/fonts/OFL.txt). */
@font-face {
	font-family: "Ysabeau";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-cyrillic-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
	font-family: "Ysabeau";
	font-style: italic;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-cyrillic-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}
@font-face {
	font-family: "Ysabeau";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-cyrillic-wght-normal.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
	font-family: "Ysabeau";
	font-style: italic;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-cyrillic-wght-italic.woff2") format("woff2");
	unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}
@font-face {
	font-family: "Ysabeau";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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;
}
@font-face {
	font-family: "Ysabeau";
	font-style: italic;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-latin-ext-wght-italic.woff2") format("woff2");
	unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,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;
}
@font-face {
	font-family: "Ysabeau";
	font-style: normal;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-latin-wght-normal.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: "Ysabeau";
	font-style: italic;
	font-weight: 1 1000;
	font-display: swap;
	size-adjust: 108%;
	src: url("../fonts/ysabeau-latin-wght-italic.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;
}

:root {
	--wine: #5c272d;
	--wine-dark: #471e23;
	--paper: #f7f5f0;
	--ink: #000;
	--text-soft: #333;
	--font: "Ysabeau", Optima, Candara, "Noto Sans", sans-serif;
	--width: 978px;
	--gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	min-height: 100dvh;
	background: #fff;
	color: var(--ink);
	font: 400 1rem/1.69 var(--font);
	letter-spacing: .4px;
	overflow-wrap: break-word;
	font-variant-numeric: lining-nums;
}
img { max-width: 100%; height: auto; }
a { color: var(--wine); text-underline-offset: .18em; text-decoration-thickness: 1px; text-decoration-color: transparent; }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid #c58a42; outline-offset: 2px; }
strong, b { color: var(--wine); font-weight: 600; }
p { margin: 0 0 1.5em; }
ul, ol { margin: 0 0 1.5em; padding-left: 1.3em; }
li { margin-bottom: 1.5em; color: var(--text-soft); line-height: 27px; }

h1, h2, h3 { color: var(--wine); font-weight: 400; letter-spacing: 0; text-wrap: balance; }
h1, .title { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem); line-height: 1.25; margin: 0 0 .35em; }
h2 { font-size: 1.5rem; line-height: 1.45; margin: 0 0 .8em; }
h3 { font-size: 1.28rem; line-height: 1.5; margin: 0 0 1em; }
h2.title { font-size: clamp(2rem, 1.3rem + 2.6vw, 2.875rem); line-height: 1.25; margin-bottom: .35em; }

.wrap { width: 100%; max-width: calc(var(--width) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -100px; z-index: 200; background: #fff; padding: 8px 14px; }
.skip-link:focus { top: 8px; }

/* Header */
.site-header { background: var(--paper); }
.site-header__inner { position: relative; min-height: 145px; }
.lang-nav ul { display: flex; flex-wrap: wrap; justify-content: center; margin: 0; padding: 12px 0 0; list-style: none; }
.lang-nav li { margin: 0; line-height: 1; }
.lang-nav a { display: block; padding: 6px 8px; font-size: 1rem; line-height: 20px; color: #444; letter-spacing: 0; text-decoration: none; }
.lang-nav a:hover, .lang-nav a[aria-current] { color: var(--wine); }
.lang-nav a[aria-current] { text-decoration: underline; text-decoration-color: currentColor; text-underline-offset: 6px; }
.site-logo { text-align: center; padding: 6px 80px 0; }
.site-logo a { display: inline-block; text-decoration: none; font-size: 1.8rem; }
.site-logo img { display: block; width: 514px; }
.site-badge { position: absolute; right: var(--gutter); bottom: 0; line-height: 0; }
.site-badge img { width: 60px; }

/* Main navigation */
.main-nav-bar { background: var(--wine); position: sticky; top: 0; z-index: 50; }
.admin-bar .main-nav-bar { top: 32px; }
.main-nav__list { display: flex; flex-wrap: wrap; justify-content: center; column-gap: 4px; margin: 0; padding: 0; list-style: none; }
.main-nav__list li { position: relative; margin: 0; line-height: 1; }
.main-nav__list a {
	display: block;
	padding: 0 14px;
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	line-height: 55px;
	letter-spacing: 0;
	text-transform: uppercase;
	text-decoration: none;
}
.main-nav__list > li:hover > a,
.main-nav__list > li:focus-within > a,
.main-nav__list a:focus-visible,
.main-nav__list > .current-menu-item:not(.menu-item-type-custom) > a,
.main-nav__list > .current-menu-ancestor > a { background: var(--wine-dark); }
.main-nav__list .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	width: 300px;
	margin: 0;
	padding: 5px 0;
	list-style: none;
	background: #fff;
	box-shadow: 1px 4px 14px -4px rgb(0 0 0 / .45);
	visibility: hidden;
	opacity: 0;
	transition: opacity .2s, visibility .2s;
}
.main-nav__list li:focus-within > .sub-menu,
.main-nav__list li.is-open > .sub-menu { visibility: visible; opacity: 1; }
/* Hover only with a real pointer: on touch screens a tap opens and closes the submenu. */
@media (hover: hover) {
	.main-nav__list li:hover > .sub-menu { visibility: visible; opacity: 1; }
}
.main-nav__list .sub-menu a { padding: 10px 14px; color: #555; font-size: 17px; font-weight: 400; line-height: 1.35; text-transform: none; border-bottom: 1px solid #f2f2f2; }
.main-nav__list .sub-menu a:hover { background: var(--paper); color: var(--wine); }
.main-nav__logo, .main-nav__toggle, .main-nav__expand, .lang-nav--menu { display: none; }

/* Slider and page images */
.slider { position: relative; height: clamp(220px, 41.7vw, 500px); overflow: hidden; background: var(--paper); }
.slider__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.slider__slide.is-active { opacity: 1; }
.slider__slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.page-hero { height: clamp(160px, 25vw, 300px); overflow: hidden; background: var(--paper); }
.page-hero img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Content */
.site-main { flex: 1; }
.page-content::after { content: ""; display: table; clear: both; }
.page-content--text { padding-top: 40px; padding-bottom: 32px; }
.page-content--text h1 { margin-top: .3em; }
.band { padding: 24px 0 20px; }
.band--alt { background: var(--paper); }
.site-main > .page-content > .band:last-child { padding-bottom: 36px; }
.cols-2 { columns: 2; column-gap: 32px; margin-bottom: 1.5em; }
.cols-2 li { break-inside: avoid; }
.cols-2 > ul { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-2 img { border-radius: 5px; }
.band a[id] { scroll-margin-top: 80px; }

/* Home */
.home-intro {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 440px) minmax(0, 1fr);
	grid-template-areas: "left text right";
	align-items: end;
	column-gap: 28px;
	max-width: 1180px;
	margin: 0 auto;
	padding: 24px var(--gutter) 0;
}
.home-intro > figure { margin: 0; line-height: 0; text-align: center; }
.home-intro > figure img { width: auto; max-width: 100%; }
.home-intro > figure > p, .home-intro > figure br { margin: 0; }
.notary--left { grid-area: left; }
.notary--right { grid-area: right; }
.home-intro__text { grid-area: text; align-self: start; text-align: center; padding-bottom: 80px; }

/* Buttons */
.btn {
	display: inline-block;
	padding: 30px 62px;
	border: 1px solid rgb(170 170 170 / .2);
	border-radius: 0;
	background: #fcfcfc;
	box-shadow: 0 1px 1px rgb(0 0 0 / .07);
	color: var(--wine);
	font: 400 1.5rem/1.3 var(--font);
	letter-spacing: 0;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .3s, color .3s;
}
.btn:hover, .btn:focus-visible { background: var(--wine); color: #fff; text-decoration: none; }

/* Tables (cookie policy) */
.page-content table { width: 100%; margin: 0 0 1.5em; border-collapse: collapse; font-size: .95rem; line-height: 1.5; letter-spacing: .02em; }
.page-content th, .page-content td { padding: 10px 12px; border: 1px solid #e3ded3; text-align: left; vertical-align: top; }
.page-content th { background: var(--paper); color: var(--wine); font-weight: 600; }
.cookie-table td:first-child { overflow-wrap: anywhere; font-weight: 600; }
@media (max-width: 700px) {
	.cookie-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.cookie-table, .cookie-table tbody, .cookie-table tr, .cookie-table td { display: block; }
	.cookie-table tr { margin-bottom: 12px; border: 1px solid #e3ded3; }
	.page-content .cookie-table td { border: 0; padding: 6px 12px; }
	.cookie-table td::before { content: attr(data-label) ": "; color: var(--wine); font-weight: 600; }
}

/* Footer */
.site-footer { background: var(--wine); color: #fff; }
.site-footer__columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 24px 0 30px; }
.site-footer__title { margin: 0 0 22px; color: #fff; font-size: 1.65rem; font-weight: 600; }
.site-footer ul { margin: 0; padding: 0 0 0 3px; list-style: none; }
.site-footer li { margin: 0; padding: 2px 0; color: #fff; font-size: 1rem; font-weight: 400; line-height: 27px; letter-spacing: .03em; }
.site-footer li a, .site-footer li strong { color: inherit; font-size: inherit; font-weight: inherit; }
.site-footer li a.map-btn { display: inline-block; margin-top: 4px; padding: 0 14px; border-radius: 31px; background: #fff; color: var(--wine); }
.site-footer__legal { margin: 0; padding: 14px 0; border-top: 1px solid rgb(255 255 255 / .21); color: rgb(255 255 255 / .65); font-size: .85rem; text-align: center; }
.site-footer__legal a { color: inherit; }

/* Image viewer */
.lightbox { max-width: min(96vw, 1200px); max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lightbox::backdrop { background: rgb(0 0 0 / .85); }
.lightbox img { display: block; max-width: 96vw; max-height: 88vh; }
.lightbox button { display: block; margin: 0 0 8px auto; padding: 4px 14px; border: 0; background: #fff; color: var(--wine); font: inherit; cursor: pointer; }

/* Responsive */
@media (max-width: 1100px) {
	.home-intro { column-gap: 16px; }
}

@media (max-width: 880px) {
	/* One white sticky bar: logo on the left, menu button on the right. */
	.site-header { display: none; }
	.main-nav-bar { background: #fff; border-bottom: 1px solid #e9e4da; }
	.main-nav { display: flex; flex-wrap: wrap; align-items: center; }
	.main-nav__logo { display: block; flex: 1; min-width: 0; padding-left: var(--gutter); line-height: 0; }
	.main-nav__logo a { display: inline-block; max-width: 100%; font-size: 1.1rem; line-height: 1.4; text-decoration: none; }
	.main-nav__logo img { display: block; width: min(340px, 100%); }

	.admin-bar .main-nav-bar { top: 46px; }
	.main-nav { padding-inline: 0; }
	.lang-nav--header { display: none; }
	.main-nav__panel { flex: 0 0 100%; max-height: calc(100dvh - 64px); overflow-y: auto; background: var(--wine); }
	.js .main-nav__panel { display: none; }
	.js .main-nav__panel.is-open { display: block; }
	/* Language buttons: square, small and always on a single line. */
	.lang-nav--menu { display: block; padding: 14px var(--gutter) 16px; border-top: 1px solid rgb(255 255 255 / .25); }
	.lang-nav--menu ul { flex-wrap: nowrap; gap: 5px; padding: 0; }
	.lang-nav--menu li { flex: 1 1 0; max-width: 56px; }
	.lang-nav--menu a { padding: 9px 2px; border: 1px solid rgb(255 255 255 / .35); color: #fff; font-size: .72rem; line-height: 16px; letter-spacing: 0; text-align: center; white-space: nowrap; }
	.lang-nav--menu a:hover { color: #fff; border-color: #fff; text-decoration: none; }
	.lang-nav--menu a[aria-current] { background: #fff; border-color: #fff; color: var(--wine); text-decoration: none; }
	.js .main-nav__toggle {
		display: flex;
		flex: none;
		align-items: center;
		justify-content: center;
		width: 54px;
		height: 62px;
		margin: 0 calc(var(--gutter) - 14px) 0 8px;
		padding: 0;
		border: 0;
		background: none;
		color: var(--wine);
		cursor: pointer;
	}
	html:not(.js) .main-nav__logo { padding-block: 20px; }
	.main-nav__icon, .main-nav__icon::before, .main-nav__icon::after { display: block; width: 26px; height: 2px; background: currentColor; }
	.main-nav__icon { position: relative; }
	.main-nav__icon::before, .main-nav__icon::after { content: ""; position: absolute; left: 0; }
	.main-nav__icon::before { top: -7px; }
	.main-nav__icon::after { top: 7px; }
	/* Open menu: the three lines turn into a cross. */
	.main-nav__icon, .main-nav__icon::before, .main-nav__icon::after { transition: transform .25s, top .25s, background-color .25s; }
	.main-nav__toggle[aria-expanded="true"] .main-nav__icon { background: transparent; }
	.main-nav__toggle[aria-expanded="true"] .main-nav__icon::before { top: 0; background: var(--wine); transform: rotate(45deg); }
	.main-nav__toggle[aria-expanded="true"] .main-nav__icon::after { top: 0; background: var(--wine); transform: rotate(-45deg); }
	.main-nav__list { flex-direction: column; background: var(--wine); }
	.main-nav__list > .menu-item-has-children { display: grid; grid-template-columns: minmax(0, 1fr) 60px; }
	.main-nav__list .sub-menu { grid-column: 1 / -1; }
	.js .main-nav__list .sub-menu { display: none; }
	.js .main-nav__list .is-open > .sub-menu { display: block; }
	.main-nav__expand { display: grid; place-items: center; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; }
	.main-nav__expand::before { content: ""; width: 9px; height: 9px; margin-top: -4px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .25s; }
	.main-nav__expand[aria-expanded="true"] { background: var(--wine-dark); }
	.main-nav__expand[aria-expanded="true"]::before { margin-top: 5px; transform: rotate(-135deg); }
	.main-nav__list a { line-height: 1.4; padding: 13px var(--gutter); }
	.main-nav__list .sub-menu { position: static; width: auto; padding: 0; background: var(--wine-dark); box-shadow: none; visibility: visible; opacity: 1; }
	.main-nav__list .sub-menu a { padding: 10px 32px; color: #fff; font-size: 16px; border-bottom-color: rgb(255 255 255 / .08); }
	.main-nav__list .sub-menu a:hover { background: #311618; color: #fff; }

	.home-intro { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "text text" "left right"; }
	.home-intro__text { padding-bottom: 24px; max-width: 560px; justify-self: center; }
}

@media (max-width: 700px) {
	.cols-2 { columns: 1; }
	.grid-2 { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	.site-footer__columns { grid-template-columns: minmax(0, 1fr); gap: 30px; }
	/* Legal line: one entry per row. */
	.site-footer__legal { display: flex; flex-direction: column; align-items: flex-start; padding: 10px 0 14px; text-align: left; }
	.site-footer__legal > * { padding: 6px 0; }
	.site-footer__separator { display: none; }
	.site-footer ul { padding-left: 0; }
	.btn { padding: 22px 36px; font-size: 1.25rem; }
}

/* Scroll reveal (classes added by main.js) */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-visible { opacity: 1; transform: none; transition: opacity .9s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.22, .61, .36, 1); }
@media print { .reveal { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.slider__slide, .main-nav__list .sub-menu, .main-nav__expand::before, .main-nav__list a::after, .main-nav__icon, .main-nav__icon::before, .main-nav__icon::after, .btn { transition: none; }
}

/* Desktop: a small arrow marks the items that unfold. */
@media (min-width: 881px) {
	.main-nav__list > .menu-item-has-children > a::after { content: ""; display: inline-block; flex: none; width: 6px; height: 6px; margin-left: 8px; vertical-align: 3px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .25s, vertical-align .25s; }
	.main-nav__list > .menu-item-has-children:focus-within > a::after,
	.main-nav__list > .menu-item-has-children.is-open > a::after { vertical-align: 0; transform: rotate(-135deg); }
	@media (hover: hover) {
		.main-nav__list > .menu-item-has-children:hover > a::after { vertical-align: 0; transform: rotate(-135deg); }
	}
}

/* Narrow desktop: keep the menu on one line. */
@media (min-width: 881px) and (max-width: 960px) {
	.main-nav__list { column-gap: 0; }
	.main-nav__list > li > a { padding-inline: 9px; font-size: 13px; }
}

/* Russian menu labels are much longer: tighten them so the bar stays on one line. */
@media (min-width: 881px) {
	:lang(ru) .main-nav__list { column-gap: 0; flex-wrap: nowrap; }
	:lang(ru) .main-nav__list > li > a { padding-inline: 8px; font-size: 13px; }
	:lang(ru) .main-nav__list > li { flex: 0 1 auto; }
	:lang(ru) .main-nav__list > li > a { display: flex; align-items: center; justify-content: center; min-height: 55px; line-height: 1.25; text-align: center; }
}
