@font-face {
    font-family: 'Segoe Script';
    src: url('../fonts/SegoeScript-Bold.woff2') format('woff2'),
    url('../fonts/SegoeScript-Bold.woff') format('woff');
    font-weight: bold;
    font-style: normal;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

.svg-sprite {
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 0;
    width: 0;
    visibility: hidden;
    opacity: 0;
}

.icon {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    flex-shrink: 0;
}

html {
    font-size: 10px;
    box-sizing: border-box;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html.is-zoom {
    font-size: 14px;
}

button,
input,
optgroup,
select,
textarea {
    font: inherit;
    color: inherit;
}

button,
input {
    overflow: visible;
}

button,
select {
    text-transform: none;
}

button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
}

button::-moz-focus-inner {
    border-style: none;
    padding: 0;
}

:hover,
:active,
:focus {
    outline: none;
}

img {
    vertical-align: middle;
    border-style: none;
}

body {
    font-family: Verdana, sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    background: #fff2cc;
    background-size: cover;
    background-attachment: fixed;
    color: #42505D;
    min-width: 320px;
    margin: 0;
}

a {
    color: inherit;
    text-decoration: underline;
}

a:hover {
    text-decoration: none;
}

@media (min-width: 768px) {
    .scrollbar {
        scrollbar-color: #42505D #ecdcac;
        scrollbar-width: thin;
    }

    .scrollbar::-webkit-scrollbar {
        width: 10px;
        height: 10px;
    }

    .scrollbar::-webkit-scrollbar-track {
        background: #ecdcac;
    }

    .scrollbar::-webkit-scrollbar-thumb {
        background: #42505D;
        border: 1px solid #ecdcac;
    }

    .aside .scrollbar {
        scrollbar-color: #42505D #fff2cc;
    }

    .aside .scrollbar::-webkit-scrollbar-track {
        background: #fff2cc;
    }

    .aside .scrollbar::-webkit-scrollbar-thumb {
        border-color: #fff2cc;
    }
}

.wrapper {
    display: flex;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
}

.aside {
    background: #42505D;
    color: #fff2cc;
    flex: 0 0 300px;
    max-width: 300px;
    display: flex;
    border-right: 1px solid #efe0b5;
}

.aside__bg {
    display: none;
}

.aside__close {
    display: block;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    color: #fff2cc;
}

.aside__close:hover {
    opacity: 0.85;
}

.aside__close:active {
    opacity: 0.7;
}

.aside__close:before,
.aside__close:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    border-bottom: 2px solid;
    margin: -1px 0 0 -8px;
    transform: rotate(45deg);
}

.aside__close:after {
    transform: rotate(-45deg);  
}

.aside__inner {
    display: flex;
    width: 100%;
}

.aside__main {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.aside__header {
    max-width: 100%;
    flex-shrink: 0;
}

.aside__header-top {
    min-height: 32px;
    position: relative;
}

.aside__header-close {
    display: none;
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
}

.aside__header-buttons {
    position: absolute;
    right: 0;
    top: 0;
}

.aside__header-title {
    text-align: center;
    padding-top: 4px;
    font-weight: bold;
    font-size: 1.2rem;
}

.aside__header-title > span {
    display: block;
}

.aside__header-title > span:first-child {
    padding: 0 32px;
}

.aside__header-bottom {
    background: #fff2cc;
    color: #42505D;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    margin-top: 4px;
    font-size: 1.3rem;
    padding: 4px 0;
}

.aside__header-content {
    width: 100%;
    display: flex;
    align-items: center;
    padding: 10px;
}

.aside__quote-field {
    flex-grow: 1;
    min-width: 1px;
}

.aside__quote {
    font-family: 'Segoe Script', sans-serif;
    font-size: 16px;
    line-height: 1.3;
}

.aside__quote-content {
    text-align: center;
    background: #fff2cc;
    color: #42505D;
    border-radius: 15px;
    padding: 10px;
}

.aside__quote-author {
    text-align: center;
    margin-top: 10px;
}

.aside__buttons-field {
    margin-left: 10px;
    padding-bottom: 30px;
    flex-shrink: 0;
}

.aside__buttons {
    margin: -5px 0;
}

.aside__buttons-item {
    margin: 5px 0;
}

.aside__button {
    display: block;
    vertical-align: top;
    position: relative;
    padding: 0;
    border: 1px solid #fff2cc;
    border-radius: 5px;
    background: none;
    color: #42505D;
    width: 26px;
    height: 26px;
}

.aside__button:hover {
    background: #fff2cc;
}

.aside__footer {
    max-width: 100%;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 242, 204, .4);
}

.aside__footer .btn {
    color: #fff2cc;
}

.aside__footer .buttons__btn_zoom {
    font-size: 18px;
}

html.is-zoom .aside__footer .buttons__btn_zoom {
    font-size: 16px;
}

.aside__content {
    flex-grow: 1;
    min-height: 1px;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

.aside__title {
    background: #fff2cc;
    color: #42505D;
    text-align: center;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 1.3rem;
    padding: 4px 0;
}

.nav {
    font-size: 1.3rem;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 10px 10px;
    color: #FADAA9;
}

.nav ul {
    margin: 0;
    padding: 0 0 0 1rem;
    list-style: none;
}

.nav ul ul {
    margin-left: -.3rem;
}

.nav li {
    margin-top: 1.2rem;
}

.nav ul ul li {
    margin-top: .5rem;
}

.nav a {
    display: inline-block;
    position: relative;
    text-decoration: none;
}

.nav li:not(.has-sublist) > a:hover,
.nav li:not(.has-sublist) > a.is-active {
    text-decoration: underline;
}

.nav li:not(.has-sublist) > a.is-active {
    color: #fff2cc;
}

.nav li.has-sublist > a:before {
    content: '';
    position: absolute;
    border-style: solid;
    border-width: 0.6rem 0.35rem 0;
    border-color: #fff2cc transparent;
    left: -1rem;
    top: 0.65rem;
    transform: rotate(-90deg);
}

.nav li.has-sublist.is-active > a:before {
    transform: none;
}

.nav li.has-sublist ul {
    display: none;
}

.nav li.has-sublist.is-active > ul {
    display: block;
}

.main {
    flex-grow: 1;
    min-width: 1px;
    display: flex;
    flex-direction: column;
}

.header {
    max-width: 100%;
    background: #42505D;
    color: #fff2cc;
    display: flex;
    padding: 0 0 0 10px;
    flex-shrink: 0;
}

.header__burger {
    display: none;
    width: 32px;
    height: 32px;
    align-self: flex-start;
    flex-shrink: 0;
}

.header__title {
    flex-grow: 1;
    min-width: 1px;
    margin-right: 10px;
    align-self: center;
    padding: 4px 0;
}

.title {
    font-weight: bold;
    text-transform: uppercase;
    text-align: center;
}

.header__buttons {
    align-self: flex-start;
    flex-shrink: 0;
}

.header-buttons {
    display: flex;
}

.header-buttons__item {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.header-button {
    display: flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    color: inherit;
    background: none;
    border: none;
    padding: 0;
}

.header-button:hover {
    opacity: 0.85;
}

.header-button:active {
    opacity: 0.7;
}

.ya-share2__link_more {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    background: none !important;
}

.ya-share2__badge_more,
.ya-share2__icon_more {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.ya-share2__icon_more {
    background-size: 16px 16px !important;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.6 2.9a2.7 2.7 0 01-4.554 1.963L5.303 7.28a2.702 2.702 0 010 1.44l4.743 2.417a2.7 2.7 0 11-.834 1.708l-5.05-2.575a2.7 2.7 0 110-4.54l5.05-2.575A2.7 2.7 0 1114.6 2.9z' fill='%23fff2cc'/%3E%3C/svg%3E") !important;
}

.content {
    flex-grow: 1;
    min-height: 1px;
    overflow: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    padding: 10px;
    line-height: 1.25;
}

.content p {
    margin: 0 0 .5em;
}

.footer {
    max-width: 100%;
    flex-shrink: 0;
    border-top: 1px solid #efe0b5;
}

.footer ~ *,
.footer .buttons-section ~ * {
    display: none !important;
}

.buttons-section {
    position: relative;
}

.buttons-section__outer,
.buttons-section__inner {
    height: 40px;
}

.buttons-section__outer {
    overflow: hidden;
    position: relative;
    transition: 0.35s ease-in-out;
}

html.is-footer-hide .buttons-section__outer {
    height: 0;
}

.buttons-section__inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
}

.buttons-section__btn {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%2342505D' d='M3.515 168.97l7.07 7.071c4.686 4.686 12.284 4.686 16.971 0L111 92.113V468c0 6.627 5.373 12 12 12h10c6.627 0 12-5.373 12-12V92.113l83.444 83.928c4.686 4.686 12.284 4.686 16.971 0l7.07-7.071c4.686-4.686 4.686-12.284 0-16.97l-116-116.485c-4.686-4.686-12.284-4.686-16.971 0L3.515 152c-4.687 4.686-4.687 12.284 0 16.97z'%3E%3C/path%3E%3C/svg%3E");
    background-size: 12px 24px;
    background-position: center center;
    background-repeat: no-repeat;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: 0.35s ease-in-out;
}

html.is-footer-hide .buttons-section__btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.buttons-section__btn + .buttons-section__btn {
    left: auto;
    right: 0;
}

.aside__footer .buttons-section__btn {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 256 512'%3E%3Cpath fill='%23fff2cc' d='M3.515 168.97l7.07 7.071c4.686 4.686 12.284 4.686 16.971 0L111 92.113V468c0 6.627 5.373 12 12 12h10c6.627 0 12-5.373 12-12V92.113l83.444 83.928c4.686 4.686 12.284 4.686 16.971 0l7.07-7.071c4.686-4.686 4.686-12.284 0-16.97l-116-116.485c-4.686-4.686-12.284-4.686-16.971 0L3.515 152c-4.687 4.686-4.687 12.284 0 16.97z'%3E%3C/path%3E%3C/svg%3E");
}

.buttons {
    display: flex;
}

.buttons__item {
    flex-grow: 1;
    flex-basis: auto;
    max-width: 100%;
}

.aside .buttons__item {
    flex-grow: 0;
}

.aside .buttons__item:nth-child(2) {
    flex-grow: 1;
}

.btn {
    display: block;
    width: 100%;
    height: auto;
    text-align: center;
    padding: 8px;
    border: none;
    background: none;
    color: #000;
    border-radius: 0;
    font-size: 16px;
    line-height: 24px;  
    font-weight: bold;
}

.buttons__btn {
    text-transform: uppercase;
    padding: 5px;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.buttons__btn img {
    height: 30px;
    width: auto;
    vertical-align: top;
}

.buttons__btn_zoom {
    font-size: 22px;
}

html.is-zoom .buttons__btn_zoom {
    font-size: 16px;
}

html.is-zoom .buttons__btn_zoom:before {
    content: attr(data-alt-text);
}

html.is-zoom .buttons__btn_zoom > span {
    display: none;
}