/*!
 * Start Bootstrap - Agency Bootstrap Theme (http://startbootstrap.com)
 * Code licensed under the Apache License v2.0.
 * For details, see http://www.apache.org/licenses/LICENSE-2.0.
 */

/* Global Styles */
* {
    box-sizing: border-box;
}

body {
    overflow-x: hidden;
    font-family: "Roboto Slab", "Helvetica Neue", Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.text-muted {
    color: #777;
}

.text-primary {
    color: #fed136;
}

p {
    font-size: 14px;
    line-height: 1.75;
}

p.large {
    font-size: 16px;
}

a,
a:hover,
a:focus,
a:active,
a.active {
    outline: 0;
    text-decoration: none;
}

a {
    color: #fed136;
}

a:hover,
a:focus,
a:active,
a.active {
    color: #fec503;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    margin: 0;
}

.img-centered {
    margin: 0 auto;
}

.bg-light-gray {
    background-color: #f7f7f7;
}

.bg-darkest-gray {
    background-color: #222;
}

/* Buttons */
.btn-primary {
    border-color: #fed136;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 700;
    color: #fff;
    background-color: #fed136;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.open .dropdown-toggle.btn-primary {
    border-color: #f6bf01;
    color: #fff;
    background-color: #fec503;
    transform: translateY(-2px);
}

.btn-xl {
    padding: 20px 40px;
    border-color: #fed136;
    border-radius: 3px;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    background-color: #fed136;
    transition: all 0.3s ease;
}

.btn-xl:hover,
.btn-xl:focus,
.btn-xl:active,
.btn-xl.active {
    border-color: #f6bf01;
    color: #fff;
    background-color: #fec503;
    transform: translateY(-2px);
}

/* Navigation */
.navbar-default {
    border-color: transparent;
    background-color: #222;
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar-default .navbar-brand {
    font-family: "Kaushan Script", "Helvetica Neue", Helvetica, Arial, cursive;
    color: #fed136;
    font-size: 1.8em;
    transition: all 0.3s ease;
    margin-left: 15px;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus,
.navbar-default .navbar-brand:active {
    color: #fec503;
}

.navbar-default .navbar-toggle {
    border-color: #fed136;
    background-color: #fed136;
    border-radius: 3px;
    padding: 9px 10px;
    margin-top: 8px;
    margin-right: 15px;
}

.navbar-default .navbar-toggle .icon-bar {
    background-color: #fff;
    width: 22px;
    transition: all 0.3s ease;
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background-color: #fec503;
}

.navbar-default .nav li a {
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    color: #fff;
    padding: 15px;
    transition: all 0.3s ease;
}

.navbar-default .nav li a:hover,
.navbar-default .nav li a:focus {
    color: #fed136;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a {
    color: #fff;
    background-color: #fed136;
    border-radius: 3px;
}

.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #fff;
    background-color: #fec503;
}

/* Для неавторизованных пользователей скрываем правую часть навигации */
.navbar-header .navbar-brand {
    float: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

/* Header */
header {
    position: relative;
    width: 100%;
    min-height: 100vh;
    text-align: center;
    color: #fff;
    background: url('/static/img/header-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-container {
    width: 100%;
    height: 100%;
}

.intro-text {
    padding: 100px 20px;
    text-align: center;
}

.intro-lead-in {
    margin-bottom: 25px;
    font-family: "Droid Serif", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 22px;
    font-style: italic;
    line-height: 1.4;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.intro-heading {
    margin-bottom: 25px;
    text-transform: uppercase;
    font-family: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Media Queries */
@media (max-width: 767px) {
    .navbar-default {
        padding: 10px 0;
    }

    .navbar-default .navbar-brand {
        font-size: 1.5em;
        padding: 15px;
        margin-left: 0;
    }

    .navbar-default .navbar-toggle {
        margin-right: 15px;
        display: block;
    }

    .navbar-collapse {
        border-top: 1px solid transparent;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
        background-color: #222;
    }

    .navbar-nav {
        margin: 0;
    }

    .navbar-nav > li > a {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: center;
    }

    .intro-text {
        padding: 80px 15px;
    }

    .intro-lead-in {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .intro-heading {
        font-size: 35px;
        margin-bottom: 20px;
    }

    .btn-xl {
        padding: 15px 30px;
        font-size: 16px;
    }

    /* Для неавторизованных пользователей на мобильных */
    .navbar-header:not(.has-toggle) .navbar-brand {
        float: left;
        width: auto;
        text-align: left;
    }
}

@media (min-width: 768px) {
    .navbar-default {
        padding: 25px 0;
        background-color: transparent;
    }

    .navbar-default.navbar-shrink {
        padding: 10px 0;
        background-color: #222;
    }

    .navbar-default.navbar-shrink .navbar-brand {
        font-size: 1.5em;
    }

    .navbar-default .navbar-toggle {
        display: none;
    }

    .navbar-collapse.collapse {
        display: block !important;
        height: auto !important;
        padding-bottom: 0;
        overflow: visible !important;
    }

    .navbar-nav {
        float: right;
        margin: 0;
    }

    .navbar-nav > li {
        float: left;
    }

    .navbar-nav > li > a {
        padding: 20px;
    }

    .intro-text {
        padding: 300px 0 200px;
    }

    .intro-lead-in {
        font-size: 40px;
        line-height: 40px;
        margin-bottom: 25px;
    }

    .intro-heading {
        font-size: 75px;
        line-height: 75px;
        margin-bottom: 50px;
    }
}

@media (min-width: 992px) {
    .navbar-default .nav li a {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .intro-lead-in {
        font-size: 16px;
    }

    .intro-heading {
        font-size: 28px;
    }

    .btn-xl {
        padding: 12px 25px;
        font-size: 14px;
    }
}

/* Ensure background image covers entire screen on all devices */
@media (max-width: 1024px) {
    header {
        background-attachment: scroll;
    }
}

/* High resolution displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    header {
        background-image: url('/static/img/header-bg@2x.jpg');
    }
}

/* Orientation specific styles */
@media (orientation: landscape) and (max-height: 500px) {
    header {
        min-height: 500px;
    }

    .intro-text {
        padding: 100px 0;
    }
}

/* JavaScript enhancement classes */
.navbar-shrink {
    padding: 10px 0 !important;
    background-color: #222 !important;
}

.navbar-shrink .navbar-brand {
    font-size: 1.5em !important;
}

/* Focus styles for accessibility */
a:focus,
button:focus,
.btn:focus {
    outline: 2px solid #fed136;
    outline-offset: 2px;
}

/* Loading state for background image */
header {
    position: relative;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #222 0%, #444 100%);
    z-index: -1;
}

header.loaded::before {
    display: none;
}

/* Стили для неавторизованных пользователей */
.navbar-header:not(:has(button)) .navbar-brand {
    display: block;
    text-align: center;
    width: 100%;
    float: none;
}

/* Fallback для браузеров без поддержки :has() */
.no-has-support .navbar-header .navbar-brand {
    display: block;
    text-align: center;
    width: 100%;
    float: none;
}

.has-toggle .navbar-brand {
    float: left;
    text-align: left;
    width: auto;
}