* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
}

 body {
    font-family: "Onest", sans-serif;
    color: #333;
    background-color: #fafafa;
} 

.container {
    max-width: 100%;
    width: 100%;
    /* margin: auto; */
}

.maincont {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* margin-top: 80vh; */
}

.maintitle {
    width: 80% !important;
    color: #8d46f6;
    background-color: #8d46f6;
    text-align: center;
    vertical-align: middle;
    margin-top: 5%;
}

.maintitle a{
    width: 90%;
    color: #ffffff;
    background-color: #8d46f6;
    text-align: center;
    vertical-align: middle;
    font-size: 10%;
    font-weight: 700;
    font-family: Onest, sans-serif;
    text-decoration-style: solid;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}
.reviews-block {
    width: 80vw;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  /* height: 100vh; */
  gap: 2rem;     /* Расстояние между элементами */
  padding: 2rem; /* Внутренний отступ */
}

.review-item {
    position: relative;
  background-color: #fafafa;
  border-radius: 8px;
  box-shadow: rgba(0, 0, 0, .1) 2px 2px 4px 2px;
  padding: 1.5rem;
  font-size: 1.1rem;
  line-height: 1.5;
  color: #333;
}
.item1{
    grid-column-start: 1;
    grid-row-start: 1;
    grid-row-end: 1;
}
.item2{
    grid-column-start: 1;
    grid-row-start: 2;
    grid-row-end: 2;
}
.tall-review { /* Удваиваем высоту третьего отзыва */
    grid-row-end: span 2;
}
.tall-review-summary { /* Удваиваем высоту третьего отзыва */
    background-color: #181929;
    grid-row-end: span 2;
    color: aliceblue;
    text-align: left;
}
.reviewer{
    font-size: 1rem;
    align-items: center;
    gap: 10px;
    width: 100%;
    display: flex;
    justify-content: start;
}
.avatar{
    border-radius: 50%;
    width: 2rem;
    height: auto;
}
.review_text{
    font-size: 1rem;
    padding-top: 10px;
    text-align: left;
    padding-bottom: 20px;
}

.review-image {
  background-image: url('your_image.jpg'); /* Здесь замените путь к вашей картинке */
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
}

.review-info{
    font-size: 1rem;
    padding-left: 5px;
    background-color: #8d46f6;
    width: 50%;
    margin-bottom: 20px;
}
.star_img{
    width: 1rem;
    height: auto;
}
.rate{
    margin-bottom: 10px;
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: start;
    gap: 10px;
    font-size: 1rem;
    /* align-items: center; */
    text-align: left;
    margin-top: 10px;
    font-weight: 500;
}
.milkyWay{
    border-radius: 10px;
    width: 100%;
    height: auto;
}
.milkyWay_text{
    margin-top: 1rem;
}


.plottext {
    color: #333;
    text-align: center;
    vertical-align: middle;
    margin: 5%;
    margin-bottom: 100px;
    font-size: 100%;
    font-weight: 400;
    font-family: Onest, sans-serif;
    text-decoration-style: solid;
    
}

.title{
    h3{
        color: #333;
        background-color: #8d46f6;
        text-align: center;
        vertical-align: middle;
        font-size: 48px;
        font-weight: 700;
        font-family: Onest, sans-serif;
        text-decoration-style: solid;
        text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    }
}

.logo {
    font-size: 2em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: black;
}

.navigation ul {
    list-style-type: none;
    display: flex;
}

.navigation li {
    margin-left: 20px;
}

.navigation a {
    text-decoration: none;
    color: inherit;
    transition: all .3s ease-in-out;
}

.navigation a:hover {
    color: #8d46f6;
}

.hero {
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background-image: linear-gradient(to right bottom, rgba(255, 255, 255, .5), rgba(255, 255, 255, .5)), url('https://via.placeholder.com/1920x1080');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.mainhead {
    width: 80vw;
    font-size: 3em;
    /* margin-bottom: 20px; */
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, .2);
}


.btn {
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform .3s ease-in-out;
}

.btn-primary {
    background-color: #8d46f6;
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: scale(1.05);
}

.inbe {
    margin-top: 15px;
}

.btn-outline {
    background-color: transparent;
    color: #8d46f6;
    border: 2px solid #8d46f6;
    transition: all .3s;
}

.btn-outline:hover {
    background-color: #8d46f6;
    color: white;
}

.about-us,
.services {
    padding: 60px 0;
    text-align: center;
    margin-top: 60px;
}

.service-blocks {
    display: grid;
    justify-content: center;
    gap: 30px;
    grid-template-columns: repeat(2, 25%);
    margin-top: 30px;
}

.greencolor {
    color: rgb(87, 217, 0);
}

.orangecolor {
    color: rgb(255, 123, 0);
}

.block {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    background-color: white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .1);
    border-radius: 10px;
    transition: transform .3s ease-in-out;
}

.block h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
}

.block p {
    line-height: 1.6;
    opacity: .8;
}

.block:hover {
    transform: translateY(-10px);
}


.prevideo {
    display: flex;
    align-items: center;
    margin: auto;
    width: 100%;
    height: calc(100vw/2);
}

.cardblock{
    gap: 10%;
    margin-top: 4%;
    margin-left: 2vw;
    margin-right: 2vw;
    border-radius: 40px;
    border-style: solid;
    border-color: transparent;
    border-width: 10px;
    /* background-color: rgb(229, 255, 192); */
    /* background-color: rgb(192,236,255); */
    width: 96vw;
    height:auto;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}
.blue{
    color: rgb(41, 155, 255);
    border-bottom: 1px solid rgb(41, 155, 255);
}

.line_dashed{
    margin-left: 2vw;
    margin-right: 2vw;
    width: 100%;
    border-bottom: 2px dashed #333;
}

.cardblock:translation

.cardinfo {
    margin-left: 2vw;
    color: #333;
    /* vertical-align: middle; */
    /* margin: 5%; */
    margin-top: 5vw;
    width: 40%;
    margin-bottom: 100px;
    margin-top: 2vw;
    
}

.cardtext{
    margin-top: 4vw;
    color: #333;
    text-align: justify;
    font-size: 1.5vw;
    font-weight: 400;
    font-family: Onest, sans-serif;
    text-decoration-style: solid;
    margin-left: 2vw;
    margin-right: 2vw;
    margin-bottom: 4vw;
    width: 48vw;
}
.cardtext__ol{
    margin-top: 2vw;
    color: #333;
    text-align: left;
    font-size: 1.5vw;
    font-weight: 400;
    font-family: Onest, sans-serif;
    text-decoration-style: solid;
    margin-right: 4vw;
}
.cardhead{
    text-align: left;
    font-size: 35px;
    font-weight: bold;
    font-family: "Oswald", sans-serif;
    color: #333;
    margin-left: 2vw;
    margin-top: 4vw;
}
.cardphoto{
    width: 17vw;
    height: auto;
    margin-left: 4vw;
    margin-right: 4vw;
}
.imgplace{
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.card__dot{
    height: 2vw;
    width: 2vw;
}
.list__el{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 1.5vw;
    text-align: left;
    margin-top: 1vh;
}
.button_small {
    height: 10vh;
    width: 20rem;
    border-radius: 1.5vh;
    border-color: transparent;
    background-color: black;
    color: azure;
    background-color: #fafafa;
    /* background-color: rgb(192,236,255); */
    /* background-color: rgb(229, 255, 192); */
    color: black;
    border: 0.5vh;
    border-style: solid;
    font-size: 2.5vh;
    margin-top: 5vh;
    transition: all .3s;
}

.button_small:hover {
    border-radius: 1.5vh;
    border-color: transparent;
    background-color: black;
    color: azure;
}

.btnplace{
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 1vw;
}
/* Адаптация для мобильных устройств */
@media screen and (max-width: 767px) {
    .reviews-block {
        width: auto;
        display: flex;
        flex-direction: column;
        gap: 2rem;     /* Расстояние между элементами */
        padding: 2rem; /* Внутренний отступ */
    }

    .tall-review {
        grid-row-end: auto;
    }
}

@media (max-width: 427px) {
    .btnplace{
        justify-content: center;
    }
    .cardblock {
        flex-direction: column;
    }
    .cardinfo {
        width: 100%;
    }
    .imgplace {
        width: 100%;
    }
    .cardtext {
        width: 84vw;
        font-size: 4.5vw;
    }
    .cardtext__ol {
        margin-right: 4%;
    }
    .cardhead {
        margin-right: 4%;
    }
    .cardphoto {
        height: 30vw;
        width: auto;
        margin-top: 0vw;
    }
    .list__el {
        text-align: left;
        margin-top: 5%;
        font-size: 4.5vw;
    }
    .card__dot {
        height: 10%;
        width: 10%;
    }
    .maintitle {
        width: 90vw; 
    }
    .plottext {
        font-size: 3vh;
        margin-bottom: 3vh;
    }
    .prevideo {
        margin-top: 3vh;
        margin-bottom: 5vh;
    }
    .mobile-none {
        display: none;
    }
    .mainhead {
        font-size: 10vw;
    }

}
