@charset "utf-8";

* {
    box-sizing: border-box;
    margin: 0;
}

body {
    padding: 0;
    border: 0;
    color: #000;
    font-family: "Roboto Condensed", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 18px;
    line-height: 150%;
    text-decoration: none;
    overflow-x: hidden;
}

.nowrap {
    white-space: nowrap;
}

#wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
}

.note {
    background-color: #193043;
}

.bili {
    background-color: #132c2c;
}

header {
    display: flex;
    height: 130px;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 5px 15px;
    background: linear-gradient(90deg, rgba(225, 236, 248, 0.4), rgba(18, 27, 36, 0.6)), url('https://bushurov.group/images/bg_logo_800x130.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 5px 10px 0 #aaa;
    position: absolute;
    z-index: 1;
}

.flex-item video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    opacity: 0.7;
}

.com-video video {
    display: block;
    width: 100%;
    max-width: 960px;
    height: auto;
    z-index: 2;
    position: relative;
    object-fit: contain;
    opacity: 1;
    border-radius: 0.5rem;
}

img {
    padding: 0;
    object-fit: cover;
    border-radius: 0.5rem;
}

@media (hover: hover) {
    img:hover {
        cursor: pointer;
    }
}

.logo {
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
    height: 110px;
    width: 110px;
    border: 2px solid #f0f9f5;
    border-radius: 0.75rem;
    position: relative;
    overflow: hidden;
    background-image: url('https://bushurov.group/images/bush150.jpg');
    background-size: cover;
    background-position: center;
    opacity: 1;
    z-index: 1;
}

.logo-bush {
    cursor: pointer;
    object-fit: contain;
    padding: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.5rem;
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    z-index: -1;
    opacity: 1;
    isolation: isolate;
    transition: opacity 1s;
}

.note .logo-bush {
    background-image: url('https://bushurov.group/images/logo-150-FF-0091D6.png');
    background-color: #0091D6;
}

.bili .logo-bush {
    background-image: url('https://bushurov.group/images/logo-150-FF-008080.png');
    background-color: #008080;
}

.obli .logo-bush {
    background-image: url('https://bushurov.group/images/logo-150-FF-00C2CB.png');
    background-color: #00C2CB;
}

.logo-bush::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    opacity: .2;
}

@media (hover: hover) {
    .logo-bush:hover {
        opacity: 0;
        transition: opacity 1s;
    }
}

.mainHeader {
    display: flex;
    flex-direction: column;
    align-self: flex-end;
}

.mainHeaderText {
    color: rgba(240, 249, 245, 0.7);
    min-width: 300px;
    align-self: flex-start;
    padding: 0 0 10px 10px;
    line-height: 150%;
}

.mainHeaderName {
    font-size: 1.77778rem;
    text-transform: none;
    font-family: "Days One", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.mainHeaderAddress {
    font-size: 0.77778rem;
    font-family: "Roboto Slab", serif;
    font-weight: 700;
    font-style: normal;
}

.navbar {
    position: sticky;
    top: 0;
    right: 30px;
    display: flex;
    align-self: flex-end;
    z-index: 3;
}

ul {
    font-size: 1em;
    margin-left: 1rem;
    padding: .5rem .5rem 0 .5rem;
    border-radius: .25rem;
}

.nav_links {
    list-style: none;
    margin: 0;
}

.nav_links li {
    display: inline-flex;
    margin: 10px 5px;
}

.nav_links li a {
    text-decoration: none;
    font-weight: 700;
    color: #f0f9f5;
    border: 3px solid #f0f9f5;
    padding: 8px 10px;
    border-radius: .5rem;
    transition: background-color .3s ease-in-out, color .3s ease-in-out, border .3s ease-in-out;
}

.note .nav_links li a {
    background-color: #0091D6;
}

.bili .nav_links li a {
    background-color: #008080;
}

@media (hover: hover) {
    .nav_links li a:hover {
        background-color: #f0f9f5;
    }

    .note .nav_links li a:hover {
        color: #0091D6;
        border-color: #0091D6;
    }

    .bili .nav_links li a:hover {
        color: #008080;
        border-color: #008080;
    }
}

.navbar input[type="checkbox"] {
    position: fixed;
    top: 14px;
    right: 31px;
    width: 40px;
    height: 32px;
    z-index: 2;
}

.navbar input[type="checkbox"]:focus {
    cursor: pointer;
}

.visuallyhidden {
    border: 0;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    background-color: #f0f9f5;
}

.hamburger-lines {
    position: sticky;
    top: 10px;
    left: -42px;
    width: 40px;
    height: 32px;
}

.hamburger-lines .lines {
    display: block;
    width: 100%;
    height: 7px;
    border-radius: 5px;
    border: 1px solid #fff;
}

.note .hamburger-lines .lines {
    background-color: #0091D6;
}

.bili .hamburger-lines .lines {
    background-color: #008080;
}

main {
    display: flex;
    flex: 1;
    max-width: 1920px;
    width: 100%;
    height: 100%;
    margin-top: 70px;
}

aside {
    color: #f0f9f5;
    flex: 1;
    padding: 1vw;
    min-width: 20%;
    font-size: 1rem;
}

.hidden {
    float: left;
    position: absolute;
    left: -20000rem;
    display: none;
    visibility: hidden;
}

.infoElse {
    width: 100%;
    margin: 0 0 2vw;
}

.infoElse p {
    padding: .5vw 1vw;
    border-radius: .25rem;
}

.infoElse p.odd {
    background-color: #1777af;
}

.infoElse p.even {
    background-color: #1d5e89;
}

#aside-links {
    background-color: #193043;
    border-radius: .25rem;
}

#aside-links p {
    color: #193043;
    background-color: #f0f9f5;
    border-radius: .25rem;
}

#aside-links a {
    text-decoration: none;
    background-color: #193043;
}

#aside-links a p,
#aside-links a:visited p {
    color: #f0f9f5;
}

#aside-links p.odd,
#aside-links a,
#aside-links a:visited {
    background-color: #1d4765;
    margin-top: .5rem;
}

#aside-links p.even,
#aside-links a,
#aside-links a:visited {
    background-color: #1d4765;
    margin-top: .5rem;
}

#aside-links a:hover p {
    color: #193043;
    background-color: #e2b89a;
    font-weight: 700;
}

.italic {
    font-style: italic;
}

.infoElse p a,
.infoElse p a:visited {
    color: #f0f9f5;
}

.infoElseHead {
    color: #193043;
    background-color: #f0f9f5;
    font-family: "Roboto", sans-serif;
    font-weight: 700;
    font-style: normal;
    border-radius: .2rem;
}

section {
    flex: 3;
    background-color: #f0f9f5;
    padding: 1vw;
    margin: 0 1vw 2vw;
    border-radius: .2rem;
}

.commentList {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.commentList h1 {
    display: block;
    padding: .5rem;
    text-align: center;
    text-shadow: 1px 1px 1px #9a9a9a;
}

.commentList h1,
h2 {
    margin: .5rem 0;
}

.hr-double {
    margin: 1rem 0;
    padding: 0;
    height: 6px;
    border: none;
    border-top: 2px solid #132c2c;
    border-bottom: 2px solid #132c2c;
}

.card-container {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    flex-grow: 1;
    max-width: 1280px;
    border-radius: .5rem;
}

.note .card-container {
    flex-wrap: wrap;
    line-height: 100%;
    justify-content: space-evenly;
    max-width: 1080px;
}

.note .card-container a {
    text-decoration: none;
}

.note .card-item {
    max-width: 180px;
    border-radius: .75rem;
    margin: 5px;
    background-color: #b7d4d3;
}

.card-img {
    display: flex;
    margin: 1vw;
    position: relative;
    border: 3px solid #132c2c;
    border-radius: .5rem;
    height: 320px;
    overflow: hidden;
}

.note .card-img {
    border: none;
    margin: 5px;
    height: 180px;
    flex-wrap: wrap;
}

.bili .card-img {
    min-width: 360px;
    border: none;
    width: 100%;
    margin: .5rem 0;
}

.card-img img {
    display: inline-block;
    border-radius: .5rem;
    object-fit: cover;
    width: 100%;
    height: 100%;
    vertical-align: middle;
}

.card-text {
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    margin: .5rem 1rem;
    border-radius: .5rem;
}

.card-text a {
    text-decoration: none;
}

.note .card-text {
    font-size: .8em;
    margin: 5px;
}

.card-text p {
    border-radius: .5rem;
    margin-bottom: 0;
    padding: .5rem;
    overflow: hidden;
}

.bili .card-text p {
    margin-bottom: .25rem;
}

.card-text p:nth-child(odd) {
    background-color: #b7d4d3;
}

.card-text p:nth-child(even) {
    background-color: #dbe9e9;
}

.card-text .price {
    font-weight: 700;
}

.card-text .address {
    font-style: italic;
}

.youtubelink,
.rfnlink,
.bushlink {
    position: relative;
    max-width: 960px;
    align-self: stretch;
    line-height: 125%;
}

.youtubelink a,
.rfnlink a,
.bushlink a {
    color: #000;
    display: block;
    padding: 0 0 0 60px;
}

.youtubelink::before,
.rfnlink::before,
.bushlink::before {
    display: inline-block;
    margin-right: 15px;
    position: absolute;
    top: 15px;
    left: 15px;
}

.youtubelink::before {
    content: url('https://bushurov.group/images/yutub_60bnucjl0lnn_32.png');
    width: 32px;
    height: 32px;
}

.rfnlink::before {
    content: url('https://bushurov.group/images/rfnlogo_40.png');
    width: 40px;
    height: 40px;
}

.bushlink::before {
    content: url('https://bushurov.group/images/logo-40-FF-0091D6.png');
    width: 40px;
    height: 40px;
}

.card-links {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    max-width: 960px;
}

.card-links a,
a:visited {
    color: #000;
    margin-bottom: 1rem;
}

.card-links p {
    margin-top: 1rem;
}

.com-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 10px 5px;
    width: 100%;
    max-width: 1280px;
}

.com-text {
    padding: 1vw 0;
    max-width: 960px;
    align-self: center;
}

.com-text p a,
p a:visited {
    color: #000;
}

table,
tbody,
td,
tfoot,
th,
thead,
tr {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    vertical-align: top;
}

table {
    display: table;
    border-collapse: collapse;
    border-spacing: 0;
    width: 90%;
    margin-top: 1rem;
}

tr {
    display: table-row;
    vertical-align: inherit;
    border-color: inherit;
}

td,
th {
    display: table-cell;
    vertical-align: inherit;
    border-color: inherit;
}

table {
    border: 4px solid #999;
    margin-bottom: 0.5rem;
}

td,
th {
    padding: 0.5rem;
    background-color: #f7fbff;
}

td {
    border: 2px solid #999;
}

th {
    border: 3px solid #999;
    vertical-align: middle;
    font-weight: 700;
}

.card-links td:first-child {
    width: 20%;
}

.com-img {
    margin: 1vw 0;
    position: relative;
}

.com-img img {
    display: block;
    max-width: 100%;
}

.com-img-text {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
    padding: 0 2rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: .5rem;
    color: #f0f9f5;
    opacity: 0;
    max-height: 100%;
    line-height: 120%;
    z-index: 1;
}

.com-img-text::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(180deg, rgba(21, 22, 24, 0.24) 0%, #151618 100%);
    z-index: -1;
    opacity: 0;
    transition-property: opacity;
}

.com-img-text,
.com-img-text::before {
    transition: opacity .3s ease-in-out;
}

.com-img-text h2 {
    display: -moz-box;
    display: -webkit-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 1;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
    overflow: hidden;
}

.com-img-text p {
    display: -moz-box;
    display: -webkit-box;
    -moz-box-orient: vertical;
    -moz-line-clamp: 3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

@media (hover: hover) {

    .card-img:hover .com-img-text,
    .card-img:hover .com-img-text::before,
    .com-img:hover .com-img-text,
    .com-img:hover .com-img-text::before {
        opacity: 1;
        border-radius: .5rem;
        transition: opacity .3s ease-in-out;
    }
}

footer {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    color: #f0f9f5;
    width: 100%;
    padding: 2vw;
    font-size: .77778rem;
    line-height: 120%;
}

footer p {
    display: block;
    flex-grow: 1;
    width: 90%;
    text-align: center;
    font-style: normal;
    max-width: 1280px;
    padding: 1rem 0;
}

footer p a,
footer p a:visited {
    color: #f0f9f5;
    font-size: 1rem;
}

@media (hover: hover) {

    footer p a:hover,
    .infoElse p a:hover {
        color: #e2b89a;
        font-weight: 700;
    }

    .card-text p a:hover {
        font-weight: 700;
    }
}

@media all {
    .navbar .hamburger-lines {
        display: none;
    }

    .navbar input[type="checkbox"] {
        opacity: 0;
    }
}

@media screen and (min-width: 1921px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.77778rem;
    }

    aside,
    footer {
        font-size: 1.55555rem;
    }

    .com-img-text {
        font-size: .7em;
        padding: 0 .75rem .5rem;
    }

    header {
        height: 200px;
        padding: 10px 25px;
    }

    .logo {
        height: 160px;
        width: 160px;
    }

    main {
        margin-top: 140px;
    }

    .mainHeaderName {
        font-size: 3.33333rem;
    }

    .card-img {
        max-width: 600px;
    }
}

@media screen and (min-width: 1601px) and (max-width: 1920px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.55555rem;
    }

    aside,
    footer {
        font-size: 1.44444rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1rem .5rem;
    }

    header {
        height: 190px;
        padding: 10px 20px;
    }

    .logo {
        height: 170px;
        width: 170px;
    }

    main {
        margin-top: 135px;
    }

    .mainHeaderName {
        font-size: 3rem;
    }

    .card-img {
        max-width: 560px;
    }
}

@media screen and (min-width: 1281px) and (max-width: 1600px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.44444rem;
    }

    aside,
    footer {
        font-size: 1.33333rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1rem .5rem;
    }

    header {
        height: 180px;
        padding: 10px 20px;
    }

    .logo {
        height: 160px;
        width: 160px;
    }

    main {
        margin-top: 125px;
    }

    .mainHeaderName {
        font-size: 2.66667rem;
    }

    .card-img {
        max-width: 520px;
    }
}

@media screen and (min-width: 1081px) and (max-width: 1280px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.33333rem;
    }

    aside,
    footer {
        font-size: 1.22222rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1.5rem .5rem;
    }

    header {
        height: 170px;
        padding: 5px 15px;
    }

    .logo {
        height: 150px;
        width: 150px;
    }

    main {
        margin-top: 117px;
    }

    .mainHeaderName {
        font-size: 2.44444rem;
    }

    .card-img {
        max-width: 460px;
    }
}

@media screen and (min-width: 961px) and (max-width: 1080px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.22222rem;
    }

    aside,
    footer {
        font-size: 1.16667rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1.5rem .5rem;
    }

    header {
        height: 160px;
        padding: 5px 15px;
    }

    .logo {
        height: 140px;
        width: 140px;
    }

    main {
        margin-top: 108px;
    }

    .mainHeaderName {
        font-size: 2.33333rem;
    }

    .card-img {
        max-width: 400px;
    }
}

@media screen and (min-width: 800px) and (max-width: 960px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.16667rem;
    }

    aside,
    footer {
        font-size: 1.11111rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1.5rem .5rem;
    }

    header {
        height: 150px;
        padding: 5px 15px;
    }

    .logo {
        height: 130px;
        width: 130px;
    }

    main {
        margin-top: 100px;
    }

    .mainHeaderName {
        font-size: 2.22222rem;
    }

    .commentList h1 {
        font-size: 1.55555rem;
    }

    .card-text {
        font-size: 1.11111rem;
        line-height: 120%;
    }

    .card-img {
        max-width: 360px;
    }
}

@media screen and (min-width: 641px) and (max-width: 799px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1.11111rem;
    }

    aside,
    footer {
        font-size: 1rem;
    }

    .com-img-text {
        font-size: .8em;
    }

    header {
        height: 140px;
        padding: 5px 15px;
    }

    .logo {
        height: 120px;
        width: 120px;
    }

    main {
        margin-top: 90px;
    }

    .mainHeaderName {
        font-size: 2rem;
    }

    .commentList h1 {
        font-size: 1.44444rem;
    }

    .card-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .note .card-container {
        flex-direction: row;
    }

    .card-img {
        max-width: 800px;
        align-self: center;
    }

    .card-img img {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 10px;
        width: 100%
    }

    .card-text {
        margin: 1vw;
        align-self: center;
    }
}

@media screen and (max-width: 640px) {

    body,
    .mainHeaderAddress,
    footer p a {
        font-size: 1rem;
    }

    aside,
    footer {
        font-size: 1rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 2rem 1rem 2rem;
    }

    .commentList h1 {
        font-size: 1.33333rem;
    }

    main {
        flex-direction: column;
        margin-top: 98px;
    }

    .card-container {
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .note .card-container {
        flex-direction: row;
    }

    .card-img {
        max-width: 800px;
        align-self: center;
    }

    .card-img img {
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        border-radius: 10px;
        width: 100%
    }

    .card-text {
        margin: 1vw;
        align-self: center;
    }

    section {
        order: -1;
    }

    .navbar {
        top: 15px;
    }

    .nav_links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 105px;
        left: -150px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-10rem);
        transition-property: opacity, visibility, transform;
        transition-duration: .5s;
        transition-timing-function: ease-in-out;
    }

    .nav_links li {
        margin: 5px 10px;
        text-align: center;
        font-size: 1.33333rem;
    }

    .nav_links li a {
        padding: 18px 8px;
        border: 3px solid #f0f9f5;
        width: 100%;
        min-width: 180px;
    }

    @media (hover: hover) {
        .nav_links li a:hover {
            padding: 18px 8px;
            background-color: #f0f9f5;
        }

        .note .nav_links li a:hover {
            color: #0091D6;
            border: 3px solid #0091D6;
        }

        .bili .nav_links li a:hover {
            color: #008080;
            border: 3px solid #008080;
        }
    }

    .navbar input[type="checkbox"]:checked~.nav_links {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .navbar input[type="checkbox"]:checked~.nav_links li a {
        padding: 18px 8px;
    }

    .navbar .hamburger-lines {
        position: sticky;
        top: 10px;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hamburger-lines .lines1 {
        transform-origin: 0 0;
        transition: 0.3s ease-out;
    }

    .hamburger-lines .lines3 {
        transform-origin: 0 100%;
        transition: 0.3s ease-out;
    }

    .navbar input[type="checkbox"]:checked~.hamburger-lines .lines1 {
        transform: rotate(45deg);
    }

    .navbar input[type="checkbox"]:checked~.hamburger-lines .lines2 {
        display: none;
    }

    .navbar input[type="checkbox"]:checked~.hamburger-lines .lines3 {
        transform: rotate(-45deg);
    }
}

@media screen and (max-width: 510px) {

    body,
    footer p a {
        font-size: 1rem;
    }

    aside,
    footer {
        font-size: 1rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 2rem 1rem;
    }

    .mainHeaderText {
        min-width: 150px;
        padding: 0 0 10px 25px;
        line-height: 120%;
    }

    .mainHeaderName {
        font-size: 1.44444rem;
    }

    .mainHeaderAddress {
        font-size: 0.88889rem;
    }

    .nav_links {
        top: 120px;
        left: -170px;
    }
}

@media screen and (max-width: 440px) {

    body,
    footer p a {
        font-size: 1.11111rem;
    }

    aside,
    footer {
        font-size: 1rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1.5rem .5rem;
    }

    .mainHeaderText {
        min-width: 150px;
        padding: 0 0 10px 15px;
    }

    .mainHeaderName {
        font-size: 1.33333rem;
    }

    .mainHeaderAddress {
        font-size: 0.88889rem;
    }

    .nav_links {
        top: 120px;
        left: -160px;
    }
}

@media screen and (max-width: 360px) {

    body,
    footer p a {
        font-size: 1.11111rem;
    }

    aside,
    footer {
        font-size: .88889rem;
    }

    .com-img-text {
        font-size: .8em;
        padding: 0 1.5rem .5rem;
    }

    .mainHeaderText {
        min-width: 160px;
        padding: 0 0 10px 15px;
    }

    .mainHeaderName {
        font-size: 1.11111rem;
    }

    .mainHeaderAddress {
        font-size: 0.77778rem;
    }

    .nav_links {
        top: 120px;
        left: -160px;
    }
}

@media screen and (max-width: 320px) {
    .mainHeaderName {
        font-size: 1rem;
    }
}

@media print {

    body,
    #wrapper,
    section {
        margin: 0;
        padding: 0;
        border: 0;
        font-family: "Roboto Slab", serif;
        font-size: 16px;
        line-height: 120%;
        color: #000;
        background-color: #fff;
    }

    header,
    nav,
    .com-video video,
    aside,
    footer {
        float: left;
        position: absolute;
        left: -20000rem;
        display: none;
        visibility: hidden;
    }

    main {
        display: flex;
        flex: 1;
        flex-direction: column;
        width: 90vw;
        height: 100%;
        margin: 20pt 30pt 20pt 60pt;
    }

    .com-img img {
        padding: 5px;
        border: 1px solid #999;
        width: 90vw;
        page-break-inside: avoid;
        page-break-after: avoid;
        display: inline-block;
    }
}

/* ==========================================================================
   Мобильная защита — добавляем только в конец файла
   ========================================================================== */

/* Всегда ограничиваем медиа-элементы */
img, video, iframe, .com-img img, .card-img img {
  max-width: 100%;
  height: auto;
}

/* Убираем жёсткую высоту только на узких экранах */
@media (max-width: 768px) {
  .card-img {
    height: auto !important;
    min-height: 140px;
    aspect-ratio: 4 / 3;          /* подгони под свои фото — 4/3, 16/10, 1/1 и т.д. */
  }

  .note .card-img {
    height: auto !important;
    min-height: 120px;
    aspect-ratio: 5 / 4;
  }

  .com-video video,
  .youtubelink iframe,
  .rfnlink iframe {
    aspect-ratio: 16 / 9;
    height: auto;
  }

  /* Заставляем контейнеры карточек переноситься */
  .card-container {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 10px 5px;
  }

  .note .card-container {
    justify-content: space-evenly;
  }

  /* Карточки не должны быть шире экрана */
  .card-item {
    max-width: 100%;
    min-width: 0;
    flex: 1 1 45%;               /* на очень узких станет колонкой */
    box-sizing: border-box;
  }

  /* Таблицы — если есть — не вылезают */
  table {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    display: block;
  }

  /* Основной контент не шире экрана */
  main, section, .com-container, .com-text {
    max-width: 100vw;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  /* Фото-галерея (если изображения идут друг под другом) */
  .com-img {
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
  }
}

/* Дополнительная страховка от вылезания на сверхузких экранах */
@media (max-width: 480px) {
  .card-item {
    flex: 1 1 100%;
  }

  aside {
    min-width: 100%;
    padding: 10px 5px;
  }

  .infoElse p {
    padding: 8px 10px;
  }
}

/* Если после всего этого всё равно есть скролл — ищем виновника */
html, body {
  overflow-x: hidden;           /* уже есть, но на всякий случай дублируем */
}

/* ==========================================================================
   Защита для возвращаемой карты
   ========================================================================== */

.map-container {
  margin: 1.5rem 0;
  max-width: 100%;
  overflow: hidden;
}

.map-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin-bottom: 0.8rem;
  color: #333; /* или под твой стиль */
  text-align: center;
}

.map-container iframe {
  width: 100%;
  height: 400px;               /* десктоп */
  border: none;
  aspect-ratio: 16 / 9;        /* базовая пропорция */
}

/* Мобильная адаптация */
@media (max-width: 768px) {
  .map-container iframe {
    height: 300px;             /* меньше на планшетах */
  }
}

@media (max-width: 480px) {
  .map-container iframe {
    height: 250px;             /* компактно на телефонах */
  }
  .map-title {
    font-size: 1.1rem;
  }
}