/* Design A: спокойный приём + живые, но сдержанные анимации */

.area,
.circles {
    display: none !important;
}

body {
    background-color: #f4f2f1 !important;
}
body::before {
    content: "";
    position: fixed;
    inset: -18%;
    z-index: -3;
    pointer-events: none;
    background:
        radial-gradient(42% 38% at 8% 12%, rgba(202, 24, 46, 0.09), transparent 62%),
        radial-gradient(38% 42% at 92% 88%, rgba(130, 0, 0, 0.07), transparent 64%);
    animation: designABlob 32s ease-in-out infinite alternate;
}

@keyframes designABlob {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-3%, 2%, 0) scale(1.06); }
}

header#mainNav {
    height: auto !important;
    min-height: 0 !important;
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(130, 0, 0, 0.08);
    transition: box-shadow .25s ease, background .25s ease !important;
}
header#mainNav.scrolled {
    background: rgba(255, 255, 255, 0.96) !important;
    height: auto !important;
    box-shadow: 0 10px 28px rgba(40, 0, 0, 0.08);
}
header#mainNav.scrolled .under-header {
    opacity: 1 !important;
    transform: none !important;
}
header#mainNav.scrolled .clr-logo,
header#mainNav.scrolled .clr-logo.clos {
    display: block !important;
}
header#mainNav.scrolled .white-logo {
    display: none !important;
}
header#mainNav.scrolled a,
header#mainNav.scrolled button span {
    color: #1a1a1a !important;
}
header#mainNav.scrolled a:hover,
header#mainNav.scrolled button span:hover {
    color: #820000 !important;
}
header#mainNav.scrolled .upper-bnt a {
    border: 2px solid #820000 !important;
    background-color: #820000 !important;
    color: #fff !important;
}
header#mainNav.scrolled .upper-bnt a:hover {
    background-color: #fff !important;
    color: #820000 !important;
}
header#mainNav.scrolled .excursion-btn {
    background: linear-gradient(90deg, #ed303c 0, #c10f1a 72%) !important;
}
header#mainNav.scrolled a.modal-open {
    color: #fff !important;
}

.navbar-brand img {
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}
.navbar-brand:hover img {
    transform: scale(1.04) rotate(-2deg);
}

.excursion-btn {
    box-shadow: none !important;
    overflow: visible;
}
.excursion-btn:hover {
    box-shadow: none !important;
    transform: translateY(-2px);
}
a.modal-open {
    position: relative;
    overflow: hidden;
}
a.modal-open::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 55%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.38), transparent);
    transform: skewX(-18deg);
    animation: designAShine 3.6s ease-in-out infinite;
}
@keyframes designAShine {
    0%, 55% { left: -120%; }
    80%, 100% { left: 140%; }
}

.upper-bnt a {
    transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease !important;
}
.upper-bnt a:hover {
    transform: translateY(-2px);
}
.upper-bnt a:active {
    transform: translateY(0) scale(0.98);
}

.main-content {
    padding-top: 188px !important;
}
@media screen and (max-width: 1199px) {
    .main-content {
        padding-top: 128px !important;
    }
}

#terms .col,
#terms .rounded-4 {
    box-shadow: 0 8px 22px rgba(20, 8, 8, 0.06) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(130, 0, 0, 0.06);
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease;
}
#terms .col:hover,
#terms .rounded-4:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(20, 8, 8, 0.1) !important;
}

.card.card-wd,
.card-haw,
.card-frst-haw,
.card.left,
.card.right,
.card-profile-box {
    border-radius: 16px !important;
    transition: transform .28s cubic-bezier(.22, 1, .36, 1), box-shadow .28s ease, background-color .28s ease;
}
.card-haw:hover,
.card-profile-box:hover,
.card.card-wd:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 32px rgba(20, 8, 8, 0.1);
}

.card.card-footer {
    border-radius: 16px !important;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .3s ease, box-shadow .3s ease;
}
.card.card-footer:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 36px rgba(80, 0, 0, 0.18);
}
.card-footer .card-body .str {
    transition: transform .3s cubic-bezier(.22, 1, .36, 1), background-color .3s ease, color .3s ease;
}
.card.card-footer:hover .str {
    transform: translateY(-8px) rotate(45deg);
}

.btn-accept {
    transition: transform .2s ease, background-color .2s ease, color .2s ease !important;
}
.btn-accept:hover {
    transform: translateY(-2px);
}

.nav-pills.srt .nav-link,
.terms-nav label {
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.terms-nav label:hover {
    transform: translateY(-1px);
}

.documents-page details.doc-acc > summary {
    transition: filter .2s ease, transform .2s ease;
}
.documents-page details.doc-acc > summary:hover {
    filter: brightness(1.06);
}
.documents-page .doc-acc-body {
    animation: designAAccord .28s ease;
}
@keyframes designAAccord {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
}

.competition tbody tr {
    transition: background-color .18s ease, transform .18s ease;
}
.competition tbody tr:hover td {
    filter: brightness(0.98);
}

.js-reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: none;
}
.js-reveal.is-in {
    animation: designAIn .7s cubic-bezier(.22, 1, .36, 1) forwards;
    animation-delay: var(--reveal-delay, 0ms);
}
@keyframes designAIn {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.upper-bnt a.quiz-open {
    width: auto;
    min-width: 132px;
    white-space: nowrap;
    justify-content: center;
}
.excursion-btn {
    margin-right: 90px;
}

.quiz-overlay {
    position: fixed;
    inset: 0;
    z-index: 4000;
    background: rgba(20, 6, 6, 0.55);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.quiz-overlay[hidden] {
    display: none !important;
}
.quiz-modal {
    position: relative;
    width: min(640px, 100%);
    max-height: min(88vh, 760px);
    overflow: auto;
    background: #fff;
    border-radius: 24px;
    padding: 28px 24px 24px;
    box-shadow: 0 24px 60px rgba(40, 0, 0, 0.28);
    animation: designAIn .45s cubic-bezier(.22, 1, .36, 1);
}
.quiz-close {
    position: absolute;
    top: 8px;
    right: 10px;
    z-index: 2;
    border: 0;
    background: transparent;
    font-size: 32px;
    line-height: 1;
    color: #820000;
    cursor: pointer;
}
.quiz-progress {
    height: 6px;
    border-radius: 99px;
    background: #f0e6e6;
    overflow: hidden;
    margin: 8px 36px 12px 0;
}
.quiz-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #ed303c, #820000);
    transition: width .25s ease;
}
.quiz-step {
    color: #820000;
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}
.quiz-title {
    font-size: 26px;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 0 0 16px;
}
.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quiz-option {
    text-align: left;
    border: 2px solid #ead9d9;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.quiz-option:hover {
    transform: translateY(-2px);
    border-color: #820000;
}
.quiz-option.is-on {
    background: #820000;
    border-color: #820000;
    color: #fff;
}
.quiz-nav {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
}
.quiz-btn {
    border: 0;
    border-radius: 25px;
    background: #820000;
    color: #fff;
    font-weight: 600;
    padding: 12px 22px;
    min-height: 44px;
    cursor: pointer;
}
.quiz-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
}
.quiz-btn-ghost {
    background: transparent;
    color: #820000;
    border: 2px solid #820000;
}
.quiz-card {
    display: block;
    text-decoration: none !important;
    border: 1px solid rgba(130, 0, 0, 0.08);
    border-radius: 16px;
    padding: 16px 16px 16px 56px;
    margin: 0 0 12px;
    position: relative;
    color: #1a1a1a;
    background: #fff;
    box-shadow: 0 8px 22px rgba(20, 8, 8, 0.06);
    transition: transform .22s ease, box-shadow .22s ease;
}
.quiz-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(20, 8, 8, 0.1);
}
.quiz-card-n {
    position: absolute;
    left: 16px;
    top: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #820000;
    color: #fff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.quiz-card-code {
    display: block;
    color: #820000;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}
.quiz-card strong {
    display: block;
    font-size: 18px;
    margin-bottom: 6px;
}
.quiz-card em {
    display: block;
    font-style: normal;
    color: #6b4a4a;
    font-size: 14px;
}
.quiz-empty {
    color: #6b4a4a;
    margin-bottom: 16px;
}
.quiz-result .quiz-btn {
    width: 100%;
    margin-top: 8px;
}

.theme-toggle {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    border-radius: 50%;
    border: 2px solid #820000;
    background: #fff;
    color: #820000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-size: 18px;
    transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.theme-toggle:hover {
    transform: translateY(-2px);
    background: #820000;
    color: #fff;
}
.theme-icon-sun {
    display: none;
}
html.theme-dark .theme-icon-moon {
    display: none;
}
html.theme-dark .theme-icon-sun {
    display: inline;
}

html.theme-dark {
    color-scheme: dark;
}
html.theme-dark body {
    background-color: #121010 !important;
    color: #f3ecec;
}
html.theme-dark body::before {
    background:
        radial-gradient(42% 38% at 8% 12%, rgba(202, 24, 46, 0.22), transparent 62%),
        radial-gradient(38% 42% at 92% 88%, rgba(130, 0, 0, 0.18), transparent 64%);
}
html.theme-dark header,
html.theme-dark header#mainNav,
html.theme-dark header#mainNav.scrolled,
html.theme-dark header#mainNav.unscrolled {
    background: rgba(18, 16, 16, 0.94) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
html.theme-dark .under-header {
    border-top-color: rgba(255, 255, 255, 0.08);
}
html.theme-dark header#mainNav a,
html.theme-dark header#mainNav .nav-link,
html.theme-dark header#mainNav.scrolled a,
html.theme-dark header#mainNav.scrolled button span {
    color: #f3ecec !important;
}
html.theme-dark header#mainNav a:hover,
html.theme-dark header#mainNav .nav-link:hover,
html.theme-dark header#mainNav.scrolled a:hover {
    color: #ff6b73 !important;
}
html.theme-dark header#mainNav .nav-link.active,
html.theme-dark header#mainNav .nav-link[aria-current="page"] {
    color: #ff8a90 !important;
}
html.theme-dark header#mainNav.scrolled .upper-bnt a,
html.theme-dark .upper-bnt a {
    border-color: #820000 !important;
    background-color: #820000 !important;
    color: #fff !important;
}
html.theme-dark header#mainNav.scrolled .upper-bnt a:hover,
html.theme-dark .upper-bnt a:hover {
    background-color: #fff !important;
    color: #820000 !important;
}
html.theme-dark header#mainNav.scrolled a.modal-open,
html.theme-dark a.modal-open {
    color: #fff !important;
}
html.theme-dark header#mainNav .clr-logo,
html.theme-dark header#mainNav.scrolled .clr-logo,
html.theme-dark header#mainNav.scrolled .clr-logo.clos {
    display: none !important;
}
html.theme-dark header#mainNav .white-logo,
html.theme-dark header#mainNav.scrolled .white-logo {
    display: block !important;
}
html.theme-dark .theme-toggle {
    background: #1c1717;
    color: #f3ecec;
    border-color: #ed303c;
}
html.theme-dark .theme-toggle:hover {
    background: #ed303c;
    color: #fff;
}

html.theme-dark .main-content,
html.theme-dark .section-footer,
html.theme-dark footer,
html.theme-dark p,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark .text-muted,
html.theme-dark .info_bal {
    color: #f3ecec;
}
html.theme-dark .text-muted,
html.theme-dark footer .text-muted,
html.theme-dark .nav-link.p-0.text-muted {
    color: #c4b4b4 !important;
}

html.theme-dark #terms .col,
html.theme-dark #terms .rounded-4,
html.theme-dark .card.card-wd,
html.theme-dark .card-haw,
html.theme-dark .card-frst-haw,
html.theme-dark .card.left,
html.theme-dark .card.right,
html.theme-dark .card-profile-box,
html.theme-dark .card.card-footer,
html.theme-dark .card.inf,
html.theme-dark .ge-content,
html.theme-dark .bg-white {
    background-color: #1c1717 !important;
    color: #f3ecec !important;
    border-color: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28) !important;
}
html.theme-dark .card-title,
html.theme-dark .card-haw h3,
html.theme-dark .card-frst-haw h3,
html.theme-dark .card-profile-box h5,
html.theme-dark .card-text,
html.theme-dark .card-nav a,
html.theme-dark .card-nav.left a,
html.theme-dark .card-nav.right a {
    color: #f3ecec !important;
}
html.theme-dark .card-nav a:hover {
    color: #ff8a90 !important;
}
html.theme-dark .card-body.inf span,
html.theme-dark .card-haw p {
    color: #c4b4b4 !important;
}
html.theme-dark .card-body.right,
html.theme-dark .card-body.inf,
html.theme-dark .nav.nav-pills.srt,
html.theme-dark .nav-pills.srt a,
html.theme-dark footer,
html.theme-dark .map,
html.theme-dark .card.card-footer .str {
    background-color: #1c1717 !important;
    color: #f3ecec !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}
html.theme-dark .card-body.right h3 {
    color: #ff8a90 !important;
}
html.theme-dark .card-body.left {
    background-color: #820000 !important;
}
html.theme-dark .card-body.left h3,
html.theme-dark .card-nav.left a {
    color: #fff !important;
}
html.theme-dark .card-title.srt {
    color: #ff8a90 !important;
}
html.theme-dark #terms img,
html.theme-dark .card-haw img,
html.theme-dark .card-frst-haw img {
    filter: brightness(0) invert(1);
}
html.theme-dark .header-submenu {
    background: #1c1717 !important;
}
html.theme-dark .header-submenu .nav-link {
    color: #f3ecec !important;
}
html.theme-dark .competition tbody td,
html.theme-dark .competition tbody tr:nth-child(even) td {
    background-color: #1c1717;
    color: #f3ecec;
}
html.theme-dark .competition a,
html.theme-dark a.link {
    color: #ff8a90;
}
html.theme-dark #search-depart::placeholder {
    color: #8f7f7f;
}

html.theme-dark .form-control,
html.theme-dark input,
html.theme-dark textarea,
html.theme-dark select {
    background-color: #161212 !important;
    color: #f3ecec !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}
html.theme-dark .form-control::placeholder,
html.theme-dark input::placeholder {
    color: #8f7f7f !important;
}
html.theme-dark .nav-pills.srt .nav-link {
    color: #f3ecec;
}
html.theme-dark .table,
html.theme-dark .table td,
html.theme-dark .table th {
    color: #f3ecec;
    border-color: rgba(255, 255, 255, 0.1);
    background-color: transparent;
}
html.theme-dark .documents-page details.doc-acc > summary,
html.theme-dark .doc-acc-body,
html.theme-dark .documents-page {
    color: #f3ecec;
}
html.theme-dark .quiz-modal,
html.theme-dark .quiz-option,
html.theme-dark .quiz-card {
    background: #1c1717;
    color: #f3ecec;
    border-color: rgba(255, 255, 255, 0.1);
}
html.theme-dark .quiz-title,
html.theme-dark .quiz-option {
    color: #f3ecec;
}
html.theme-dark .quiz-card em,
html.theme-dark .quiz-empty {
    color: #c4b4b4;
}
html.theme-dark .quiz-progress {
    background: #3a2a2a;
}
html.theme-dark .quiz-overlay {
    background: rgba(8, 4, 4, 0.72);
}
html.theme-dark .modal-content {
    background: #1c1717;
    color: #f3ecec;
}
html.theme-dark .modal-header,
html.theme-dark .modal-footer {
    border-color: rgba(255, 255, 255, 0.08);
}
html.theme-dark .btn-close {
    filter: invert(1);
}
html.theme-dark .competition,
html.theme-dark .competition td,
html.theme-dark .competition th {
    color: #f3ecec;
    background-color: #1c1717;
}
html.theme-dark footer {
    background: transparent;
}
html.theme-dark .border-top {
    border-color: rgba(255, 255, 255, 0.1) !important;
}
html.theme-dark .navbar-toggler {
    background-color: #1c1717 !important;
    border-color: #ed303c;
}
@media screen and (max-width: 540px) {
    html.theme-dark header#mainNav .white-logo,
    html.theme-dark header#mainNav.scrolled .white-logo {
        display: none !important;
    }
    html.theme-dark header#mainNav .min-logo {
        display: block !important;
        filter: brightness(1.15);
    }
}

html, body {
    overflow-x: clip;
}
.header-top {
    display: flex;
    align-items: center;
    width: 100%;
}
.header-top .upper-bnt {
    flex: 1;
    justify-content: flex-end;
}
.header-tools {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    margin-left: 10px;
}
.header-tools .navbar-toggler {
    padding: 6px 8px;
    border-radius: 10px;
    border: 2px solid #820000;
}
.mobile-cta {
    display: none;
}

@media screen and (max-width: 1199px) {
    header#mainNav {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }
    .main-content {
        padding-top: 96px !important;
    }
    header#mainNav .header-top {
        padding: 6px 12px !important;
        align-items: center;
    }
    header#mainNav .upper-bnt {
        display: none !important;
    }
    header#mainNav .excursion-btn,
    header#mainNav #anim-logo {
        display: none !important;
    }
    header#mainNav .logo {
        height: 48px !important;
        margin: 0;
    }
    header#mainNav .clr-logo {
        display: none !important;
    }
    header#mainNav .min-logo {
        display: block !important;
        width: 48px !important;
        height: 48px !important;
    }
    html.theme-dark header#mainNav .white-logo,
    html.theme-dark header#mainNav.scrolled .white-logo {
        display: none !important;
    }
    .header-tools {
        margin-left: auto;
    }
    .under-header {
        padding: 0 !important;
        border-top: 0 !important;
    }
    .under-header .d-hidden {
        display: none !important;
    }
    #navbarBasic {
        padding: 8px 12px 16px;
        background: #fff;
        max-height: calc(100vh - 72px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    html.theme-dark #navbarBasic {
        background: #121010;
    }
    .mobile-cta {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0 0 12px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(130, 0, 0, 0.12);
    }
    html.theme-dark .mobile-cta {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
    header#mainNav .mobile-cta a,
    header#mainNav .mobile-cta a.modal-open,
    header#mainNav .mobile-cta a.quiz-open,
    html.theme-dark header#mainNav .mobile-cta a,
    html.theme-dark header#mainNav .mobile-cta a.modal-open {
        display: flex !important;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        height: auto !important;
        padding: 10px 16px !important;
        margin: 0 !important;
        border-radius: 25px;
        border: 2px solid #820000 !important;
        background: #820000 !important;
        color: #fff !important;
        font-weight: 600;
        text-decoration: none;
        width: 100% !important;
        min-width: 0 !important;
        white-space: normal;
        box-shadow: none !important;
    }
    header#mainNav .mobile-cta a:hover,
    header#mainNav .mobile-cta a:focus,
    html.theme-dark header#mainNav .mobile-cta a:hover {
        background: #fff !important;
        color: #820000 !important;
    }
    html.theme-dark header#mainNav .mobile-cta a:hover,
    html.theme-dark header#mainNav .mobile-cta a:focus {
        background: #1c1717 !important;
        color: #ff8a90 !important;
    }
    header#mainNav .mobile-cta a.modal-open::before {
        display: none !important;
    }
    #navbarBasic .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    #navbarBasic .nav-link {
        padding: 12px 4px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    #navbarBasic .header-submenu {
        position: static !important;
        display: flex !important;
        flex-direction: column;
        min-width: 0;
        padding: 0 0 0 12px;
        box-shadow: none;
        background: transparent !important;
    }
    #navbarBasic .header-submenu .nav-link {
        white-space: normal;
        color: inherit !important;
    }
}

@media screen and (max-width: 767px) {
    .main-content {
        padding-top: 96px !important;
        padding-left: 12px;
        padding-right: 12px;
    }
    h1, .zag, .Section_tagline p {
        font-size: 28px !important;
        line-height: 1.2;
    }
    #terms {
        overflow: visible;
    }
    .main-content .d-flex.justify-content-between.gap-3.py-2 {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: wrap !important;
    }
    .terms-nav {
        flex-wrap: wrap !important;
        width: 100%;
        justify-content: flex-start !important;
        gap: 8px !important;
    }
    .terms-nav label {
        flex: 1 1 auto;
        justify-content: center;
        white-space: normal;
        padding: 8px 12px !important;
        min-height: 44px;
    }
    #terms .d-flex {
        flex-wrap: wrap !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        width: 100%;
    }
    #terms .row,
    #terms .row.gap-3 {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    #terms .col,
    #terms .row.gap-3 > .col {
        flex: 1 1 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    .nav.nav-pills.srt {
        display: flex !important;
        flex-wrap: wrap;
        height: auto !important;
        border-radius: 16px;
        padding: 8px;
        gap: 6px;
    }
    .nav-pills.srt a,
    .nav-pills.srt .nav-link {
        padding: 10px 14px !important;
        height: auto !important;
        min-height: 44px;
        flex: 1 1 auto;
        justify-content: center;
        white-space: nowrap;
    }
    .under-srt,
    .under-srt > div {
        width: 100% !important;
        max-width: 100% !important;
        flex-direction: column !important;
    }
    .Logo_about {
        display: none !important;
    }
    .card.left,
    .card.right,
    .card-haw,
    .card-frst-haw,
    .card.card-wd,
    .card-body.left.contacts,
    .card-body.right {
        min-height: 0 !important;
        height: auto !important;
    }
    .card-body.left,
    .card-body.right {
        padding: 20px !important;
    }
    .card-body.descrp.right,
    .card-body.descrp.main.sec {
        padding-left: 20px !important;
        padding: 20px !important;
    }
    .tbl,
    .row.row-cols-1.row-cols-sm-2.g-3.card-descrp {
        flex-direction: column !important;
        width: 100%;
    }
    .competition,
    table.competition,
    .table-responsive,
    .table-responsive-lg {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    table td,
    table th {
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
    .competition-filter,
    .competition .d-flex {
        flex-wrap: wrap !important;
        gap: 8px;
    }
    .competition-filter > * {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100%;
    }
    .map,
    .map iframe,
    .map ymaps,
    .map [class*="ymaps"] {
        max-width: 100% !important;
        width: 100% !important;
    }
    .quiz-overlay {
        padding: 8px;
        align-items: flex-end;
    }
    .quiz-modal {
        width: 100%;
        max-height: min(92vh, 100%);
        padding: 20px 16px 16px;
        border-radius: 20px 20px 12px 12px;
    }
    .quiz-title {
        font-size: 20px;
    }
    .quiz-nav {
        flex-direction: column;
    }
    .quiz-btn {
        width: 100%;
    }
    .fb_block,
    .fb_response {
        max-height: 88vh;
        padding: 16px;
        width: 100%;
    }
    #fb_form textarea {
        height: 120px !important;
    }
    .fb_block button,
    .fb_response button {
        float: none !important;
        width: 100%;
        margin: 8px 0 0;
    }
    .documents-page details.doc-acc > summary,
    .documents-page .doc-list a,
    .documents-page .doc-html a {
        overflow-wrap: anywhere;
        word-break: break-word;
        font-size: 16px;
    }
    .card.card-footer {
        min-height: 160px;
    }
}

@media screen and (max-width: 390px) {
    .main-content {
        padding-top: 88px !important;
    }
    header#mainNav .min-logo {
        width: 44px !important;
        height: 44px !important;
    }
    .theme-toggle {
        width: 40px;
        height: 40px;
    }
    h1, .zag, .Section_tagline p {
        font-size: 24px !important;
    }
    .quiz-title {
        font-size: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    a.modal-open::before,
    .js-reveal,
    .js-reveal.is-in {
        animation: none !important;
    }
    .js-reveal {
        opacity: 1;
        transform: none;
    }
    #terms .col:hover,
    .card-haw:hover,
    .card-profile-box:hover,
    .card.card-footer:hover,
    .upper-bnt a:hover,
    .navbar-brand:hover img {
        transform: none;
    }
}
