/*! HTML5 Boilerplate v4.3.0 | MIT License | http://h5bp.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html,
button,
input,
select,
textarea {
    color: #222;
}

html {
    font-size: 0.9em;
    line-height: 1.4;
}

/*
 * Remove text-shadow in selection highlight: h5bp.com/i
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d40c;
    text-shadow: none;
}

::selection {
    background: #b3d40c;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}

/*
 * Remove the gap between images, videos, audio and canvas and the bottom of
 * their containers: h5bp.com/i/440
 */

audio,
canvas,
img,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}


/* шрифты */

@font-face {
    font-family: 'RedRing';
    src: url('../font/redring-bold.eot');
    src: url('../font/redring-bold.eot?#iefix') format('embedded-opentype'),
         url('../font/redring-bold.woff') format('woff'),
         url('../font/RedRing-Bold.otf') format('opentype'),
         url('../font/redring-bold.ttf') format('truetype');
    font-style: normal;
    font-weight: bold;
}
@font-face {
    font-family: 'RedRing';
    src: url('../font/redring-medium.eot');
    src: url('../font/redring-medium.eot?#iefix') format('embedded-opentype'),
         url('../font/redring-medium.woff') format('woff'),
         url('../font/RedRing-Medium.otf') format('opentype'),
         url('../font/redring-medium.ttf') format('truetype');
    font-style: normal;
    font-weight: normal;
}
@include font-face(
  'RedRing',
  font-files(
      '../font/redring-medium.eot?iefix',
      '../font/redring-medium.woff',
      '../font/redring-medium.otf'
  ),
  '../font/redring-medium.eot'
);


a {
    color: #2877d6;
    text-decoration: underline;
}
a:hover {
    color: #64aaff;
}
a:active {
    color: #5e7fd4;
}

:active, :focus {
    outline: none !important;
    -moz-outline-style: none !important;
}
a img {
    outline: none;
}

h2 {
    color: #393939;
    font-size: 2em;
    font-weight: bold;
    font-family: 'RedRing', "Lucida Sans Unicode", "Lucida Grande", sans-serif;
    margin: 0.83em 0 0.5em 0;
}
h2.center {
    text-align: center;
}
h3 {
    color: #393939;
    font-size: 1.9em;
    font-weight: normal;
    font-family: 'RedRing', "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}



.pseudo {
    color: #2877d6;
    border-bottom: 1px dashed #2877d6;
    cursor: pointer;
}
.pseudo:hover {
    color: #64aaff;
    border-bottom: 1px dashed #64aaff;
}
.pseudo:active {
    color: #5e7fd4;
    border-bottom: 1px dashed #5e7fd4;
}


.container {
    max-width: 1400px;
    min-width: 980px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    min-height: 800px;
    font-family: Arial, Helvetica, sans-serif;
}
.content {
    max-width: 1200px;
    min-width: 960px;
    margin: 0 auto;
    position: relative;
    padding-top: 1px;
}
.header {
    position: absolute;
    z-index: 1;
    text-align: center;
    width: 100%;
}


.frame {
    margin: 0 10px;
    position: relative;
    z-index: 1;
    padding: 1em 0 1.5em 0;
}

.description {
    border: 3px #9dc4f4 solid;
    background: #fff;
    margin-top: 530px;
    overflow: hidden;
}
.description .summary_container {
    white-space: nowrap;
}
.description .name,
.description .summary {
    position: relative;
    padding-right: 18px;
    display: inline-block;
}
.description .name ins,
.description .summary ins {
    position: absolute;
    text-decoration: none;
    display: block;
    background: url('../img/outer_link.png');
    width: 12px;
    height: 12px;
    bottom: 10px;
    right: 0;
    margin-right: 2px;
}
.description .name ins {
    bottom: 15px;
}
.description h3 {
    margin-bottom: 0;
}
.description .right h3 {
    display: inline-block;
    margin-right: 0.2em;
}
.description .summary {
    display: inline-block;
    font-size: 1.1em;
    font-weight: bold;
}
.info_triangle {
    position: absolute;
    width: 49px;
    height: 49px;
    left: 280px;
    top: 490px;
    z-index: 3;
    background: url('../img/info_triangle.png') 0 0 no-repeat;
}
.donation {
    border: 3px #fce2cf solid;
    background: #fff8f2;
    margin-top: 1.5em;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 2.5em;
}
.donation .triangle {
    position: absolute;
    width: 32px;
    height: 35px;
    left: 50%;
    margin-left: -16px;
    bottom: 0;
    margin-bottom: -30px;
    background: url('../img/donation_triangle.png') 0 0 no-repeat;
}
.footer {
    border: #dfdfdf solid;
    border-width: 3px 3px 0 3px;
    background: #f8f8f8;
    margin-top: 1em;
}

.more_info {
    background: #e7eff6;
    padding: 0 1em;
    text-align: center;
    position: relative;
    margin-top: 0.8em;
    height: 270px;
}
.more_info h2 {
    margin: 0.83em 0 0 0;
    font-weight: normal;
}
.more_info p {
    margin: 0.5em 0;
}
.more_info .back {
    width: 1400px;
    height: 400px;
    position: absolute;
    left: 50%;
    margin-left: -700px;
    bottom: 0;
    z-index: 1;
}
.more_info .triangle {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 16px 25px 16px;
    border-color: transparent transparent #e7eff6 transparent;
    position: absolute;
    top: -25px;
    left: 50%;
    margin-left: -16px;
}
.description .columns {
    position: relative;
    z-index: 2;
}
.columns {
    /*background: #dea;*/
    width: 900px;
    margin: 0 auto;
}
.column {
    width: 430px;
    /*background: #eba;*/
}
.column.left {
    float: left;
}
.column.right {
    float: right;
}

.fbk {
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    padding: 15px 0 0 0;
    font-weight: bold;
    font-size: 1.1em;
    font-family: 'RedRing', "Lucida Sans Unicode", "Lucida Grande", sans-serif;
}

.share {
    text-align: center;
    margin-top: 3em;
    margin-bottom: 0.5em;
}
.share a {
    text-decoration: none;
    cursor: pointer;
}


/* заголовок в шапке */

.battlement {
    color: white;
    display: inline-block;
    margin: 20px 0 0 0;
    position: relative;
    background-size: 100% 100%;
    background-image: url('../img/battlement.png');
}
.lt-ie9 .battlement {
    background: none;
    filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/battlement.png', sizingMethod='scale');
    -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='img/battlement.png', sizingMethod='scale')";
}
.battlement h1 {
    padding: 22px 55px 13px 55px;
    text-shadow: 0 3px 15px rgba(0,0,0,50);
    margin: 0;
    font-size: 2.3em;
    font-family: 'RedRing', sans-serif;
}



/* кнопки писем и ретвита */

.column.letters {
    text-align: center;
}
.letter {
    text-align: center;
    position: relative;
}
.battlement .letter {
    position: absolute;
    bottom: -7px;
    left: -120px;
}
.battlement .retweet {
    position: absolute;
    bottom: -7px;
    left: auto;
    right: -120px;
}
.description .letter {
    display: inline-block;
    margin: 1em 18px 0 18px;
}

.letter .letter_image {
    width: 69px;
    height: 84px;
    background: url('../img/letter.png') 0 0 no-repeat;
    display: block;
    cursor: pointer;
    margin: 0 auto;
    position: relative;
}
.letter .letter_label {
    position: relative;
    white-space: nowrap;
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.2;
    height: 0;
    display: block;
    padding-top: 7px;
    text-decoration: none;
}
.retweet .letter_image {
    width: 69px;
    height: 69px;
}

.battlement .letter .letter_image {
    background-position: 0 0;
}
.battlement .letter.hover .letter_image {
    background-position: -79px 0;
}
.battlement .letter .letter_image:active {
    background-position: -158px 0;
}

.description .letter .letter_image {
    background-position: 0 -94px;
}
.description .letter.hover .letter_image {
    background-position: -79px -94px;
}
.description .letter .letter_image:active {
    background-position: -158px -94px;
}

.description .letter.color .letter_image {
    background-position: 0 -188px;
}
.description .letter.color.hover .letter_image {
    background-position: -79px -188px;
}
.description .letter.color .letter_image:active {
    background-position: -158px -188px;
}

.description .letter.internet .letter_image {
    background-position: 0 -361px;
}
.description .letter.internet.hover .letter_image {
    background-position: -79px -361px;
}
.description .letter.internet .letter_image:active {
    background-position: -158px -361px;
}

.battlement .retweet .letter_image {
    background-position: 0 -282px;
}
.battlement .retweet.hover .letter_image {
    background-position: -79px -282px;
}
.battlement .retweet .letter_image:active {
    background-position: -158px -282px;
}


.battlement .letter .letter_label {
    color: #ffffff;
}
.battlement .letter.hover .letter_label {
    color: #30a5ff;
}
.battlement .letter .letter_label:active {
    color: #ffffff;
}

.description .letter .letter_label {
    color: #000;
}
.description .letter.hover .letter_label {
    color: #30a5ff;
}
.description .letter .letter_label:active {
    color: #5e7fd4;
}

.description .letter.color .letter_label {
    color: #4183d9;
}
.description .letter.color.hover .letter_label {
    color: #30a5ff;
}
.description .letter.color .letter_label:active {
    color: #5e7fd4;
}



/* картинки, обводки и маски */
#spy_image {
    width: 1400px;
    height: 596px;
    position: absolute;
    left: 50%;
    top: 0;
    margin-left: -700px;
    background: url('../img/view.jpg') top left no-repeat;
    overflow: hidden;
}
#spy_image_mask,
#spy_image_hover {
    width: 1400px;
    height: 1500px;
    position: absolute;
    display: block;
    left: 0;
    top: 10000px;
    background: url('../img/view_mask.png') 0 0 no-repeat;
}
#spy_image_map {
    position: relative;
    top: 200px;
    height: 300px;
    overflow: hidden;
}
#spy_image_map img {
    width: 1400px;
    height: 300px;
    display: block;
    position: relative;
    z-index: 2;
}
#spy_image_hover {
    background-image: url('../img/view_hover.png');
}
#spy_image_map area {
    outline: none;
}




/* цифры */
.description dl {
    width: 430px;
}
.description dt {
    float: left;
    width: 250px;
    overflow: hidden;
    white-space: nowrap;
    margin: 0;
}
.description dd {
    float: left;
    overflow: hidden;
    margin: 0 0 0 0.3em;
}
.description dt:after {
    content: " .................................................................................."
}


/* форма подписки */

.subscribe form input[type=text] {
    border: 3px solid #dfdfdf;
    padding: 0.3em 0.5em;
    font-size: 1.3em;
    width: 240px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #fff;
}
.subscribe form input[type=submit] {
    border: 3px solid #dfdfdf;
    padding: 0.3em 0.5em;
    font-size: 1.3em;
    width: 175px;
    margin-left: 15px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #2877d6;
    color: #ffffff;
}
.subscribe form input[type=submit]:hover {
    background: #30a5ff;
}
.subscribe form input[type=submit]:active {
    background: #1051c9;
}
.subscribe form input.valid {
    background: #aea;
}
.subscribe form input.error {
    background: #fee;
}


/* форма поддержки */

.donation form .donation_input_box {
    border: 3px solid #dfdfdf;
    padding: 3px 0;
    width: 147px;
    display: inline-block;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #ffffff;
    white-space: nowrap;
}
.donation .donation_input_box ins {
    font-size: 1.5em;
    text-decoration: none;
    display: inline-block;
    width: 55px;
    color: #aaa;
}
.donation form input[type=text] {
    border: none;
    padding: 0 0.3em 0 0.5em;
    font-size: 1.5em;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    width: 85px;
    text-align: right;
    height: 30px;
    outline: none;
}
.donation form input[type=text]:focus {
    outline: none;
}
.donation .donation_input_box.focus {
    outline: none;
    border-color: rgba(126, 170, 200, 0.8);
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 8px rgba(126, 170, 200, 0.6);
}
.donation form input[type=submit] {
    border: 3px solid #dfdfdf;
    padding: 6px 0.5em;
    font-size: 1.5em;
    width: 187px;
    margin-left: 15px;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    background: #f57b20;
    color: #ffffff;
}
.donation form input[type=submit]:hover {
    background: #ffb350;
}
.donation form input[type=submit]:active {
    background: #e95200;
}

.donation .payment_systems {
    width: 250px;
    height: 45px;
    background: url('../img/pay.png') 0 0 no-repeat;
    /*margin-top: 1.5em;*/
}

.donation .robokassa_text_agree {
    position: relative;
    margin-left: 20px;
}
.donation .robokassa_text_agree .css-label {
    font-size: 0.8em;
}
.donation .robokassa_text_agree #id_agree {
    position: absolute;
    left: -20px;
    top: 5px;
}

.offerta {
    padding: 0 1em;
    font-size: 0.8em;
    border: 3px solid #fce2cf;
    background: #fff;
    margin-bottom: 1em;
    position: relative;
}
.offerta-inner {
    height: 400px;
    margin: 0.5em 0;
    overflow-y: scroll;
}
.offerta h3 {
    font-size: 1.4em;
    line-height: 1.2;
    margin: 1em 0 0.5em 0;
}
.offerta .offerta-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 27px;
    line-height: 17px;
    color: #a00;
    overflow: hidden;
    background: #fff;
    z-index: 5;
    border: 3px solid #fff;
}
.offerta .offerta-close:hover {
    color: #f00;
}
.offerta h3:first-child {
    margin-top: 0.3em;
}
.offerta table {
    margin-left: -0.5em;
}
.offerta table td {
    vertical-align: top;
    padding: 0.3em 0.5em;
}






/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Image replacement
 */

.ir {
    background-color: transparent;
    border: 0;
    overflow: hidden;
    /* IE 6/7 fallback */
    *text-indent: -9999px;
}

.ir:before {
    content: "";
    display: block;
    width: 0;
    height: 150%;
}

/*
 * Hide from both screenreaders and browsers: h5bp.com/u
 */

.hidden {
    display: none !important;
    visibility: hidden;
}

/*
 * Hide only visually, but have it available for screenreaders: h5bp.com/v
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element to be focusable
 * when navigated to via the keyboard: h5bp.com/p
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screenreaders, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/*
 * For IE 6/7 only
 * Include this rule to trigger hasLayout and contain floats.
 */

.clearfix {
    *zoom: 1;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-o-min-device-pixel-ratio: 5/4),
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */

@media print {
    * {
        background: transparent !important;
        color: #000 !important; /* Black prints faster: h5bp.com/s */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links for images, or javascript/internal links
     */

    .ir a:after,
    a[href^="javascript:"]:after,
    a[href^="#"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    thead {
        display: table-header-group; /* h5bp.com/t */
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    @page {
        margin: 0.5cm;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
