/* Put this in /local/assets/css/critical.css */

/*
 * Small static Cormorant Garamond 600 for first-screen H1.
 * The normal variable Cormorant Garamond remains available for the rest
 * of the page through --font-heading.
 */
@font-face {
	font-family: "Cormorant Garamond Fallback";
	src: local("Georgia");
	size-adjust: 83%;
}
@font-face {
	font-family: "Cormorant Garamond Critical";
	font-style: normal;
	font-display: swap;
	font-weight: 600;
	src: url("../fonts/cormorant-garamond/cormorant-garamond-critical-600.woff2") format("woff2");
}

:root {
	--font-heading-critical:
			"Cormorant Garamond Critical",
			"Cormorant Garamond",
			Georgia,
			serif;
}

/* Known first-screen H1s that already use Cormorant Garamond at weight 600. */
.hero h1,
.category-hero h1,
.rr-article-head h1,
.rr-about-hero h1,
.rr-search-page h1,
.rr-news-hero h1,
.story-hero h1 {
	--font-heading:
			"Cormorant Garamond Critical",
			"Cormorant Garamond Fallback",
			serif;

	font-family: var(--font-heading);
}


/*
 * Critical CSS for brodnik.ru.
 * Blocking by design: fonts + base + global header + homepage Hero + the
 * portion of main.fresh that is visible at the bottom of the initial viewport.
 * Generated from the previously blocking styles.css without changing rule values.
 */

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-greek-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-vietnamese-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
    font-family: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-latin-ext-wght-normal.woff2") format("woff2-variations");
    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: "Manrope";
    font-style: normal;
    font-display: swap;
    font-weight: 400 800;
    src: url("../fonts/manrope/manrope-latin-wght-normal.woff2") format("woff2-variations");
    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: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500 700;
    src: url("../fonts/cormorant-garamond/cormorant-garamond-cyrillic-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500 700;
    src: url("../fonts/cormorant-garamond/cormorant-garamond-cyrillic-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500 700;
    src: url("../fonts/cormorant-garamond/cormorant-garamond-vietnamese-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

@font-face {
    font-family: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500 700;
    src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-ext-wght-normal.woff2") format("woff2-variations");
    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: "Cormorant Garamond";
    font-style: normal;
    font-display: swap;
    font-weight: 500 700;
    src: url("../fonts/cormorant-garamond/cormorant-garamond-latin-wght-normal.woff2") format("woff2-variations");
    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 {
	--raw-forest: #10231D;
	--road-clay: #B66A3C;
	--dust-gold: #A88A5D;
	--fog-blue: #6F8588;
	--bone-paper: #F4EFE7;
	--warm-paper: #FBF7EF;
	--mist-gray: #E7E5DE;
	--deep-night: #0B1110;
	--card-bg: #FFFDF8;
	--charcoal: #202322;
	--soft-charcoal: #3B403E;
	--muted-text: #71736D;
	--light-text: #F7F2E8;
	--border-soft: rgba(16, 35, 29, 0.12);
	--border-light: rgba(255, 253, 248, 0.22);
	--shadow-soft: 0 18px 50px rgba(16, 35, 29, 0.08);
	--shadow-card: 0 12px 32px rgba(16, 35, 29, 0.10);
	--shadow-hover: 0 22px 60px rgba(16, 35, 29, 0.14);
	--font-heading: "Cormorant Garamond", Georgia, serif;
	--font-body: "Manrope", Arial, sans-serif;
	--radius-xs: 6px;
	--radius-sm: 10px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;
	--radius-pill: 10px;
	--ease-soft: cubic-bezier(.22, .61, .36, 1);
	--rr-404-container: 1370px;
	--rr-404-gutter: 32px;

	--rr-404-forest: var(--raw-forest, #10231D);
	--rr-404-paper: var(--bone-paper, #F4EFE7);
	--rr-404-warm-paper: var(--warm-paper, #FBF7EF);
	--rr-404-clay: var(--road-clay, #B66A3C);
	--rr-404-gold: var(--dust-gold, #A88A5D);
	--rr-404-charcoal: var(--charcoal, #202322);
	--rr-404-muted: var(--muted-text, #71736D);
	--rr-404-border: rgba(16, 35, 29, 0.12);

	--rr-404-heading-font: var(--font-heading, "Cormorant Garamond", Georgia, serif);
	--rr-404-body-font: var(--font-body, "Manrope", Arial, sans-serif);
}

* {
	box-sizing: border-box;
}

html {
	min-width: 320px;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--bone-paper);
	background-image: url("../img/paper-texture.svg");
	color: var(--charcoal);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.is-locked {
	overflow: hidden;
}

a {
	color: inherit;
}

img {
	max-width: 100%;
	display: block;
}

button,
input {
	font: inherit;
}

button {
	cursor: pointer;
}

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	border: 0;
	white-space: nowrap;
}

.page-frame {
	max-width: 1370px;
	margin: 0 auto;
}

.site-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(251, 247, 239, 0.91);
	backdrop-filter: blur(18px);
	border-bottom: 1px solid rgba(16, 35, 29, 0.08);
}

.site-header__inner {
	height: 88px;
	padding: 0 clamp(22px, 4vw, 56px);
	display: grid;
	grid-template-columns: 230px 1fr auto;
	align-items: center;
	gap: 24px;
}

.brand {
	width: 218px;
	display: inline-flex;
	align-items: center;
	text-decoration: none;
}

.brand__logo {
	width: 100%;
	height: auto;
}

.site-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: clamp(18px, 2.4vw, 38px);
}

.site-nav a {
	color: var(--soft-charcoal);
	text-decoration: none;
	font-size: 14px;
	font-weight: 750;
	transition: color .2s var(--ease-soft);
}

.site-nav a:hover {
	color: var(--road-clay);
}

.site-nav a.selected{
	color: var(--dust-gold);
}

.header-actions {
	display: flex;
	align-items: center;
	gap: 16px;
}

.icon-button,
.burger {
	width: 44px;
	height: 44px;
	border: 0;
	background: transparent;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .2s var(--ease-soft), transform .2s var(--ease-soft);
}

.icon-button img {
	width: 27px;
	height: 27px;
}

.icon-button:hover,
.burger:hover {
	background: rgba(16, 35, 29, 0.06);
	transform: translateY(-1px);
}

.burger {
	display: none;
	flex-direction: column;
	gap: 5px;
}

.burger span {
	width: 24px;
	height: 2px;
	background: var(--raw-forest);
	border-radius: 999px;
	transition: transform .22s var(--ease-soft), opacity .22s var(--ease-soft);
}

.burger.is-active span:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.burger.is-active span:nth-child(2) {
	opacity: 0;
}

.burger.is-active span:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 46px;
	border-radius: 10px;
	padding: 13px 24px;
	font-size: 14px;
	line-height: 1;
	font-weight: 800;
	text-decoration: none;
	border: 0;
	transition: transform .2s var(--ease-soft), box-shadow .2s var(--ease-soft), background .2s var(--ease-soft), color .2s var(--ease-soft);
}

.btn:hover {
	transform: translateY(-1px);
}

.btn-accent {
	background: var(--road-clay);
	color: #fff;
	box-shadow: 0 12px 28px rgba(182, 106, 60, 0.20);
}

.btn-accent:hover {
	background: #9F5732;
}

.btn-ghost {
	color: var(--light-text);
	background: rgba(11,17,16,.34);
	border: 1px solid rgba(255,255,255,.52);
	backdrop-filter: blur(8px);
}

.btn-ghost:hover {
	background: rgba(255,255,255,.12);
}

.hero {
	position: relative;
	/*min-height: clamp(430px, 35vw, 540px);*/
	overflow: hidden;
	color: var(--light-text);
	background: var(--deep-night);
}

.hero__img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	filter: saturate(.82) contrast(1.04);
}

.hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background:
			linear-gradient(90deg, rgba(11,17,16,.84) 0%, rgba(11,17,16,.56) 46%, rgba(11,17,16,.20) 100%),
			linear-gradient(180deg, rgba(11,17,16,.04) 0%, rgba(11,17,16,.42) 100%);
	z-index: 1;
}

.hero__content {
	position: relative;
	z-index: 2;
	max-width: 680px;
	padding: clamp(36px, 5.3vw, 66px) clamp(26px, 5vw, 58px);
}

.eyebrow {
	margin: 0 0 18px;
	color: var(--dust-gold);
	font-size: 12px;
	line-height: 1.2;
	text-transform: uppercase;
	letter-spacing: .18em;
	font-weight: 850;
}

.hero h1 {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(44px, 5.6vw, 60px);
	line-height: .94;
	letter-spacing: -.032em;
	font-weight: 600;
	text-wrap: balance;
}

.hero__lead {
	max-width: 600px;
	margin: 22px 0 0;
	color: rgba(247, 242, 232, .91);
	font-size: clamp(16px, 1.5vw, 19px);
	line-height: 1.55;
}

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 30px;
}

.home-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 34px;
	padding: 0 clamp(22px, 4vw, 56px) 0;
	margin-top: 0;
	margin-bottom: 10px;
}

.content-column {
	min-width: 0;
}

.section-heading {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 18px;
	padding-top: 12px;
	margin-bottom: 16px;
}

.section-heading h2 {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(32px, 3.4vw, 48px);
	line-height: 1;
	color: var(--charcoal);
	font-weight: 600;
}

.mobile-drawer {
	position: fixed;
	inset: 78px 14px auto 14px;
	z-index: 30;
	display: none;
	padding: 18px;
	border-radius: 18px;
	background: rgba(251,247,239,.97);
	box-shadow: 0 20px 60px rgba(16,35,29,.24);
	border: 1px solid rgba(16,35,29,.08);
}

.mobile-drawer.is-open {
	display: grid;
}

.mobile-drawer a {
	padding: 13px 8px;
	color: var(--soft-charcoal);
	text-decoration: none;
	font-weight: 800;
	border-bottom: 1px solid rgba(16,35,29,.07);
}

.mobile-drawer .btn {
	margin-top: 8px;
	color: #fff;
	border-bottom: 0;
}

@media (max-width: 1180px) {
.site-header__inner {
		grid-template-columns: 210px 1fr auto;
	}
.site-nav {
		gap: 18px;
	}
.home-layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 920px) {
.site-header__inner {
		height: 76px;
		grid-template-columns: 1fr auto;
		padding: 0 18px;
	}
.brand {
		width: 164px;
	}
.site-nav,
	.search-toggle,
	.header-subscribe {
		display: none;
	}
.burger {
		display: inline-flex;
	}
.hero {
		/*min-height: 390px;*/
	}
.hero::before {
		background:
				linear-gradient(180deg, rgba(11,17,16,.52) 0%, rgba(11,17,16,.78) 100%),
				linear-gradient(90deg, rgba(11,17,16,.62), rgba(11,17,16,.20));
	}
.hero__content {
		padding: 28px 22px 30px;
	}
.eyebrow {
		font-size: 9px;
		letter-spacing: .16em;
		margin-bottom: 10px;
	}
.hero h1 {
		font-size: 34px;
		line-height: 1.02;
		letter-spacing: -.02em;
	}
.hero__lead {
		max-width: 310px;
		margin-top: 14px;
		font-size: 13px;
		line-height: 1.48;
	}
.hero__actions {
		display: grid;
		gap: 10px;
		margin-top: 22px;
	}
.btn {
		width: fit-content;
		min-height: 43px;
		padding: 12px 18px;
	}
.hero .btn {
		width: 100%;
	}
.home-layout {
		padding: 0 18px;
	}
.section-heading {
		padding-top: 16px;
	}
.section-heading h2 {
		font-size: 26px;
	}
}

@media (max-width: 420px) {
.brand {
		width: 148px;
	}
.hero {
		/*min-height: 360px;*/
	}
.hero h1 {
		font-size: 31px;
	}
.hero__lead {
		font-size: 12px;
	}
}

.site-header{
	z-index: 999;
}

.raw-icon{
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: 0 0 auto;
	vertical-align: -0.125em;
	fill: currentColor;
}

.btn-ghost .raw-icon{
	color: var(--road-clay);
	font-size: 19px;
}

.mobile-drawer{
	width: 100%;
	inset: 76px 0 0;
	border-radius: 0;
	height: auto;
	min-height: 0;
	max-height: none;
	align-content: start;
	padding: 0;
	overflow-x: hidden;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	touch-action: pan-y;
	z-index: 1000;
}

.mobile-drawer a{
	padding: 13px 16px;
}

.header-personal-icon {
	display: block;
	width: 23px;
	height: 23px;
	flex: 0 0 23px;
}

.mobile-drawer__group {
	display: grid;
}

.mobile-drawer__group + .mobile-drawer__group {
	margin-top: 18px;
}

.mobile-drawer__title {
	padding: 18px 16px 7px;
	color: var(--dust-gold);
	font-size: 11px;
	line-height: 1.2;
	font-weight: 850;
	letter-spacing: 0.16em;
	text-transform: uppercase;
}

.mobile-drawer__group:first-child .mobile-drawer__title {
	padding-top: 22px;
}

.mobile-drawer__group:last-child {
	padding-bottom: calc(30px + env(safe-area-inset-bottom));
}

.mobile-drawer a.is-active,
.mobile-drawer a.selected {
	color: var(--road-clay);
}

.articles-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.45fr)
        minmax(0, 1fr)
        minmax(0, 1fr);
    grid-template-rows: repeat(2, minmax(185px, 1fr));
    gap: 18px;
}

.article-card {
    position: relative;
    min-width: 0;
    min-height: 185px;
    overflow: hidden;
    border-radius: 12px;
    background: #252722;
    isolation: isolate;
}

.article-card--large {
    grid-row: 1 / 3;
    min-height: 388px;
}

.article-card > a {
    position: absolute;
    inset: 0;
    display: block;
    color: #fff;
    text-decoration: none;
}

.article-card__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
            transform 0.45s ease,
            filter 0.45s ease;
}

.article-card__overlay {
    position: absolute;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 1;

    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;

    width: 100%;
    height: 100%;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;

    background:
            linear-gradient(
                    180deg,
                    rgba(17, 19, 16, 0.05) 0%,
                    rgba(17, 19, 16, 0.12) 28%,
                    rgba(17, 19, 16, 0.72) 68%,
                    rgba(17, 19, 16, 0.94) 100%
            );
}

.article-card--large .article-card__overlay {
    padding: 28px;
    background:
            linear-gradient(
                    180deg,
                    rgba(17, 19, 16, 0.03) 0%,
                    rgba(17, 19, 16, 0.12) 35%,
                    rgba(17, 19, 16, 0.78) 72%,
                    rgba(17, 19, 16, 0.96) 100%
            );
}

.articles-grid .article-card .tag {
    position: absolute;
    top: 20px !important;
    left: 20px !important;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 25px;
    margin: 0;
    padding: 5px 9px;

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;

    color: #fff;
    background: rgba(26, 29, 24, 0.62);
    backdrop-filter: blur(5px);

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card h3 {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;

    font-size: clamp(18px, 1.45vw, 22px);
    font-weight: 600;
    line-height: 1.13;
    letter-spacing: -0.015em;
    text-wrap: balance;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.article-card--large h3 {
    max-width: 92%;

    font-size: clamp(27px, 2.4vw, 38px);
    line-height: 1.08;

    -webkit-line-clamp: 3;
}

.article-card--large p {
    display: -webkit-box;
    overflow: hidden;
    max-width: 88%;
    margin: 14px 0 0;

    color: rgba(255, 255, 255, 0.84);
    font-size: 16px;
    line-height: 1.42;

    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.article-card .meta {
    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 12px;

    color: rgba(255, 255, 255, 0.76);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
}

.article-card .meta i {
    flex: 0 0 auto;
    font-size: 14px;
}

@media (max-width: 1050px) {
.articles-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }
.article-card--large {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 420px;
    }
.article-card:not(.article-card--large) {
        min-height: 230px;
    }
.article-card h3 {
        font-size: 22px;
    }
}

@media (max-width: 640px) {
.articles-grid {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
.article-card,
    .article-card--large,
    .article-card:not(.article-card--large) {
        min-height: 260px;
    }
.article-card--large {
        min-height: 390px;
    }
.article-card__overlay,
    .article-card--large .article-card__overlay {
        padding: 20px;
    }
.article-card:not(.article-card--large) h3 {
        font-size: 19px;
        line-height: 1.12;
        -webkit-line-clamp: 3;
    }
.article-card--large h3 {
        max-width: none;
        font-size: 26px;
        line-height: 1.08;
    }
.article-card--large p {
        max-width: none;
        font-size: 15px;
    }
}

@media (max-width: 420px) {
.article-card:not(.article-card--large) h3 {
        font-size: 18px;
    }
.article-card--large h3 {
        font-size: 24px;
    }
}
