* {
    font-family: "Roboto", serif;
    transition: font-size 0.3s ease, lint-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}

h1 {
    font-family: "PT Serif Caption", serif;
    font-size: 50px;
    line-height: 70px;
    letter-spacing: 2px;
    font-weight: 400;
}

h2 {
    font-family: "PT Serif Caption", serif;
    font-size: 40px;
    line-height: 60px;
    letter-spacing: 0;
    font-weight: 400;
}

h3 {
    font-family: "PT Serif Caption", serif;
    font-size: 24px;
    line-height: 32px;
    letter-spacing: 0;
    font-weight: 400;
}

@media only screen and (max-width: 1000px) {
    h1 {
        font-family: "PT Serif Caption", serif;
        font-size: 40px;
        line-height: 60px;
        letter-spacing: 0;
    }

    h2 {
        font-family: "PT Serif Caption", serif;
        font-size: 32px;
        line-height: 45px;
        letter-spacing: 0;
    }

    h3 {
        font-family: "PT Serif Caption", serif;
        font-size: 24px;
        line-height: 32px;
        letter-spacing: 0;
        font-weight: 400;
    }
}

@media only screen and (max-width: 600px) {
    h1 {
        font-size: 32px;
        line-height: 45px;
        letter-spacing: 0;
    }

    h2 {
        font-size: 28px;
        line-height: 36px;
        letter-spacing: 0;
    }

    h3 {
        font-family: "PT Serif Caption", serif;
        font-size: 20px;
        line-height: 28px;
        letter-spacing: 0;
        font-weight: 400;
    }
}

.cms-ready #header {
  top: 46px;
}

div.cms-toolbar {
  z-index: 2000;
}

html, body {
  height: 100%;
  margin: 0;
  background: rgba(217, 215, 209, 1);
}

#content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

main {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/**
 * Кнопки
 */
.vostok-button {
    display: inline-block;
    font-family: "Roboto";
    font-family: "Roboto";
    font-style: Regular;
    font-size: 21px;
    line-height: 28px;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    white-space: nowrap;
    padding: 16px 46px 16px 32px;
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    border-radius: 5px;
    transition: opacity 0.15s ease-in-out;

    &:after {
        display: block;
        content: '';
        width: 14px;
        height: 14px;
        position: absolute;
        right: 20px;
        top: 23px;
        background-size: cover;
    }

    &.-black {
        color: rgba(23, 32, 48, 1);
        box-sizing: border-box;
        border: 1px solid rgba(67, 87, 122, 1);
        background: linear-gradient(137.39deg, rgba(212, 197, 160, 0) 0%,rgba(201, 179, 126, 0.2) 100%);

        &:after {
            background-image: url("/static/images/icons/button-black.svg");
        }
    }

    &.-orange {
        color: rgba(184, 93, 58, 1);
        border: 1px solid rgba(184, 93, 58, 1);
        background: linear-gradient(137.39deg, rgba(212, 197, 160, 0) 0%,rgba(201, 179, 126, 0.2) 100%);

        &:after {
            background-image: url("/static/images/icons/button-orange.svg");
        }
    }

    &.-gold {
        color: rgba(212, 197, 160, 1);
        border: 1px solid rgba(212, 197, 160, 1);
        background: linear-gradient(137.39deg, rgba(212, 197, 160, 0) 0%,rgba(201, 179, 126, 0.2) 100%);

        &:after {
            background-image: url("/static/images/icons/button-gold.svg");
        }
    }

    &.-primary {
        color: rgba(233, 228, 213, 1);
        border: 1px solid rgba(184, 93, 58, 1);
        background: linear-gradient(132.37deg, rgba(146, 36, 0, 1) 1%,rgba(255, 113, 4, 1) 93%);

        &:after {
            background-image: url("/static/images/icons/button-gold.svg");
        }
    }

    &.-secondary {
        color: rgba(249, 116, 26, 1);
        border: 1px solid rgba(184, 93, 58, 1);
        background: linear-gradient(137.39deg, rgba(194, 180, 145, 0) 0%,rgba(4, 11, 28, 0.6) 100%);

        &:after {
            background-image: url("/static/images/icons/button-gold.svg");
        }
    }

    &[disabled] {
        opacity: 0.6;
        cursor: default;
    }
}

@media only screen and (max-width: 1100px) {
    .vostok-button {
        border-radius: 5px;
        padding: 16px 46px 16px 32px;
        font-size: 21px;
        line-height: 28px;

        &:after {
            width: 14px;
            height: 14px;
            right: 20px;
            top: 23px;
        }
    }
}

@media only screen and (max-width: 500px) {
    .vostok-button {
        font-size: 14px;
        border-radius: 3px;
        padding: 8px 32px 8px 16px;
        line-height: 16px;

        &:after {
            width: 8px;
            height: 8px;
            right: 12px;
            top: 12px;
        }
    }
}

/**
 * Контролы
 */
.vostok-label {
    display: flex;
    flex-direction: column;
    gap: 8px;

   span {
        color: rgba(255, 113, 4, 1);
        font-family: "PT Serif Caption", serif;
        font-size: 14px;
        font-weight: 400;
        line-height: 16px;
        letter-spacing: 2px;
        text-transform: uppercase;
   } 
}

.vostok-select {
    box-sizing: border-box;
    border: 1px solid rgba(212, 197, 160, 1);
    border-radius: 4px;
    background: right 10px center url("/static/images/icons/select-arrow.svg") no-repeat rgba(23, 32, 48, 1);
    color: rgba(212, 197, 160, 1);
    font-family: "Roboto";
    font-size: 20px;
    font-weight: 400;
    line-height: 23px;
    padding: 10px 32px 10px 20px;
    position: relative;
    -webkit-appearance: none;
    -moz-appearance: none;

    &.-sort {
        padding: 10px 40px 10px 40px;
        background: right 10px center url("/static/images/icons/select-arrow.svg") no-repeat, 
            left 10px center url("/static/images/icons/select-sort.svg") no-repeat 
            rgba(23, 32, 48, 1);
    }
}

#header {
    position: fixed;
    top: 0;
    width: 100%;
    background: linear-gradient(-45deg, #134265, #172030);
    height: 76px;
    z-index: 1000;
    transition: height 0.3s ease, width 0.3s ease;

    * {
        transition: height 0.3s ease, width 0.3s ease;
    }

    &> .wrapper {
        display: flex;
    }

    .logo {
        position: relative;
        width: 140px;
        margin-left: 48px;

        .logo-img-small {
            display: none;
        }
        
        .horseshoes {
            transform-box: fill-box; 
            transform-origin: center;
        }

        &:hover {
            .horseshoes {
                animation: logoHorseshoesBreeathing 4s linear infinite; 
            }
        }

        .logo-link {
            width: 140px;
            height: 140px;
            position: absolute;
            background: linear-gradient(135deg, #922400, #B85D3A);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
        }
    }

    .navigation-menu {
        display: flex;
        align-items: center;
        flex-grow: 1;
    }

    .navigation-menu__toggle {
        width: 46px;
        height: 46px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        display: none;
        align-items: center;
        justify-content: center;
        

        svg {
            width: 32px;
            height: 32px;
            display: block;
            transition: transform 0.3s ease-in-out;
        }

        .line {
            fill: none;
            stroke: rgb(212, 197, 160);
            stroke-width: 7px;
            stroke-linecap: round;
            transition: transform 0.3s ease-in-out, opacity 0.2s ease-in-out;
            transform-origin: center;
        }

        &.open svg {
            transform: translateX(-5px);
        }

        &.open .top {
            transform: translateY(14px) rotate(45deg);
        }

        &.open .middle {
            opacity: 0;
        }

        &.open .bottom {
            transform: translateY(-14px) rotate(-45deg);
        }
    }

    
    .navigation-menu-list {
        display: flex;
        align-items: center;
        list-style: none;
        height: 76px;
        margin: 0;
        padding: 0 0 0 60px;
        flex-grow: 1;
    }

    .navigation-menu__item {
        margin-left: 28px;
        margin-right: 32px;
        white-space: nowrap;
        display: block;

        a {
            color: rgba(153, 180, 207, 1);
            font-size: 16px;
            text-transform: uppercase;
            font-weight: 400;
            text-decoration: none;

            &:hover {
                color: rgba(223, 195, 166, 1);
            }
        }

        &.navigation-menu__current {
            a {
                color: rgba(223, 195, 166, 1);
            }
        }
    }

    .navigation-menu__current {
        position: relative;

        &::before {
            content: '';
            display: block;
            width: 24px;
            height: 24px;
            background: url("/static/images/arrow.svg");
            position: absolute;
            left: -26px;
            top: -3px;
        }
    }

    .extra-menu-list {
        display: flex;
        align-items: center;
        list-style: none;
        height: 64px;
        margin: 0;
        padding: 6px 16px;

        li {
            display: flex;
            height: 100%;
            align-items: center;
            justify-content: center;
            padding: 0 16px;
        }

        li.-language {
            border-right: 1px solid rgb(212, 197, 160);
            position: relative;
        }

        .language-chooser {
            position: absolute;
            display: none;
            top: 70px;
            right: 0;
            margin: 0;
            background: #134265;
            padding: 10px;

            li {
                height: 30px;
            }
        }

        .globe-icon {
            margin-left: 8px;
            display: block;
        }

        a {
            font-size: 16px;
            color: rgb(249, 116, 26);
            text-transform: uppercase;
            font-weight: 400;
            text-decoration: none;
            align-items: center;
            justify-content: center;
            display: flex;

            &:hover {
                color: rgba(223, 195, 166, 1);
            }
        }
    }

    .extra-menu__item {
        position: relative;
    }

    .extra-menu__user-menu {
        position: absolute;
        display: none;
        top: 70px;
        right: 0;
        margin: 0;
        background: #134265;
        padding: 10px;
    }
}

@media only screen and (max-width: 1300px) {
  #header {
    height: 46px;

    .logo {
        width: 60px;
        /* margin-left: 20px; */
        margin-left: 0;

        .logo-link {
            width: 60px;
            height: 60px;
        }

        .logo-img-full {
            display: none;
        }

        .logo-img-small {
            display: block;
        }
    }

    .navigation-menu {
        justify-content: right;
    }

    .navigation-menu-list {
        display: none;

        &.open {
            background: #000000b5;
            height: calc(100vh - 46px);
            display: block;
            position: absolute;
            width: 100%;
            top: 46px;
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 20px 40px;
            box-sizing: border-box;
        }
    }

    .navigation-menu__item:first-child {
        margin-top: 30px;
    }

    .navigation-menu__item a, span {
        height: 46px;
        display: flex;
    }

    .navigation-menu__toggle {
        display: flex;
    }

    .wrapper {
        display: grid;
        grid-template-areas: "logo extra menu";
        grid-template-columns: 80px auto 46px;

        .logo {
            grid-area: logo;
            margin-left: 20px;
        }

        .navigation-menu {
            grid-area: menu;
        }

        .extra-menu {
            grid-area: extra;
            display: grid;
            justify-content: end;
        }

        .extra-menu-list {
            height: 46px;
            box-sizing: border-box;

            .extra-menu__item {
                padding: 0 8px;
            }
        }

        .extra-menu__user-menu {
            top: 40px;
        }

        .language-chooser {
            top: 40px;
        }
    }
  }
}

#subheader {
    overflow: hidden;
    box-sizing: border-box;
    position: relative;
    padding: 124px 0 30px 0;

    .subheader__brand-line {
        position: absolute;
        height: 20px;
        background-image: url("/static/images/brand-line-grey.svg");
        background-repeat: repeat-x;
        background-position: 0 0;
        animation: moveBgRight 4s linear infinite;
        margin-top: 20px;
        top: 70px;
        z-index: 100;
        width: 100%;
        opacity: 0.5;
    }

    .ukiyo-wrapper {
        position: absolute !important;
        top: 0;
        left: 0;
        right: 0;
    }

    .subheader__content {
        position: relative;
        z-index: 100;
        text-align: center;
        padding: 0 20px;
    }

    h1 {
        background: linear-gradient(135.00deg, rgba(232, 224, 213, 1) 0%,rgba(212, 197, 160, 1) 30%,rgba(245, 236, 215, 1) 60%,rgba(201, 184, 146, 1) 80%,rgba(223, 216, 199, 1) 100%);
        background-clip: text;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        text-transform: uppercase;
        margin: 20px 0;
    }

    .auction__subheader-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        row-gap: 32px;
    }

    .auction__subheader-subtitle {
        font-size: 28px;
        font-weight: 400;
        line-height: 36px;
        display: flex;
        flex-direction: row;
        gap: 40px;

        * {
            font-family: "PT Serif Caption", serif;
            text-wrap: wrap;
        }

        span {
            background: linear-gradient(135.00deg, rgba(232, 224, 213, 1) 0%,rgba(212, 197, 160, 1) 30%,rgba(245, 236, 215, 1) 60%,rgba(201, 184, 146, 1) 80%,rgba(223, 216, 199, 1) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
    }

    .auction__subheader-date {
        position: relative;

        &:after {
            content: '';
            display: block;
            position: absolute;
            border-left: 2px solid rgba(232, 224, 213, 1);
            right: -22px;
            height: 100%;
            top: 0;
        }
    }

    .auction__subheader-action-bar {
        display: flex;
        flex-direction: row;
        gap: 20px;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
    }
}

@media only screen and (max-width: 1300px) {
    #subheader {
        .subheader__brand-line {
            top: 40px;
        }
    }
}

@media only screen and (max-width: 800px) {
    #subheader {
        .auction__subheader-subtitle {
            flex-direction: column;
            gap: 5px;
            font-size: 20px;
            line-height: 28px;
        }

        .auction__subheader-date:after {
            display: none;
        }
    }
}

@media only screen and (min-width: 1920px) {
    #subheader {
        .subheader__bg {
            width: 100%;
        }
    }
}

#footer {
    padding: 60px 0 88px 0;
    background: linear-gradient(266.00deg, rgba(19, 66, 101, 1) 0%,rgba(23, 32, 48, 1) 100%);
    position: relative;
    overflow: hidden;

    .footer__wrapper {
        margin: 0 auto;
        max-width: 1920px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(470px, auto));
        gap: 60px;
        padding: 0 20px;
    }

    .footer__menu {
        margin: 0;
        padding: 0;
        list-style: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 300px));
        gap: 20px;

        a {
            font-family: "Roboto";
            font-size: 20px;
            font-weight: 400;
            line-height: 23px;
            letter-spacing: 0px;
            text-align: left;
        }

        a {
            color: rgba(184, 93, 58, 1);
            text-decoration: none;

            &:hover {
                color: rgba(223, 195, 166, 1);
                text-decoration: underline;
            }

            &.-active {
                color: rgba(223, 195, 166, 1);
            }
        }
    }

    .footer__contact-us-wrapper {
        position: relative;

        &::before {
            content: '';
            display: block;
            position: absolute;
            border-left: 1px solid rgba(255, 255, 255, 0.3);
            height: calc(100% + 200px);
            left: -33px;
            top: -33px;
        }

        h3 {
            color: rgba(212, 197, 160, 1);
            font-family: "PT Serif Caption", serif;
            font-size: 32px;
            font-weight: 400;
            line-height: 38px;
            letter-spacing: 1px;
            margin: 0 0 50px 0;
        }
    }

    .footer__contacts-wrapper {
        display: flex;
        flex-wrap: wrap;
        gap: 64px;

        .footer__contact-link {
            color: rgba(233, 228, 213, 1);
            font-family: "Roboto";
            font-size: 24px;
            font-weight: 300;
            line-height: 32px;
            letter-spacing: 1px;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 40px;
            padding-left: 48px;
            position: relative;
            
            &:hover {
                text-decoration: underline;
            }

            &::before {
                position: absolute;
                width: 32px;
                height: 32px;
                display: block;
                content: '';
                left: 0;
            }
        }
    }

    .footer__email-wrapper {
        .footer__contact-link {
            &:before {
                background: url("/static/images/icons/mail.svg");
            }
        }
    }

    .footer__phone-wrapper {
        .footer__contact-link {
            &:before {
                background: url("/static/images/icons/phone.svg");
            }
        }
    }

    .footer__copyright {
        color: rgba(67, 87, 122, 1);
        font-family: "Roboto";
        font-size: 14px;
        font-weight: 400;
        line-height: 32px;
        letter-spacing: 1px;
        text-transform: uppercase;
        position: absolute;
        bottom: 11px;
    }
}

#breadcrumbs {
    margin-bottom: 50px;

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

    li {
        display: flex;

        &:not(:last-child) {
            &:after {
                content: '/';
                color: rgba(23, 32, 48, 1);
                font-family: "Roboto";
                font-size: 32px;
                font-weight: 250;
                line-height: 40px;
                margin: 0 16px;
            }
        }

        &:last-child {
            width: 100%; 
        }

        a {
            color: rgba(184, 93, 58, 1);
            font-family: "Roboto";
            font-size: 20px;
            font-weight: 300;
            line-height: 40px;
            text-decoration: none;

            &:hover {
                text-decoration: underline;
            }
        }

        h1 {
            margin: 0;
            color: rgba(184, 93, 58, 1);
        }
    }
}

@keyframes logoHorseshoesBreeathing {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes moveBgRight {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 63.468254px 0;
    }
}
