/* Main constants */
/* Block colors */
/* Font colors */
/* Variables in units */
/* Borders */
/* Font sizes */
/* Paddings and margins */
.post-list article .info a,
.post-show .info a
{
    padding: .2em;

    text-decoration: none;

    color: #fff;
    border-radius: 4px; 
    background: #444;
}

.post-list article .info span,
.post-show .info span
{
    padding: .2em;

    vertical-align: baseline;

    color: #666;
    border-radius: 4px; 
    background: #eee;
}

.cm
{
    margin: 0 !important;
}

.cp
{
    padding: 0 !important;
}

/* COMMON STYLES */
body
{
    font-size: 14px; 

    color: #333;
    background: #e9e9e9;
}
body > .container
{
    font-size: .77778em;
}

a
{
    -webkit-transition: all 200ms ease;
            transition: all 200ms ease;

    color: #333941;
}
a:hover,
a:focus
{
    text-decoration: none;

    color: #0194e3;
}

/* APP STYLES */
header .header-ad
{
    display: inline-block; 

    margin: 15px 15px 15px 0;
}
header .header-ad img
{
    padding-right: 15px; 

    border-right: 1px solid #ddd;
}
header .header-ad + span
{
    text-transform: uppercase; 

    color: #ddd;
}

header .img-logo
{
    display: inline-block;
}

header .logo
{
    font-size: 3.57143em;

    display: inline-block;

    margin: 15px 0 14px;

    -webkit-transform: translateZ(0);
            transform: translateZ(0); 

    color: #0169a1;
}
header .logo:hover,
header .logo:focus
{
    text-decoration: none;

    color: #0169a1;
}
header .logo:hover img,
header .logo:focus img
{
    fill: #018ad4;
}
header .logo:hover span,
header .logo:focus span
{
    color: #018ad4;
}
header .logo span
{
    -webkit-transition: all 300ms ease;
            transition: all 300ms ease; 

    color: #0169a1;
}

header .social-links a
{
    display: block; 

    color: #e9e9e9;
}
header .social-links a:hover,
header .social-links a:focus
{
    text-decoration: none; 

    color: #e9e9e9;
}

header .social-links i
{
    display: block;

    width: 2.14286em;
    height: 2.14286em;
    padding: 8px 0;

    -webkit-transition: all 200ms ease;
            transition: all 200ms ease; 
    text-align: center;

    border-radius: 50%;
}
header .social-links i.fa-vk
{
    background: #52739c;
}
header .social-links i.fa-vk:hover
{
    background: #405a7b;
}
header .social-links i.fa-facebook
{
    background: #597ac7;
}
header .social-links i.fa-facebook:hover
{
    background: #3c5fb1;
}
header .social-links i.fa-twitter
{
    background: #5bbcec;
}
header .social-links i.fa-twitter:hover
{
    background: #2da9e7;
}
header .social-links i.fa-google-plus
{
    background: #d34836;
}
header .social-links i.fa-google-plus:hover
{
    background: #b03626;
}
header .social-links i.fa-rss
{
    background: #fbc95d;
}
header .social-links i.fa-rss:hover
{
    background: #fab82b;
}

header .lang-switch a
{
    font-weight: bold;

    display: block; 

    text-transform: uppercase;

    color: #596270;
}
header .lang-switch a:hover
{
    text-decoration: none;

    color: black;
}

header .lang-switch .active
{
    text-decoration: underline;
}

header .sign-buttons li a
{
    color: #596270;
}

header .sign-buttons li:last-child:not(:first-child)
{
    padding-left: 8px; 

    border-left: 1px solid #ddd;
}

.block
{
    min-height: 100px; 
    margin-bottom: 20px;

    border-radius: 4px;
    background: #fff;
}
.block:before,
.block:after
{
    display: table; 

    content: ' ';
}
.block:after
{
    clear: both;
}
.block h1
{
    font-size: 1.2em;
    font-weight: normal;

    margin: 15px;

    text-transform: uppercase; 

    color: #017aba;
}

.latest-posts a,
.popular-post a
{
    display: block;

    margin-bottom: 15px;
}
.latest-posts a:before,
.latest-posts a:after,
.popular-post a:before,
.popular-post a:after
{
    display: table; 

    content: ' ';
}
.latest-posts a:after,
.popular-post a:after
{
    clear: both;
}
.latest-posts a figure,
.popular-post a figure
{
    position: relative;

    display: inline-block;
    overflow: hidden; 

    padding-right: 0;
}
.latest-posts a figure img,
.popular-post a figure img
{
    width: 100%;

    border-radius: 4px; 

    -o-object-fit: cover;
       object-fit: cover;
}
.latest-posts a figure figcaption,
.popular-post a figure figcaption
{
    font-weight: bold;

    position: absolute;
    right: 0; 
    bottom: 0;

    display: inline;

    padding: .1em .3em .1em;

    vertical-align: baseline;

    color: #fff;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background: rgba(255, 255, 255, .5);
}
.latest-posts a h2,
.popular-post a h2
{
    font-size: 1.2em;
    font-weight: bold;

    margin: 0;
}
.latest-posts a h2 span,
.popular-post a h2 span
{
    font-weight: bold;

    display: inline;

    padding: .1em .3em .1em;

    vertical-align: baseline;

    border-radius: 4px; 
    background: #eee;
}
.latest-posts a p,
.popular-post a p
{
    margin: 5px 0 0; 

    color: #596270;
}

.post-list article:before,
.post-list article:after,
.post-list .pagination-wrapper:before,
.post-list .pagination-wrapper:after
{
    display: table; 

    content: ' ';
}

.post-list article:after,
.post-list .pagination-wrapper:after
{
    clear: both;
}

.post-list article
{
    padding-bottom: 15px;
}
.post-list article > div:first-child p
{
    font-size: 1.7em;

    color: #ddd;
}
.post-list article > div:first-child p:first-child
{
    margin-top: 20%;
}
.post-list article > div:first-child a
{
    display: block;
}
.post-list article h3
{
    font-size: 1.4em;

    margin: .7em 0;
}
.post-list article p
{
    color: #596270;
}

.post-show figure
{
    margin: 15px 0;

    background: #f5f5f5;
}
.post-show figure img
{
    margin: 0 auto;
}

.event-list article,
.event-show article
{
    padding-bottom: 15px;
}
.event-list article h3,
.event-show article h3
{
    font-size: 1.4em;
    line-height: 1.2em; 

    margin: .7em 0;
}
.event-list article p,
.event-show article p
{
    color: #596270;
}
.event-list article figure,
.event-show article figure
{
    margin-bottom: 10px;
}
.event-list article figure figcaption,
.event-show article figure figcaption
{
    font-weight: bold;

    padding: 10px;

    text-transform: uppercase; 

    color: #fff;
    background: #3b78e7;
}
.event-list article figure figcaption i,
.event-show article figure figcaption i
{
    color: #333;
}

.event-list article figure
{
    position: relative;
}
.event-list article figure figcaption
{
    position: absolute;
    top: 0;
    right: 0;
}

.event-list article:not(:last-child)
{
    border-bottom: 3px solid #e9e9e9;
}

.sponsors
{
    margin: 15px 15px 0;
}
.sponsors .other-sponsors a:nth-child(odd)
{
    padding-left: 7.5px;
}
.sponsors .other-sponsors a:nth-child(even)
{
    padding-right: 7.5px;
}
.sponsors a
{
    margin-bottom: 15px;
}
.sponsors a img
{
    display: block;

    max-width: 100%;
    height: auto;
    margin: 0 auto;
}
.sponsors p
{
    font-size: .8em;
}

.prices
{
    margin: 0 auto;
    padding: 10px;
}

.quest
{
    padding: 15px;
}
.quest div:first-child
{
    margin-bottom: 10px;
}
.quest div:last-child a
{
    margin-bottom: 5px;
}

.announcement
{
    padding-bottom: 15px;
}
.announcement .menu p
{
    margin: 0;
}

footer[role='contentinfo']
{
    padding-top: 15px;
    padding-bottom: 15px;

    border-radius: 4px 4px 0 0; 
    background: #252525;
}
footer[role='contentinfo'] *:not(a)
{
    color: #aaa;
}
footer[role='contentinfo'] a
{
    color: #bce7ff;
}
footer[role='contentinfo'] a:hover
{
    color: #eff9ff;
}
footer[role='contentinfo'] .text-uppercas
{
    display: block; 

    margin-top: 30px;
}

.partners
{
    margin-bottom: 20px;
}

/* BOOTSTRAP STYLE CORRECTIONS */
.navbar .navbar-nav
{
    font-size: 1.12em;
    text-transform: lowercase;
}
.navbar .navbar-nav li a:first-letter
{
   text-transform: uppercase;
}

.navbar .navbar-brand
{
    margin: 0;
}
.navbar .navbar-brand.logo:hover
{
    color: #0169a1;
}

.btm-brdr-rad,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img
{
    overflow: hidden; 

    border-radius: 0 0 4px 4px;
}

.announcement .empty
{
    margin-left: 15px;
}

.select2-results
{
    font-size: .9em;
}

/* HELPERS */
.flag-icon
{
    line-height: .7em; 

    position: relative;

    display: inline-block;

    width: 1.33333em;

    background-repeat: no-repeat;
    background-position: 50%;
    background-size: contain;
}
.flag-icon:before
{
    content: '\00a0';
}

/* Error pages */
html.error,
html.error body
{
    overflow: hidden !important;

    height: 100%;

    background: #f2a7a2;
}

.site-error
{
    font-size: 1.5em;

    margin: 20% auto; 
    padding: 2em;

    color: #fff;
    border-radius: 4px;
    background: #da9797;
}
.site-error a
{
    color: #fff;
}
.site-error a:hover
{
    color: #fae0de;
}

.pagination
{
    line-height: 0; 

    display: block;

    margin: 0 0 20px;
    padding: 10px;
    padding-left: 0;

    text-align: center;

    background: #e0e0e0;
}
.pagination:before,
.pagination:after
{
    display: table; 

    content: ' ';
}
.pagination:after
{
    clear: both;
}
.pagination > li
{
    display: inline-block;
}
.pagination > li > a,
.pagination > li > span
{
    font-weight: bold; 
    line-height: 20px;

    margin-left: 10px;
    padding: 10px 20px;

    color: #333;
    border: 1px solid transparent;
    border-radius: 4px;
    background-color: transparent;
}
.pagination > li > a:hover,
.pagination > li > a:focus,
.pagination > li > span:hover,
.pagination > li > span:focus
{
    color: #fff;
    border-color: #333; 
    background-color: #333;
}
.pagination > .active > a,
.pagination > .active > a:hover,
.pagination > .active > a:focus,
.pagination > .active > span,
.pagination > .active > span:hover,
.pagination > .active > span:focus
{
    color: #fff;
    border-color: #0169a1; 
    background-color: #0169a1;
}
.pagination > .disabled > span,
.pagination > .disabled > span:hover,
.pagination > .disabled > span:focus,
.pagination > .disabled > a,
.pagination > .disabled > a:hover,
.pagination > .disabled > a:focus
{
    color: #aaa;
    border-color: transparent; 
    background-color: transparent;
}

.row
{
    margin-right: -10px; 
    margin-left: -10px;
}

[class*='col-']
{
    padding: 0 10px;
}

/*==================================================
=                     Retina                       =
==================================================*/
/*==================================================
=            Bootstrap 3 Media Queries             =
==================================================*/
/*==========  Mobile First Method  ==========*/
/* Custom, iPhone Retina */
@media only screen and (min-width: 320px)
{
    header div div div:last-child
    {
        margin-top: 15px;
    }
}

/* Extra Small Devices, Phones */
/* Small Devices, Tablets */
@media only screen and (min-width: 768px)
{
    body
    {
        font-size: 16px;
    }
    header div div div:first-child
    {
        margin-top: 16px;
    }
    header div div div:last-child
    {
        margin-bottom: 15px;
    }
    .container > .navbar-collapse
    {
        margin-left: -30px;
    }
}

/* Medium Devices, Desktops */
/* Large Devices, Wide Screens */
@media only screen and (min-width: 1200px)
{
    body
    {
        font-size: 18px;
    }
}

/**
 * Changing bootstrap navbar breakpoint
 * TODO: find better way
 */
@media (max-width: 991px)
{
    .navbar-header
    {
        float: none;
    }
    .navbar-toggle
    {
        display: block;
    }
    .navbar-collapse
    {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1);
    }
    .navbar-collapse.collapse
    {
        display: none !important;
    }
    .navbar-nav
    {
        float: none !important;

        margin: 7.5px -15px;
    }
    .navbar-nav > li
    {
        float: none;
    }
    .navbar-nav > li > a
    {
        padding-top: 10px;
        padding-bottom: 10px;
    }
    .navbar-text
    {
        float: none;

        margin: 15px 0;
    }
    /* since 3.1.0 */
    .navbar-collapse.collapse.in
    {
        display: block !important;
    }
    .collapsing
    {
        overflow: hidden !important;
    }
}
