@font-face {
    font-family: 'InterL';
    src: url('../fonts/Inter-Light.otf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.otf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'InterM';
    src: url('../fonts/Inter-Medium.otf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'InterSB';
    src: url('../fonts/Inter-SemiBold.otf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'InterB';
    src: url('../fonts/Inter-Bold.otf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Golos';
    src: url('../fonts/GolosText-Regular.ttf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'GolosM';
    src: url('../fonts/GolosText-Medium.ttf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'GolosDB';
    src: url('../fonts/GolosText-DemiBold.ttf');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'GolosB';
    src: url('../fonts/GolosText-Bold.ttf');
    font-weight: 400;
    font-style: normal;
}

:root {
    --white: #ffffff;
    --black: #000000;
    --color-text-primary: #1d1e21;
    --color-text-secondary: #acacac;
    --color-link: #c64e1b;
    --color-link-hover: #fa773f;
    --color-form: #3f434b;
    --color-bg-main: #223d36;
    --color-light: #868b87;
    --bg-light: #fafafa;
    --bg-warn: #ffdcc6;
    --bg-form: #eee;
    --border-light: #d2d2d2;
    --bg-shadow: 0 19px 19px 0 rgba(230, 230, 230, 0.19), 0 1px 4px 0 #f3f3f3;

    --h-header: 64px;
    --w-screen: 100px;

    --size-text-maintitle: 54px;
    --size-text-title: 40px;
    --size-text-subtitle: 32px;
    --size-text-primary: 20px;
    --size-text-secondary: 16px; 

    --indent-huge: 72px;
    --indent-big: 52px;
    --indent-medium: 32px;
    --indent-small: 24px;
    --indent-mini: 16px;
}
body, html {
    height: 100%
}

body {
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 0;
}

a {
    color: var(--color-link); 
    text-decoration: none;
}
a:is(:hover, :focus, :active) {
    color: var(--color-link-hover);        
}

button, a.btn {
    display: flex;
    justify-content: center;
    align-items: center;    
    color: var(--white);
    font-family: 'InterL';
    font-size: var(--size-text-secondary);
    padding: 0 24px;
    height: 48px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: var(--color-link);   
}
a.disabled {
    pointer-events: none;
    opacity: 0.5;
    cursor: not-allowed;
}
button:is(:hover, :focus, :active), 
a.btn:is(:hover, :focus, :active) {
    background: var(--color-link-hover);
    cursor: pointer;     
}
.btn.btn-secondary {
    color: var(--color-link);
    border-color: var(--color-link);
    background-color: transparent;
}
.btn.btn-secondary:is(:hover, :focus, :active) {
    color: var(--color-link-hover);
    border-color: var(--color-link-hover);
    background: transparent;
}

.header {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-family: 'InterSB'; 
    min-height: var(--h-header);
    padding: 0 var(--w-screen);
    border: 0;
    background-color: var(--color-bg-main);
}
.header .header-logo {
    width: 62px;
    height: 40px;
    background: url(../img/svg/mil-logo.svg) no-repeat 0 50%;
}
.header .header-title {
    color: var(--white);
    font-size: var(--size-text-secondary);
    margin-left: var(--indent-mini);
}
:is(.ul, .fl) .header {
    background-color: var(--color-text-primary);
    z-index: 1;
}

.container {
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    max-width: 100%;
    height: auto;
    padding: var(--h-header) 0 0;
    margin: 0;
    border: 0;
    overflow: hidden;
}

.container-inside {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: var(--color-text-primary);
    font-family: 'Inter';
    padding: 0 var(--w-screen);
    background-color: var(--bg-light);
    overflow: auto;
}
.container-inside .block-group {
    display: flex;
    flex-direction: row;
    margin: auto;
}
.container-inside .block {
    font-family: 'Inter';
    min-width: 355px;
    padding: 40px;
    border-radius: 12px;
    background-color: var(--white);
    box-shadow: var(--bg-shadow);
}
.container-inside .block > div {
    max-width: 350px;
}
.container-inside .block + .block {
    margin-left: 40px;
}
.container-inside .block .block-img {
    width: 100px;
    height: 100px;
}
.container-inside .block.block-ul .block-img {
    background-image: url(../img/svg/ul.svg);
}
.container-inside .block.block-fl .block-img {
    background-image: url(../img/svg/fl.svg);
}
.container-inside .block .block-title {
    font-family: 'GolosB';
    font-size: var(--size-text-subtitle);
    margin-top: var(--indent-mini);
} 
.container-inside .block .block-description {
    font-family: 'Golos';
    font-size: var(--size-text-primary);
    margin-top: var(--indent-mini);
}
.container-inside .block .btn {
    width: auto;
    margin-top: var(--indent-medium);
}

.cert-check-content {
    font-family: 'Golos';
    font-size: var(--size-text-secondary);    
    padding: var(--indent-mini) var(--w-screen) var(--indent-mini) calc(var(--w-screen) + 38px);
    background-color: var(--bg-warn);
}
.cert-check-text {
    position: relative;
    padding-left: 40px;
}
.cert-check-text::before {
    position: absolute;
    content: url(../img/svg/info.svg);
    left: 0;
    top: calc((100% - 24px) / 2);
}
.text-header {
    color: var(--color-link);
    font-family: 'GolosB';
    font-size: var(--size-text-primary);
    margin-bottom: 4px;
}

/*@media ((max-width: 780px) or ((orientation: landscape) and (max-device-width : 1024px))) {*/
@media (max-width: 1024px) {
    body {
        --w-screen: 32px;

        --size-text-maintitle: 32px;
        --size-text-title: 28px;
        --size-text-subtitle: 24px;

        --indent-huge: 32px;
        --indent-big: 24px;
        --indent-medium: 24px;
        --indent-small: 16px;
    }
    .cert-check-content {
        padding-left: var(--w-screen);
    }
    .container {
        top: var(--h-header);
        padding: 0;
        overflow: auto;
    }
    .container-inside {
        overflow: visible;
    }
    .container-inside .block-group {
        flex-direction: column;
        margin: 0;
    }
    .container-inside .block-group .block {
        min-width: auto;
        margin: var(--indent-huge) 0 0;
    }
    .container-inside .block-group .block > div {
        max-width: inherit !important;
    }
}

@media (max-width: 480px) {
    body {
        --w-screen: 16px;

        --size-text-maintitle: 28px;
        --size-text-title: 24px;
        --size-text-subtitle: 20px;

        --indent-huge: 24px;
        --indent-big: 24px;
        --indent-medium: 16px;
        --indent-small: 16px;
    }
}