/*
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
*/
/* 
    Created on : 08.04.2020, 13:25:56
    Author     : andrey
*/

@font-face {
    font-family: "Gabriola";
    src: url("/assets/templates/consult/fonts/gabriola.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: "Monotype";
    src: url("/assets/templates/consult/fonts/monotype.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: "Calibri";
    src: url("/assets/templates/consult/fonts/calibri.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}
@font-face {
    font-family: "Georgia";
    src: url("/assets/templates/consult/fonts/georgia.ttf") format("truetype");
    font-style: normal;
    font-weight: normal;
}

/*  ---------- Объявление блочны элементов ---------- */
header, p, .hor-devider, h1, h2, h3, h4, h5, img.pic-right,
.otstup15, .otstup25 {
    display: block;
    box-sizing: border-box;
}

/*  ---------- Общие правила ---------- */
html { font-size: 18px !important; }


/*  ---------- Правила для экрана 1440px (col-xl-) ---------- */
body {
    font-family: Georgia;
    font-size: 1rem;
    background: url(/assets/templates/consult/images/old-notebook-paper.jpg) top left repeat;
}
h1, h2, h3, h4, h5 {
    width: 100%;
    text-align: center;
    font-family: Calibri;
}
p { 
    text-indent: 2rem; 
    text-align: justify;
}
li, a { text-align: justify; }
.hor-devider {
    width: 96%;
    height: 3px;
    border-bottom: 1px solid grey;
    margin: 0 auto;
}
.primary-blue { color: #002566; }
.primary-red { color: #c50000; }
.otstup15 { width: 100%; height: 15px; }
.otstup25 { width: 100%; height: 25px; }

/* Header */
header {
    width: 100%;
    min-height: 100px;
}
.top-header p { 
    width: 50%;
    float: left;
    margin: 5px 0;
    text-indent: 0;
    text-align: center;
}
.top-header .mail p {
    width: 100%;
    text-align: center;
}
.middle-header .logo, .middle-header .memo {
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo img { height: 85px; }
.middle-header .memo p {
    width: 100%;
    text-align: center;
    text-indent: 0;
    font-size: 1.6rem;
    line-height: 1.2;
    letter-spacing: 10px;
    padding-top: 28px;
}
.middle-header .memo p i:first-of-type { border-bottom: 3px solid #002566; }

/* ---------- Main page ---------- */
.container article {
    padding: 5px 15px;
    border: 1px solid gray;
    border-radius: 8px; 
}
img.pic-right {
    float: right;
    margin: 3px 0 6px 6px;
    width: 40%;
}
img.pic-left {
    float: left;
    margin: 3px 6px 6px 0;
    width: 40%;
}

/* navbar */
.navbar {
    background-color: bisque;
    margin: 10px 0;
    padding-bottom: 15px;
}
.navbar-nav li { line-height: 1.2; }
.navbar-nav li a, li.active a.nav-link:hover {
    border: 1px solid grey; 
    border-radius: 5px;
    margin: 0 10px;
    background-color: white;
    font-family: Calibri;
    letter-spacing: 1px;
    font-size: 1.1rem;
    box-shadow: -5px 5px 8px grey;
}
.navbar-nav li a:hover {
    background-color: bisque;
    border-color: black;
    color: #c50000 !important;
    box-shadow: 5px 5px 8px grey;
}
/*
.nav-item li:hover {
    background-color: bisque;
}
*/
.navbar-light .navbar-nav .active > .nav-link { color: #002566; }

/* ---------- Inner Pages ---------- */
.services img.float-right, .services img.float-left { max-width: 46%; }
img.float-left { margin-right: 30px; }
.text-georgia {
    text-align: left;
    font-family: Georgia;
    font-size: 1.6rem;
    margin-bottom: 15px;
}

/* ---------- Footer ---------- */
footer { 
    background-color: bisque; 
    align-items: center;
    justify-content: center;
    margin: 1rem 0;
    padding: 1rem 0 .7rem;
}
footer .row {
    align-items: center;
    justify-content: center;
}
footer p { margin-bottom: 0; }
footer div.text-center { border-right: 1px solid black; }
footer div.text-center:last-of-type { border-right: none; }


/* ========================== Responcive ========================== */
/* ----- lg and more ----- */
@media (max-width: 1198px) {
    .middle-header .memo p { letter-spacing: 8px; }
}
/* ----- md and more ----- */
@media (max-width: 991px) { 
    html { font-size: 16px !important; }
    .middle-header .memo p {
        font-size: 1.4rem;
        line-height: 1.1;
        letter-spacing: 3px;
        padding-top: 22px;
    }
    .logo img { height: 75px; }.middle-header .memo p i:first-of-type { 
        border-bottom-width: 2px; 
        padding-bottom: 3px;
    }
    .middle-header .memo p i:last-of-type { 
        display: block;
        padding-top: 6px; 
    }
    li.nav-item  a.nav-link { padding-left: 10px; }
    .text-georgia { font-size: 1.1rem; }
}
@media (max-width: 767px) { 
    html { font-size: 14px !important; }
    .middle-header .memo p {
        font-size: 1.2rem;
        line-height: 1.1;
        letter-spacing: 2px;
        padding-top: 16px;
    }
    .logo img { height: 55px; }
    .navbar {
        margin: 5px 0;
        padding-bottom: 5px;
    }
    footer div.text-center { border-right: none; }
}
@media (max-width: 576px) { 
    html { font-size: 12px !important; }
}
@media (max-width: 400px) { 
    .middle-header .memo p {
        font-size: 1rem;
        letter-spacing: 1px;
        padding-top: 16px;
    }
    .logo img { height: 38px; }
    .navbar {
        margin: 5px 0 10px;
        padding-bottom: 5px;
    }
}
@media (max-width: 322px) {
    .middle-header .memo p { letter-spacing: 0; }
}
@media (max-width: 288px) {
    .logo img { height: 30px; }
    .middle-header .memo p i:first-of-type {
	border-bottom-width: 1px;
	padding-bottom: 1px;
    }
    .memo p i { font-size: .9rem; }
}