/*! HTML5 Boilerplate v6.1.0 | MIT License | https://html5boilerplate.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 {
    color: #0d0e2d;
    font-family: "Open Sans", sans-serif;
    line-height: 1.75;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

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

::selection {
    background: #b3d4fc;
    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 audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

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

/*
 * Remove default fieldset styles.
 */

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

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

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

/* structure [start] */
html {
    height: 100%;
}

html,
body {
    min-height: 100%;
}

body {
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.xrt__topSpacer {
    flex: 0 0 auto;
    padding-top: 85px;
}

.xrt__main-content {
    flex: 1 0 auto;
}

footer {
    flex: 0 0 auto;
}

/* structure [end] */

/* elements [start] */
h1,
h2,
.xrt__h2,
h3 {
    font-weight: 800;
}

h1 {
    font-size: 2.416667em;
    line-height: 1.138em;
}

h2,
.xrt__h2 {
    font-size: 2.1177rem;
    line-height: 1.25em;
    margin-bottom: 1em;
}

h1 + .xrt__subTitle,
h2 + .xrt__subTitle,
.xrt__h2 + .xrt__subTitle {
    line-height: 1.45em;
}

@media (min-width: 768px) {
    h1 + .xrt__subTitle,
    h2 + .xrt__subTitle,
    .xrt__h2 + .xrt__subTitle,
    .xrt__descText  {
        font-size: 1.29412rem;
    }
}

h3 {
    font-size: 1.2942rem;
    line-height: 1.3637em;
}

a {
    color: #ff7257;
}

a:hover {
    color: #f83043;
}

img {
    /* display: block; */
    max-width: 100%;
    width: auto \9;
    height: auto;
    vertical-align: middle;
    border: 0;
    -ms-interpolation-mode: bicubic;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.xrt__list-ul {
    list-style: none;
}

.xrt__list-ul li {
    padding-left: 1.52942rem;
}
.xrt__list-ul li::before {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #00a0ff;
    border-radius: 50%;
    margin-top: 0.7rem;
    margin-right: 1.05882rem;
    margin-left: -1.52942rem;
    vertical-align: top;
    content: "";
}

/* elements [end] */

/* redefinitions [start] */
@media (max-width: 575px) {
    .container {
        max-width: 320px;
    }
}

/* redefinitions [end] */

/* base font-size [start] */
@media (max-width: 767px) {
    html {
        font-size: 12px;
    }

    /*.container {*/
    /*max-width: 540px;*/
    /*}*/
}

@media (min-width: 768px) and (max-width: 991px) {
    html {
        font-size: 13px;
    }

    /*.container {*/
    /*max-width: 720px;*/
    /*}*/
}

@media (min-width: 992px) and (max-width: 1199px) {
    html {
        font-size: 15px;
    }

    /*.container {*/
    /*max-width: 960px;*/
    /*}*/
}

@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }

    /*.container {*/
    /*max-width: 1140px;*/
    /*}*/
}

/* base font-size [end] */

.xrt__btn,
.xrt__btn:hover,
.xrt__btn:visited,
.xrt__btn:active {
    text-decoration: none;
}

.xrt__btn {
    display: inline-block;
    margin-bottom: 6px;
    color: #fff;
    font-size: 1rem;
    font-weight: 400;
    text-align: center;
    background-color: #ff5057;
    border: 2px solid #ff5057;
    padding: 0.563em 1.6em;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.3s;
}
button.xrt__btn {
    line-height: inherit;
}

.xrt__btn:hover {
    color: #ff5057;
    background-color: #fff;
}

.xrt__btn.reversed {
    color: #ff5057;
    background-color: transparent;
}
.xrt__btn.reversed:hover {
    color: #fff;
    background-color: #ff5057;
}

/*
.xrt__btn > span {
    min-width: 100%;
    display: inline-block;
    padding: .66667em 1em;
    border-radius: 4px;
    box-sizing: border-box;
}
.xrt__btn:hover > span {
    background-color: #fff;
}
.xrt__btn.reversed {
    color: #ff5057;
    background: linear-gradient(to left, #ff5057, #ff8157);
}
.xrt__btn.reversed:hover {
    color: #fff;
    background: linear-gradient(to right, #ff5057, #ff8157);
}
.xrt__btn.reversed > span {
    background-color: #fff;
}
.xrt__btn.reversed:hover > span {
    background-color: transparent;
}
*/

.xrt__btn.fullWidth {
    width: calc(100% - 4px);
}

.xrt__btn.btnBig {
    font-size: 1.25rem;
}
.xrt__btn.btnBig > span {
    padding: 0.625em 1.5em;
}

.xrt__btn-more {
    padding: 0.563em 3.4em;
    background-color: transparent;
    color: #ff5057;
    border: 2px solid #ff5057;
}

.xrt__btn-long {
    width: 100%;
    font-size: 1.2em;
}

@media (min-width: 1200px) {
    .xrt__btn-long {
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 14px;
    }
}

.xrt__btn-more:hover {
    background-color: #ff5057;
    color: #ffffff;
}

.xrt__ico-wrapper {
    display: inline-block;
    text-align: center;
}
.xrt__ico-wrapper:before {
    display: inline-block;
    width: 0;
    height: 100%;
    content: "";
    vertical-align: middle;
}
.xrt__ico-wrapper.circle {
    border-radius: 50%;
}

.xrt__input {
    border: 2px solid #ff5057;
    border-radius: 5px;
    /*border-image: linear-gradient(to right, #ff5057, #ff8157) 2;*/
    padding: 0.4375rem 1.25rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.375rem;
    color: #0d0e2d;
}

.xrt__input:focus {
    outline: none;
}

.xrt__logo {
    width: 10.25rem;
}
.xrt__logo:hover {
    border: 0;
}

header {
    padding: 16px 0;
}
header .xrt__logo {
    flex: 0 0 auto;
}

/* checkbox [start] */
/* reference https://codepen.io/raubaca/pen/PZzWRN */
input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    z-index: -1;
}

input[type="checkbox"] + label {
    position: relative;
    display: inline-block;
    padding-left: calc(18px + 0.75rem);
    margin: 4px 0;
    height: 1.5em;
    line-height: 1.5;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #0d0e2d;
}

input[type="checkbox"] + label::before,
input[type="checkbox"] + label::after {
    position: absolute;
    display: block;
    width: 18px;
    height: 18px;
}
input[type="checkbox"] + label::before {
    top: 2px;
    left: 0;
}
input[type="checkbox"] + label::after {
    top: -1px;
    left: 2px;
}

input[type="checkbox"] + label::before {
    content: "";
    border-radius: 50%;
    background-color: rgba(255, 92, 87, 0.2);
}

input[type="checkbox"].withError + label::before {
    background-color: rgba(255, 255, 255, 1);
    border: 2px solid #ff5057;
    box-shadow: 0 0 8px 2px rgba(255, 88, 87, 0.54);
}
input[type="checkbox"] + label::after {
    content: "\2713";
    /*content: url({% static 'main/images/check.svg' %});*/
    color: #0d0e2d;
    font-size: 1.25rem;
    line-height: 18px;
    text-align: center;
}

input[type="checkbox"] + label::after {
    -webkit-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}

input[type="checkbox"]:checked + label::after {
    -webkit-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

label::before,
label::after {
    -webkit-transition: 0.25s all ease;
    -o-transition: 0.25s all ease;
    transition: 0.25s all ease;
}

/* checkbox [end] */

/* forms w validation [start] */
.xrt__form__row {
    margin-bottom: 1.8rem;
}
.xrt__form__row.hasHelper {
    margin-bottom: 0.925rem;
}
.xrt__form__row .xrt__form__fieldCont input {
    margin-bottom: 0.2rem;
}
.xrt__form__row.hasHelper .xrt__form__fieldCont {
    max-height: 9rem;
}
.xrt__form__field__helper {
    font-size: 0.75rem;
    line-height: 1.2em;
}
.withError .xrt__form__field__helper {
    color: #ff5857;
}
.withSuccess .xrt__form__field__helper {
    color: green;
}
.xrt__form__fieldCont.withError[type="text"]:after,
.xrt__form__fieldCont.withError[type="email"]:after,
.xrt__form__fieldCont.withError[type="password"]:after {
    display: block;
    position: absolute;
    top: 1.25rem;
    right: 1.5rem;
    width: 18px;
    height: 18px;
    background: url(./../images/icons/src/ico_rounded_exclamation_mark_tip_red_mini.png)
        0 0 no-repeat;
    margin-top: -9px;
    content: "";
}
.xrt__form__fieldCont.withError input {
    box-shadow: 0 0 8px 2px rgba(255, 88, 87, 0.54);
}
.xrt__form__fieldCont.withSuccess input {
    /* box-shadow: 0 0 8px 2px green; */
    border-color: green;
}
.xrt__form__fieldCont.withSuccess input+span:after{
    content: "\2714";
    color: green;
    padding: 4px 0;
    margin-left: -25px;
    position: absolute;
}
/*.xrt__form__fieldCont input:invalid {*/
/*box-shadow: 0 0 8px 2px rgba(0,255,0,1);*/
/*}*/

/* forms w validation [end] */

/* Popup [start] */
.xrt__popup-wrapper {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(29, 31, 44, 0.8);
    z-index: 99999;
}
.xrt__popup-wrapper.popup-closed {
    display: none;
}
.xrt__popup {
    background: #fff;
}

.xrt__popup-close {
    position: absolute;
    width: 12px;
    height: 12px;
    cursor: pointer;
}
.xrt__popup-close:hover {
}
.xrt__popup-close:before,
.xrt__popup-close:after {
    position: absolute;
    display: block;
    top: 0;
    left: 5px;
    content: "";
    height: 14px;
    width: 2px;
    background: rgba(148, 192, 222, 1);
}
.xrt__popup-close:before {
    transform: rotate(45deg);
}
.xrt__popup-close:after {
    transform: rotate(-45deg);
}
.xrt__popup-close:hover:before,
.xrt__popup-close:hover:after {
    background: rgba(148, 192, 222, 0.6);
}

.xrt__popup-title {
    font-size: 1.25rem;
    line-height: 1.5em;
    font-weight: 800;
}

@media (max-width: 575px) {
    .xrt__popup {
        padding: 1.375rem;
    }

    .xrt__popup-close {
        right: 0.5rem;
        top: 0.5rem;
    }
}

@media (min-width: 576px) {
    .xrt__popup {
        padding: 5.375rem;
    }

    .xrt__popup-close {
        right: 1rem;
        top: 1rem;
    }
}
/* Popup [end] */

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

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

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

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

/*
 * Hide visually and from screen readers, 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;
}

/* ==========================================================================
   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,
    (-webkit-min-device-pixel-ratio: 1.25),
    (min-resolution: 1.25dppx),
    (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   https://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster */
        -webkit-box-shadow: none !important;
        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 that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */
    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }

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

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */
    thead {
        display: table-header-group;
    }

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

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

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