@media (min-width: 300px) {
    header {
        width: 95%;
        margin: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        gap: 0;
    }

    .l-head-cont {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .local {
        font-size: x-small;
    }

    .local svg {
        width: 10px;
        height: 10px;
    }

    .r-head-cont {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        grid-template-rows: auto auto auto;
        grid-auto-flow: row;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .bottom-form {
        margin-top: -250px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        grid-gap: 10px 0;
    }

    .logo img {
        margin: auto;
        max-height: 40px;
    }

    .order {
        margin: auto;
    }

    .content-fon {
        padding: 3%;
        background: rgba(21, 61, 84, 0.80);
        border: solid 2px #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-win img {
        max-width: 220px;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        gap: 40px;
        padding: 0 10px 5px 10px;
    }

    .card-block {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        gap: 10px;
    }

    .popup a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 60px;
        height: 60px;
        border-radius: 12px 0 0 12px;
        background: rgba(21, 61, 84, 0.90);
        margin: 6px 0 6px 0;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        border-left: 2px solid white;
        text-decoration: none;
        color: white;
        font-size: small;
    }

    .popup-menu {
        position: fixed;
        bottom: 100px;
        right: 0;
        display: flex;
        flex-direction: column;
        z-index: 1000;
    }

    .order #want {
        display: none;
    }

    .menu {
        margin: 0 10px 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 11px;
        left: 25px;
        z-index: 1005;
    }

    menu li {
        overflow: hidden;
        margin: 5px;
        padding: 4px;
        width: 80%;
        color: rgb(255, 255, 255);
        text-transform: uppercase;
        border-top: 1px solid white;
        border-bottom: 1px solid white;
        background: rgba(255, 255, 255, 0.404);
    }

    .open {
        transform: translate(-50%, -50%);
        transition: transform 1s, height 1s 1s;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        z-index: 1001;
        margin-top: 0;
    }

    menu {
        display: flex;
        flex-direction: column;
        position: absolute;
        width: 90%;
        height: 10px;
        left: 50%;
        z-index: 1;
        background: rgb(21, 61, 84);
        transform: translate(-150%, -50%);
        transition: transform 1s 1s, height 1s;
        overflow: visible;
        user-select: none;
    }

    .toggle>label::after {
        content: "";
        float: right;
        margin: 5px;
        width: 0;
        height: 0;
        border-left: 7px solid transparent;
        border-right: 7px solid transparent;
        border-top: 10px solid #ffffff;
    }

    .toggle label {
        width: 100%;
        display: block;
    }

    .inset {
        height: 25px;
    }

    .services,
    .social {
        z-index: 2;
        display: none;
    }

    .services li,
    .social li {
        border: 0;
        padding: 5px;
        margin: 5px auto;
    }

    .pf-container {
        width: 75%;
        height: 300px;
        background-color: #ffffff;
        padding: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .close {
        color: #ffffff;
        margin-top: -70px;
        margin-right: -310px;
        float: right;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        position: relative;
    }
}

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/
@media (min-width: 576px) {
    header {
        width: 95%;
        margin: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(471px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }

    .l-head-cont {
        margin-top: 0;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        justify-content: center;
        align-items: center;
    }

    .local {
        font-size: medium;
    }

    .local svg {
        width: 16px;
        height: 16px;
    }

    .r-head-cont {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        grid-auto-flow: row;
        justify-content: center;
        align-items: center;
    }

    .bottom-form {
        margin-top: -80px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(576px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        grid-gap: 20px 0;
    }

    .logo img {
        margin: auto;
        max-height: 70px;
    }

    .order {
        margin: 0 10px 0 10px;
    }

    .content-fon {
        position: absolute;
        top: 50%;
        left: 10%;
        padding: 2%;
        background: rgba(21, 61, 84, 0.80);
        border: solid 2px #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-win img {
        max-width: 400px;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        gap: 40px;
        padding: 0 50px 40px 50px;
    }

    .card-block {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }

    .popup a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        border-radius: 12px 0 0 12px;
        background: rgba(21, 61, 84, 0.90);
        margin: 6px 0 6px 0;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        border-left: 2px solid white;
        text-decoration: none;
        color: white;
        font-size: small;
    }

    .popup-menu {
        position: fixed;
        top: calc(50% - 100px);
        right: 0;
        display: flex;
        flex-direction: column;
        z-index: 9999;
    }

    .order #want {
        display: block;
    }

    menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: absolute;
        width: 95%;
        height: 10px;
        left: 50%;
        z-index: 1;
        background: rgba(21, 61, 84, 0.80);
        transform: translate(-150%, -50%);
        transition: transform 1s 1s, height 1s;
        overflow: visible;
        user-select: none;
    }

    .menu {
        margin: 0 10px 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        top: 11px;
        left: 25px;
        transform: scale(1);
        transition: transform .6s;
    }

    .menu:hover {
        transform: scale(1.2);
        transition: transform .6s;
    }

    menu li {
        overflow: hidden;
        margin: 5px;
        padding: 4px;
        color: white;
        width: 50%;
        text-transform: uppercase;
        font-size: calc(10px + 2 * (100vw / 1280));
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        background: none;
    }

    .open {
        height: 40px;
        transform: translate(-50%, -50%);
        transition: transform 1s, height 1s 1s;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
    }

    .toggle>label::after {
        content: "";
        float: right;
        margin: 8px 0 0 8px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 10px solid #ffffff;
    }

    .services,
    .social {
        position: absolute;
        z-index: 2;
        background: rgba(21, 61, 84, 1.0);
        display: none;
    }

    .services li,
    .social li {
        border: 0;
        margin: 5px;
    }

    .pf-container {
        width: 350px;
        height: 300px;
        background-color: #ffffff;
        padding: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .close {
        color: #ffffff;
        margin-top: -65px;
        margin-right: -370px;
        float: right;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        position: relative;
    }
}

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/
@media (min-width: 992px) {
    header {
        width: 95%;
        margin: auto;
        margin-top: 15px;
        margin-bottom: 15px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(471px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }

    .l-head-cont {
        margin-top: 0;
        display: grid;
        grid-template-columns: auto auto;
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        justify-content: end;
        align-items: center;
        gap: 0;
    }

    .local {
        font-size: medium;
    }

    .local svg {
        width: 16px;
        height: 16px;
    }

    .r-head-cont {
        display: grid;
        grid-template-columns: auto auto auto;
        grid-template-rows: auto auto auto;
        grid-auto-flow: row;
        justify-content: start;
        align-items: center;
        gap: 0;
    }

    .bottom-form {
        margin-top: -80px;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(576px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        grid-gap: 20px 0;
    }

    .logo img {
        margin: auto;
        max-height: 70px;
    }

    .order {
        margin: 0 10px 0 10px;
    }

    .content-fon {
        position: absolute;
        top: 35%;
        left: 10%;
        padding: 2%;
        background: rgba(21, 61, 84, 0.80);
        border: solid 2px #ffffff;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .card-win img {
        max-width: 400px;
    }

    .row {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
        gap: 40px;
        padding: 0 50px 40px 50px;
    }

    .card-block {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(288px, 1fr));
        grid-template-rows: auto auto;
        grid-auto-flow: row;
    }

    .popup a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 70px;
        height: 70px;
        border-radius: 12px 0 0 12px;
        background: rgba(21, 61, 84, 0.90);
        margin: 6px 0 6px 0;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        border-left: 2px solid white;
        text-decoration: none;
        color: white;
        font-size: small;
    }

    .popup-menu {
        position: fixed;
        top: calc(50% - 100px);
        right: 0;
        display: flex;
        flex-direction: column;
        z-index: 9999;
    }

    .order #want {
        display: block;
    }

    menu {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        position: absolute;
        width: 95%;
        height: 10px;
        left: 50%;
        z-index: 1;
        background: rgba(21, 61, 84, 0.80);
        transform: translate(-150%, -50%);
        transition: transform 1s 1s, height 1s;
        overflow: visible;
        user-select: none;
    }

    .menu {
        position: sticky;
        margin: 0 10px 0 15px;
        display: flex;
        flex-direction: column;
        align-items: center;
        transform: scale(1);
        transition: transform .6s;
    }

    .menu:hover {
        transform: scale(1.2);
        transition: transform .6s;
    }

    menu li {
        overflow: hidden;
        margin: 15px;
        padding: 4px;
        color: white;
        width: 75%;
        text-transform: uppercase;
        font-size: calc(15px + 2*(100vw / 1280));
        border-top: 2px solid white;
        border-bottom: 2px solid white;
        background: none;
    }

    .open {
        height: 60px;
        transform: translate(-50%, -50%);
        transition: transform 1s, height 1s 1s;
        border-top: 2px solid white;
        border-bottom: 2px solid white;
    }

    .toggle>label::after {
        content: "";
        float: right;
        margin: 8px 0 0 8px;
        width: 0;
        height: 0;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-top: 10px solid #ffffff;
    }

    .services,
    .social {
        position: absolute;
        z-index: 2;
        background: rgba(21, 61, 84, 1.0);
        display: none;
    }

    .services li,
    .social li {
        border: 0;
        margin: 5px auto;
    }

    .pf-container {
        width: 350px;
        height: 300px;
        background-color: #ffffff;
        padding: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        text-align: center;
    }

    .close {
        color: #ffffff;
        margin-top: -65px;
        margin-right: -370px;
        float: right;
        font-size: 30px;
        font-weight: bold;
        cursor: pointer;
        position: relative;
    }
}

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/

/*--------------------------------------------------------------------------------------------------------------*/
body,
html {
    font-family: 'Roboto';
    width: 100%;
    height: 100vh;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.scroll {
    position: fixed;
}

.content {
    min-height: 85vh;
    width: 100%;
    background-color: #153D54;
    color: aliceblue;
}

.phone,
.local {
    margin: 0 10px 0 10px;
}

.local {
    text-align: center;
}

.trigger {
    margin-top: 3px;
}

header h1 {
    font-size: medium;
    text-align: center;
    margin: 0 auto 0 auto;
    color: rgb(138, 141, 143);
}

.logo {
    height: 100%;
    display: flex;
    justify-content: center;
}

.phone a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: large;
    transform: scale(1);
    transition: transform .6s;
}

footer a {
    text-decoration: none;
    color: rgb(255, 255, 255);
    font-size: large;
}

.phone a:hover {
    transform: scale(1.2);
    transition: transform .6s;
}

.phone {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: scale(1);
    transition: transform .6s;
}

.phone-b a {
    text-decoration: none;
    color: #153D54;
    font-size: large;
    transform: scale(1);
    transition: transform .6s;
}

.phone-b a:hover {
    transform: scale(1.2);
    transition: transform .6s;
}

.phone-b {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.messenger {
    display: flex;
    flex-direction: column;
}

.messenger img {
    max-height: 30px;
    margin-right: 5px;
}

.messenger a {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 3px;
    text-decoration: none;
    color: #153D54;
    font-size: large;
}

.phone-b,
.messenger {
    margin-bottom: 15px;
}

.phone-b h4,
.messenger h4 {
    margin-bottom: 4px;
}

.foot-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.markers li {
    list-style: circle;
    text-align: left;
    margin: 5px;
}

input[type="tel"],
input[type="text"] {
    background-color: #ffffff;
    color: #153D54;
    border: #153D54 2px solid;
    padding: 10px 15px 10px 15px;
    font-size: calc(15px + 2*(100vw / 1280));
    font-weight: bold;
    margin: auto;
    margin-bottom: 20px;
    cursor: pointer;
}

.order input[type="button"] {
    background-color: #153D54;
    color: white;
    border: white 2px solid;
    padding: 10px 15px 10px 15px;
    cursor: pointer;
    transform: scale(1);
    transition: transform .6s;
}

.order input[type="button"]:hover {
    transform: scale(1.1);
    transition: transform .6s;
}

.photo-fon {
    width: 97%;
    min-height: calc(100% - 30px);
    background-position: center center;
    background-attachment: scroll;
    background-image: url("/images/turnkey-balconies/photo-fon.webp");
    background-size: cover;
    background-repeat: no-repeat;
    margin: 10px auto 0 auto;
}

.photo-fon h1 {
    margin-top: 0;
    font-size: calc(24px + 8 * (100vw / 1280));
    color: #ffffff;
}

.content-fon input[type="button"] {
    background-color: #153D54;
    color: #ffffff;
    border: #ffffff 2px solid;
    padding: 10px 15px 10px 15px;
    font-size: calc(16px + 2 * (100vw / 1280));
    font-weight: bold;
    cursor: pointer;
    transform: scale(1);
    transition: transform .6s;
}

.content-fon input[type="button"]:hover {
    transform: scale(1.1);
    transition: transform .6s;
}

.bottom-form .card {
    margin: auto;
    padding: 5px;
    min-width: 250px;
    max-width: 270px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #153D54;
    background-color: #fff;
    border: #153D54 2px solid;
    border-radius: 12px;
}

.card img {
    margin: auto;
    max-height: 120px;
}

.card-title {
    margin: 0 auto 0 auto;
    font-size: medium;
    font-weight: bold;
    color: #153D54;
}

.card-text {
    margin: 10px auto 0 auto;
    font-size: small;
}

.trigger {
    z-index: 2;
    border: 2px solid #fff;
    height: 40px;
    width: 40px;
}

.bars {
    width: 40px;
    cursor: pointer;
}

.bars .line {
    fill: none;
    stroke: #fff;
    stroke-width: 4;
    stroke-linecap: square;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
}

.bars .line.top {
    stroke-dasharray: 40 172;
}

.bars .line.middle {
    stroke-dasharray: 40 111;
}

.bars .line.bottom {
    stroke-dasharray: 40 172;
}

.bars.active .top {
    stroke-dashoffset: -132px;
}

.bars.active .middle {
    stroke-dashoffset: -71px;
}

.bars.active .bottom {
    stroke-dashoffset: -132px;
}

li {
    list-style-type: none;
}

menu li span {
    display: block;
    width: 100%;
    height: 100%;
}

menu li,
li label {
    cursor: pointer;
}

menu li a {
    text-decoration: none;
    color: white;
}

menu>li {
    opacity: 0;
    transition: opacity 1s;
}

menu.open>li {
    opacity: 1;
    transition: opacity 1s 1s;
}

menu>li span {
    transform: translateY(-100%);
    transition: transform .5s;
}

menu.open>li span {
    transform: translateY(0);
    transition: transform .5s 1.5s;
}

menu li:hover {
    transition: .5s all;
    border-top: 2px solid rgba(0, 90, 143, 0.9);
    border-bottom: 2px solid rgba(0, 90, 143, 0.9);
}

#submenu,
#submenu_social {
    display: none;
}

.services a,
.social a {
    display: contents;
    text-decoration: none;
    color: white;
    width: 100%;
    padding: 2px;
}

.services,
.social {
    padding-inline-start: 0px;
}

.social img {
    max-height: 25px;
    margin-right: 8px;
}

.services li:hover,
.services li:hover a,
.social li:hover,
.social li:hover a {
    border: 0;
    transition: 1s all;
    color: rgba(21, 61, 84, 1.0);
    background-color: white;
}

.social li {
    display: flex;
    align-items: center;
}

.popup a:hover {
    transform: scale(1.2);
    transition: transform .6s;
}

.popup a {
    transform: scale(1);
    transition: transform .6s;
}

.popup a img {
    max-width: 40%;
}

.main {
    margin-top: 30px;
    max-width: 100%;
}


.container {
    width: 90%;
    display: flex;
    flex-direction: column;
    color: #153D54;
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
    background-color: #E6E6E6;
}

.container-2 {
    width: 90%;
    display: flex;
    flex-direction: column;
    color: #153D54;
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
    background-color: #ffffff;
}

.container-3 {
    width: 100%;
    display: flex;
    flex-direction: column;
    color: white;
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
    background-color: #153D54;
}

.subcont {
    margin-top: -40px;
}

.row-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: auto auto;
    grid-auto-flow: row;
    gap: 20px;
}

.col {
    background-color: #E6E6E6;
    border: #153D54 2px solid;
    border-radius: 12px;
    padding: 15px;
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 8px;
}

.center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    font-size: calc(18px + 2 * (100vw / 1280));
}

.card-win {
    background-color: white;
    border: #153D54 2px solid;
    border-radius: 12px;
    padding: 15px;
    text-decoration: none;
    color: #153D54;
    transform: scale(1);
    transition: transform .6s;
}

.card-win:hover {
    transform: scale(1.03);
    transition: transform .6s;
}

.card-win p {
    font-size: large;
}

.container h2 {
    margin: 30px auto 30px auto;
}

.main input[type="button"],
.pf-container input[type="button"] {
    background-color: #ffffff;
    color: #153D54;
    border: #153D54 2px solid;
    padding: 10px 15px 10px 15px;
    font-size: calc(16px + 2 * (100vw / 1280));
    font-weight: bold;
    margin: auto;
    margin-bottom: 20px;
    cursor: pointer;
    transform: scale(1);
    transition: transform .6s;
}

.main input[type="button"]:hover,
.pf-container input[type="button"]:hover {
    transform: scale(1.1);
    transition: transform .6s;
}

footer {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    grid-template-rows: auto auto;
    grid-auto-flow: row;
    gap: 20px;
    width: 90%;
    margin: auto;
}

footer .col {
    background-color: #153D54;
    padding: 0px;
    display: block;
}

.payment-form {
    display: none;
    position: fixed;
    z-index: 999999;
    width: 100%;
    height: 100%;
    background-color: #153d54e7;
    justify-content: center;
    align-items: center;
}

.pf-container small,
.fut-form small {
    margin: 5px;
}

.ui-widget-header {
    background: #153D54;
    color: #ffffff;
}

.ui-dialog .ui-dialog-content {
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-dialog .ui-dialog-content h4 {
    margin: auto;
}