@media screen and (max-width: 1300px) {

 
}
@media screen and (max-width: 1200px) {
 
}

@media screen and (max-width: 1024px) {
    body {
        overflow-x: hidden;
    }

    .container {
        max-width: 100%;
    }

    .main_video video {
        height: auto;
    }
        .main_video {
        height: auto;
    }
    .contact_footer_2 {
        display: block;
    }
    
    .promo {
        display: block;
    }
    
    section.section_footer {
        font-size: 24px;
    }
    .tv_progtamm {
        display: block;
    }
    .about_in {
        display: block;
    }
    
    .tv_live_2 {
        width: 100%;
        padding-right: 0;
    }
    
    .tv_live_2 img {
        max-width: 100%;
    }
    
    .about {
        font-size: 18px;
        line-height: 35px;
    }
    .tv_live_2.contact_map {
        width: 100%;
    }
    .quoest {
    grid-template-columns: 1fr 1fr !important;
}

.quoest .quoest_detal:nth-child(1) {
    grid-column: 1 / span 2;
}
.quotes-list .quoest_detal:nth-child(1) {
    grid-template-columns: 1fr !important;
}
.quotes-list .quoest_detal:nth-child(1) img {
    grid-row: auto;
    margin-bottom: 24px;
}
.quotes-list .quoest_detal:nth-child(1) .name_quote {
    grid-column: 1;
}
    .fakt.projectinpage {
    grid-template-columns: 1fr 1fr !important;
}

.fakt.projectinpage .fakkt_detal.project img {
    height: 280px;
}

.fakt.projectinpage:not(.project-list) .fakkt_detal.project img {
    height: auto;
    max-width: 260px;
}

.content_page,
.entry-content,
.about {
    word-break: normal;
    overflow-wrap: anywhere;
}

.content_page iframe,
.entry-content iframe,
.line_main iframe {
    width: 100%;
    max-width: 100%;
}
}

@media screen and (max-width: 768px) {
    section.section_tv {
        min-height: auto;
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .logo img {
        width: 88px;
    }

    .hidden-menu {
        padding: 78px 24px 30px;
        overflow-y: auto;
    }

    ul.hidden-menu a {
        display: block;
        line-height: 1.35;
        padding: 10px 0;
        font-size: 20px;
    }

    h1.entry-title {
        padding-left: 112px;
        font-size: 34px;
        line-height: 1.12;
    }

    .swiper-slide-active .promo_video:before {
    content: none;
}
.promo_video:before {
    content: none;
}
  
    .swiper-slide.swiper-slide-next video {
    transform: none;
}
    .line_main iframe {
        height: 200px;
    }

    .about_in {
        padding-top: 35px;
    }

    .about {
        font-size: 18px;
        line-height: 1.7;
    }

    .content_page {
        margin-top: 30px;
        line-height: 1.65;
    }

    .content_page img,
    .entry-content img,
    .about_in img {
        max-width: 100%;
        height: auto;
    }

    section.section_tv.page_project_in img {
        width: 100%;
        margin-top: 28px;
    }

    .content_page iframe,
    .entry-content iframe {
        height: 220px;
    }

    ul#myTab {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1px;
        flex-wrap: wrap;
    }

    ul#myTab li button {
        min-height: 54px;
        font-size: 15px;
        line-height: 1.2;
        padding: 10px 8px;
        white-space: normal;
    }

    div#myTabContent {
        padding: 22px 0 0;
        overflow-x: auto;
    }

    div#myTabContent table {
        min-width: 620px;
    }

    div#myTabContent table tr td {
        font-size: 20px;
        line-height: 1.35;
        padding: 8px 10px;
        vertical-align: top;
    }

    div#myTabContent table tr td:nth-child(1),
    div#myTabContent table tr td:nth-child(2) {
        font-size: 16px;
        white-space: nowrap;
    }

    .quotes-list .quoest_detal:nth-child(1) .content_quote p {
        font-size: 30px;
    }
    .facts-list .quoest_detal:nth-child(1) .content_quote p {
        font-size: 24px;
    }
}

@media screen and (max-width: 500px) {
    .btn-menu {
        right: 12px;
        top: 10px;
    }

    .hidden-menu {
        width: 100%;
        left: 0;
        right: 0;
        background-color: rgba(24, 51, 75, 0.96);
    }

    ul.hidden-menu .lang {
        justify-content: flex-start;
        gap: 28px;
        margin-bottom: 18px;
    }

    ul.hidden-menu .lang a {
        color: #cbbcff;
        font-size: 18px;
        line-height: 1.2;
        padding: 0;
    }

    .hidden-menu2 {
        padding: 0;
    }

    .quoest {
    grid-template-columns: 1fr !important;
}

.quoest .quoest_detal:nth-child(1) {
    grid-column: 1 / span 1;
}
.quoest .quoest_detal:nth-child(1) img {
    width: 100%;
}
.quotes-list .quoest_detal:nth-child(1) {
    display: block;
}
.quotes-list .quoest_detal:nth-child(1) .content_quote {
    width: 100%;
    padding-left: 0;
}
.quotes-list .quoest_detal:nth-child(1) .content_quote p {
    font-size: 26px;
}
.quotes-list .quoest_detal:nth-child(1) .name_quote {
    text-align: left;
}
.fakt.projectinpage {
    grid-template-columns: 1fr !important;
}
h1.entry-title {
    margin-top: 115px;
    padding-left: 0;
    font-size: 31px;
    line-height: 1.16;
    word-break: normal;
}
section.section_copiright {display: grid;grid-template-columns: 1fr;}

.copiright_left {order: 1;margin-top: 10px;}

.copiright_right {
    display: block;
    text-align: center;
    line-height: 35px;
}
.fakt {
    grid-template-columns: 1fr;
    grid-gap: 34px;
    margin-top: 34px;
}

.fakkt_detal {
    display: block;
}

.fakt_left {
    width: 100%;
    padding-right: 0;
    text-align: left;
}

.fakt_left img {
    height: 250px;
}

.fakt_left h3 {
    font-size: 22px;
    line-height: 1.25;
}

.fakt_right {
    width: 100%;
}
.quoest .quoest_detal:nth-child(1) .content_quote {
    width: 100%;
    padding: 0;
}

.quoest .quoest_detal:nth-child(1) .content_quote:before {
    left: auto;
    right: 0;
}
ul.hidden-menu {
    width: 100%;
}

.fakt.projectinpage .fakkt_detal.project img {
    height: 240px;
}

.fakt.projectinpage:not(.project-list) .fakkt_detal.project img {
    height: auto;
    max-width: 245px;
}

.fakt.projectinpage .fakt_left h3 {
    font-size: 21px;
}

.fakt.projectinpage .fakt_left p {
    font-size: 15px;
}

.quoest_detal {
    margin-top: 34px;
}

.quoest_detal img {
    height: 230px;
}

.quoest_detal p {
    font-size: 18px;
    line-height: 1.45;
}

.name_quote h3 {
    font-size: 18px;
    line-height: 1.28;
}

.name_quote p {
    font-size: 15px !important;
    line-height: 1.45;
}

.facts-list .quoest_detal:nth-child(1) .content_quote p {
    font-size: 22px;
}

.about {
    font-size: 17px;
    line-height: 1.65;
}

.content_page .wp-content-block,
.entry-content {
    font-size: 16px;
    line-height: 1.65;
}

.content_page iframe,
.entry-content iframe,
.line_main iframe {
    height: 190px;
}

ul#myTab {
    grid-template-columns: 1fr;
    margin-top: 34px;
}

ul#myTab li button {
    min-height: 46px;
    font-size: 16px;
}

div#myTabContent table tr td {
    font-size: 18px;
}

.wp-pagenavi {
    flex-wrap: wrap;
    margin-top: 30px;
}

.wp-pagenavi a,
.wp-pagenavi span {
    margin: 4px;
}
}

/* Django mobile-first correction layer */
@media screen and (max-width: 1024px) {
  html,
  body {
    width: 100%;
    overflow-x: hidden;
  }

  .section_tv {
    background-size: cover;
  }

  .page-projects .project-index-grid,
  .page-project-list .project-list-grid,
  .page-facts-quotes .quoest {
    gap: 28px;
  }

  .page-project-list .project-list-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  .page-project-list .project-list-grid .fakkt_detal.project img {
    height: auto;
  }

  .page-text .entry-content,
  .page-detail .content_page {
    max-width: 100%;
  }
}

@media screen and (max-width: 768px) {
  .header {
    left: 15px;
  }

  .logo img {
    width: 88px;
  }

  .main_video,
  .main_video video {
    min-height: 100dvh;
    height: 100dvh;
  }

  .main_video video {
    object-fit: cover;
    object-position: center;
  }

  section.section_tv {
    min-height: 100dvh;
    padding-top: 128px;
    padding-bottom: 56px;
  }

  h1.entry-title {
    margin: 0 0 32px;
    padding-left: 0;
    max-width: calc(100% - 72px);
    font-size: 34px;
    line-height: 1.12;
  }

  .btn-menu {
    top: 14px;
    right: 14px;
  }

  .hidden-menu {
    width: min(420px, 100vw);
    padding: 82px 28px 32px;
    background-color: rgba(1, 51, 84, 0.96);
    overflow-y: auto;
  }

  ul.hidden-menu .lang {
    justify-content: flex-start;
    gap: 28px;
    margin-bottom: 20px;
  }

  ul.hidden-menu a {
    display: block;
    padding: 9px 0;
    line-height: 1.25;
    font-size: 20px;
  }

  .page-projects .project-index-grid,
  .page-project-list .project-list-grid,
  .page-facts-quotes .quoest {
    grid-template-columns: 1fr !important;
    margin-top: 0;
  }

  .page-projects .project-index-grid {
    gap: 44px;
  }

  .page-projects .project-index-grid .fakt_left img {
    max-width: min(72vw, 280px);
  }

  .page-project-list .project-list-grid .fakt_left {
    text-align: left !important;
  }

  .page-project-list .project-list-grid .fakt_left img {
    width: 100%;
    max-width: none;
    border-radius: 4px;
  }

  .page-project-list .project-list-grid .fakt_left h3 {
    font-size: 21px;
    margin: 16px 0 10px;
  }

  .page-facts-quotes .quoest_detal,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) {
    display: block;
    grid-column: auto;
    margin-top: 0;
  }

  .page-facts-quotes .quoest_detal + .quoest_detal {
    margin-top: 44px;
  }

  .page-facts-quotes .quoest_detal img,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) img {
    float: none;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0 0 18px;
    object-fit: cover;
  }

  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .content_quote,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .name_quote {
    float: none;
    width: 100%;
    padding-left: 0;
    text-align: left;
  }

  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .content_quote:before {
    display: none;
  }

  .page-facts-quotes .content_quote p,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .content_quote p,
  .quotes-list .quoest_detal:nth-child(1) .content_quote p,
  .facts-list .quoest_detal:nth-child(1) .content_quote p {
    font-size: 24px;
    line-height: 1.35;
  }

  .page-facts-quotes .name_quote h3,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .name_quote h3 {
    font-size: 22px;
    line-height: 1.25;
  }

  .page-text .entry-content,
  .page-detail .content_page {
    margin-top: 0;
  }

  .page-text .entry-content p,
  .page-detail .content_page p,
  .content_page .wp-content-block {
    font-size: 17px;
    line-height: 1.7;
  }

  .page-text .entry-content iframe,
  .page-detail .content_page iframe,
  .line_main iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .about_in,
  .tv_progtamm {
    display: block;
    padding: 0;
  }

  .tv_live_2,
  .tv_live_2.contact_map,
  .tv_live,
  .about {
    width: 100%;
    padding-right: 0;
  }

  .about {
    font-size: 17px;
    line-height: 1.7;
  }

  .tv_live_2 img,
  .tv_live_2.contact_map img,
  .about_in img {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .page-tv-program #myTab {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 0;
  }

  .page-tv-program #myTab li button {
    min-height: 52px;
    padding: 10px 8px;
    font-size: 15px;
    line-height: 1.2;
    white-space: normal;
  }

  .page-tv-program #myTabContent {
    padding: 20px 0 0;
  }

  .page-tv-program #myTabContent table,
  .page-tv-program #myTabContent tbody,
  .page-tv-program #myTabContent tr,
  .page-tv-program #myTabContent td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .page-tv-program #myTabContent table {
    border-spacing: 0;
  }

  .page-tv-program #myTabContent tr {
    position: relative;
    margin-bottom: 12px;
    padding: 12px 14px;
    border-left: 2px solid rgba(133, 215, 227, 0.55);
    background: rgba(255, 255, 255, 0.06);
  }

  .page-tv-program #myTabContent tr:first-child {
    display: none;
  }

  .page-tv-program #myTabContent td {
    padding: 0;
    font-size: 18px !important;
    line-height: 1.45;
  }

  .page-tv-program #myTabContent td:nth-child(1),
  .page-tv-program #myTabContent td:nth-child(2) {
    display: inline-block;
    width: auto;
    margin-right: 12px;
    color: #85D7E3 !important;
    font-family: 'RM';
    font-size: 15px !important;
  }

  .page-tv-program #myTabContent td:nth-child(3) {
    margin-top: 8px;
  }

  .wp-pagenavi,
  .pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
  }

  .section_copiright {
    display: grid;
    gap: 18px;
    padding: 24px 16px;
    text-align: center;
  }

  .copiright_right {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
  }

  .copiright_right li {
    margin: 0;
  }
}

@media screen and (max-width: 480px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .logo img {
    width: 82px;
  }

  section.section_tv {
    padding-top: 128px;
  }

  h1.entry-title {
    max-width: calc(100% - 62px);
    font-size: 30px;
    line-height: 1.15;
    margin-bottom: 28px;
  }

  .hidden-menu {
    width: 100vw;
    left: 0;
    right: 0;
  }

  ul.hidden-menu a {
    font-size: 19px;
  }

  .page-projects .project-index-grid .fakt_left img {
    max-width: min(78vw, 255px);
  }

  .page-project-list .project-list-grid,
  .page-facts-quotes .quoest {
    gap: 34px;
  }

  .page-project-list .project-list-grid .fakt_left h3,
  .page-facts-quotes .name_quote h3,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .name_quote h3 {
    font-size: 20px;
  }

  .page-facts-quotes .content_quote p,
  .page-facts-quotes .quoest .quoest_detal:nth-child(1) .content_quote p,
  .quotes-list .quoest_detal:nth-child(1) .content_quote p,
  .facts-list .quoest_detal:nth-child(1) .content_quote p {
    font-size: 22px;
  }

  .page-text .entry-content p,
  .page-detail .content_page p,
  .about,
  .content_page .wp-content-block {
    font-size: 16px;
  }

  .page-tv-program #myTab {
    grid-template-columns: 1fr;
  }

  .page-tv-program #myTab li button {
    min-height: 44px;
    font-size: 16px;
  }

  .page-tv-program #myTabContent td {
    font-size: 17px !important;
  }

  .section_copiright {
    margin-left: -16px;
    margin-right: -16px;
  }
}
