@media all and (max-width: 1240px)
{
    section.current-rent.details{justify-content: space-between; align-items: flex-end; padding: 20px; flex-wrap: wrap;}
    section.current-rent.details > div.title{left: 245px; top: 66px !important;}
    section.current-rent.details div.photo{width: 210px !important; height: auto !important; bottom: 0 !important;
    margin-right: calc(100% - 210px); margin-bottom: 16px;}
    section.current-rent.details div.area{width: calc((100% - 20px) / 2) !important; margin: 0 !important;}
    section.current-rent.details div.bottom{width: 100%; margin: 15px 0 0 0;}
}

@media all and (max-width: 1220px)
{
    #container{margin: 0 20px;}
}

@media all and (max-width: 1150px)
{
    header{padding-top: 20px; height: 86px; margin-bottom: 30px;}
    header *{font-size: 16px;}
    header > nav{margin-left: 68px;}
    header > nav ul.main-menu{gap: 27px;}
    header div.right{gap: 12px;}

    section.current-rent{padding: 20px; flex-wrap: wrap; justify-content: space-between;}
    section.current-rent > div.title{top: 75px; left: 245px;}
    section.current-rent > a.go-to-rent{top: 20px; right: 20px;}
    section.current-rent div.photo{width: 210px; margin-right: calc(100% - 210px); margin-bottom: 16px;}
    section.current-rent div.area{width: calc((100% - 20px) / 2); margin: 0 !important;}
}

@media all and (max-width: 1000px)
{
    section.bikes-list{grid-template-columns: 1fr 1fr; margin-bottom: 0;}
    section.bikes-list > div{padding: 15px;}
}

@media all and (max-width: 850px)
{
    header div.right div.user-section div.user-name > span{display: none;}

    main > div.product-columns{flex-direction: column; gap: 20px; padding: 0 7%;}
    main > div.product-columns > div.image{margin: 0 auto; width: 100%;}
    main > div.product-columns > div.data{width: 100%;}

    section.my-rentals > div{position: relative;}
    section.my-rentals > div > a.details{position: absolute; right: 30px; top: 30px;}

    table.flexible-table, table.flexible-table tbody{box-shadow: none; display: flex; flex-direction: column; gap: 15px;}
    table.flexible-table tr:has(th){display: none;}
    table.flexible-table tr{border-radius: 20px; box-shadow: 1px 0px 20.6px 4px #0000001a; padding: 20px; width: 100%;
    display: flex; flex-wrap: wrap;}
    table.flexible-table td{width: 100%; text-align: left; margin-bottom: 14px; padding: 0; background: none !important;}
    table.flexible-table td:first-child, table.flexible-table td:nth-child(2){width: 50%; border-bottom: 1px solid #00d8ae;
    margin-bottom: 14px; padding-bottom: 12px;}
    table.flexible-table td:nth-child(2){text-align: right;}
    table.flexible-table .card, table.flexible-table .purpose{text-align: left;}
    table.flexible-table td::before{content: attr(data-label); font-weight: 500; margin-right: 4px;}
    table.flexible-table td:last-child{margin: 0;}
}

@media all and (max-width: 750px)
{
    .button{font-size: 16px;}
    .tab-buttons{height: 39px; margin-bottom: 15px;}
    .tab-buttons > *{font-size: 16px; padding: 0 12px;}

    section.current-rent div.area{gap: 12px; height: 130px; padding: 15px;}
    section.current-rent div.area div.title{background-size: 20px 20px; padding-left: 30px; font-size: 16px;}
    section.current-rent div.area div.period{font-size: 18px;}
    section.current-rent div.area div.tariff{font-size: 16px;}
    section.current-rent div.area div.price{font-size: 24px; margin: 0;}

    section.bikes-list > div{height: 545px;}

    footer div.links{flex-direction: column; gap: 10px;}
}

@media all and (max-width: 650px)
{
    #container{padding-bottom: 0;}
    header{height: 44px; margin-bottom: 20px; align-items: center;}
    header #logo{width: 114px;}
    header > nav, header div.right div.user-section, header div.right div.language{display: none;}
    #mobile-menu-button{display: block;}

    div.breadcrumbs{font-size: 14px; margin-bottom: 20px;}
    div.breadcrumbs a{background-size: 10px; padding-right: 17px; margin-right: 3px;}

    span.status{font-size: 14px;}

    section.current-rent{flex-direction: column; justify-content: flex-start !important; align-items: flex-start !important; 
    gap: 12px; padding: 15px; margin-bottom: 20px;}
    section.current-rent > div.title{position: static;}
    section.current-rent > div.title div{font-size: 18px; margin-bottom: 6px;}
    section.current-rent > a.go-to-rent{top: 15px; right: 15px;  padding-right: 22px;}
    section.current-rent > a.go-to-rent > span:first-child{display: none;}
    section.current-rent > a.go-to-rent > span:last-child{display: inline; font-size: 14px;}
    section.current-rent div.photo{margin: 0 auto;}
    section.current-rent div.area, section.current-rent.details div.area{width: 100% !important;}
    section.current-rent.details div.area{height: auto;}

    section.bikes-list > div{height: 490px;}
    section.bikes-list *{font-size: 16px;}

    main > div.product-columns{padding: 0; gap: 15px;}
    main > div.product-columns > div.image{padding: 10px;}
    div.product-gallery-pagination{gap: 10px;}
    div.product-gallery-pagination > span{width: 8px; height: 8px;}
    div.product-gallery-controls > div{background-size: 16px; background-position-y: top;}
    div.product-gallery-prev{background-position-x: left !important;}
    div.product-gallery-next{background-position-x: right !important;}

    main h1{font-size: 18px;}
    main > div.product-columns > div.data h2{font-size: 16px;}
    main > div.product-columns > div.data div.period{font-size: 16px; margin-bottom: 12px; gap: 10px;}
    main > div.product-columns > div.data div.price{font-size: 24px;  margin-bottom: 10px;}
    main > div.product-columns > div.data .button.big{margin-bottom: 20px;}
    main > div.product-columns > div.data div.properties{padding: 15px;}
    main > div.product-columns > div.data div.properties > div:first-child{margin-bottom: 12px; font-size: 16px;}
    main > div.product-columns > div.data div.properties ul{font-size: 14px; gap: 8px;}
    main > div.product-columns > div.data div.properties li span.dots{position: relative; top: -3px;}

    section.my-rentals{gap: 12px;}
    section.my-rentals > div{padding: 15px 15px 18px 15px; flex-direction: column; align-items: flex-start;}
    section.my-rentals > div div.image{width: 75px; margin-bottom: 3px;}
    section.my-rentals > div div.data span.status{position: absolute; top: 15px; left: 96px;}
    section.my-rentals > div div.data div.name{font-size: 16px; position: absolute; top: 48px; left: 96px;}
    section.my-rentals > div div.data div.tariff{font-size: 16px;}
    section.my-rentals > div div.data div.dates{font-size: 16px;}
    section.my-rentals > div > a.details{position: static; align-self: flex-start; font-size: 16px; width: auto;}

    footer{position: static; flex-direction: column; gap: 12px; height: auto; padding: 20px 0 25px 0;}
    footer *{font-size: 16px;}
}

@media all and (max-width: 550px) 
{
    section.bikes-list{display: flex; flex-direction: column; gap: 15px;}
    section.bikes-list > div{height: auto;}
    section.bikes-list a.name{margin-bottom: 12px;}

    table.flexible-table tr{padding: 15px;}
    table.flexible-table td{margin-bottom: 12px;}
    table.flexible-table td:first-child, table.flexible-table td:nth-child(2){font-size: 16px; padding-bottom: 8px;}

    section.current-rent.details div.bottom{flex-direction: column; gap: 6px; margin: 0;}
}