/* ==========================================================================
   md-studio — база: шрифт, токены, сброс, типографика.
   Источники: Elementor kit post-292.css, Hello Elementor reset.css (reference/css/).
   Направление текста — через логические свойства (inline-start/end), сайт RTL.
   ========================================================================== */

/* --- Шрифт Assistant, вариативный 200–800, локально ---------------------- */
@font-face {
	font-family: 'Assistant';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-hebrew.woff2) format('woff2');
	unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
	font-family: 'Assistant';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-latin-ext.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: 'Assistant';
	font-style: normal;
	font-weight: 200 800;
	font-display: swap;
	src: url(../fonts/assistant-latin.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;
}

/* --- Токены (kit 292) ---------------------------------------------------- */
:root {
	--c-primary: #D23216;   /* акцент */
	--c-text: #3D3D3B;      /* текст и тёмные фоны */
	--c-accent: #C0C0C0;    /* вторичный, ссылки */
	--c-white: #FFFFFF;

	--font: 'Assistant', sans-serif;

	--container: 1140px;
	--gap: 20px;            /* --widgets-spacing Elementor */
}
@media (max-width: 1024px) { :root { --container: 1024px; } }
@media (max-width: 767px)  { :root { --container: 767px; } }

/* --- Сброс (Hello Elementor reset.css, без печати и таблиц-зебры) -------- */
html { line-height: 1.15; -webkit-text-size-adjust: 100%; }
*, ::before, ::after { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background-color: var(--c-white); }
h1, h2, h3, h4, h5, h6 { margin-block-start: .5rem; margin-block-end: 1rem; }
p { margin-block-start: 0; }
hr { box-sizing: content-box; height: 0; overflow: visible; }
b, strong { font-weight: bolder; }
small { font-size: 80%; }
sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; }
sub { bottom: -.25em; }
sup { top: -.5em; }
img { border-style: none; height: auto; max-width: 100%; }
figcaption { font-size: 16px; font-style: italic; font-weight: 400; line-height: 1.4; }
[hidden], template { display: none; }
dd, dl, dt, li, ol, ul { margin-block-start: 0; margin-block-end: 0; }
label { display: inline-block; line-height: 1; vertical-align: middle; }
button, input, optgroup, select, textarea { font-family: inherit; font-size: 1rem; line-height: 1.5; margin: 0; }
button, input { overflow: visible; }
button, select { text-transform: none; }
textarea { overflow: auto; resize: vertical; }
[type=button], [type=reset], [type=submit], button { -webkit-appearance: button; }
[type=button]:not(:disabled), [type=submit]:not(:disabled), button:not(:disabled) { cursor: pointer; }

/* --- Типографика (kit 292) ----------------------------------------------- */
body {
	color: var(--c-text);
	font-family: var(--font);
	font-size: 24px;
	font-weight: 300;
	line-height: 32px;
}
p { margin-block-end: 34px; }

a { color: var(--c-accent); font-weight: 400; text-decoration: none; background-color: transparent; }
a:hover { color: var(--c-text); text-decoration: none; }

h1, h2, h3, h4, h5, h6 { color: var(--c-text); font-family: var(--font); }
h1 { font-size: 92px; font-weight: 700; line-height: 76px; }
h2 { font-size: 54px; font-weight: 400; line-height: 48px; letter-spacing: -0.5px; }
h3 { font-size: 48px; font-weight: 400; line-height: 40px; }
h4 { font-size: 36px; font-weight: 400; line-height: 34px; }
h5 { font-size: 24px; font-weight: 700; line-height: 28px; }
h6 { font-size: 24px; font-weight: 500; line-height: 28px; }

@media (max-width: 1024px) {
	h2 { line-height: 74px; }
}
@media (max-width: 767px) {
	body { line-height: 24px; }
	h1 { line-height: 82px; }
	h2 { line-height: 50px; }
}

/* --- Служебное ----------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; }

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	height: 1px; width: 1px;
	overflow: hidden;
	position: absolute !important;
	word-wrap: normal !important;
}
.screen-reader-text:focus {
	clip: auto !important; clip-path: none;
	background-color: #eee; color: #333;
	display: block; height: auto; width: auto;
	font-size: 1rem; line-height: normal;
	padding: 12px 24px;
	inset-block-start: 5px; inset-inline-start: 5px;
	z-index: 100000;
}
.aligncenter { clear: both; display: block; margin-inline: auto; }
.alignright { float: right; margin-left: 1rem; }
.alignleft { float: left; margin-right: 1rem; }
