#hero {
    width: 100%;
    background-image: url("/img/services/vill2-edit.jpeg");
    background-size: cover;
    background-repeat: no-repeat;
    color: white;
    margin-top: 0;
    min-height: min(calc(90vh - 30px), 1000px);
    background-position: left center;
    padding: 0 min(5%, 20px);
    max-height: 1000px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 70px;
    max-width: unset !important;
}
#hero.org{
    background-image: url("/img/services/bg-electr-strip.jpg");
    background-position: left 30%;
}

main {
    padding-top: 0;
}

#other_service {
    color: #fff;
    display: block;
    width: max-content;
    margin: auto;
    margin-bottom: 16px;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

}

section:not(#hero) {
    max-width: 1200px;
    margin: auto;
}

main>.decor.ci {
    position: absolute;
    bottom: 0;
    right: 0;
    transform: translateX(30%) translateY(30%);
    width: 50vw;
    max-width: 400px;
    aspect-ratio: 1;
    background-color: #22402e;
    border-radius: 50%;
}

#hero h1 {
    margin: 0;
    font-size: min(52px, 12vw);
    text-align: center;
    line-height: min(55px, 12.5vw);
    padding-top: 50px;
    font-style: italic;
    margin-bottom: 40px;
}

#hero .points>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min-content;
    gap: 5px;
}

#hero .points a {
    width: 13px;
    aspect-ratio: 1;
    background-color: white;
    border-radius: 50%;
}

#hero .points a.active {
    background-color: #277D31;
}

#hero .points a:hover {
    background-color: #2b8e37;
}

#hero .card {
    width: 100%;
    background-color: white;
    border: 1px solid #b4b4b4;
    color: black;
    display: flex;
    margin: 10px 0 5px 0;
    max-height: 70px;
    justify-content: center;
    align-items: center;
    border-radius: 15px;
    font-size: min(5vw, 18px);
}

#hero .card p {
    font-weight: 500;
}

#hero .card img {
    height: min(10vw, 40px);
    margin-left: -7px;
    margin-right: 7px;
    aspect-ratio: 1;
    border: none;
}

#inbetween {
    gap: 0;
    margin-bottom: 30px !important;
}

#inbetween p {
    font-size: 20px;
    line-height: 2.0rem;
    font-weight: 500;
}

#inbetween .flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 30px
}

#inbetween .flex img {
    max-width: 50%;
    max-height: 60px;
}

#inbetween img {
    width: 100%;
    border-radius: 15px;
    display: none;
}

#inbetween strong {
    font-weight: 700;
}

#inbetween button.save {
    padding: 11px 30px;
    font-size: 23px;
}
#inbetween img.img1{
    display: block;
}
#inbetween img.img1.yes{
    width: 100%;
    height: unset;
    align-self: center;
}
#inbetween a.button {
    margin: auto;
}

#inbetween a:hover {
    box-shadow: 4px 4px 6px 0 #0003;
    border-radius: 15px;
}

section#ratings {
    padding-bottom: 60px !important;
}

#ratings h2 {
    text-transform: uppercase;
    font-weight: 500;
    font-size: min(10vw, 37px);
}

#ratings .cards {
    display: grid;
    justify-items: center;
    gap: 26px;
    justify-self: center;
}

#ratings .card {
    box-shadow: 4px 4px 10px 0 #0006;
    border-radius: 13px;
    width: 100%;
    max-width: 350px;
    display: grid;
    justify-items: center;
    border: 1px solid #b4b4b4;
    padding: 25px 13px;
    justify-self: center;
    background-color: white;
    grid-template-rows: min-content min-content min-content 1fr;
}

#ratings .card p {
    margin: 0;
}

#ratings .name,
#ratings .place {
    font-size: 21px;
    font-weight: 500;
}

#ratings .name {
    text-transform: uppercase;
}

#ratings .stars {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 10px;
    margin-bottom: 20px;
}

#ratings .text {
    font-size: 17px;
    text-align: center;
}

#ratings button.save {
    padding: 8px 23px;
    font-size: 20px;
}

#ratings a.button {
    margin: auto;
    justify-self: center;
    margin-top: 25px;
}

#ratings {
    display: grid;
    justify-items: left;
    position: relative;
}

#ratings a:hover {
    box-shadow: 4px 4px 6px 0 #0003;
    border-radius: 15px;
}

#ratings .decor.ci {
    border-radius: 50%;
    aspect-ratio: 1;
    width: 60vw;
    max-width: 400px;
    position: absolute;
    background-color: #277D31;
    top: 120px;
    left: 0;
    transform: translateX(-30%);
}

#ratings .decor.ci:nth-child(2) {
    left: unset;
    top: unset;
    background-color: #294936;
    bottom: 0px;
    right: 0;
    transform: translateX(30%);
}

#ratings .decor.ch {
    position: absolute;
    top: 130px;
    left: 0;
    background-image: url('/img/decor/checker.png');
    height: calc(100% - 130px);
    width: 100%;
}


section:not(#hero) {
    padding: 0 min(6vw, 60px);
}

h1 {
    font-size: min(15vw, 50px);
    font-weight: 600;
    text-transform: uppercase;
    font-style: italic;
}

form {
    max-width: 600px;
    margin-bottom: 20px;
}

input {
    border: 2px solid #277D31;
    color: #277D31;
}

textarea {
    display: block;
    padding: 10px;
}

.form-group {
    margin: 4px 0;
    padding: 5px 0;
    width: 100%;
    position: relative;
}

.error-message {
    color: #294936;
    font-size: 13px;
    margin-top: 5px;
    font-weight: 500;
}

#addressLengthError {
    margin-top: -7px;
}

.personal {
    display: grid;
    grid-template-areas:
        "l l"
        "a a"
        "b c";
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 5px;
}

.personal>label {
    grid-area: l;
}

.a {
    grid-area: a;
}

.b {
    grid-area: b;
}

.c {
    grid-area: c;
}

.personal .form-group input {
    display: block;
}

label {
    font-size: 24px;
}

label:has(~ input) {
    transition: .1s;
    font-size: 15px;
}

label:has(~ input) {
    position: absolute;
    z-index: 2;
    top: 25px;
    left: 10px;
    transform: translateY(-50%);
    cursor: text;
}

label:has(~ input:not(:placeholder-shown)),
label:has(~ input:focus) {
    top: -7px;
    transform: translateY(0);
    background-color: white;
}

label.required::after {
    content: '*';
}

.helper-text {
    margin-top: 7px;
}

.checkbox-group {
    display: flex;
    align-items: start;
    justify-content: start;
}

.checkbox-group label {
    font-size: 15px;
    margin-top: 0px;
    margin-left: 5px;
}

.checkbox-group input {
    border-radius: 3px;
    border: 2px solid #277D31;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

#message {
    width: 100%;
    min-height: 20ch;
    resize: none;
    border: 2px solid #277D31;
}

#message:focus {
    border: 1px solid #2b8e37;
}

form input[type="checkbox"]:checked::before {
    width: 7px;
    transform: translateX(0) translateY(0);
}

form input[type="checkbox"]:checked::after {
    width: 16px;
    transform: translateX(-4px) translateY(-8px);
}

.bl {
    width: 100%;
    height: 100%;
    background-color: #000A;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.feedback {
    width: min(calc(100% - 20px), 400px);
    height: max-content;
    padding: 25px 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.438);
    box-sizing: border-box;
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: start;
}

.feedback button {
    cursor: pointer;
    border: none;
    background-color: white;
    border-radius: 2px;
    vertical-align: middle;
    text-align: center;
    padding: 5px;
    width: 30px;
    height: 30px;
}

.feedback button:hover {
    box-shadow: 2px 2px 5px 0 #000A;
}

#inbetween .img2 {
    display: none;
}

.sm-title {
    font-size: 22px;
    text-align: center;
    margin: 0;
}

#send {
    padding: 8px 25px;
    font-size: 19px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.privacy {
    width: 100%;
    height: max-content;
    padding: 20px min(6vw, 60px);
    /* background-color: white; */
    max-width: 600px;

    margin-bottom: 40px;
    border-radius: 10px;
    border: 1px solid #757575;
    background-color: #bcd1bf;
    box-shadow: 0 5px 7px 0px #0003;
    margin-top: 0;
    margin-bottom: 30px;
}

.privacy .sm-title {
    font-weight: 500;
    font-size: 18px;
    text-align: left;
    color: #22402e;
}


#inbetween .txt1 {
    grid-area: t1;
    margin-top: 0;
}
@media only screen and (min-width: 720px) {
    #hero h1 {
        width: 100%;
        text-align: center;
        font-size: max(55px, 6vw) !important;
        line-height: max(60px, 6vw) !important;
    }


    #inbetween .flex {
        grid-area: f;
        width: 100%;
        justify-content: space-evenly;
        margin-bottom: 30px;
    }

    #inbetween .flex img {
        height: 50px;
        width: unset;
    }

    #inbetween .flex img:nth-child(2) {
        height: 36px;
    }

    #inbetween .txt2 {
        grid-area: t2
    }

    #inbetween .txt3 {
        grid-area: t3
    }

    #inbetween img.img1 {
        display: none;
        grid-area: img1;
        height: 100%;
        width: 100%;
        object-fit: cover;
        overflow-clip-margin: unset;
    }

    #inbetween img.img2 {
        display: none;
        grid-area: img2;
        height: 100%;
        width: 100%;
        object-fit: cover;
        overflow-clip-margin: unset;
        border-radius: 15px;
    }

    #inbetween a.button {
        grid-area: a;
        justify-self: left;
        margin: 0;
        margin-top: 10px;
    }
    #inbetween img.img1{
        display: block;
    }
    #inbetween {
        display: grid;
        row-gap: 15px;
        grid-template-areas:
            "img1 t1 t1 t1"
            /* "t2 t2 t2 t2" */
            "t3 t3 t3 t3"
            "a  a . .";
        align-items: start;
        column-gap: 2%;
    }
}

@media only screen and (min-width: 840px) {
    #ratings .cards {
        display: flex;
        gap: 2%;
    }

    #ratings .ch {
        display: none;
    }

    #ratings .decor.ci {
        max-width: 300px;
        left: unset;
        right: 50%;
        top: 100%;
        transform: translateX(600px) translateY(-100%);
    }

    #ratings .decor.ci:nth-child(2) {
        bottom: unset;
        right: unset;
        top: 80px;
        left: 50%;
        transform: translateX(-600px);
    }
}

@media only screen and (min-width: 1140px) {
    #inbetween img.img1, #inbetween img.img2{
        display: block;
    }
    #inbetween {
        display: grid;
        grid-template-areas:
            "img1 img1 t1 t1  t1"
            /* "img1 img1 t2 t2  t2" */
            "t3 t3  t3  img2 img2"
            "a  a   a  img2 img2";
    }
}


main .contacts{
    display: flex;
    flex-direction: column;
    margin: auto;
    margin-bottom: 30px;
    padding: 0 min(6vw, 60px);
    margin-bottom: 20px;
    margin-top: 30px;
    max-width: 1000px;
}
main .contact img{
    width: 50px;
    aspect-ratio: 1;
}
main .contact{
    width: max-content;
    align-items: center;
    justify-content: left;
    gap: 30px;
    display: flex;
    margin-bottom: 20px;
    width: 100%;
    margin: auto;
    margin-bottom: 20px;
}
main .contact a{
    text-decoration: underline;
    color: black;
    font-size: 17px;
    text-decoration-thickness: 1px;
    flex-grow: 1;
    text-align: center;
}
main #contacts h2{
    font-size: min(10vw, 37px);
    margin: 20px 0;
    font-weight: 500;
    text-transform: uppercase;
}
@media only screen and (min-width: 720px){
    main .contacts{
        flex-direction: row;
        /* flex-wrap: wrap; */
        align-items: center;
        justify-content:center;
        gap: 30px;
        margin-bottom: 40px;
    }
    main .contact{
        gap: 30px;
        width: max-content;
        margin-bottom: 0;
    }
}