/*
Theme Name: gramota.com
Theme URI: https://gramota.com/
Description: Modernized responsive theme for Russian School Gramota
Author: Gramota
Author URI: https://gramota.com/
Version: 2.0.0
Text Domain: gramota.com
*/
body, h1, h2, h3, h4, h7, p, ul, li, a, div {font-family: Arial;}
body { margin:0; background-color: #ffffbf; font-size:14px;}
.kbanner{margin-left:16px;margin-top:10px;}
.title {font-size:18px;background-color:#42a4ad;padding:8px 25px 8px 20px;display:inline-block;color:#ffffbf;font-weight:bold;margin-bottom:0px;} 
/* ul {clear:both;} */
hr {clear:both;  
    border: 0;
    border-top: 10px solid #42A5AD;
    border-bottom: 0px;}

.right-menu {padding-right:17px;}
#menu-languagemenu {margin-bottom:0px;}

@media (max-width: 767px) {
.domik {text-align:center;}
.btn-menu {margin-top:-80px;}
.lang-menu {margin-top:-38px;margin-right:-86px;}
.search-btn{margin-left:-39px;}
/*.searchform {margin-top:-30px;margin-left:-25px;}
#searchform input[type="text"] {margin-top:30px;}
#searchform input[type="submit"] {margin-top:30px;}*/
.btn-search {border:0;padding:0;margin:0;}
.btn-menu {border:0;padding:0;background-color: #ffffbf;font-size: 14px;font-weight:bold;}
.searchform{float:none;margin-left:-40px;}
#searchform input[type="text"] {float:none;}
#searchform input[type="submit"] {margin-left:40px;}
}

/* different margins in mobile and normal versions */

@media (max-width: 767px) {
p,ul#list,.peg-album.alignleft,ol#list3,ol#list4,table,.table-pay{margin-left:0px;}
p{padding-right: 20px; padding-left:5px;text-align:left;}
}
@media (min-width: 767px) {
p,ul#list,.peg-album.alignleft,ol#list3,ol#list4,table,.table-pay{margin-left:20px;}
p{padding-right: 26px; padding-left:26px;text-align:justify;}
}


.img-search {background: url(/images/search.png); border: 0; display: block; height: 30px; width: 30px; font-size: 0; float: left;}

.img-menu {background: url(/images/menu.png); border: 0; display: block; height: 30px; width: 30px; font-size: 0; float: left; margin-right:10px;}

.lang-menu {float:right;padding-right:5px;}
.primary-menu {padding-top:7px;float:right;}
.search-btn {float:left;}

/* p { margin: 0px 0px 20px 10px;background-color:#ffffbf;padding:10px 10px 10px 10px;} */
.g-recaptcha {padding-left:10px;}
h4 {padding-left:10px;}

.titleFont {color: #E20613;font-size: 18px;} 
.textTitles {color:#;}
.textTitles2 {color:#;}
.text_bold {font-weight:bold;}

header {padding-bottom: 400px;}
a {color:#000000;cursor:pointer;-moz-user-select: -moz-none; -o-user-select: none; -khtml-user-select: none; -webkit-user-select: none; user-select: none;}
.span6 a {color:#41a6ae;text-decoration:underline;}
.sitemap a {color:#000;}


a:hover{color:#42a5ad;}

.menu-topmenu-container {}
@media (min-width: 767px) {
.searchform {float:left;}
#searchform input[type="text"] {float:right;}
}
.searchform {padding-right:5px;}
.menu-languagemenu-container {float:left;padding-left:0px;padding-right:0px;margin-top: 7px;}
/* Search */
.searchform {}
#searchform label {display:none;}
#searchform input[type="text"] {background-color:#fffff0; border:2px solid #42A5AD;width:90px;height:18px; border-radius: 0px; box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);}
#searchform input[type="submit"] {background: url(/images/search.png);border: 0;display: block;height: 30px;width: 30px;font-size: 0;float:left;}

#menu-topmenu {float:right; padding-left: 0px; }
#menu-topmenu a {margin-left:0px;font-size:14px;text-transform:none;}
#menu-topmenu a:hover{color:#41a6ae;} 
.current_language { color:#FFFFBF;background:#e20613;}

#menu-leftmenu .sub-menu > .current-menu-item > a{color:#ffffff;}
#menu-leftmenu > .current-menu-item > a{color: #42a5ad;}
/* #menu-leftmenu > li > a:hover {color:#ed1b24;} */
.sub-menu > li > a > div{padding-top:3px;padding-bottom:3px;}
.sub-menu :first-child  > a > div {padding-top:15px;}
.sub-menu :last-child >a > div {padding-bottom:15px;}
/* #menu-leftmenu > li > a:hover {color:#505050;} */
#menu-leftmenu {list-style-type:none;font-size:18px;font-weight:bold; margin-bottom:10px;} 
#menu-leftmenu > li > a > div{padding-top:3px;padding-bottom:3px;}
#menu-leftmenu li img{float:left;padding-right:5px;margin-top: -10px;}
#menu-leftmenu li{clear:both;}

.sub-menu {margin-left:0px;margin-bottom:5px;list-style-type:none;display:none;}
.sub-menu div {padding-left:10px;padding-right:10px;}
#menu-leftmenu .sub-menu a {color:#ffffbf;text-decoration:none;}
#menu-leftmenu .sub-menu a:hover {color:#ffffff;}

/*.sub-menu .bgr1 {background:#e20613;}
.sub-menu .bgr2 {background:#42a5ad;}
.sub-menu .bgr3 {background:#39b54a;}*/

.bgr1{background:#e20613;} /* red */
.bgr2{background:#42a5ad;} /* blue */
.bgr3{background:#39b54a;} /* green */

.line {width: 30px;height: 2px;float: left;margin-top: 20px;margin-right:5px;}

.alignleft {float:left;margin-right: 10px;}
.w161 {width:161px;}

.language {padding:0;margin:0;}

.footer {text-align:center;color:#000000;font-size:13px;}
.footer > ul {padding:0;margin:5px 5px 5px 13px;}
.footer > ul > li {margin-left:0px;list-style-type:none;}
.footer > ul > li > a:hover {text-decoration:none;}
  
.leftmenu-img-show {visibility: visible;}
.leftmenu-img-hide {visibility: hidden;}
.show { display:block;}
.hide {display:none;}
.bold {font-weight:bold;}

.right_plg {clear:both;}

/* scrollbar background */
.nicescroll-rails {background-color:#42a5ad;}

/* for sitemap */
.sitemap {background-color:#ffffbf;list-style-type:disc;padding:10px 10px 10px 10px;}
.sitemap a {text-decoration:underline;}
.sitemap .page_item_has_children > a{pointer-events: none;
   cursor: default;text-decoration:none;}
   
/* for search */
.search {    background-color: rgba(255,255,240,1);
    margin-left: 0px;
    margin-top: 20px;
    padding-top: 16px;
    padding-right: 26px;
    padding-left: 26px;
    text-align: justify;
    padding-bottom: 5px;}
.search a {text-decoration:underline; color:#42A5AD;}

/* NextGen gallery */

.gallery-list {font-size: small;padding-left: 3px;text-align: justify;}
.album-name {font-weight:bold;padding-left: 3px;text-align: justify;}
.gallery-name {font-weight:bold;padding-left: 3px;text-align: justify;}

.ngg-galleryoverview {text-align: justify;}

.ngg-gallery-thumbnail .lazy {
    background-color: #fff;
    border: 1px solid #a9a9a9;
    display: block;
    margin: 4px 0 4px 4px;
    padding: 4px;
    position: relative;
}

.screen-reader-text {display:none;}

.animaltop,.animalbottom,.content {float:left;}
.animaltop,.animalbottom {width:15%}
.animalbottom{position:relative}
.animalbottom img {position:absolute;bottom:0;}
.content{width:70%;}

.fivecmspace {height:20px;}

/*
.search-icon {font-family: Arial;color:#000000}
.sub-menu  {margin-top:-10px;margin-left:0px;position:relative;zoom:1;top:0px;left:0px;list-style-type:none;display:none;}
.sub-menu li {position:relative;zoom:1;top:0px;left:0px;}
.sub-menu div {position:relative;zoom:1;left:10px;width:100%;}
.leftmenu-text {position:relative;zoom:1;top:0px;overflow:auto;}
#site-navigation .menu li a{font-family: Arial;font-size:18px;color:#000000;text-transform:none;}
.show {-webkit-transition: ease all 5s; -moz-transition: ease all 5s;  -o-transition: ease all 5s;  -ms-transition: ease all 5s;  transition: ease all 5s;} 
*/

/* Changes Nastya */

header {padding-bottom: 40px; padding-top: 20px;}
#menu-leftmenu {list-style-type:none; font-size:15px; line-height:16px; font-weight:bold; margin-bottom:20px;padding-left:0px;} 
#menu-leftmenu > li > a > div {padding-top:3px; padding-bottom:3px;}
#menu-leftmenu li img {float:left;padding-right:5px; margin-top:-13px; padding-left:0px;}
#menu-leftmenu li{clear:both;padding-left:0px;}


#menu-leftmenu {list-style-type:none;font-size:15px;font-weight:bold; margin-bottom:10px; color:#000000; margin-top:20px;} 
#menu-leftmenu > li > a > div{padding-top:3px;padding-bottom:3px;}
#menu-leftmenu li img{float:left;padding-right:5px;margin-top: -13px;}
#menu-leftmenu li{clear:both;}

#menu-item-118 {padding-top:13px;}

h1 {
    font-size: 16px;
line-height:18px;
}


#menu-rightmenu {list-style-type:none;font-size:13px;font-weight:bold; margin-bottom:10px;margin-left:0px; color:#000000;}
#menu-righttmenu > li > a > div{padding-top:3px;padding-bottom:3px;}
#menu-rightmenu li img{float:left;padding-right:0px;margin-top: 0px;}
#menu-rightmenu li{clear:both;}
.right-widget-block {list-style-type:none; /* width:200px; */ font-weight:bold; margin-bottom:10px;margin-right:0px; color:#000000;padding-left:30px;}
.menu-rightmenu-container{list-style-type:none; /* width:200px; */ font-weight:bold; margin-bottom:10px;margin-right:0px;margin-left:0px; color:#000000;}

.span2 {/*margin-left:20px;*/}

.nav-list > li > a {padding-top:0px;padding-bottom:0px;}
li {line-height: 18px; color:#000000; 
   }


.titleFont {font-size: 14px; font-weight:bold; color: #E20613;} /*highlited text*/
.textTitles {color: #E20613; font-weight:bold;} /*highlited text*/
.textTitles2 {color:#000000;}
.text_bold {color:#000000;}


.title {margin-top:10px;} /*Titles*/
.subtitle {text-transform: uppercase; font-weight:bold;}

p {color: #000000; background-color: rgba(255,255,240,1); padding-top:16px; padding-bottom:16px;margin-right:0px; margin-bottom: 0px;}
.g-recaptcha {padding-left:10px;padding-top:5px;}
h4 {padding-left:10px;}

body, h1, h2, h3, h4, p, ul, li, a, div {font-family: Arial;}
body { margin:0; background-color: #ffffbf; font-size:14px;}
body {line-height:18px;}

.nav-pills > li > a {padding-left:6px;padding-right:6px;}

.searchform {padding-right:5px;color:#42A5AD;}


.aside {
  margin-bottom: 20px;
}

.span7 {
    
/*margin-left: 20px;
margin-right:20px;*/
/*padding-right:20px;*/
}


.nav-links {margin-left:20px;}
.page-numbers {
    font-weight: bold;}
.page-numbers.current {
    color:#42a5ad;}

.span12 {margin-top:20px;margin-bottom:10px;}



.player.player-1464542495935.js-player-fullscreen.with-fullscreen {
    width: 95%;
    height: 95%;
  background-color: rgba(255, 255, 255, 0.15);
   
}

.menurighttitle {
    color: #FFFFBF;
    background: #E20613;
    padding: 2px 10px 2px 10px;
    margin-left: -10px;
    margin-bottom: 5px;
    margin-top: 5px;
display:inline-block;
}

ul#list
   {text-align:left;
    list-style-type: square; 
    color: #000000;
    background-color: rgba(255,255,240,1);    
    margin-bottom:0px;
    padding-top: 12px;
    padding-right: 60px;
    padding-left: 60px;
    padding-bottom: 12px;
    text-align: justify;
   }

ul#list li {padding-bottom:5px;}

ol#list3  {
     color: #000000;
    background-color: rgba(255,255,240,1);    
    margin-bottom:0px;
    padding-top: 12px;
    padding-right: 26px;
    padding-left: 60px;
    padding-bottom: 12px;
    text-align: justify;
   }

ol#list4  {
     color: #000000;
    background-color: rgba(255,255,240,1);
    margin-bottom:0px;
    padding-top: 12px;
    padding-right: 10px;
    padding-left: 60px;
    padding-bottom: 12px;
    text-align: justify;
   }

ul#list2
   {
    list-style-type: square; 
    color: #000000;
    background-color: rgba(255,255,240,1);
    margin-left: 0px;
margin-bottom:0px;
    padding-top: 16px;
    padding-right: 26px;
    padding-left: 36px;
    padding-bottom: 20px;
    text-align: justify;
   }

h4 {padding-left:10px;color: #FFFFBF;
    background-color:rgb(57, 181, 74);
    margin-left: 0px;
    margin-bottom: 0px;
margin-top:20px;
    margin-right: 147px;
    padding-top: 6px;
    padding-right: 26px;
    padding-left: 26px;
    padding-bottom: 6px;
    text-align: justify;
    font-size: 16px;}

hr#hrgreen {border-top:10px solid #39B54A;}
hr#hrred {border-top:10px solid #e20613;}
hr#hrlongred {margin-top:0px; margin-right:0px; border-top:3px solid #e20613;}

/*Anketa*/

textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input {background-color: #fffff0;
    border: 2px solid #39B54A;
    color:black;
    height: 20px;
    border-radius: 0px;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    margin-top: 10px;
}

input {background-color: #39B54A;
color: ivory;
    border: 2px solid #39B54A;
    height: 28px;
    border-radius: 0px;
    box-shadow: inset 0 0px 0px rgba(0, 0, 0, 0);
    margin-top: 10px;
}


/*Tables*/

table    {max-width: 100%;
color:black;
    background-color: ivory;
    /*width: 440px;*/
    border-collapse: collapse;
    margin-right: 18px;}    

table#table2
   { max-width: 90%;
    color: black;
    background-color: ivory;
    width: 98%;
    border-bottom: 4px solid #E20613;
    border-left: 2px solid transparent;
    border-right: 2px solid transparent;
    border-top: 2px solid transparent;
    border-collapse:collapse;
    margin-right: 20px;
    margin-left: 20px;
margin-top:20px;
margin-bottom:20px;
    }

table#table3
   { max-width: 100%;
    color: black;
    background-color: ivory;
    width: 400px;
    border-collapse: collapse;
    margin-right: -10px;
    padding: 0px;
    margin-left: 20px;
border:2px solid ivory;
    border-bottom: 4px  #E20613;
    border-left: 2px   #E20613;
    border-right: 2px  #E20613;    border-top: 2px #E20613;
    }

table#table4
   { max-width: 50%;
    color: black;
    background-color: ivory;
    width: 150px;
    border-collapse: collapse;
    margin-right: 0px;
    padding: 0px;
    margin-left: 0px;
    border: #E20613;
    }


input#price {border: 2px solid #E20613;width:40px;}
input#calculate {background-color: #E20613;border: 2px solid #E20613; margin-top:0px;}
form#formpaypal {width:400px;}

.style1 {font-weight:bold;}
.style2 {color:#e20613;}
.style3 {color:#39B54A;}
h7 {font-size:13px;}



/*Homework*/

fieldset {color: #000000; background-color: rgba(255,255,240,1); margin-bottom:0px; margin-left:0px; padding-top:16px;padding-right: 26px; padding-left:26px; padding-bottom:0px;text-align: justify;}

.hw_text {color: #000000; background-color: rgba(255,255,240,1); margin-bottom:-20px; margin-left:0px; padding-top:16px;padding-right: 26px; padding-left:26px; padding-bottom:16px; text-align: justify;}


select {background-color: #ffffff;
    border: 2px solid #E20613;
    border-radius: 0px;
    color: black;}

.reader-container {margin-left:47px;}

/*Images*/

/*
.lazy {width:150px;
margin-bottom:5px;
}
*/
h2 {text-transform: uppercase; font-weight:bold;}


/*Contact-form*/
.cfinput {border: 2px solid #42A5AD !important;}
.cfsubmit {background-color:#42A5AD !important; border: 2px solid #42A5AD !important;}

.igsv-table {width:auto;margin:0;margin-left: 20px;
    padding-top: 16px;
    padding-right: 26px;
    padding-left: 26px;
    padding-bottom: 16px;
    text-align: justify;}

iframe {padding:0; margin-left:px;}

.animal {margin-left:30px; max-width:208px;}

/**/
.span6 {margin-left:0px;}
.right-widget-block {margin-left:30px;}

h5 {padding-left:45px; margin-right:45px;
}

#fancybox-title-over {display:none;}
.ourteam #fancybox-title-over {display:block;}

/*paragraph paddings*/


.ptitle {padding-bottom:0px;}
.pfirst {padding-top: 16px;
    padding-bottom: 5px;}
.pmiddle {padding-top: 5px;
    padding-bottom: 5px;}
.plast {padding-top: 5px;
    padding-bottom: 16px;}


.peg-album {margin-right:0px;}

h2 {font-size:14px; line-height:18px; color: #000000; background-color: rgba(255,255,240,1); margin-left:20px; padding-top:16px;padding-right: 26px; padding-left:26px; padding-bottom:5px;text-align: justify;margin-right:0px; margin-top:0px; Margin-bottom:0px;text-transform: uppercase; font-weight:bold;}

.date {font-size:13px;font-weight:bold;}

/*.b-popup{
    width:100%;
    min-height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow:hidden;
    position:fixed;
    top:0px;
}

.b-popup .b-popup-content{
    text-align: center;
    margin:40px auto 0px auto;
    width:100%;
    height: 100%;
    padding:10px;
    background-color: #c5c5c5;
    border-radius:5px;
    box-shadow: 0px 0px 10px #000;
}

#a-popup {position:fixed;margin-left:5px;font-size:large;}

a#a-popup:hover{text-decoration:none;}*/


.b-popup{
display: block;
   max-width: 100%;
max-height:100%;
    
    overflow:hidden;
  
    top:0px;
}

.b-popup .b-popup-content{
    text-align: center;
    margin:0px;
display:block;
    max-width: 100%;
max-height: 100%;
    padding:0px;
    border-radius:5px;
    
}

#a-popup {position:fixed;margin-left:5px;font-size:large;}

a#a-popup:hover{text-decoration:none;}

.footer-link {display:none;}

/*img {height:100%;}*/

.table-pay {height: 500px; background-color: ivory; padding: 10px 10px 0px 10px;}

.span4 .photonic-stream img{width:250px;hight:100px}




/* Gramota external mobile fixes 20260812 */
@media screen and (max-width:1100px){
  .right-menu>.btn-menu{
    order:0!important;display:block!important;flex:0 0 30px!important;
    width:30px!important;height:30px!important;min-width:30px!important;
    margin:0!important;padding:0!important;background:transparent!important;
    color:transparent!important;font-size:0!important;line-height:0!important;
    overflow:hidden!important;border:0!important;
  }
  .right-menu>.btn-menu .img-menu{
    display:block!important;float:none!important;width:30px!important;height:30px!important;
    margin:0!important;background-color:#42a5ad!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Crect width='30' height='30' fill='%2342a5ad'/%3E%3Crect x='6' y='7' width='18' height='3' fill='%23ffffbf'/%3E%3Crect x='6' y='13.5' width='18' height='3' fill='%23ffffbf'/%3E%3Crect x='6' y='20' width='18' height='3' fill='%23ffffbf'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;background-position:center!important;
    background-size:30px 30px!important;border:0!important;border-radius:0!important;
  }
  .menu-leftmenu-container,.menu-leftmenu-fr-container{width:100%!important}
  #menu-leftmenu,#menu-leftmenu-fr{
    float:none!important;width:280px!important;max-width:calc(100vw - 40px)!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  .span6>p{
    box-sizing:border-box!important;margin-left:0!important;
    padding-left:20px!important;padding-right:20px!important;
  }
  .span6>p>img,.span6>p>a>img,
  .span6>p>img.aligncenter,.span6>p>a>img.aligncenter,
  .span6>p>img.alignleft,.span6>p>a>img.alignleft,
  .span6>p>img.alignright,.span6>p>a>img.alignright{
    display:block!important;max-width:100%!important;height:auto!important;
    margin-left:auto!important;margin-right:auto!important;
  }
  .span6>p>iframe{
    display:block!important;box-sizing:border-box!important;
    width:100%!important;max-width:100%!important;
    margin-left:0!important;margin-right:0!important;
    aspect-ratio:16/9!important;height:auto!important;
  }
  .span6>iframe{
    display:block!important;box-sizing:border-box!important;
    width:calc(100% - 40px)!important;max-width:calc(100% - 40px)!important;
    margin-left:20px!important;margin-right:20px!important;
    aspect-ratio:16/9!important;height:auto!important;
  }
}


/* Gramota pure CSS mobile burger 20260812 */
@media screen and (max-width:1100px){
  .right-menu>.btn-menu .img-menu{
    position:relative!important;
    background-color:#42a5ad!important;
    background-image:none!important;
  }
  .right-menu>.btn-menu .img-menu:before{
    content:""!important;
    position:absolute!important;
    display:block!important;
    left:6px!important;
    top:7px!important;
    width:18px!important;
    height:3px!important;
    background:#ffffbf!important;
    box-shadow:0 6.5px 0 #ffffbf,0 13px 0 #ffffbf!important;
  }
  .right-menu>.btn-menu .img-menu:after{content:none!important;display:none!important}
}


/* Gramota mobile toolbar equal gaps and hover 20260812 */
@media screen and (max-width:1100px){
  .right-menu{column-gap:6px!important}
  #menu-topmenu>li:nth-last-child(2)>a,
  #menu-topmenu>li:last-child>a{padding-left:0!important;padding-right:0!important}
  #menu-topmenu>li:last-child{margin-left:6px!important}

  .right-menu>.btn-menu .img-menu,
  .right-menu .btn-search .img-search,
  .primary-menu .gramota-social-icon .social-bg{
    transition:background-color .15s ease,fill .15s ease!important;
  }
  .right-menu>.btn-menu:hover .img-menu,
  .right-menu>.btn-menu:focus .img-menu{background-color:#e20613!important}

  .right-menu .btn-search .img-search{
    position:relative!important;
    display:block!important;
    width:30px!important;height:30px!important;
    background-color:#42a5ad!important;
    background-image:none!important;
  }
  .right-menu .btn-search .img-search:before{
    content:""!important;position:absolute!important;display:block!important;
    left:6px!important;top:5px!important;width:11px!important;height:11px!important;
    box-sizing:border-box!important;border:3px solid #ffffbf!important;border-radius:50%!important;
  }
  .right-menu .btn-search .img-search:after{
    content:""!important;position:absolute!important;display:block!important;
    left:16px!important;top:18px!important;width:10px!important;height:3px!important;
    background:#ffffbf!important;transform:rotate(45deg)!important;
    transform-origin:left center!important;
  }
  .right-menu .btn-search:hover .img-search,
  .right-menu .btn-search:focus .img-search{background-color:#e20613!important}

  .primary-menu a .gramota-social-icon path{fill:#ffffbf!important}
  .primary-menu a:hover .gramota-social-icon .social-bg,
  .primary-menu a:focus .gramota-social-icon .social-bg{fill:#e20613!important}
}


/* Gramota restore original search icon 20260812 */
@media screen and (max-width:1100px){
  .right-menu .btn-search .img-search{
    position:static!important;
    background-color:transparent!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%2342a5ad'/%3E%3Ccircle cx='13' cy='13' r='7' fill='none' stroke='%23ffffbf' stroke-width='4'/%3E%3Cpath d='M18.5 18.5L26 26' stroke='%23ffffbf' stroke-width='4'/%3E%3C/svg%3E")!important;
    background-size:30px 30px!important;
    background-repeat:no-repeat!important;
    background-position:center!important;
  }
  .right-menu .btn-search .img-search:before,
  .right-menu .btn-search .img-search:after{content:none!important;display:none!important}
  .right-menu .btn-search:hover .img-search,
  .right-menu .btn-search:focus .img-search{
    background-color:transparent!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' fill='%23e20613'/%3E%3Ccircle cx='13' cy='13' r='7' fill='none' stroke='%23ffffbf' stroke-width='4'/%3E%3Cpath d='M18.5 18.5L26 26' stroke='%23ffffbf' stroke-width='4'/%3E%3C/svg%3E")!important;
  }
}


/* Gramota large mobile header logo 20260812 */
@media screen and (max-width:1100px){
  header .span4>a{
    display:block!important;
    box-sizing:border-box!important;
    width:calc(100% - 48px)!important;
    max-width:600px!important;
    margin-left:auto!important;
    margin-right:auto!important;
  }
  header .span4>a>img,
  header .span4 img{
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    margin:0 auto!important;
  }
}


/* Gramota deeper mobile post content inset 20260812 */
@media screen and (max-width:1100px){
  .span6>p{
    padding-left:36px!important;
    padding-right:36px!important;
  }
  .span6>iframe{
    width:calc(100% - 72px)!important;
    max-width:calc(100% - 72px)!important;
    margin-left:36px!important;
    margin-right:36px!important;
  }
}


/* Gramota compact mobile gallery accordion 20260812 */
@media screen and (max-width:1100px){
  .span4>.animal{
    float:none!important;
    width:112px!important;
    max-width:112px!important;
    height:auto!important;
    margin:22px auto 8px!important;
  }
  .span4>.animal img{
    display:block!important;
    width:100%!important;
    max-width:100%!important;
    height:auto!important;
    margin:0!important;
  }
  .span4>.fivecmspace{display:none!important;height:0!important}
  .right-widget-block{
    box-sizing:border-box!important;
    width:360px!important;
    max-width:calc(100vw - 48px)!important;
    margin:0 auto 36px!important;
    padding:0!important;
    list-style:none!important;
  }
  .right-widget-block>h1{
    margin:0 0 16px!important;
    padding:0!important;
    text-align:center!important;
    font-size:24px!important;
    line-height:1.15!important;
  }
  .right-widget-block .menu-rightmenu-container{margin:0!important;padding:0!important}
  #menu-rightmenu,#menu-rightmenu-fr{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    font-size:16px!important;
    list-style:none!important;
  }
  #menu-rightmenu>li,#menu-rightmenu-fr>li{
    width:100%!important;
    margin:0 0 8px!important;
    padding:0!important;
  }
  #menu-rightmenu>li>a,#menu-rightmenu-fr>li>a{
    display:block!important;
    width:100%!important;
    margin:0!important;
    padding:0!important;
    text-decoration:none!important;
  }
  #menu-rightmenu .menurighttitle,#menu-rightmenu-fr .menurighttitle{
    position:relative!important;
    display:block!important;
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding:10px 44px 10px 14px!important;
    color:#ffffbf!important;
    background:#e20613!important;
    font-size:18px!important;
    line-height:1.2!important;
  }
  #menu-rightmenu>li.menu-item-has-children>a .menurighttitle:after,
  #menu-rightmenu-fr>li.menu-item-has-children>a .menurighttitle:after{
    content:"+"!important;
    position:absolute!important;
    right:14px!important;
    top:50%!important;
    transform:translateY(-50%)!important;
    color:#ffffbf!important;
    font-size:24px!important;
    font-weight:400!important;
  }
  #menu-rightmenu>li.is-open>a .menurighttitle:after,
  #menu-rightmenu-fr>li.is-open>a .menurighttitle:after{content:"−"!important}
  #menu-rightmenu>li>.sub-menu,#menu-rightmenu-fr>li>.sub-menu{
    box-sizing:border-box!important;
    width:100%!important;
    margin:0!important;
    padding:10px 14px 12px!important;
    background:rgba(255,255,240,.76)!important;
    list-style:none!important;
  }
  #menu-rightmenu>li>.sub-menu.hide,#menu-rightmenu-fr>li>.sub-menu.hide{display:none!important}
  #menu-rightmenu>li>.sub-menu.show,#menu-rightmenu-fr>li>.sub-menu.show{display:block!important}
  #menu-rightmenu>li>.sub-menu>li,#menu-rightmenu-fr>li>.sub-menu>li{
    margin:0!important;padding:0!important;
  }
  #menu-rightmenu>li>.sub-menu>li>a,#menu-rightmenu-fr>li>.sub-menu>li>a{
    display:block!important;
    padding:5px 2px!important;
    color:#000!important;
    font-size:16px!important;
    line-height:1.3!important;
    text-decoration:none!important;
  }
  #menu-rightmenu>li>.sub-menu>li>a:hover,
  #menu-rightmenu-fr>li>.sub-menu>li>a:hover{color:#e20613!important}
  .nav-links{
    margin:12px 24px 18px!important;
    text-align:center!important;
    line-height:1.8!important;
  }
  .nav-links .page-numbers{
    display:inline-block!important;
    min-width:26px!important;
    padding:2px 3px!important;
  }
}


/* Gramota hide mobile gallery decoration 20260812 */
@media screen and (max-width:1100px){
  .span4>.animal{display:none!important}
}


/* Gramota mobile gallery top spacing 20260812 */
@media screen and (max-width:1100px){
  .right-widget-block{margin-top:36px!important}
}


/* Gramota mobile content polish 20260812 */
@media screen and (max-width:767px){
  /* Two equal portrait columns on the team page. */
  body.ourteam #jtg-22286{box-sizing:border-box!important;width:100%!important;padding:0 20px!important}
  body.ourteam #jtg-22286 .modula-items{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    box-sizing:border-box!important;
    width:100%!important;
    height:auto!important;
    position:relative!important;
  }
  body.ourteam #jtg-22286 .modula-item{
    position:relative!important;
    left:auto!important;
    top:auto!important;
    width:100%!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    margin:0!important;
  }
  body.ourteam #jtg-22286 .modula-item-content{
    position:absolute!important;
    inset:0!important;
    width:100%!important;
    height:100%!important;
  }
  body.ourteam #jtg-22286 .modula-item img{
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:none!important;
    object-fit:cover!important;
    object-position:center!important;
  }

  /* Compact, touch-friendly pagination. */
  .nav-links{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    justify-content:center!important;
    gap:6px!important;
    margin:18px 24px 26px!important;
    line-height:1!important;
  }
  .nav-links .page-numbers{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    box-sizing:border-box!important;
    min-width:34px!important;
    height:34px!important;
    margin:0!important;
    padding:0 9px!important;
    color:#ffffbf!important;
    background:#42a5ad!important;
    text-decoration:none!important;
    font-size:16px!important;
    line-height:1!important;
  }
  .nav-links .page-numbers.current,
  .nav-links a.page-numbers:hover,
  .nav-links a.page-numbers:focus{
    color:#ffffbf!important;
    background:#e20613!important;
  }
  .nav-links .page-numbers.dots{
    min-width:22px!important;
    padding:0 3px!important;
    color:#42a5ad!important;
    background:transparent!important;
  }
  .nav-links .next,.nav-links .prev{width:auto!important;padding:0 12px!important}

  /* Cleaner footer spacing. */
  footer .span12{margin-top:8px!important;margin-bottom:8px!important}
  footer .footer ul{margin-top:8px!important;margin-bottom:8px!important}
}

@media screen and (max-width:1100px){
  #menu-rightmenu-fr a,#menu-leftmenu-fr a{
    overflow-wrap:anywhere!important;
    word-break:normal!important;
    hyphens:auto!important;
  }
  #menu-rightmenu-fr .menurighttitle{
    white-space:normal!important;
    line-height:1.2!important;
  }
}
