/*
Theme Name: User Space
Theme URI: https://t.me/midas34
Author: midas34
Author URI: https://t.me/midas34
Description: Единая информационная платформа - User Space
Version: 1.0.0
Tested up to: 8.2
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: userspace
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

Underscores is distributed under the terms of the GNU GPL v2 or later.

*/

/* Normalize
--------------------------------------------- */

/* normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
	font-size: 100%;
	line-height: 125%;
	scroll-behavior: smooth;
	overflow: auto;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizespeed;
	-webkit-text-size-adjust: 100%;
}

@media (min-width: 748px) {
html::-webkit-scrollbar {
	width: 6px;
}
html::-webkit-scrollbar-track {
	-webkit-box-shadow: 5px 5px 5px -5px rgba(34, 60, 80, 0.2) inset;
	background-color: #f9f9fd;
	border-radius: 10px;
}
html::-webkit-scrollbar-thumb {
	height: 105px;
	border-radius: 0 0 10px 10px;
	background: linear-gradient(180deg, #2672ec, #0a1c36);
	cursor: pointer;
}
}


:root {
     /* Контейнеры */
     --container: 1440px;
     --containerfull: 100%;

    /* Фон */
    --mainbackground: #2672EC;
    --backwhite: #ffffff;
    --fonbackcolor: #f8f9fa;

    /* Ссылки */
    --linkhover: #2672EC;
    --link: #2672EC;
    --currentmenu: #2672EC;
    --btmenucolor:#32353d;

    /* Кнопки */
    --btncolor: #2672EC;
    --btnhvcolor: #ffffff;
    --btnhover: #2672EC;
    --btnborder: #2672EC;
    /* input */
    --intborder: 1px solid rgb(38 114 236 / 30%);
    --intborderact: 1px solid rgb(38 114 236 / 50%);
    --intfon:rgb(38 114 236 / 5%);

    /* Контейнеры */
    --paddingwrap: 36px 52px;
    --paddingblock: 36px 52px;
    --brdradiuswrap: 6px;
    --borderradius: 12px;
    --colgap:calc(100vw / 48);

    /* Тени и границы */
    --headborderbottom: 1px solid #eaeaea;
    --boxshadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    --boxshadowwrap:0px 5px 10px 2px rgba(132, 144, 154, 0.2);

    /* Анимация */
    --alltransition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Шрифт */
    --fontmontserrat: "Montserrat", sans-serif;
    --fontnunito: "Nunito", sans-serif;
    --systemfont: 'Montserrat', 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, Tahoma, Geneva, Verdana, Oxygen-Sans, Ubuntu sans-serif;
    --menufontsize: 16px;
    --menulineheight: 150%;
    --lineheight: 125%;
    --menufontweight: 600;
    --fontcolor: #32353d;
    --headingcolor: #2672EC;

    /* Базовые значения FONT */
    --base-scale:calc(100vw / 75);
    --text-scale-ratio: 1.25;
    
    /* Размеры FONT */
    --p-fontsize:max(.75em, min(1em, calc(var(--base-scale) * 4)));
    --h1-fontsize:max(1.3em, min(2em, calc(var(--base-scale) * 4)));
    --h2-fontsize:max(1.2em, min(1.75em, calc(var(--base-scale) * 4)));
    --h3-fontsize:max(1.1em, min(1.55em, calc(var(--base-scale) * 4)));
    --h4-fontsize:max(1.05em, min(1.35em, calc(var(--base-scale) * 4)));
    --h5-fontsize:max(1em, min(1.25em, calc(var(--base-scale) * 4)));
    --h6-fontsize:max(.9em, min(1.15em, calc(var(--base-scale) * 4)));
    --field-fontsize:max(.75em, min(.85em, calc(var(--base-scale) * 4)));
    
    /* Межстрочные интервалы FONT */
    --headinglineheight: 1.5;
    --bodylineheight: 1.25;
}

.heading h2 {
    font-size: 28px;
    font-weight: 600;
    text-align: left;
    margin-bottom: 40px;
    color: #1a1a1a;
}

a:not(.button, .post-thumbnail, .nobgim) {
    display: inline-flex;
    background-image: linear-gradient(to top, var(--linkhover) 0px, var(--linkhover) 0px), linear-gradient(to top, rgba(38, 50, 56, 0.1) 0px, rgba(38, 50, 56, 0.1) 0px);
    background-position: left bottom, left bottom;
    background-repeat: no-repeat, no-repeat;
    background-size: 0 1px, 100% 1px;
    transition: none 300ms ease-in-out;
    transition-property: background-size, color;
    overflow: hidden;
}

a:not(.button, .post-thumbnail):hover {
    background-size: 100% 1px, 100% 1px;
}

button.button {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 22px;
    font-size: 16px;
    font-weight: 700;
    background: var(--btncolor);
    color: var(--btnhvcolor);
    border: none;
    border-radius: var(--borderradius);
    overflow: hidden;
    cursor: pointer;
}

button.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button.button:hover:not(:disabled):before {
    left: 0;
}

a.button {
    display: inline-flex;
    position: relative;
    min-width: 180px;
    justify-content: center;
    padding: 12px 22px;
    background: var(--btncolor);
    color: var(--btnhvcolor);
    font-weight: 700;
    border-radius: var(--borderradius);
    overflow: hidden;
}

a.button:hover {
    background: var(--mainbackground);
}

a.button:hover:before {
    left: 0;
}

a.button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button.button:disabled {
    background: #878787;
    cursor: not-allowed;
}

.fade-in {
    animation: fadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.entry-content {
    width: 100%;
}

.specialfont {
    font-family: var(--fontnunito);
    font-weight: 800;
}

.backwhite {
    background-color: var(--backwhite); 
}

.entry-content h1 {
    margin-top: 0;
}

h1.page-title {
    margin-top: 0;
}

h1.entry-title {
    margin-top: 0;
}

.entry-content p {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    word-wrap: break-word;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
    word-break: break-word;
}

.colgap {
    gap: var(--colgap);
}

.block-effect {
    padding: var(--paddingblock);
    background: var(--backwhite);
    border-radius: var(--brdradiuswrap);
    -webkit-box-shadow: var(--boxshadowwrap);
    -moz-box-shadow: var(--boxshadowwrap);
    box-shadow: var(--boxshadowwrap);
}

[data-fit-text] {
  --width: 100vw;
  --scale: 0.9;
  font-size: calc(var(--width) / (var(--length, 1) * 0.5) * var(--scale, 1));
  font-family: var(--systemfont);
  font-weight: 600;
  line-height: 1;
  margin: 16px 0;
}

aside#secondary {
    min-height: 100%;
}

.sticky {
    position: sticky;
}

#secondary .sticky  {
	top: 120px;
}


.indent {
    margin-bottom: 156px;
}
/* Typography
--------------------------------------------- */

body {
	color: var(--fontcolor);
	font-family: var(--systemfont);
	font-size: var(--p-fontsize);
	line-height: var(--bodylineheight);
	
}

h1 {
    font-size: var(--h1-fontsize);
    line-height: var(--headinglineheight);
} 

h2 {
    font-size: var(--h2-fontsize);
    line-height: var(--headinglineheight);
} 

h3 {
    font-size: var(--h3-fontsize);
    line-height: var(--headinglineheight);
} 

h4 {
    font-size: var(--h4-fontsize);
    line-height: var(--headinglineheight);
} 

h5 {
    font-size: var(--h5-fontsize);
    line-height: var(--headinglineheight);
} 

h6 {
    font-size: var(--h6-fontsize);
    line-height: var(--headinglineheight);
}


p { 
    font-size: var(--p-fontsize);
    line-height: var(--bodylineheight);
    margin-bottom: 1.5em;
}

p, span, div, li, a {
    font-family: 'Nunito', 'Roboto', sans-serif;
}

ul.list-num {
    list-style-type: decimal;
}

ul:not([class]) {
    list-style-type: disc;
}

ul:not([class]) li::marker {
    color: var(--btncolor);
}

/* Настройка для разных элементов */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', 'Roboto', sans-serif;
	font-weight: 600;
}

.quote {
    font-family: 'Roboto Slab', serif;
    font-style: italic;
}

blockquote {
    border-left: 2px solid var(--btnborder);
    padding: 0 20px;
}

blockquote p {
    font-family: 'Roboto', serif;
    font-style: italic;
    line-height: 150%;
}

.code, pre, code {
    font-family: 'Roboto Flex', monospace;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	clear: both;
}

dfn,
cite,
em,
i {
	font-style: italic;
}

address {
	margin: 0 0 1.5em;
}

pre {
	background: #eee;
	font-family: "Courier 10 Pitch", courier, monospace;
	line-height: 1.6;
	margin-bottom: 1.6em;
	max-width: 100%;
	overflow: auto;
	padding: 1.6em;
}

code,
kbd,
tt,
var {
	font-family: monaco, consolas, "Andale Mono", "DejaVu Sans Mono", monospace;
}

abbr,
acronym {
	border-bottom: 1px dotted #666;
	cursor: help;
}

mark,
ins {
	background: #fff9c0;
	text-decoration: none;
}

big {
	font-size: 125%;
}

/* Elements
--------------------------------------------- */
hr {
	background-color: #ccc;
	border: 0;
	height: 1px;
	margin-bottom: 1.5em;
}

/* Рекурсивная нумерация для любой вложенности */
ol {
    counter-reset: item;
	padding-left: 0;
	list-style: decimal;
    list-style-type: none;
}

ol li {
    display: block;
    position: relative;
    padding: 0;
    margin: 6px 0;
}

ol li:before {
    content: counters(item, ".") ".";
    counter-increment: item;
	padding-right: 6px;
    font-weight: bold;
	color: #2672EC;
}

ol > li > ol > li > ul li {
    list-style-type: inherit;
    list-style-position: outside;
    display: list-item;
    margin-bottom: 5px;
}

ol > li > ol > li > ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-left: 20px;
    margin: 8px 0;
}

ol > li > ol > li > ol > li {
    padding-left: 8px;
}

ol > li > ol > li > ul li::marker {
    color: #2672EC;
}

ol > li > ol > li > ul > li:before {
    content: none;
}

dt {
	font-weight: 700;
}

dd {
	margin: 0 1.5em 1.5em;
}
/*
*********************************** WebPage START
*/
#primary {
    min-height: calc(100vh - 105px - 316px);
}

* {
    scroll-margin-top: 105px;
}

#webpage {
    background-color: var(--fonbackcolor);
}

@media (min-width: 1201px) {
    #webpage {
        margin-top: 117px;
    }
}

@media (max-width: 1200px) {
    #webpage {
        margin-top: 97px;
    }
}

@media (max-width: 960px) {
    #webpage {
        margin-top: 52px;
    }
}

.container {
	max-width: var(--container);
    width: 100%;
	margin: 0 auto;
	padding: 0 20px;
}

.container-full {
	width: var(--containerfull);
}

.mainbackground {
    background: var(--mainbackground);
}

.fcb {
	display: flex;
    align-items: center;
    justify-content: space-between;
}

.fcs {
	display: flex;
    align-items: center;
    justify-content: flex-start;
}

.fce {
	display: flex;
    align-items: center;
    justify-content: flex-end;
}

/**
 * Remove the margin in all browsers.
 */
body {
	margin: 0;
	padding: 0;
}
*,
*::before,
*::after {
	box-sizing: border-box;
}
.no-scroll {
    height: 100vh;
    overflow: hidden;
}
.clear {
    clear: both;
}
.pointer:hover {
    cursor: pointer;
}

.entry-date time {
    display: block;
}
/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
	box-sizing: content-box;
	height: 0;
	overflow: visible;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */
a {
	background-color: transparent;
	transition: all .3s;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
	border-bottom: none;
	text-decoration: underline;
	text-decoration: underline dotted;
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
	font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
	font-family: monospace, monospace;
	font-size: 1em;
}

/**
 * Add the correct font size in all browsers.
 */
small {
	font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
	font-size: 75%;
	line-height: 0;
	position: relative;
	vertical-align: baseline;
}

sub {
	bottom: -0.25em;
}

sup {
	top: -0.5em;
}

/* Forms
	 ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
    margin: 0;
    color: var(--fontcolor);
    font-family: var(--systemfont);
    font-size: var(--field-fontsize);
    line-height: var(--lineheight);
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input {
	overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select {
	text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
 appearance: button;
-webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
	border-style: none;
	padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
	outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */
fieldset {
    padding: 0;
    border: none;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *		`fieldset` elements in all browsers.
 */
legend {
	box-sizing: border-box;
	color: inherit;
	display: table;
	max-width: 100%;
	padding: 0;
	white-space: normal;
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
	vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
	overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
	box-sizing: border-box;
	padding: 0;
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
	height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
	appearance: textfield;
	-webkit-appearance: textfield;
	outline-offset: -2px;
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
	-webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
	-webkit-appearance: button;
	font: inherit;
}

/* Interactive
	 ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
	display: block;
}

/*
 * Add the correct display in all browsers.
 */
summary {
	display: list-item;
}

/* Misc
	 ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */
template {
	display: none;
}

/**
 * Add the correct display in IE 10.
 */
.hidden, [hidden] {
	display: none;
}

/*--------------------------------------------------------------
# Base
--------------------------------------------------------------*/

/* Make sure embeds and iframes fit their containers. */
embed,
iframe,
object {
	max-width: 100%;
}

img {
	height: auto;
	max-width: 100%;
    border-style: none;
}

figure {
	margin: 1em 0;
}

table {
	margin: 0 0 1.5em;
	width: 100%;
}

/* Links
--------------------------------------------- */

a {
	text-decoration: none;
	color: var(--link);
}

a:focus,
a:hover,
a:active {
	outline: none;
}

/* Forms
--------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="range"],
input[type="date"],
input[type="month"],
input[type="week"],
input[type="time"],
input[type="datetime"],
input[type="datetime-local"],
input[type="color"] {
    width: 100%;
    padding: 8px;
    border: var(--intborder);
    border-radius: var(--brdradiuswrap);
    background: var(--intfon);
    height: 44px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="range"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="week"]:focus,
input[type="time"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="color"]:focus,
textarea:focus {
	color: #111;
}

input:placeholder-shown {
	border: var(--intborderact);
	outline: none;
}

input:not([value]) {
	border: var(--intborderact);
	outline: none;
}

input:focus-visible {
	border: var(--intborderact);
	outline: none;
}

select {
	border: 1px solid #ccc;
}

textarea {
    width: 100%;
    padding: 8px;
    border: var(--intborder);
    border-radius: var(--brdradiuswrap);
    background: var(--intfon);
    resize: none;
}

textarea:placeholder-shown {
	border: var(--intborderact);
	outline: none;
}

textarea:not([value]) {
	border: var(--intborderact);
	outline: none;
}

textarea:focus-visible {
	border: var(--intborderact);
	outline: none;
}

/*
 * Контактная форма
*/

.esipoisk-contact-wrapper {
    display: flex;
    padding: 42px 0;
    flex-direction: column;
    flex-wrap: wrap;
    align-content: center;
    align-items: center;

}

.esipoisk-contact-title {
    margin-bottom: 15px;
}

.esipoisk-contact-form {
    display: flex;
    position: relative;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 18px;
}

.esipoisk-field {
	display: block;
	position: relative;
	margin: 0;
}

.esipoisk-submit-button {
	overflow: hidden;
}

.esipoisk-field label {
    position: absolute;
    margin: 0;
    padding: 0 6px;
    top: -5px;
    left: 10px;
    color: var(--btmenucolor);
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 35%, rgba(38, 114, 236, 0.05) 100%);
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.esipoisk-note {
    color:#555;
}
.esipoisk-response {
    width: 100%;
    position: absolute;
    bottom: -28px;
    text-align: center;
    transition: all 0.3s;
}
.esipoisk-error, .field-error {
    margin: 0;
    color:#b00;
}
.esipoisk-success {
    margin: 0;
    color:#090;
}

ul.error {
    list-style-type: disclosure-closed;
    font-weight: 600;
}