:root {
    --nm-red: #D3181F;
    --nm-red-dark: #970203;
    --nm-white: #ffffff;
    --nm-lightgray: #F2F2F2;
    --nm-gray: #939598;
    --nm-black: #2B2A29;
    --nm-green: #0C9347;
    --nm-purple: #E80B75;
    --nm-orange: #F7941D;
    --nm-blue: #312E83;
    --nm-lightblue: #02ABE2;

    --bs-link-color: #D3181F;
    --bs-link-color-rgb: 211, 24, 31;
    --bs-link-hover-color: #970203;
    --bs-link-hover-color-rgb: 151, 2, 3;

    --elki-grad-top: #251C63;
    --elki-grad-bottom: #2453A0;

    --nm-midgray: #e0e0e0;
    --nm-grayborder: #d8d7db;
    --nm-shadow-normal: -12px -12px 24px #fff, 4px 4px 24px rgba(211, 24, 31, .1);
    --nm-shadow-active: inset -2px -2px 2px #fff, inset 2px 2px 4px rgba(211, 24, 31, .2);
    --nm-shadow-hover: -3px -3px 6px #fff, 1px 1px 6px rgba(211, 24, 31, .2);
    --anim-hover-out: unset
}

.btn-vk {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    --bs-btn-color: var(--nm-white);
    --bs-btn-bg: #0077FF;
    --bs-btn-hover-color: var(--nm-white);
    --bs-btn-hover-bg: #2d85ff;
    --bs-btn-active-color: var(--nm-white);
    --bs-btn-active-bg: #2d85ff;
    --bs-btn-active-shadow: none;
    --bs-btn-disabled-color: var(--nm-white);
    --bs-btn-disabled-bg: #2d85ff;
}

.btn-vk .vk-img {
    height: calc(var(--bs-btn-font-size) * .875);
    padding-left: .375rem;
}

.form-check {
    display: flex;
    min-height: 2rem;
    padding-left: 2rem;
    margin-bottom: .5rem;
}

.form-check .form-check-input {
    margin-left: -2rem;
    margin-right: 1rem;
}

.form-check-input {
    width: 1.5rem;
    height: 1.5rem;
    margin-top: 0;
}

.form-check-input:checked {
    background-color: var(--nm-red);
    border-color: var(--nm-red);
}

.form-check-input:focus {
    border-color: var(--nm-red);
    box-shadow: none;
}

.btn-check + .list-group-item {
    transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.btn-neo {
    display: grid;
    align-items: center;
}

.btn-check + .list-group-item .pseudo-checkbox {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background: white;
    border-radius: 4px;
}

.btn-check:checked + .list-group-item .pseudo-checkbox {
    background-color: var(--nm-red);
    border-color: var(--nm-red);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.btn-check:focus + .list-group-item .pseudo-checkbox {
    border-color: var(--nm-red);
    box-shadow: none;
}

.btn-check + .btn-neo:hover, .btn-check + .list-group-item:hover {
    box-shadow: -3px -3px 6px #FFFFFF, 1px 1px 6px rgba(211, 24, 31, 0.2);
    background: #F7F7F7;
}

.btn-check:checked + .btn-neo {
    background: #F2F2F2;
    font-weight: 500;
    box-shadow: inset -2px -2px 2px #FFFFFF, inset 2px 2px 4px rgba(211, 24, 31, 0.2);
    color: var(--nm-black);
}

.btn-check:checked + .list-group-item {
    background: #F2F2F2;
    box-shadow: inset -2px -2px 2px #FFFFFF, inset 2px 2px 4px rgba(211, 24, 31, 0.2);
}

.btn-check:checked + .list-group-item strong {
    color: var(--nm-red-dark);
}

.btn-check[disabled] + .btn-neo,
.btn-check:disabled + .btn-neo {
    pointer-events: none;
    filter: none;
    color: var(--nm-gray);
}


.list-group-item {
    --bs-list-group-border-width: 0;
    padding: 16px 20px;
    background: #F2F2F2;
    box-shadow: -12px -12px 24px #FFFFFF, 4px 4px 24px rgba(211, 24, 31, 0.1);
    border-radius: 12px !important;
    cursor: pointer;
}

.form-success {
    position: fixed;
    background: var(--nm-lightgray);
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    overflow: auto;
    z-index: 100;
}


.ff-hand {
    font-family: 'NasheMesto-Gestures', emoji;
    color: var(--nm-red);
}

.form-success .h1 {
    font-size: 120px;
    font-weight: 500;
    line-height: 1.1;
}

.form-success .ff-hand {
    line-height: 1;
    margin-bottom: -.1em;
}

.input-number {
    -moz-appearance: textfield;
    text-align: center;
    padding: 0.5rem 0;
    min-width: 48px;
}

.input-number::-webkit-outer-spin-button,
.input-number::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.list-group-item-number {
    padding-right: 1rem;
}

.btn-number {
    --bs-btn-disabled-opacity: .4;
}

.btn-number:first-child {
    padding: 0 .5rem 0 0;
}

.btn-number {
    padding: 0 0 0 .5rem;
}

.btn-number:hover svg {
    fill: var(--nm-red);
}

.modal-header {
    padding: 2.25rem 3rem 2.25rem 3rem;
    border-bottom: 0;
}

.modal-body {
    padding: 0 3rem 2.25rem 3rem;
}

.icon {
    display: inline-block;
    height: 2em;
    width: 3em;
    object-fit: contain;
    object-position: center;
    flex-shrink: 0;
}

.program-day {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 1.25rem;
    color: var(--nm-red);
    line-height: 1;
}

.program-event {
    margin-bottom: 2rem;
    position: relative;
    padding-right: 2.25em;
}

.program-event .event-title {
    line-height: 1.2;
    font-weight: bold;
    /*display: flex;*/
    /*align-items: center;*/
}

.program-event .icon-row {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    position: absolute;
    right: 0;
    top: 0;
}

.program-event .icon {
    width: 1.8rem;
    height: 1.5rem;
}


.program-event .event-type {
    margin-top: 2px;
    line-height: 1.15;
    font-weight: 500;
}

.program-event .event-address {
    margin-top: 4px;
    color: var(--nm-gray);
    font-size: 14px;
    font-weight: 400;
}


.program-event .event-rate {
    font-weight: 500;
}


.day:last-child .program-event:last-child {
    margin-bottom: 0;
}

.person-photo {
    margin: auto;
    width: 120px;
}

.person-info {
    line-height: 1.3;
    text-align: center;
    margin-bottom: 0;
    margin-top: .5rem;
    font-weight: 400;
    font-size: 12px;
}

.person-city {
    font-weight: 400;
    color: var(--nm-red);
    text-align: center;
    font-size: 12px;
}

.map-pin {
    position: relative;
    font-style: normal;
}

.map-pin:before {
    content: "\F3E7";
    font-family: 'bootstrap-icons';
    position: relative;
    top: .125em;
    margin-right: .25rem;
}

.map-pin.blue:before {
    color: var(--nm-blue);
}

.map-pin.lightblue:before {
    color: var(--nm-lightblue);
}

.map-pin.gray:before {
    color: var(--nm-gray);
}

.map-pin.red:before {
    color: var(--nm-red);
}

.map-pin.orange:before {
    color: var(--nm-orange);
}

.map-pin.green:before {
    color: var(--nm-green);
}

.map-pin.purple:before {
    color: var(--nm-purple);
}


.main-form label {
    margin-bottom: .5rem;
}


.login-email {
    cursor: pointer;
}

.tns-controls {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.tns-controls button {
    border: 1px solid var(--nm-blue);
    background: var(--nm-blue);
    color: white;
    border-radius: 10px;
    padding: 8px 24px;
    font-weight: 500;
}


.card-body {
    box-shadow: var(--nm-shadow-normal);
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    word-break: break-word;
    align-items: flex-start;
    line-height: 1.3;
}

.card-meta {
    font-size: 12px;
    color: var(--nm-gray);
    margin-bottom: 0
}

.card-body img {
    width: 250px;
    height: auto;
    max-width: 100%;
}

.card-link {
    display: block;
    text-decoration: none
}

.card-link {
    color: inherit
}

.card-link:hover {
    color: var(--nm-red-dark)
}

.card-link:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0
}

.card-news .card-link {
    line-height: 1.3;
    margin-bottom: 1.5rem;
    font-size: 19px
}

.event-description {
    font-size: 14px;
    line-height: 1.2;
}

.event-date {
    display: flex;
    flex-direction: column;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    width: 120px;
    line-height: 1.1;
    flex-shrink: 0;
}

.event-date .day {
    font-size: 3rem;
    line-height: 1;
    font-weight: 700;
}

.event-rate {
    color: var(--nm-gray);
}

.btn-check:checked + .list-group-item .event-date {
    color: var(--nm-red-dark);
}

.schedule {
    margin-top: 30px;
    margin-bottom: 30px;
    padding: 30px;
    border-radius: 30px;
}

.policy {
    max-width: 800px;
}

.position-sticky.top {
    top: 120px;
}

.tip {
    border-radius: 20px;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background-color: var(--nm-white);
    align-items: flex-start;
}

.tip__title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.15;
}

.tip__description {
    font-size: 24px;
    line-height: 1.2;
    margin-top: .25rem;
    margin-bottom: 1rem;
}

.tip__subtitle {
    font-size: 16px;
    margin-top: auto;
    margin-bottom: .75rem;
    line-height: 1.2;
}

.intro-date {
    font-size: 2.25rem;
    line-height: 1.2;
    font-weight: 500;
}

.intro-title {
    font-size: 3.25rem;
    font-weight: bold;
    line-height: 1.1;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.intro-subtitle {
    font-size: 1.5rem;
    line-height: 1.2;
}

.cta {
    margin-top: 1rem
}

#intro {
    height: auto;
    min-height: unset;
    max-height: unset;
    padding-bottom: 80px;
    flex-direction: column;
}

#links {
    padding-top: 80px;
    padding-bottom: 80px;
    background-color: var(--nm-red);
    color: var(--nm-white);
    --bs-link-hover-color: #ffffff;
    --bs-link-hover-color-rgb: 255, 255, 255;
    --bs-link-color: #ffffff;
    --bs-link-color-rgb: 255, 255, 255;
}

.btn-light {
    --bs-btn-hover-color: var(--nm-red-dark);
    --bs-btn-color: var(--nm-red);
    --bs-btn-active-color: var(--nm-red-dark);
    --bs-btn-hover-bg: var(--nm-white);
    --bs-btn-hover-border-color: var(--nm-white);
}

.btn-group-lg > .btn, .btn-lg {
    --bs-btn-padding-y: 1.25rem;
    --bs-btn-padding-x: 1.5rem;
    --bs-btn-font-size: 1.5rem;
    --bs-btn-border-radius: var(--bs-border-radius-lg);
}

#manifesto {
    font-size: 2.25rem;
    line-height: 1.3;
    font-weight: 400;
}

#manifesto a {
    text-decoration: none;
}

#gestures {
    font-family: 'NasheMesto-Gestures', emoji;
    font-size: 520px;
    text-align: center;
    margin-top: -10rem;
    margin-bottom: -4rem;
    pointer-events: none;
    position: relative;
    padding-top: 100%;
}


#gestures:after {
    content: " ";
    position: absolute;
    top: 0;
    width: 100%;
    left: 0;
    text-align: center;
    animation: spin 8s linear infinite;
}

@keyframes spin {
    0% {
        content: "Н";
    }
    10% {
        content: "А";
    }
    20% {
        content: "Ш";
    }
    30% {
        content: "Е";
    }
    50% {
        content: "М";
    }
    60% {
        content: "Е";
    }
    70% {
        content: "С";
    }
    80% {
        content: "Т";
    }
    90% {
        content: "О";
    }
    100% {
        content: "О";
    }
}

#about {
    padding-top: 80px;
}

#form {
    padding-top: 80px;
    padding-bottom: 40px;
}


#support {
    color: var(--nm-white);
    background: var(--nm-red);
}

#support .subtitle {
    margin-bottom: 1.5rem;
}

#support hr {
    border-width: 3px;
    opacity: 1;
    margin-top: 0;
    margin-bottom: 2rem;
}

.support-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.support-logos img {
    height: 2.75rem;
}

.support-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: 1.5rem;
}

.support-row .rules {
    margin-left: auto;
}

footer {
    font-size: 24px;
    padding: 0;
    padding-bottom: 3rem;
    color: var(--nm-white);
    background: #111544;
    --bs-link-hover-color: #c8c8c8;
    --bs-link-hover-color-rgb: 200, 200, 200;
    --bs-link-color: #ffffff;
    --bs-link-color-rgb: 255, 255, 255;
}

footer a {
    text-decoration: none;
}

footer .logo {
    height: 55px;
}

footer .container {
    display: block;
    padding-bottom: 0;

}


@media (max-width: 1399.98px) {

}

@media (max-width: 1199.98px) {

}

@media (max-width: 991.98px) {

}

@media (max-width: 767.98px) {

    .event-date {
        display: grid;
        grid-template-rows: auto auto;
        grid-template-columns: auto auto;
        width: auto;
        gap: 0 10px;
        margin-right: auto;
    }

    .event-date .day {
        grid-row: 1 / span 2;
    }

    .event-date .month {
        line-height: 1;
    }

    .event-date .time {
        line-height: 1;
    }

    .form-success .h1 {
        font-size: 90px;
    }

    .support-logos {
        flex-direction: column;
        gap: 1.5rem;
    }

    .support-logos img {
        height: 3rem;
        max-width: 140px;
        object-fit: contain;
        object-position: center;
    }
}

@media (max-width: 575.98px) {

    .schedule {
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 12px;
        border-radius: 16px;
    }

    .program-event {
        padding-left: 0;
    }

    .form-success {
        padding: 16px;
    }

    .form-success .h1 {
        font-size: 15vw;
    }

    .intro-date {
        font-size: 5.5vw;
    }

    .intro-title {
        font-size: 7vw;
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .intro-subtitle {
        font-size: 18px;
    }

    #intro {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #links {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #manifesto {
        font-size: 22px;
    }

    .btn-group-lg > .btn, .btn-lg {
        --bs-btn-padding-y: 1rem;
        --bs-btn-padding-x: 1.25rem;
        --bs-btn-font-size: 1rem;
        --bs-btn-border-radius: var(--bs-border-radius-lg);
    }

    #gestures {
        font-size: 300px;
        margin-top: -3rem;
    }

    #about {
        padding-top: 40px;
    }

    #form {
        padding-top: 40px;
    }

    .tip__title {
        font-size: 1.5rem;
    }

    .tip__description {
        font-size: 18px;
    }

    .tip__subtitle {
        font-size: 14px;
    }

    .btn-primary, .btn-light {
        width: 100%;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }

    .form-check-label {
        font-size: 14px;
    }

    footer {
        font-size: 14px;
    }

    .support-row {
        flex-direction: column;
    }

    .support-logos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        justify-items: center;
    }

    #support .subtitle {
        text-align: center;
    }

    footer .navbar-brand{
        width: 100%;
        text-align: center;
        display: block;
    }
    footer .logo {
        height: 48px;
    }
}

@media (max-width: 350px) {
}