/*==========  Desktop Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    table caption {
        font-size: 36px;
    }
    table td {
        font-size: 14px;
    }
}

@media only screen and (max-width : 1024px) {
    header .nav .links {
        font-size: 14px;
    }
    .header {
        padding-bottom: 40%;
    }
    .main-page .title {
        max-width: 80%;
    }
    .main-page .title p {
        font-size: 32px;
    }
    table caption {
        font-size: 34px;
    }

    /* News page */
    .news .title-new {
        font-size: 28px;
    }
    .news .news-block .context {
        font-size: 16px;
    }
    .content .services .service {
        margin-bottom: 150px;
        margin-right: 100px;
    }
    .content .services .service .context {
       margin-left: 180px;
    }

    .rules {
        max-width: 90%;
    }
    .rules_heading {
        font-size: 20px;
    }
    .rules_list {
        list-style-type: none;
        font-size: 14px;
    }

    /* News page */
    .side_news_block_list {
        width: 300px;
    }
}

/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    .news_block_text {
        font-size: 16px;
        line-height: 24px;
    }
    .contacts-main {
        flex-direction: column-reverse;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    /* Header */
    .nav .logo {
        width: 80px;
    }
        .header header .top-block .nav {
        text-align: left;
    }
    .header header .top-block .nav .nav-link {
        font-size: 14px !important;
    }
    .header .title {
        font-size:38px;
    }
    .header p {
        font-size: 16px;
    }
    header .top-block fieldset {
        width:150px;
    }
    header .top-block fieldset .nav {
        padding: 12px 0 42px 0;
    }
    header fieldset .nav {
        font-size: 18px;
    }
    .content .services .service {
        margin-right: 50px;
    }
    .content .services .service img {
        width: 100%;
    }
    .content .services .service .context {
        margin-left: 100px;
        padding: 15px 15px;
        padding-bottom: 25px;
    }
    .content .services .service .context p {
        font-size: 14px;
    }
    header .nav .links {
        transform: translateX(-110%);
        position: fixed;
        display: block;
        top: 0;
        left: 0;
        bottom: 0;
        width: 45%;
        background-color: rgb(21, 24, 63);
        padding-top: 32px;
        padding-left: 12px;
        font-size: 18px;
        z-index: 10;
        -moz-transition: 0.3s linear;
        -webkit-transition: 0.3s linear;
        transition: 0.3s linear;
    }
    /* Burger */
    header .nav .links.active {
        transform: translateX(0);
    }
    header .nav .links li {
        padding-bottom: 8px;
    }
    header .nav .links.active li .nav-link {
        color: #e6e6e6;
    }
    .close-menu {
        display: block;
        position: absolute;
        top: 0;
        right: 0;
        margin-top: 12px;
        margin-right: 12px;
    }   

    .menu-btn {
        margin-top: auto;
        margin-bottom: auto;
        width: 45px;
        height: 45px;
        position: relative;
        display: flex;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        transition: all .2s ease-in-out;
        border:2px solid #0172A0;
    }
    
    .menu-btn__burger {
        width: 25px;
        height: 3px;
        background: #003144;
        border-radius: 5px;
        transition: all .2s ease-in-out;
    }
    
    .menu-btn__burger::before,
    .menu-btn__burger::after {
        content: '';
        position: absolute;
        width: 25px;
        height: 3px;
        background: #0172A0;
        border-radius: 5px;
        transition: all .2s ease-in-out;
    }
    
    .menu-btn__burger::before {
        transform: translateY(-9px);
    }
    
    .menu-btn__burger::after {
        transform: translateY(9px);
    }
    
    
    .menu-btn.open .menu-btn__burger {
        transform: translateX(-50px);
        background: transparent;
    }
    
    .menu-btn.open .menu-btn__burger::before {
        transform: rotate(45deg) translate(35px, -35px);
        background: #fa00c4;
    }
    
    .menu-btn.open .menu-btn__burger::after {
        transform: rotate(-45deg) translate(35px, 35px);
        background: #fa00c4;
    }
    
    .menu-btn.open{
        border: 2px solid #fa00c4;
    }

    
    .payment-block .title-payment {
        font-size: 14px;
    }
    form label {
        font-size: 16px;
        color: #fff;
    }
    form .group input {
        padding: 4px 6px;
    }

    /* Main page */
    .main-page .title p {
        font-size: 26px;
    }

    /* Map */
    .map-block .map .title {
        font-size: 24px;
    }
    .map-block .map iframe {
        height: 300px;
    }
    
    /* Footer */
    footer .title {
        font-size: 20px;
    }
    footer .list {
        font-size: 14px;
    }

    /* Tabletime page */
    table {
        width: 90%;
    }
    table th {
        font-size: 14px;
    }
    table td {
        font-size: 12px;
    }

    /* Pool map On timetable page */
    .pool-map img {
        width: 100%;
    }
    
    /* google map */
    .map iframe {
        height: 300px;
    }
    .news_total_blocks {
        flex-wrap: wrap;
    }
    .news_total_blocks_turn {
        flex-wrap: wrap-reverse;
    }
    .show_others {
        display: block;
        padding: 20px;
        text-align: center;
        font-size: 18px;
        font-family: 'Jost Bold';
        text-transform: uppercase;
        color: #00B1D1;
        cursor: pointer;
        -webkit-transition: .6s;
        -moz-transition: .6s;
        -o-transition: .6s;
        transition: .6s;
        box-shadow: 0 0 6px #0000000d;
    }
    .show_others:hover {
        box-shadow: 0 0 12px #00000075;
    }
    .news_blocks {
        margin-top: 16px;
        margin-right: 0;
    }
    
    .img_slider_arrow {
        width: 50px;
        height: 80px;
    }    
    .img_slider_arrow_details::before {
        margin-bottom: 8px;
        width: 30px;
        height: 8px;
    }
    .img_slider_arrow_details::after {
        margin-top: 8px;
        width: 30px;
        height: 8px;
    }
    .side_news_block_list {
        margin-top: 16px;
        position: static;
        height: auto;
        top: 0;
    }
    .news_block_text {
        font-size: 14px;
        line-height: 20px;
    }
}

@media all and (max-width: 665px) {
    .header {
        background-size: 1000px;
        background-position-y: 20px;
    }
    header .top-block {
        display: none;
    }
    header .left-block {
        display: block;
    }
    .content .services .service {
        margin-right: 25px;
    }
    .content .services .service .context {
        margin-left: 40px;
    }
    .content .services .service .context p {
        font-size: 12px;
    }
    .contacts-main-title {
        font-size: 24px;
        margin-bottom: 10px;
    }
    .contacts-main-list-title {
        font-size: 20px;
    }
    .icon {
        width: 30px;
    }
    .contacts-phones-list-item {
        font-size: 16px;
    }
    .contacts-main-img {
        display: flex;
        justify-content: center;
    }
    .contacts-main-img img {
        width: 80%;
    }
}
@media screen and (max-width: 600px) {
    table {
        border: 0;
    }
    .thead{
        background-color: rgb(67 56 202);
        color:#fff;
    }   
      table caption {
        font-size: 35px;
        font-weight:700;
        color:#00000090;
      }
      
      table thead {
        border: none;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
      }
      
      table tr {
          border-bottom: 3px solid #ddd;
          display: block;
          margin-bottom: .625em;
        }
      
      table.new-table td {
        border-bottom: 1px solid #ddd;
        display: block;
        font-size: .8em;
        text-align: right;
      }
      
      table.new-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        text-transform: uppercase;
      }
      
      table.new-table td:last-child {
        border-bottom: 0;
    }
}

@media all and (max-width: 512px) {
    .content {
        margin-top: 0px !important;
    }
    .content .services .service {
        margin-bottom: 170px;
    }
    .content .services .service .context {
        padding: 10px 15px;
        margin-top: 200px;
    }
    .content .services .service .context p {
        font-size: 10px;
    }

    header .left-block fieldset .nav {
        font-size: 12px;
    }
    .rules_heading {
        font-size: 18px;
    }
    .rules_list {
        list-style-type: none;
        font-size: 14px;
    }
}
/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .wav {
        margin-top: -30px;
    }
    .wav .waves {
        height:6vh;
        min-height:30px;
    }
    .nav .logo {
        width: 65px;
    }
    /* Main page */
    .main-page .title {
        max-width: 90%;
    }
    .main-page .title p {
        font-size: 22px;
    }

    /* Mobile burger */
    header .nav .links.active {
        width: 65%;
    }

    /* Services - main page */
    .services .service-block p {
        font-size: 14px;
    }


    /* Payment form */
    .payment-block form {
        width: 80%;
    }
    /* google map */
    .map .map-posit {
        width: 90%;
    }
    .map iframe {
        height: 200px;
    }

}
@media all and (max-width: 425px) {
    header .left-block fieldset .nav .nav-link {
        padding: 2px 6px;
    }
    .header .inner-header {
        padding: 10% 3%;
    }
    .header p {
        font-size: 12px;
        padding: 10px 12px;
    }
    .content .services {
        width: 100%;   
    }
    .content .services .service {
        margin-bottom: 180px;   
    }
    .content .services .service .context {
        padding-left: 10px;
        margin-left: 20px;
        margin-top: 200px;
    }
    .rules_heading {
        font-size: 16px;
    }
    .rules_list {
        list-style-type: none;
        font-size: 12px;
    }
}

@media all and (max-width: 375px) {
    .content .services .service {
        margin-bottom: 130px;
    }
    .content .services .service .context {
        margin-top: 160px;
        margin-left: 15px;
    }
    .content .services .service .context p {
        line-height: 15px;
    }
    /* News page */
    .redirect_back {
        font-size: 12px;
        bottom: 60px;
    }
}
/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    .main-page .title p {
        font-size: 18px;
    }
    /* Mobile burger */
    header .nav .links.active {
        width: 70%;
    }
    header .left-block fieldset .nav {
        display: block;
    }
    header .left-block fieldset .nav .nav-link {
        padding: 2px 4px !important;
    }
    .content .services .service {
        margin-bottom: 180px;
    }
    .content .services .service:first-child {
        margin-bottom: 130px;
    }
    .content .services .service .context {
        margin-top: 130px;
    }
    .content .services .service .context p {
        line-height: 14px;
    }
    footer .list .address {
        font-size: 12px;
    }
    .copyright li {
        font-size: 12px;
    }
}
