html,body{
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: #f5f5ec;
    font-size: 18px;
    line-height: normal;
    font-family: 'IBM Plex Serif', serif;
    color: #2a2640;
}
img {
    vertical-align: top;
    border: 0;
}
.clear {
    clear: both;
}
a, a:link {
    color: #935314;
}
a:visited {
    color: #790274;
}
a:hover, a:active {
    text-decoration: none;
}
h1,h2,h3,h4,h5,h6 {
    font-weight: 500;
    text-transform: uppercase;
}
h1 {
    font-size: 1.6rem;
    line-height: normal;
}
h2 {
    font-size: 1.2rem;
    line-height: normal;
}
h3,h4 {
    font-size: 1rem;
    line-height: normal;
}
h5,h6 {
    font-size: 0.9rem;
    line-height: normal;
}
.page1 h1 {
    font-size: 0.9rem;
    text-align: justify;
    line-height: normal;
    font-family: 'IBM Plex Serif', serif;
    text-transform: none;
}
.page5 h1 {
    font-size: 1.2rem;
    line-height: normal;
    text-transform: none;
    text-align: center;
}
hr {
    margin: 20px auto;
    color: inherit;
    width: 80%;
    border: none;
    height: 1px;
    background-color: #c4c4c4;
}
.main-wrapper {
    max-width: 1100px;
    min-height: 100%;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 2px 1px rgba(0,0,0,0.3);
}
.top-block {
    background-color: #e5e5cf;
}
.psevdo-footer {
    height: 20px;
}
#footer {
    box-sizing: border-box;
    max-width: 1100px;
    height: 20px;
    margin: -20px auto 0;
    padding-top: 2px;
    border-top: .4px solid #a5a3a3;
    background-color: #d1d1d1;
}
.top-line {
    box-sizing: border-box;
    height: 25px;
    padding: 2px 5px 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 0.8rem;
    text-align: center;
    border-bottom: .4px solid rgba(165, 163, 163, 0.42);
}
.top-line :nth-child(n+1) {
    display: inline-block;
    margin-left: 5px;
}
.top-line :nth-child(1) {
    margin-left: 0px;
}
.top-line :nth-child(2) {
    margin-left: 0px;
    font-size: 0px;
}
.top-line .logo {
    width: auto;
    height: 78%;
    margin-top: 1px;
}
#menu-button {
    display: none;
}
.menu {
    display: block;
    box-sizing: border-box;
    width: auto;
    height: 2.2em;
    height: 55px;
    margin: 0;
    padding: 9px 0 0 0;
    list-style: none;
    text-align: center;    
    font-size: 1em;
    text-transform: uppercase;
    font-family: 'IBM Plex Sans', sans-serif;
}
.menu-item {
    display: inline-block;
    padding: 0px 10px 0;
    font-size: 18px;
    /*max-width: 100%;*/
    vertical-align: middle;
}
.menu-label + .menu-item {
    padding: 0;
}
.menu :nth-child(2) {
    width: auto;
}
.menu-label {
    display: none;
}
.menu-item a {
    box-sizing: border-box;
    display: block;
    margin: 0 auto;
    padding: 2px 0 0px 0;
    /*border: 2px solid #575758;*/
    /*background-color: #8c8fa9;*/
    text-decoration: none;
    color: inherit;
    /*border-radius: 15px;*/
    font-weight: 500;
    border-bottom: 2px solid transparent; 
}
.menu-item:nth-child(2) a {
    font-size: 0;
    width: 50px;
    height: 35px;
    padding-top: 0;
    background-image: url(img/home-logo-black.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 24px;
    border: none;
}
.menu-item:nth-child(2):hover a {
    background-image: url(img/home-logo-wight.png);
    transition: 0.3s;
    -webkit-filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.menu-item:hover a {
    color: #fff;
    transition: 0.3s;
    text-shadow: 0px 0px 1px rgba(0,0,0,0.6);
}
.menu li.active a {
    color: #fff;
    -webkit-filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
    filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
}
.menu.hide {
    display: none;
    opacity: 0;
}
.block-wrapper .block {
    /*box-sizing: border-box;
    overflow: hidden;*/
    height: 250px;
    position: relative;
    z-index: 0;
    font-size: 0px;
}
.block.block1 {
    background-color: #a6bfa0;
}
.img-wrap {
    width: 33.3%;
    height: 250px;
    position: relative;
    z-index: auto;
    display: inline-block;
    font-size: 18px;
    transition: all 0.3s ease-out;
}
.img-wrap.iwrap1 {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}
.img-wrap.iwrap2 {
    position: absolute;
    top: 0;
    left: 33.3%;
    z-index: 1;
}
.img-wrap.iwrap3 {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
}
.block.block1 .img-wrap:last-child{
    width: calc(100% - 66.6%);
}
.img-wrap .img {
    width: 100%;
    height: 100%;
    position: relative;
    background-repeat: no-repeat;
    background-position: bottom left;
    background-size: cover;
}
.block1 .img1 {
    background-image: url(img/books2.jpg);
    background-position: center left;
}
.block1 .img2 {
    background-image: url(img/poligraf1.jpg);
    background-position: center;
}
.block1 .img3 {
    background-image: url(img/design1.jpg);
    background-position: center right;
}
.img-wrap:hover {
    width: 100% !important;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.51, 0.49, 0, 0.98); /* анимация растягивания картинки на ширину блока */
}
.img-wrap.iwrap2:hover {
    left: 0;
    width: 100% !important;
    z-index: 20;
    transition: all 0.3s cubic-bezier(0.51, 0.49, 0, 0.98); /* анимация растягивания картинки на ширину блока */
}
.link-to-page {
    box-sizing: border-box;
    display: block;
    width: 100%;
    padding: 5px 0 9px;
    font-family: 'IBM Plex Serif', serif;
    font-weight: 500;
    font-size: 1.60rem;
    text-transform: uppercase;
    line-height: 1.55rem;
    text-align: center;
    text-transform: uppercase;
    color: #414141 !important;
    text-decoration: none;
    background-color: rgba(255,255,255,0.65);
    border: none;
    cursor: pointer;
    position: absolute;
    top: 103px;
    transition: 0.5s;    
}
.link-to-page:hover {
    transition: 0.5s;
    background-color: rgba(0,0,0,0.4);
    color: #fff !important;
}
.block-wrapper .text {
    padding: 5px 10px;
    font-size: 16px;
    text-align: justify;
}
.text ul {
    list-style: disc;
}
/* Tabs */
.text input[type="radio"] {
    display: none;
    position: absolute;
}
.text label {
    display: inline-block;
    padding: 0 25px 0 5px;
    margin: 0 10px 0 0;
    border-top: 1px solid;
    border-left: 1px solid;
    border-right: 1px solid;
}
label[for='tab1'] {
    margin-left: 10px;
}
.text p > .link-price {
    display: block;
    text-align: right;
}
.tab, .tab-title {
    display: inline-block;
}
.tab-title {
    color: #c4c4c4;
    cursor: pointer;
}
.tabs > section {
    display: none;
}
.tabs > section > * {
    -webkit-animation-duration: 1s;
	animation-duration: 1s;
	-webkit-animation-fill-mode: both;
	animation-fill-mode: both;
	-webkit-animation-name: fadeIn;
	animation-name: fadeIn;
}
/* Анимация для табов */
@-webkit-keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
.tabs > input:checked + label {
	color: #555;
    border-top: 1px solid;
    border-left: 1px solid;
    border-right: 1px solid;
    border-bottom: 1px solid #fff;
}
.tabs label > span {
    display: block;
    font-size: 1.2rem;
    line-height: normal;
    margin: 18px 0;
    font-weight: 500;
    text-transform: uppercase;
}
#tab1:checked~#content-tab1, 
#tab2:checked~#content-tab2, 
#tab3:checked~#content-tab3, 
#tab4:checked~#content-tab4 {
	display: block;
    border-top: 1px solid #555;
    margin-top: -1px;
    padding-top: 10px;
}
.content-tab p {
    padding-top: 1px;
}
.content-tab img {
    float: left;
    margin: 6px 16px 1px 0;
}
.content-tab3 .title-banner {
    float: none;
}
.content-tab .title-banner {
    display: block;
    width: 100%;
    margin: 6px 0 10px 0;
}
.section-links-wrap {
    text-align: left;
}
.section-link {
    display: inline-block;
    font-size: 0.85rem;
    line-height: normal;
    padding-left: 0;
    transition: 0.2s ease-in-out;
}
a.section-link:visited {
    color: #935314;
}
.section-link:hover {
    padding-left: 10px;
    transition: 0.2s ease-in-out;
}
.text table {
    width: 95%;
    margin: 0 auto;
    margin-bottom: 20px;
    border-collapse: collapse;
    border: 2px solid rgb(14, 3, 58);
}
.text table td {
    padding: 0 3px 2px 3px;
    border: 1px solid rgb(14, 3, 58);
}
.page5 .text table td {
    padding: 0;
}
.text table .tr {
    padding: 0;
}
.text sup {
    font-size: 0.6rem;
}
.text .paper-size {
    display: block;
    margin: 0 auto;
}
table.prc tr:first-of-type td {
    background-color: #e9e8f9;
}
table.prc tr:nth-of-type(n+2) > td:nth-of-type(n+2) {
    background-color: #fff4f4;
}
table.prc thead td {
    padding: 0 10px 3px;
    background-color: rgba(220,215,64,0.3) !important;
}
table.prc thead b,
table.ris [name='row1'] b {
    color: #da0e0e;
}
table.dis td {
    background-color: #e9e8f9;
}
table.dis td:last-of-type {
    background-color: #fff4f4;
}
table.ris [name='row3'] {
    border-bottom: 2px solid;
}
table.ris [name='row2'] td {
    text-align: center;
}
table.ris [name='row1'] [rowspan='3'] {
    background-color: #dbe0fb;
    border-bottom: 2px solid;
}
table.ris tr td:first-of-type {
    background-color: #dce1ff;
}
table.ris [name='row1'] [colspan='4'] {
    background-color: #ffebcc;
}
table.ris [name='row2'] td:nth-child(odd) {
    background-color: #e4fde6;
}
table.ris [name='row2'] td:nth-child(even) {
    background-color: #d8f4fd;
}
table.ris [name='row3'] td:nth-child(4n+1),
table.ris [name='row3'] td:nth-child(4n+2) {
    background-color: #e4fde6;
}
table.ris [name='row3'] td:nth-child(4n+3),
table.ris [name='row3'] td:nth-child(4n+4) {
    background-color: #d8f4fd;
}
/*----------------*/
table.ris [name='row4'] td:nth-child(1),
table.ris [name='row5'] td:nth-child(1),
table.ris [name='row6'] td:nth-child(1),
table.ris [name='row7'] td:nth-child(1),
table.ris [name='row8'] td:nth-child(1),
table.ris [name='row9'] td:nth-child(1),
table.ris [name='row10'] td:nth-child(1) {
    background-color: #f4f5f9 !important;
}
/*---------------*/
table.ris tr td{
    background-color: #ebfaff;
}
table.ris [name='row4'] td:nth-child(4n+2),
table.ris [name='row4'] td:nth-child(4n+3),
table.ris [name='row5'] td:nth-child(4n+2),
table.ris [name='row5'] td:nth-child(4n+3),
table.ris [name='row6'] td:nth-child(4n+2),
table.ris [name='row6'] td:nth-child(4n+3),
table.ris [name='row7'] td:nth-child(4n+2),
table.ris [name='row7'] td:nth-child(4n+3),
table.ris [name='row8'] td:nth-child(4n+2),
table.ris [name='row8'] td:nth-child(4n+3),
table.ris [name='row9'] td:nth-child(4n+2),
table.ris [name='row9'] td:nth-child(4n+3),
table.ris [name='row10'] td:nth-child(4n+2),
table.ris [name='row10'] td:nth-child(4n+3){
    background-color: #f2fff3;
}




#pr11 {
    margin-top: 40px;
}
/* Галерея */
table.galery-wrap,
table.galery-wrap tr,
table.galery-wrap td {
    border: none;
}
table.galery-wrap {
    width: 95%;
    margin: 0 auto;
}
table.galery-wrap .img-box {
    
}
table.galery-wrap .img-link {
    display: block;
    box-sizing: border-box;
    padding: 15px 0;
}
table.galery-wrap .img-link img {
    display: block;
    margin: 0 auto;
}
.contacts h1 {
    text-decoration: none;
    font-size: 1.5rem;
}
.contacts div[class^="org"] {
    margin-bottom: 0px;
    padding: 6px 0 6px 25px;
    background-image: url(img/arrow.png);
    background-repeat: no-repeat;
    background-position: 2px 8px;
    background-size: 18px;
}
.contacts div[class^="org"]:hover,
.contacts div[class^="org"]:active {
    background-image: url(img/arrow2.png);
    transition: 0.5s;
}
.contacts [class*="Title"] {
    font-weight: bold;
}
.contacts [class*="Address"] > span[class*="Title"],
.contacts [class*="Address"] > .addressWrap {
    display: inline-block;
}
/* Карта */
.map {
    margin: 0;
}
.map iframe {
    width: 100%;
    vertical-align: top;
    min-height: 250px;
    border: 0;
}
.galery-img-link {
    display: block;
    float: left;
    margin: 10px 10px 10px 0;
}
.galery-table :nth-child(2n) {
    margin-right: 0px;
}
.galery-img-link img {
    display: block;
    margin: 0 auto;
}
.error {
    font-size: 2rem;
    text-align: center;
}
/* Подвал */
.copyright {
    font-family: 'IBM Plex Sans', sans-serif;
    text-align: center;
    font-size: 12px;
}
/*-- Кнопка Вверх --*/
#up {
    width: 50px;
    height: 50px;
    position: fixed;
    z-index: 100;
    bottom: 45px;
    right: 45px;
    background-color: rgba(255,153,0,0.5);
    cursor: pointer;
}
#up:hover {
    background-color: #ff9900;
}
#up:active {
    background-color: #ff9900;
}
#up::after {
    content: 'up';
    display: block;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    padding: 0px 0 0 4px;
    font-size: 20px;
    line-height: 20px;
    color: rgba(42, 38, 64, 0.4);
    position: absolute;
    z-index: auto;
}
#up:hover::after,
#up:active::after{
    color: #2a2640;
}

@media screen and (max-width: 799px) { 
    .link-to-page {
        font-size: 1.850em;
    }
    .block-wrapper .block {
        height: 300px;
    }
    /* Блок с банером */
    .img-wrap {
        display: block;
        width: 100% !important;
        height: 100px;
        position: relative !important;
        left: 0 !important;
        z-index: 1;
        display: block;
    }
    .link-to-page {
        position: absolute;
        top: 25px;
    }
    /* END Блок с банером */
}
@media screen and (max-width: 599px) {
    h1 {
        text-align: left;
    }
    /* Меню для мобильных версий */
    .top-block {
        position: relative;
        z-index: 10;
    }
    .top-line {
        height: 40px;
        position: relative;
        z-index: auto;
        font-size: 0px;
    }
    .top-line > span,
    .top-line > a {
        display: none !important;
    }
    .top-line .logo {
        width: auto;
        height: 81%;
        margin-top: 2px;
    }
    .block-wrapper .block {
        height: 300px;
    }
    .menu-wrapper {
        width: 100%;
        position: static;
        z-index: auto;
    }
    #menu-button {
        display: block;
        box-sizing: border-box;
        position: absolute;
        z-index: 11;
        width: 40px;
        height: 100%;
        top: 0;
        right: 0;
        background-color: inherit;
    }
    .menu-button .bullet {
        display: block;
        background-color: #635f5f;
        border-radius: 50%;
        width: 6px;
        height: 6px;
        position: absolute;
        z-index: auto;
        left: 16px;
    }
    .bullet1 {
        top: 4px;
    }
    .bullet2 {
        top: 16px;
    }
    .bullet3 {
        top: 28px;
    }
    .menu {
        display: none;
    }
    .menu li {
        height: 0;
    }
    .menu.active {
        display: block;
        width: 100%;
        height: auto;
        padding-top: 0;
        background-color: #e5e5cf;
        position: absolute;
        z-index: auto;        
    }
    .menu.active li {
        display: block;
        width: 100% !important;
        height: 60px;
    }
    .menu.active li.menu-item {
        padding: 0;
    }
    .menu.active li.menu-item > a {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: 100%;
        padding: 13px 0 0 0;
        margin: 0;
        font-size: 1.5rem;
    }
    .menu.active li.menu-item > a:active,
    .menu.active li.menu-item > a:hover {
        background-color: #2a2640;
        color: #e5e5cf;
    }
    .menu.active .menu-item:nth-child(2) a {
        background-image: none;
    }
    .menu.active li.menu-label {
        font-size: 0;
        line-height: 0;
        height: 0;
    }
    .menu.active li.menu-item > a {
        padding: 10px 0 0 0;
    }
    /* END Menu */
    /* Блок с банером */
    .img-wrap {
        display: block;
        width: 100% !important;
        height: 100px;
        position: relative !important;
        left: 0 !important;
        z-index: 1;
        display: block;
    }
    .link-to-page {
        position: absolute;
        top: 25px;
    }
    /* END Блок с банером */
    #blocks {
        margin-top: 0px;
    }
    .block .text {
        padding: 3px;
        text-align: left;
        font-size: 1.4em;
    }
    .text ul,
    .text ol {
        padding-left: 20px;
    }
    .text ul li, .text ol li { }
    .text .paper-size {
        width: 100%;
        height: auto;
    }
    .text label {
        padding: 0 3px;
        margin: 0 2px 0 0;
        letter-spacing: -0.4px;
    }
    .tabs label > span {
        margin: 10px 0;
        font-size: 0.98rem;
    }
    .content-tab img {
        display: block;
        float: none;
        margin: 6px auto;
    }
    .content-tab2 img {
        width: 100%;
        height: auto;
    }
    .page3 .block-wrapper .text {
        text-align: left;
        letter-spacing: -0.5px;
    }
    .page4 .block-wrapper .text {
        text-align: left;
    }
    #up { display: none !important; }
}
@media screen and (max-width: 399px) { 
    html, body {
        font-size: 16px; 
    }
    h3, h4 {
        font-size: 1rem; 
    }
    /* Меню для мобильных версий */
    .menu.active li {
        height: 51px;
    }
    .menu.active li.menu-item > a {
        padding: 9px 0 0 0;
    }
    /* END Menu */
    /* Блок с банером */
    .block-wrapper .block {
        height: 250px;
    }
    .img-wrap {
        display: block;
        width: 100% !important;
        height: 85px;
        position: relative !important;
        left: 0 !important;
        z-index: 1;
        display: block;
    }
    .link-to-page {
        position: absolute;
        top: 16px;
    }
    #blocks {
        margin-top: 0;
    }
    .page1 h1 {
        font-size: 1.3rem;
        line-height: 1.5rem;
        text-align: left;
        letter-spacing: -0.1px;
    }
    .page3 h2 {
        letter-spacing: -0.5px;
    }
    .page3 .block-wrapper .text {
        font-size: 0.98rem;
        text-align: left;
    }
    .page4 .block-wrapper .text {
        font-size: 0.98rem;
        text-align: left;
    }
    .content-tab img {
        float: none;
        width: 100%;
        height: auto;
        margin: 6px auto;
    }
    .text label {
        padding: 0 3px;
        margin: 0 2px 0 0;
        letter-spacing: -0.4px;
    }
    .tabs label > span {
        margin: 10px 0;
        font-size: 0.98rem;
    }
    .section-link {
        font-size: 1rem;
    }
    .contacts h1 {
        margin: 10px 0;
    }
    .galery-img-link {
        display: block;
        margin: 10px auto;
    }
    .galery-img-link img {
        display: block;
        margin: 0 auto;
    }
}
