@font-face {
    font-family: 'mainfont';
    src: url("https://fonts.edusite.ru/Jura-DemiBold/Jura-DemiBold.eot");
    src: url("https://fonts.edusite.ru/Jura-DemiBold/Jura-DemiBold.eot?#iefix") format("embedded-opentype"),
        url("https://fonts.edusite.ru/Jura-DemiBold/Jura-DemiBold.woff") format("woff"),
        url("https://fonts.edusite.ru/Jura-DemiBold/Jura-DemiBold.ttf") format("truetype"),
        url("https://fonts.edusite.ru/Jura-DemiBold/Jura-DemiBold.svg#svgFontName") format("svg");
}
@font-face {
    font-family: 'subfont';
    src: local('Golos Text Regular'), local('GolosText-Regular'), url('https://fonts.edusite.ru/GolosText/Golostextregular.woff2') format('woff2'), url('https://fonts.edusite.ru/GolosText/Golostextregular.woff') format('woff'), url('https://fonts.edusite.ru/GolosText/Golostextregular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'subfont';
    src: local('Golos Text DemiBold'), local('GolosText-DemiBold'), url('https://fonts.edusite.ru/GolosText/Golostextdemibold.woff2') format('woff2'), url('https://fonts.edusite.ru/GolosText/Golostextdemibold.woff') format('woff'), url('https://fonts.edusite.ru/GolosText/Golostextdemibold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'subfont';
    src: local('Golos Text Black'), local('GolosText-Black'), url('https://fonts.edusite.ru/GolosText/Golostextblack.woff2') format('woff2'), url('https://fonts.edusite.ru/GolosText/Golostextblack.woff') format('woff'), url('https://fonts.edusite.ru/GolosText/Golostextblack.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'subfont';
    src: local('Golos Text Medium'), local('GolosText-Medium'), url('https://fonts.edusite.ru/GolosText/Golostextmedium.woff2') format('woff2'), url('https://fonts.edusite.ru/GolosText/Golostextmedium.woff') format('woff'), url('https://fonts.edusite.ru/GolosText/Golostextmedium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'subfont';
    src: local('Golos Text Bold'), local('GolosText-Bold'), url('https://fonts.edusite.ru/GolosText/Golostextbold.woff2') format('woff2'), url('https://fonts.edusite.ru/GolosText/Golostextbold.woff') format('woff'), url('https://fonts.edusite.ru/GolosText/Golostextbold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font-weight: unset;
    vertical-align: baseline;
    font-family: 'subfont';
}
:root{
    --orange: #ff8204;
    --dorange:#7f4a16;
    --blue: #506e94;
    --black70: rgba(0, 0, 0, 0.7);
    --shadow:1px 1px 3px #999;
    --black005: rgba(0, 0, 0, 0.05);}
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    border: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    height: auto !important;
    min-height: 100vh;
    border: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--black005);
    min-width: 450px;
}
a {
    color: var(--orange);
    text-decoration: none;
}
header {
    padding: 10px 10px 0 10px;
    box-shadow: 0 0 15px rgb(47 65 110 / 15%);
    background-color: #fff;
    position: sticky;
    z-index: 100;
}
header *{
    font-family: 'mainfont';
}
header h1{
    display: none;
}
header > article{
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    background-image: url(scin/logo-o.svg);
    background-size: 120px 100px;
    background-repeat: no-repeat;
    background-position: left center;
    padding: 0;
    padding-left: 120px;
    flex-direction: column;
    justify-content: flex-end;
    color: #000;
    min-height: 100px;
}
header.fixed article {
    background-size: 40px 40px;
    background-repeat: no-repeat;
    background-position: left bottom;
}
header div {
    padding: 10px 0 10px 20px;
}
header span {
    white-space: nowrap;
    font-size: 16px;
    text-shadow: var(--shadow);
}
nav {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 10px;
}

nav > a, nav > div {
    color: var(--orange);
    text-decoration: none;
    padding: 10px 10px 5px 10px;
    display: block;
    border-bottom: 6px solid transparent;
    position: relative;
    cursor: pointer;
}
nav>a::after, nav>div::after {
    width: 0%;
    height: 6px;
    display: block;
    background-color: var(--orange);
    content: " ";
    position: absolute;
    top: 30px;
    left: 50%;
    transition: left 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}

nav>a:hover::after, nav>div:hover::after {
    width: 100%;
    height: 6px;
    display: block;
    background-color: var(--orange);
    content: " ";
    position: absolute;
    top: 30px;
    left: 0;
}
nav>div {
    position: relative;
    padding: 10px 10px 5px 10px !important;
}
nav>div>ul {
    display: none;
}
nav>div:hover>ul {
    display: block;
    position: absolute;
    list-style: none;
    background-color: #fff;
    padding: 15px 5px;
    box-shadow: 0 6px 4px #aaa;
    top: 30px;
    left: 4px;
    min-width: 195px;
}
nav>div>ul a {
    display: block;
    padding: 5px;
    font-size: 9pt;
    font-family: 'subfont';
    background-position: left;
    background-repeat: no-repeat;
    background-size: 20px 20px;
    padding-left: 25px;
    color: #000;
}
nav>div>ul a:after {
    display: block;
    content: "";
    height: 1px;
    width: 0%;
    background-color: var(--orange);
    transition: width 0.4s ease-in-out;
}
nav>div>ul a:hover:after,
nav>div>ul a:focus:after {
    width: 100%;
}
content {
    flex-grow: 1;
    margin: 0 auto;
    width: 100%;
}
content  :not(.prjlink) a{
    color: var(--orange);
    text-decoration: none;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    display: inline-block;
}

content :not(.prjlink) a:after {
    display: block;
    content: "";
    height: 1px;
    width: 0%;
    background-color: var(--orange);
    transition: width 0.4s ease-in-out;
}

content  :not(.prjlink) a:hover:after,
content  :not(.prjlink) a:focus:after {
    width: 100%;
}
section {
    margin: 0;
    padding: 15px;
    width: 100%;
}
section > *, footer > *{
    max-width: 900px;
    margin: 0 auto;
}
footer>* {
    padding-left: 20px;
}
section:nth-child(2n){
    background-color: #fff;
}
h2 {
    font-size: 25pt;
    font-family: subfont;
    color: var(--blue);
    margin-top: 0;
    margin-bottom: 30px;
    position: relative;
    -webkit-box-reflect: below -5px linear-gradient(transparent, #0003);
    text-shadow: 1px 1px 3px #999;
}

.grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 40% auto;
}

article > h3 {
    font-weight: 500;
    font-size: 12pt;
    font-family: 'subfont';
    margin-bottom: 5px;
    margin-left: -20px;
}
section article {
    padding: 15px;
    padding-left: 40px;
    border-radius: 10px;
    background-color: #fff;
    line-height: 1.4;
    font-family: 'subfont';
    font-size: 10pt;
}
p{
    margin: 10px 0 ;
    font-size: 10pt;
}
p:first-of-type{
    margin-top: 0 ;
}
p:last-of-type{
    margin-bottom: 0 ;
}
article.about {
    grid-area: 1 / 1 / 6 / 1;
}
article.sert {
    grid-area: 6 / 2 / 8 / 2;
}
.flex {
    display: flex;
    align-items: center;
    padding-left: 15px;
    gap: 20px;
}
.flex img{
    max-width: 150px;
    height: auto;
}
.flexblock {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: flex-start;
    align-content: flex-start;
}
.flexblock h2 {
    white-space: nowrap;
}

footer {
    background-color: var(--blue);
    color: #fff;
    font-size: 10pt;
    padding: 10px 0 70px 0;
}
.footerblock>div {
    margin: 5px 20px 15px 20px;
}
.footerblock dt {
    font-weight: 500;
    font-size: 12pt;
    font-family: subfont;
    margin-bottom: 5px;
    margin-left: -20px;
}

fieldset {
    box-shadow: 0 0 15px rgb(47 65 110 / 15%);
    margin-bottom: 20px;
    border-radius: 0 25px 25px 25px;
    padding: 20px;
    position: relative;
    margin-left: 25px;
    margin-top: 40px;
}
legend {
    background-color: var(--blue);
    color: #fff;
    padding: 15px 40px 15px 70px;
    border-radius: 25px;
    position: relative;
    left: -45px;
    box-shadow: 0 0 15px rgb(47 65 110 / 45%);
}
legend:before {
    width: 40px;
    height: 40px;
    display: block;
    position: absolute;
    left: 5px;
    top: 5px;
    background-color: #fff;
    padding: 5px;
    border-radius: 100%;
}
#ms legend:before {
    content: url(https://edusite.ru/images/magicsite.svg);
}
#ks legend:before {
    content: url(https://edusite.ru/images/constructor.svg);
}
#nf legend:before {
    content: url(https://edusite.ru/images/netfolio.svg);
}
#ap legend:before {
    content: url(https://edusite.ru/images/appeal.svg);
}
img.prodlogo {
    display: none;
}

#timeline *,
#timeline *:before,
#timeline *:after {
    box-sizing: border-box;
}

#timeline .timeline-item:after,
#timeline .timeline-item:before {
    content: '';
    display: block;
    width: 100%;
    clear: both;
}

#timeline {
    max-width: 900px;
    width: 100%;
    margin: 70px auto -15px auto;
    position: relative;
    transition: all 0.4s ease;
}

#timeline:before {
    content: "";
    width: 3px;
    height: 100%;
    background: var(--blue);
    left: 50px;
    top: 0;
    position: absolute;
}

#timeline:after {
    content: "";
    clear: both;
    display: table;
    width: 100%;
}

#timeline .timeline-item {
    margin-bottom: 70px;
    margin-left: 120px;
    width: calc(100% - 120px);
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 0 15px rgb(47 65 110 / 15%);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
}
#timeline .timeline-item:before {
    content: '';
    display: block;
    width: 100px;
    height: 100px;
    border: 3px solid var(--blue);
    background-color: #fff;
    border-radius: 100%;
    position: absolute;
    top: -30px;
    left: -120px;
    background-size: 60px 60px;
    background-repeat: no-repeat;
    background-position: center;
    box-shadow: 0 0 15px rgb(47 65 110 / 15%);
}
#ms.timeline-item:before, a[href='#ms'] {
    background-image: url("images/magicsite.svg");
}
#ms-wp.timeline-item:before,
a[href='#ms-wp'] {
    background-image: url("images/magicsite_wp.svg");
}
#ms-joomla.timeline-item:before,
a[href='#ms-joomla'] {
    background-image: url("images/magicsite_joomla.svg");
}
#ms-drupal.timeline-item:before,
a[href='#ms-drupal'] {
    background-image: url("images/magicsite_drupal.svg");
}
#ms-bitrix.timeline-item:before,
a[href='#ms-bitrix'] {
    background-image: url("images/magicsite_bitrix.svg");
}
#ks.timeline-item:before,
a[href='#ks'] {
    background-image: url("images/constructor.svg");
}
#nf.timeline-item:before,
a[href='#nf'] {
    background-image: url("images/netfolio.svg");
}
#ap.timeline-item:before,
a[href='#ap'] {
    background-image: url("images/appeal.svg");
}
#ro.timeline-item:before,
a[href='#ro'] {
    background-image: url("images/rusobr_logo.svg");
}
#php.timeline-item:before,
a[href='#php'] {
    background-image: url("images/php.svg");
}
#virt.timeline-item:before,
a[href='#virt'] {
    background-image: url("images/virtual.svg");
}
#timeline .timeline-item h3 {
    padding: 15px;
    background: var(--blue);
    color: #fff;
    margin: -20px -20px 20px -20px;
    font-weight: 300;
    border-radius: 10px 10px 0 0;
}

#timeline .timeline-item h3:before {
    content: '';
    position: absolute;
    left: -12px;
    top: 5px;
    width: 0;
    height: 0;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    border-right: 12px solid var(--blue);
}
.timeline-item ul.list {
    margin: 20px;
    font-size: 10pt;
}
ul.list li {
    background-image: url(images/chk.svg);
    background-repeat: no-repeat;
    background-position: left 2px;
    background-size: 15px;
    padding-left: 22px;
    margin: 10px 0;
    list-style: none;
}
ul.gallery {
    margin: 0;
    gap: 10px;
    flex-basis: 400px;
    min-width: 350px;
}

ul.gallery li{
    display: flex;
    padding: 5px;
    gap: 10px;
    font-size: 9pt;
}
ul.gallery img {
    width: 110px;
    box-shadow: 0 0 15px rgb(47 65 110 / 25%);
}
.prjlinks {
    position: absolute;
    top: 100%;
    right: 15px;
    z-index: 0;
    display: flex;
    gap: 5px;
}
.prjlink {
    background-color: var(--orange);
    box-shadow: inset 0 0 15px rgb(47 65 110 / 15%);
    color: #fff;
    border-radius: 0 0 5px 5px;
    position: relative;
}
.prjlink:hover:before {
    height: 100%;
}
.prjlink a {
    color: #fff !important;
    font-size: 10pt;
    padding: 5px 10px;
    background-image: url(images/arr.svg);
    background-repeat: no-repeat;
    background-position: right center;
    background-size: 15px;
    background-position: calc(100% - 5px);
    padding-right: 25px;
    z-index: 2;
    position: relative;
}
.prjlink:before {
    content: "";
    position: absolute;
    background-color: var(--blue);
    transition: 0.3s ease-out;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    width: 100%;
    z-index: 1;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 0 15px rgb(47 65 110 / 15%);
}
@media screen and (max-width:800px) {
    header span {
        white-space:unset;
        font-size: 14px;
    }
    .flex img {
        max-width: 120px;
    }
    ul.gallery img {
        width: 90px;
    }
    .flex {
        gap: 10px;
    }
    ul.gallery {
        flex-basis: 250px;
        min-width: 250px;
    }
    .flexblock {
        display: block;
    }
}
@media screen and (max-width:700px) {
    .grid {
        display: block;
    }
    section article:not(:last-child) {
        margin-bottom: 10px;
    }
    #timeline .timeline-item:before {
        width: 80px;
        height: 80px;
        top: -25px;
        left: -100px;
        background-size: 50px 50px;
    }
    #timeline .timeline-item {
        margin-left: 110px;
        width: calc(100% - 110px);
    }
    footer {
        padding: 10px 0 90px 0;
    }
}
@media screen and (max-width:500px) {
    header>article {
        background-size: 100px 80px;
        background-repeat: no-repeat;
        background-position: left center;
        padding: 0;
        padding-left: 100px;
        flex-direction: column;
        justify-content: flex-end;
        color: #000;
        min-height: 80px;
    }
        header.fixed article {
            padding-top: 10px;
        }
    header span {
        font-size: 12px;
    }
    header div {
        padding: 0;
        padding-bottom: 10px;
    }
    #timeline:before {
        content: unset;
    }
    #timeline .timeline-item {
        margin-left: 5px;
        width: calc(100% - 10px);
    }
    #timeline .timeline-item:before {
        top: -25px;
        left: -10px;
        z-index: 10;
    }
    #timeline .timeline-item h3 {
        padding-left: 85px;
    }
    #timeline .timeline-item h3:before {
        content: unset;
    }

}
