
html {
    scroll-behavior: smooth;
}



body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #ffffff;
    font-family: "Days One";
}

.days-one-regular {
    font-family: "Days One", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.header {
    background-color: #1B4AA7;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    min-height: 100px;
}

.logo img {
    width: 11%;
    height: auto;
}

.logo {
    margin-left: 5%;
}

.right-header {
    width: 140%;
    margin-right: 5%;
}

.menu {
    color: #f4f4f4;
    text-decoration: none;
    margin-bottom: 2%;
    white-space: nowrap;
}

ul {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    list-style: none;
    margin-right: 5%;
    width: auto;
}

#menu a {
    color: #f4f4f4;
    font-weight: 400;
    display: block;
    font-size: 120%;
    margin-left: 2%;
}


.nav-toggle {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

.nav-toggle-label {
    display: none;
    cursor: pointer;
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
}

.nav-toggle-label span {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
}


@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-toggle-label {
        display: block;
    }

    .right-header ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1B4AA7;
        padding: 20px;
        z-index: 10000;
    }

    .right-header ul.active {
        display: flex;
         z-index: 10000;
    }

    .right-header ul li {
        margin-bottom: 10px;
         z-index: 10000;
    }

    .nav-toggle {
        display: none;
         z-index: 10000;
    }


    .nav-toggle:checked ~ .right-header ul {
        display: flex;
         z-index: 10000;
    }

    .logo img {
        width: 30%; 
    }
}

@media screen and (min-width: 768px) {
    .right-header ul {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .right-header ul li {
        margin-bottom: 0;
    }
}

.banner {
    background-image: url("Group\ 13.png");
    background-repeat: no-repeat;
    background-size: cover; 
    margin-top: 0; 
    padding: 10px; 
}

.content-banner {
    text-align: center; 
    opacity: 0;        
    animation: fadeIn 1.5s ease-in-out forwards; 
}

@keyframes fadeIn {
    from {
        opacity: 0;       
    }
    to {
        opacity: 1;     
    }
}

.content-banner h1 {
    color: #f4f4f4;
    font-size: 440%;
    text-align: center;
    font-weight: 100;
    padding-top: 2%;
}

.content-banner h2 {
    color: #f4f4f4;
    font-size: 340%;
    text-align: center;
    font-weight: 100;
}

.content-banner h3{
    color: #f4f4f4;
    font-size: 160%;
    text-align: center;
    font-weight: 100;
}

.content-banner ul {
    color: #f4f4f4;
    font-size: 140%;
    text-align: center;
    font-weight: 100;
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 40%;

}

@media screen and (max-width: 768px) {
    .content-banner h1 {
        font-size: 200%; 
    }

    .content-banner h2 {
        font-size: 160%; 
    }

    .content-banner h3 {
        font-size: 120%; 
    }

    .content-banner ul {
        font-size: 100%; 
        margin-left: 0; 
        padding-bottom: 0; 
        margin-top: 0;
    }
}

.second-block {
    background-image: url("паттерн.png");
    filter: grayscale(40%);
    background-repeat: no-repeat;
    background-size: cover; 
    margin-top: 0; 
    padding: 10px; 
    display: flex;
    flex-direction: row;
}

.second-block img {
    margin-top: 20%;
    margin-bottom: 5%;
    width: 85%;
    margin-left: 5%;
}

.second-block-text {
    font-size: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-bottom: 5%;
    margin-right: 5%;
    background-color: #ffffffbe;
    width: 120%;
    margin-top: 5%;
}

@media screen and (max-width: 768px) {
    .second-block {
        flex-direction: column; 
        align-items: center; 
    }

    .second-block img {
        width: 100%; 
        margin-top: 5%; 
        margin-bottom: 20px; 
    }

    .text {
        width: 100%; 
        margin-right: 0; 
        margin-top: 0; 
        text-align: center;
    }

    .second-block-text {
        width: 100%; 
        margin-right: 5%; 
        margin-top: -5%; 
        text-align: left; 
        margin-left: 5%;

    }
}

.text-grid {
    display: flex;
    flex-direction: column;
    justify-items: center;
    max-width: 100%; 
    margin: 0 auto; 
    font-size: 25px;
}

.text-grid-up {
    display: flex;
    flex-direction: row;
    margin-top: 1%

}

.text-grid-down {
    display: flex;
    flex-direction: row;
}

.none-square {
    background-color: none;
    color: rgb(0, 0, 0);
    padding: 20px;
    width: calc(33.33%);
    height: 447px;
}

.none-square p{
    text-align: left;
}

.blue-square {
    background-color: #1B4AA7;
    color: aliceblue;
    padding: 20px;
    width: calc(33.33%);
    height: 447px;
}

.blue-square p{
        text-align: left;
}

.text-grid p {
    font-size: 20px; 
    line-height: 1.5; 
    font-weight: normal; 
    font-size: 30px;
}

.third-block {
    background-color: #ffffff;
    height: 1080px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.text-grid-up, .text-grid-down {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.none-square, .blue-square {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: calc(33.33% ); 
}

.blue-square {
    background-color: #1B4AA7;
    color: white;
}

h3 {
    font-size: 150%;
    margin-bottom: 10px;
    text-align: center;
    font-weight: 100;
}

p {
    font-size: 18px;
    margin-bottom: 10px;
    flex-grow: 1;
}

.price {
    font-size: 150%;
    font-weight: bold;
    margin-top: auto; 
    text-align: center;
}


@media screen and (max-width: 768px) {

    .third-block {
        margin-top: 70%;
    }

    .text-grid {
        flex-direction: column;
        align-items: center; 
    }

    .text-grid-up, .text-grid-down {
        flex-direction: column; 
        align-items: center; 
    }

    .none-square, .blue-square {
        width: 100%; 
        margin-left: 10%; 
        height: auto; 
    }

    .blue-square p {
        font-size: 14px;
    }

     .none-square p {
        font-size: 14px;
     }


    .none-square, .blue-square {
        margin-bottom: 20px; 
    }

    h3 {
        font-size: 120%; 
    }

    p {
        font-size: 14px; 
    }

    .price {
        font-size: 120%;
    }
}


.fourth-block {
    background-image: url("паттерн.png");
    height: 1080px;
    background-repeat: no-repeat;
    background-size: 100%;
    background-color: #ffffff;
}

.fourth-block h1{
    font-size: 55px;
    text-align: center;
    color: rgb(0, 0, 0);
}

.boxes {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5%;
}

.box {
    background-color: #1B4AA7;
    width: 14%;
    padding: 1%;
}

.box:hover {
    cursor: pointer;
    transform: scale(1.1);
}

.box h3 {
    color:#f4f4f4 ;
    text-align: center;
    font-size: 30px;
    margin-top: -5%;
}

.box p{
    color: #f4f4f4; 
    text-align: left;
    font-size: 20px;
    margin-left: 2%;
    margin-top: -3%;
}

.box img {
    width: 45%;
    margin-left: 55px;
    padding-bottom: 5%;
}

.rating {
    background-color: #ffffff;
    width: 800px;
    display: flex;
    flex-direction: row;
}

.client-ratings{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin: 5%;
}

.rating-value {
    font-size: 60px;
    margin: 6%;
}


@media screen and (max-width: 768px) {

.client-ratings {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .fourth-block {
        margin-top: 80%;
    }

    .boxes {
        flex-direction: column; 
        align-items: center; 
    }

    .box {
        width: 100%; 
        margin: 10px 0; 
    }

    .box img {
        width: 50%; 
        margin-left: 25%; 
    }

    .box h3 {
        font-size: 24px;
    }

    .box p {
        font-size: 16px; 
        text-align: center;
    }

    .rating {
        flex-direction: column; 
        align-items: center; 
        margin-left: -55%;
    }




    .rating-value {
        font-size: 30px; 
    }

    .a {
        display: flex;
        flex-direction: row;
        margin-left: -25%;
        text-align: center;

    }

    .stars img {
        width: 7%;
        height: 7%;
        margin-left: 7%;
    }

    .stars {
        margin-top: -5%;
        padding-bottom: 5%;
        margin-left: 7%;
    }

    .starss {
        margin-top: -5%;
        padding-bottom: 5%;
        margin-left: 5%;
    }

    .starss img {
        width: 7%;
        height: 7%;
        margin-left: 7%;
    }

    .starss p {
        font-size: 20px; 
        margin-left: 5%;
    }

    .stars p {
        font-size: 20px; 
        margin-left: 25%;
    }
}

.footer {
    height: 640px;
    background-color: #1B4AA7;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.google {
    margin: 5%;
}

.footer-right h2 {
    color: #f4f4f4;
    text-align: center;
    font-size: 35px;
}

.footer-right {
    margin-right: 5%;
    width: 800px;
}

.right {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.phone-numbers p{
    color: #f4f4f4;
    font-size: 20px;
}

.phone-numbers h3{
    color: #f4f4f4;
    font-size: 30px;
    margin-left: -5%;
}

.dates {
    display: flex;
    flex-direction: column;
    text-align: left;

}

.dates h3 {
    color: #f4f4f4;
    font-size: 30px;

}

@media screen and (max-width: 768px) {
    .footer {
        flex-direction: column; 
        align-items: center; 
        margin-top: 400%;
        height: 100%;
    }

    .google {
        width: 70%; 
        height: 50%; 
        margin-left: 5%;
    }

    .footer-right {
        width: 100%; 
        margin-top: 20px; 
        margin-right: 5%;
        font-size: 15%;
    }
.footer-right h2 {
    margin-left:5%;
}
    .right {
        flex-direction: column;
        align-items: left; 

    }

    .phone-numbers, .dates {
        width: 100%; 
        margin-bottom: 20px; 
        text-align: left;
        margin-left: 5%;

    }

.phone-numbers p {

    text-align: center;
    font-size: 25px;
}

    .phone-numbers h3, .dates h3 {
        font-size: 20px; 
    }

    .social {
        margin-left: 25%;
    }
}

.second-block-img img {
    transition: all 2s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    transform: scale(1);             
    opacity: 1;               
}

.second-block-img img.invisible {
    transform: scale(0);            
    opacity: 0;              
}