
.profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}




.profile-card {
    background-color: transparent;
    border-radius: 8px;
    overflow: hidden;
}

/* Лейаут */
.profile-layout {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 2rem;
    padding: 1.5rem;
}

/* Фото */
.profile-photos {
    position: relative;
}

.main-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 704px;
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center;
}

.profile-main-photo {
    width: auto;
    height: 100%;
    border-radius: 10px;
    display: block;
    object-fit: cover;
    object-position: center;
}




.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #CBC2BF;
  border: none;
  color: #000;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.gallery-nav:hover {
  background: rgba(0, 0, 0, 0.8);
}

.gallery-nav.prev {
  left: 10px;
}

.gallery-nav.next {
  right: 10px;
}

.gallery-nav i {
  font-size: 20px;
}

.photo-counter {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: #CBC2BF;
  color: #000;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 14px;
  z-index: 2;
}
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.photo-grid .photo-item {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
  cursor: pointer;
}

.photo-grid .photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.photos-grid .photo-item:hover img {
  transform: scale(1.05);
}







/* Бейджи */
.badge {
    position: absolute;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    top: 5px;
    right: -5px;
}

.badge-top {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px;
    color: #FFC83A;
    border-radius: 8px;
}
.badge-pro {
    background-color: rgba(0, 0, 0, 0.3);
    padding: 12px;
    color: #9C9A9C;
    border-radius: 8px;
}
.badge-action {
    top: 1rem;
    right: 1rem;
    background-color: #FF4D4D;
    color: #fff;
}

/* Информация */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-number {
    background-color: #FFC83A;
    color: #000;
    padding: 0.35rem 0.7rem;
    border-radius: 5px;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.star {
    color: #FFD700;
}
.profile-verified {
    border: 1px solid #FFC83A;
    padding: 0.35rem 0.7rem;
    color: #FFC83A;
    border-radius: 5px;
}
.profile-name {
    font-size: 2rem;
    margin: 0 0 1rem 0;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 20px;
    text-transform: uppercase;
}

.profile-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 1rem;
}
.profile-location i {
    margin-right: 10px;
}
/* Параметры и цены */
.profile-params,
.profile-prices {
    margin-bottom: 1rem;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 20px;
}

.param-row,
.price-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #36373C;
    line-height: 40px;
    color: #f7f7f7;
    margin-bottom: 0.5rem;
}

.param-label,
.price-label {
    color: #fff;
}

.price-value {
    font-weight: bold;
}

/* Контакты */
.profile-contacts {
    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}
.profile-contacts-mobile {
    display: none;
}
.contact-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #9C9A9C;
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.contact-btn:not(.active) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background-color: #444544;
    border: none;
    border-radius: 8px;
    color: #9C9A9C;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
    cursor: not-allowed;
}

.contact-btn.active:hover {
    background-color: #444544;
    color: #9C9A9C; /* Предотвращает эффект наведения для неактивных кнопок */
}

/* Описание */
.profile-description {
    margin-bottom: 1rem;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 20px;
}
.profile-tabs-grid {
    display: grid;
    grid-template-columns: 1fr 260px ;
    grid-gap: 50px;
    align-items: start;
}
/* Табы */
.profile-tabs {
    padding: 1.5rem;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    gap: 1rem;
    margin-bottom: 1.5rem;

}

.tab-btn {
    padding: 0.75rem 0rem;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    border-bottom: 1px solid #333637;
}

.tab-btn.active {
    border-bottom: 1px solid #C39A30;
}

.tab-btn .counter {
    background-color: #444544;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}
.tab-btn.active .counter {
    background-color: #FFC83A;
    color: #000;
}
/* Фотогалерея */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.photo-item img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 4px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    grid-gap: 20px;
}
.add-review-btn {
    width: 100%;
    padding: 1rem;
    background-color: #FFD700;
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    margin-bottom: 1.5rem;
}

.reviews-stats {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 1.5rem;
}

.rating-big {
    font-size: 18px;
    font-weight: bold;
    background-color: #2A2B30;
    border-radius: 8px;
    padding: 15px 20px;

}
.rating-big p {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
}
.rating-big span {
    font-size: 16px;
    display: inline;
    color: #FFD700;
}
.stats-details {
    font-size: 18px;
    font-weight: bold;
    background-color: #1E1F23;
    border-radius: 8px;
    padding: 15px 20px;
}
.stats-details p {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 15px;
}

.review-item {
    background-color: #2A2B30;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.review-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #37383A;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}
.review-rating {
    text-wrap: nowrap;
    font-size: 14px;
}
.review-rating p {
    display: inline;
    margin-right: 5px;
}
.review-rating span.star {
    color: #FFD700;
}
.review-date {
    font-size: 14px;
    font-weight: bold;
}
.review-content {

}
.review-reply {
    margin-top: 1rem;
    padding: 0 1rem;
    border-left: 2px solid #555458;
}

.reply-header {
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
}
.reply-header p {
    font-size: 14px;
    margin-bottom: 0.5rem;
}

.profile-info-right {
    background-color: #2A2B30;
    padding: 20px;
    border-radius: 10px;
}
.profile-info-right i {
    display: block;
    color: #FFC83A;
    line-height: 40px;
}
.profile-info-right h3 {
    color: #FFC83A;
    line-height: 30px;
    margin-bottom: 20px;
}
.profile-info-right p {
    line-height: 24px;
}
.profile-info-right a {
    color: #FFC83A;
    text-decoration: none;
}
/* Шаринг */
.profile-share {
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    width: 100%;
    background-color: #2A2B30;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    position: relative;
}

.share-btn {
    padding: 0.75rem 1.5rem;
    background-color: #FFD700;
    border: none;
    border-radius: 8px;
    color: #000;
    cursor: pointer;
}

.share-dropdown {
    display: none;
    position: absolute;
    background-color: #2A2B30;
    padding: 20px 10px;
    top: 0;
    border-radius: 10px;
    gap: 10px;
}
.share-dropdown a {
    border: 1px solid #fff;
    width: 40px;
    height: 40px;
    color: #fff;
    display: flex;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}
.share-dropdown.active {
    display: flex;
}

/* Адаптивность */
@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .profile-contacts {
        display: none;
        grid-template-columns: 1fr 1fr;
    }

.profile-main-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    object-position: center;
}


.profile-contacts-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2A2B30;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}
.contact-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.contact-btn:not(.active) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: transparent;
    border: 1px solid #535458;
    border-radius: 8px;
    color: #535458;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
    cursor: not-allowed;
}

.contact-btn.active:hover {
    background-color: #444544;
    color: #9C9A9C; /* Предотвращает эффект наведения для неактивных кнопок */
}


.profile-name {
    font-size: 22px;
    margin: 0 0 1rem 0;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 10px 20px;
    text-transform: uppercase;
}
    .profile-params-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    .profile-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
}
.profile-tabs-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    align-items: start;
}
/* Табы */
.profile-tabs {
    padding: 10px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    gap: 1rem;
    margin-bottom: 1.5rem;

}

.tab-btn {
    padding: 0.75rem 0rem;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    border-bottom: 1px solid #333637;
}

.tab-btn.active {
    border-bottom: 1px solid #C39A30;
}

.tab-btn .counter {
    background-color: #444544;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}
.tab-btn.active .counter {
    background-color: #FFC83A;
    color: #000;
}
/* Фотогалерея */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}
.main-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    min-height: 400px;
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center;
}
.main-photo .profile-main-photo {
    height: 100%;
    object-fit: cover;
}
/* Информация */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.profile-number {
    background-color: #FFC83A;
    color: #000;
    font-size: 14px;
    padding: 0.25rem 0.6rem;
    border-radius: 5px;
}

.profile-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 14px;
}
.profile-rating span.star {
    color: #FFD700;
}
.star {
    color: #FFD700;
}
.profile-verified {
    border: 1px solid #FFC83A;
    padding: 0.25rem 0.6rem;
    color: #FFC83A;
    font-size: 14px;
    border-radius: 5px;
}
.profile-params,
.profile-prices {
    margin-bottom: 1rem;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 10px;
}

.param-row,
.price-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #36373C;
    line-height: 30px;
    font-size: 14px;
    color: #f7f7f7;
    margin-bottom: 0.5rem;
}
.profile-name {
    font-size: 22px;
    margin: 0 0 1rem 0;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 10px 20px;
    text-transform: uppercase;
}
}

@media (max-width: 480px) {
    .profile-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .profile-contacts {
        grid-template-columns: 1fr 1fr;
        display: none;
    }

.profile-main-photo {
    width: 100%;
    height: auto;
    border-radius: 20px;
    display: block;
    object-fit: cover;
    object-position: center;
}

.profile-contacts-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #2A2B30;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 8px;
}
.contact-btn.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    font-size: 14px;
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
}

.contact-btn:not(.active) {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    background-color: transparent;
    border: 1px solid #535458;
    border-radius: 8px;
    color: #535458;
    cursor: pointer;
    transition: background-color 0.2s;
    text-decoration: none;
    font-size: 1rem;
    cursor: not-allowed;
}

.contact-btn.active:hover {
    background-color: #444544;
    color: #9C9A9C; /* Предотвращает эффект наведения для неактивных кнопок */
}


.profile-name {
    font-size: 22px;
    margin: 0 0 1rem 0;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 10px 20px;
    text-transform: uppercase;
}

    .profile-params-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 10px;
    }
    .profile-container {
    margin: 0 auto;
    padding: 10px;
}
.profile-tabs-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    align-items: start;
}
/* Табы */
.profile-tabs {
    padding: 10px;
}

.tab-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    justify-content: start;
    gap: 1rem;
    margin-bottom: 1.5rem;

}

.tab-btn {
    padding: 0.75rem 0rem;
    background: none;
    border: none;
    text-align: left;
    color: #fff;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    border-bottom: 1px solid #333637;
}

.tab-btn.active {
    border-bottom: 1px solid #C39A30;
}

.tab-btn .counter {
    background-color: #444544;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.875rem;
    margin-right: 0.5rem;
}
.tab-btn.active .counter {
    background-color: #FFC83A;
    color: #000;
}
/* Фотогалерея */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.photo-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 4px;
}

/* Отзывы */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
}
.main-photo {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: auto;
    min-height: 500px;
    display: flex;
    justify-content: center; /* Центрирование по горизонтали */
    align-items: center;
}
.main-photo .profile-main-photo {
    min-height: 500px;
    object-fit: cover;
}
/* Информация */
.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    margin-top: -20px;
}

.profile-number {
    border: 1px solid #FFC83A;
    background-color: transparent;
    color: #FFC83A;
    font-size: 14px;
    padding: 0.30rem 0.6rem;
    border-radius: 5px;
}

.profile-rating {
    border: 1px solid #FFC83A;
    padding: 0.16rem 0.6rem;
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    border-radius: 5px;
}

.star {
    color: #FFD700;
}
.profile-verified {
    border: 1px solid #FFC83A;
    padding: 0.25rem 0.6rem;
    color: #FFC83A;
    font-size: 14px;
    border-radius: 5px;

}
.profile-params,
.profile-prices {
    margin-bottom: 1rem;
    background-color: #2A2B30;
    border-radius: 10px;
    padding: 10px;
}

.param-row,
.price-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #36373C;
    line-height: 30px;
    font-size: 14px;
    color: #f7f7f7;
    margin-bottom: 0.5rem;
}
}



/* Модальные окна */
.modal.active {
    display: flex;
    opacity: 1;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    color: #fff;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Форма отзыва */
.review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.form-group.display-flex {
   flex-direction: row; 
   align-items: center;
}
.form-group.code-group {
    flex-direction: row; 
    align-items: center;
}
.form-group.code-group input {
    line-height: 40px;
    margin-bottom: 0px;
}
.form-group.display-flex input {
    line-height: 40px;
    margin-bottom: 0px;
}
.success-message {
    display: block;
    margin-top: 0px;
    line-height: 40px;
}
.form-group2 {
    display: flex;
    flex-direction: column;
    gap: 5px;
    border: 2px solid #339474;
    border-radius: 8px;
}
.form-group label {
    font-size: 14px;
    line-height: 20px;
    margin-top: 20px;
    padding: 0px 20px;
}
.form-group input, .form-group textarea {
    line-height: 30px;
    margin-bottom: 20px;
    border: none;
}
.form-group.textarea {
    border: 2px solid #9C9A9C;
}
.form-group.textarea #reviewComment {
    padding: 0 10px;
    background-color: transparent;
    color: #fff;
}
#reviewComment:focus {
    border: none;
}
.rating-select {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 30px;
    margin-bottom: 20px;
    margin-left: -20px;
}
.rating-select p {
    display: inline;
    line-height: 30px;
    margin-top: 0;
    font-size: 16px;
}
.rating-value {
    background-color: #FFC83A;
    border-radius: 5px;
    color: #000;
    line-height: 30px;
    padding: 0 10px;
}
.stars {
    display: flex;
    gap: 5px;
    color: #FFD700;
    font-size: 24px;
    cursor: pointer;
}

.star {
    transition: color 0.2s ease;
    color: #9C9A9C;
}

.star.active {
    color: #FFD700;
}

.error-message {
    color: #ff4444;
    font-size: 12px;
    display: none;
}

.chars-counter {
    font-size: 12px;
    color: #666;
    align-self: flex-end;
}

/* Кнопки */
.btn-get-code,
.btn-verify,
.btn-submit {
    text-wrap: nowrap;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.btn-submit {
    width: 170px;
    padding: 20px;
    font-size: 16px;
    color: #000;
    text-align: center;
}
.btn-get-code,
.btn-verify {
    background: #FFC83A;
    color: #000;
    width: 101px;
    padding: 9px 11px;
}

.btn-submit {
    background: #FFD700;
}

.btn-submit:disabled {
    background: #9C9A9C;
    cursor: not-allowed;
    color: #131313;
}
.questions {
    position: absolute;
    right: 20px;
    top: 250px;
    cursor: help;
}
.questions::after {
    content: attr(data-title); /* Изменено с data-title на title */
    position: absolute;
    bottom: 100%;
    right: 20px;
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none; /* Добавлено, чтобы tooltip не мешал взаимодействию */
}

/* Стрелка для tooltip */
.questions::before {
    content: "";
    position: absolute;
    bottom: calc(100% - 5px);
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    pointer-events: none; /* Добавлено, чтобы tooltip не мешал взаимодействию */
}

/* Показываем tooltip при наведении */
.questions:hover::after,
.questions:hover::before {
    opacity: 1;
    visibility: visible;
}


/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        padding: 20px;
    }
}