body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

header {
    display: flex;
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    text-transform: uppercase;
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.wp-header {
    display: flex;
    max-width: 880px;
    align-items: center;
    flex-grow: 1; 
}


nav {
    display: flex;
    justify-content: center;
    margin-top: 10px;
    padding-bottom: 10px;

    margin-left: auto; 
}

section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.wp-provider-box {
    flex: 0 0 400px; 
    max-width: 850px;
    margin: 10px;
    padding: 15px;
    border: 1px solid #ccc;
    text-align: center;
    position: relative;
}

.wp-provider-info {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    font-size: 14px;
}

.wp-provider-column {
    width: 48%; /* Ширина колонки */
}

.wp-prov-logo {
    max-width: 100%;
    height: auto;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    clear: both; /* Добавлено для избежания наложения на основной контент */
}


.wp-medal {
    margin-left: auto;
    display: flex;
    position: relative;
}

.wp-gorevbtn {
    display: flex;
    margin-left: auto;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

#logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 2px;
}


input,
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    cursor: pointer;
    border: none;
}

button:hover {
    background-color: #555;
}

.wp-prov-box-rew{
    display: flex;
    align-items: center;
    padding: 0px 20px 0px;
    
}

.wp-prov-box-rew2{
    display: flex;
    flex-direction: column;
    max-width: 850px;
    padding: 0px 15px 15px;
}

.wp-main-rev{
    display: flex;
    flex-direction: column;
    border: 1px solid #ccc;
}

h1{
    display: flex;
    margin-right: auto;
    margin-block-start: 0.2em;
    margin-block-end: 0.2em;
}
h2{
    display: flex;
    margin-right: auto;
    margin-block-start: 0.2em;
    margin-block-end: 0.2em;
}

p{
    margin-block-start: 0.2em;
    margin-block-end: 1em;
}

.site-btn{
    display: flex;
    margin-left: auto;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
}

.review-list-new{
    display: flex;
}

.reviews-content{
    display: flex;
}

.site-btn-more{
    display: flex;
    margin-left: auto;
    margin-right: auto;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
    
}
.site-btn-add-rev{
    display: flex;
    margin-left: auto;
    margin-right: auto;
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border: none;
    border-radius: 5px;
    align-items: center;
    justify-content: center;
}
.rev-scroll{

    padding: 20px;
}

.medal{
    margin-left: auto;
    display: flex;
    position: relative;
}

.div-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.review-div {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 15px;
    box-sizing: border-box;
}

.div-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.user-avatar img {
    max-width: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.client-name {
    font-weight: bold;
    margin-right: 5px;
}

.date-box {
    color: #555;
    margin-right: 10px;
}

.score-box {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.score-star-sec span {
    font-size: 20px;
    color: #FFD700;
    margin-right: 5px;
}

.star {
    font-size: 20px;
    color: #ccc;
    margin-right: 5px;
}

.wp-main-rev{
    max-width: 850px;
    margin: 10px;
    padding: 0px 15px 15px;
    border: 1px solid #ccc;

}

@media screen and (max-width: 510px) {
    .wp-prov-box-rew{
        flex-direction: column;
    }
    .site-btn{
        margin-left: auto;
        margin-right: auto;
    }

    .div-review-header{
        flex-direction: column;

    }

    .score-box{
        margin-left: auto;
        margin-right: auto;
    }
    .site-btn-add-rev{
        margin-bottom: 5px;
    }
}


@media screen and (max-width: 584px) {
   .wp-header{
    flex-direction: column;
   }
   nav{
    margin-right: auto;
   }
}


.user-avatar2{
    display: flex;
    max-width: 60px;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

.wp-create-rev-header{
    display: flex;
    flex-direction: column;
}

.wp-create-rev-container{
    width: 350px;
}

nav {
    text-align: center;
}

nav a {
    margin: 0 8px;
    font-size: 18px;
    color: #fff; 
}

footer{
    text-align: center;
}

footer p  a{
    text-align: center;
    margin: 0 15px;
    font-size: 18px;
    color: #fff; 
}



.rating-area {
	overflow: hidden;
	width: 265px;
	margin: 0 -28px;
}
.rating-area:not(:checked) > input {
	display: none;
}
.rating-area:not(:checked) > label {
	float: right;
	padding: 0;
	cursor: pointer;
	font-size: 32px;
	line-height: 32px;
	color: lightgrey;
	text-shadow: 1px 1px #bbb;
}
.rating-area:not(:checked) > label:before {
	content: '★';
}
.rating-area > input:checked ~ label {
	color: gold;
	text-shadow: 1px 1px #c60;
}
.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label {
	color: gold;
}
.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area > label:hover ~ input:checked ~ label {
	color: gold;
	text-shadow: 1px 1px goldenrod;
}
.rate-area > label:active {
	position: relative;
}
