@font-face {
    font-family: Science Gothic;
    src: url(/static/fonts/ScienceGothic.woff2);
}

@font-face {
    font-family: Ubuntu;
    src: url(/static/fonts/Ubuntu-Regular.woff2);

}

*[href="#"] {
    color: #bebebe !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Ubuntu;
}

:root {
    --white-color: #f8faf8;
    --accent-color: #009846;
    --accent-darker-color: #007637;

    --text-color: #1b201b;
    --muted-color: #5b655b;
    --bebebe-color: #bebebe;
    --pickme-color: hotpink;

    --header-height: 98px;
}

body::before {
    z-index: -1;
    content: "";
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background-image: url("/static/images/back-comp.png");
    /*background-size: 25vw;
    background-repeat: repeat;*/
    opacity: 0.2;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}


/*====================== общие ==========================*/
input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 20px;
    color: var(--white-color);
    -webkit-text-fill-color: var(--white-color);
    padding: 10px 10px 10px 20px;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}


iframe {
    width: 100%;
    height: 100%;
    flex: 1;
    border: none;
}

table {
    width: 800px;
    border-width: 0;
}

.table-head {
    font-weight: bold;
}

.table_container {
    border: 2px dashed var(--accent-color);
    width: fit-content;
    padding-top: 0;
}

tr:not(:first-child) td {
  padding-top: 20px;
}
tbody td {
    width: 50px;
    height: 50px;
    border-width: 0;
}

.row,
.column {
    display: flex;
    flex-direction: row;
}

.column {
    flex-direction: column;
}

.interactive:hover {
    color: var(--accent-darker-color);
    cursor: pointer;
    user-select: none;
    fill: var(--accent-darker-color);
}

.about_menu {
    position: sticky !important;
    top: 10px !important;
    width: 500px !important;
    padding: 0px !important;
}

#flip_container {
    flex-direction: row !important;
    padding: 0 !important;
}

/*====================== шапка ==========================*/
header {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    backdrop-filter: blur(10px) opacity(70%);
}

.logo {
    align-items: center;
    gap: 30px;
}

.logo-img {
    max-width: 66px;
    max-height: 78px;
}

.logo-title {
    color: var(--accent-color);
    font-size: 30px;
    font-family: Science Gothic;
    line-height: 31px;
}

.accent-letters {
    color: var(--accent-darker-color);
    font-family: Science Gothic;
}

nav ul {
    gap: 20px;
}

nav label {
    color: var(--accent-color);
}

.nav-menu {
    justify-content: center;
    gap: 10px;
}

.nav-menu-upper {
    align-items: center;
    justify-content: end;
    gap: 20px;
}

.nav-menu-search {
    background: var(--accent-color);
    align-items: center;
    border-radius: 5px;
}

.nav-menu-search svg {
    margin-right: 10px;
}

#yearold {
    text-align: center;
    color: var(--accent-darker-color);
    display: flex;
    margin-left: 15px;
    color: var(--pickme-color) !important;

}

#yearold_num {
    font-size: 7cqh;
}

#yearold_str {
    font-size: 3cqh;
    align-self: end;
    transform: translateY(-9px);
}

#hamburger {
    display: none;
}

/*====================== меню ==========================*/
menu {
    z-index: 999;
    background: #fff;
    width: 100vw;
    height: 100dvh;
    position: fixed;
    left: 0;
    top: 0;
    transform: translateY(-100%);
    opacity: 0;
    transition: opacity .3s ease,transform .2s ease-out
}

.menu-checkbox {
    display: none;
}

.menu-checkbox:checked ~ menu {
    opacity: 1;
    transform: translateY(0vh);
}

menu .logo-title {
    color: var(--white-color);
}

menu header {
    background: transparent;
}

#close-btn-menu {
    position: absolute;
    right: 26px;
    top: 30px;
}

.menu-items {
    background: var(--accent-color);
}


.menu-items-list {
    color: var(--white-color);
    font-size: 24px;
    align-self: center;
    gap: 40px;
    margin-top: 50px;
    opacity: 1;
    transform: translateY(-300%);
    transition: opacity 1s ease, transform 0.3s ease;
}

.menu-checkbox:checked ~ menu .menu-items-list {
    opacity: 1;
    transform: translateY(0);

}

.menu-items-list li:hover {
    text-decoration: underline;
    user-select: none;
    cursor: pointer;
}

.menu-subitems {
    flex: 1;
    font-size: 24px;
    justify-content: space-between;
}

.menu-subitems-header {
    min-height: 98px;
    background: var(--white-color);
    justify-content: space-between;
    align-items: center;
    padding: 0 100px;
}

.menu-subitems-title {
    color: var(--accent-color);
    text-transform: uppercase;
    font-family: "Times New Roman", Times, serif;
    font-size: 30px;
}

#menu-subitems-content {
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
    padding: 50px 100px;
    opacity: 0;
    transform: translateY(-300%);
    transition: opacity 1s ease, transform 0.3s ease;
}

.menu-checkbox:checked ~ menu #menu-subitems-content {
    opacity: 1;
    transform: translateY(0);
}

.menu-subitem {
    color: var(--text-color);
    transition: color 0.2s;
    text-wrap: wrap;
}


/*====================== контент ==========================*/
main {
    width: 1280px;
    margin: 20px auto;
    line-height: 23px;
}

#main_container {
    background-color: var(--white-color);
    border-radius: 5px;
    border: 1px solid var(--accent-color);
}


/*====================== подвал ==========================*/
footer {
    width: 100%;
    height: 100vh;
    background: var(--accent-color);
    color: var(--white-color);
    justify-content: space-between;
    align-items: center;
    padding: 20px 100px;
}

footer a {
    color: var(--white-color) !important;
    /*font-size: 140% !important;*/
}

#footer_column{
    width: 100%;
    gap: 10px;

}

.footer-title {
    font-family: Science Gothic;
    font-size: 5vw;
    white-space: nowrap;
}

#footer-nav {
    align-self: stretch;
    justify-content: space-between;
    font-size: 15px;
    gap: 10px;
}

#footer-nav li {
    gap: 15px;
}

#footer-nav li a {
    color: var(--white-color);
}

#footer-nav li a:hover {
    text-decoration: underline solid 2px;
}

.footer-info {
    display: flex;
    flex-direction: row;
    align-self: stretch;
    justify-content: space-between;

    font-size: 15px;
    /*line-height: 40px;*/
    align-items: start;
    text-align: center;
}

.footer-logo-info {
    display: flex;
    flex-direction: row;
    gap: 30px;
    text-align: start;
}

.footer-licence {
    text-align: center;
    align-self: center;
    font-size: 15px;
    color: var(--bebebe-color);
}


/*====================== страничность ==========================*/
.pagination {
    position: sticky;
    bottom: 20px;
    margin: 20px auto 0 auto;
    max-width: 80%;
    box-sizing: border-box;
    padding: 10px 10px;
    background: var(--white-color);
    border-radius: 10px;
    overflow-x: auto;
    display: flex;
    flex-direction: row;
    gap: 10px;
    box-shadow: 0px 2px 5px 1px var(--text-color);
}

.pagination .item_sep,
.pagination .page_num {
    user-select: none;
    -webkit-user-select: none;
    font-size: 15px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    padding: 5px;
    box-sizing: border-box;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination .page_num {
    cursor: pointer;
    transition: font-size 0.3s ease-out;
}

.pagination .page_num[selected] {
    color: var(--white-color);
    background: var(--accent-color);
    font-size: 18px;
}

.pagination .page_num:not([selected]):hover {
    font-size: 18px;
}


/*====================== новости ==========================*/
#news_container {
    margin-bottom: 20px;
}

#news {
    flex-direction: row;
    align-items: center;
    padding: 0 !important;
}

#news_items {
    align-items: stretch;
    padding: 0 !important;
    gap: 30px;
}

.news_item {
    cursor: pointer;
    flex: 1;
    padding: 0 !important;
    background-color: var(--white-color);
    transition: transform 0.3s ease-out;
    border-radius: 5px;
}

.news_item *[data-component="text"] {
    display: -webkit-box;
    line-clamp: 3;
    box-orient: vertical;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.4s ease-out;
    text-align: left;
    padding: 0 5px;
}

.news_item:hover {
    transform: translateY(-5px);
}

.news_item:hover *[data-component="text"] {
    color: var(--accent-color);
}

.news_item img {
    object-fit: cover;
    width: 100%;
    height: 238px;
    border-radius: 5px;
}

#btn_all_news>div {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    width: fit-content;
    font-size: 20px;
    color: var(--accent-color);
    padding: 0;
    padding-left: 20px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 40px;
    row-gap: 55px;
    padding: 0 50px;
}


/*====================== ПЛАНШЕТЫ АДАПТИВНОСТЬ ==========================*/
@media screen and (width < 1280px) {
    main {
        width: 90%;
    }

    #yearold, #info_link {
        display: none;
    }

    body::before {
        background-size: 100vw;
    }

    #news_items>*:not(:nth-child(-n+2)) {
        display: none;
    }

    footer {
        gap: 30px;
        padding: 20px;
        height: auto;
    }

    #footer_column{
        flex: 1;
        justify-content: space-between;
        gap: 30px;
    }

    #footer-nav {
        display: none;
    }

    .footer-info {
        margin: 0;
        align-items: center;
        justify-content: space-evenly;
    }
    .footer-logo-info{
        justify-content: center;
        font-size: 20px;
    }


    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table_container {
        width: 100%;
        overflow-x: auto;
    }

    #flip_container {
        flex-direction: column-reverse !important;
    }

    .about_menu {
        position: static !important;
        width: 100% !important;
    }

    #double {
        flex-direction: row !important;
    }

    #contacts_row {
        flex-direction: column !important;
    }

    .adaptive-column {
        flex-direction: column !important;
    }
}

/*====================== МЕНЮ АДАПТИВНОСТЬ ==========================*/
@media screen and (width < 1280px) {
    nav, .nav-menu-search {
        display: none;
    }

    #hamburger {
        display: block;
    }

    .menu-subitems {
        display: none;
        width: 100%;
    }

    .menu-items {
        flex: 1;
    }

    #close-btn-menu {
        z-index: 1001;
    }

    #close-btn-menu svg {
        fill: var(--white-color);
    }
}


/*====================== МОБИЛЬНИК АДАПТИВНОСТЬ ==========================*/
@media screen and (width < 480px) {
    body::before {
        background-size: 100vw;
    }

    main {
        width: 100%;
    }

    header {
        padding: 30px 10px;
    }

    header .logo-title {
        font-size: 15px;
        line-height: 15px;
    }

    header .logo img {
        display: none;
    }

    *[data-component="container"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    *[data-component="title1"] {
        font-size: 9vw;
    }

    #menu-subitems-content,
    .menu-subitems-header  {
        padding: 20px;
    }

    main {
        padding-left: 15px;
        padding-right: 15px;
        margin-top: 0;
    }

    #main_container {
        padding: 10px !important;
        border: none;
    }

    #main_screen {
        padding-bottom: 0;
    }

    .news_items {
        flex-wrap: wrap;
    }

    #news_items>*:not(:first-child) {
        display: none;
    }

    #news {
        flex-direction: column;
    }

    .grid {
        display: flex;
        flex-direction: column;
        padding: 0;
    }

    .pagination {
        max-width: 100%;
        gap: 0;
    }

    .pagination .page_num,
    .pagination .item_sep {
        font-size: 12px;
        width: 30px;
        height: 30px;
    }

    .footer-info {
        flex-direction: column;
          gap: 50px;
    }

    .footer-logo-info {
        text-align: center;
    }

    .footer-logo-info img {
        display: none;
    }
}
