/* Отзывы */
.reviews-section {
  margin-bottom: 120px;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.reviews-container {
  width: 100%;
}

.reviews-carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 20px 0;
  margin-top: 40px;
  scrollbar-width: thin;
}

.reviews-carousel::-webkit-scrollbar {
  height: 8px;
}

.reviews-carousel::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}

.reviews-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

.review-card {
  min-width: 100%;
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  scroll-snap-align: start;
  transition: all 0.3s;
}

.review-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.review-author {
  font-weight: 600;
  color: var(--text-color);
  font-size: 16px;
}

.review-stars {
  font-size: 18px;
}

.review-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  margin-bottom: 16px;
}

.review-date {
  font-size: 14px;
  color: var(--secondary-color);
}

.no-reviews {
  text-align: center;
  padding: 60px 20px;
  color: var(--secondary-color);
  font-size: 18px;
}

.add-review-form {
  background: var(--white);
  padding: 40px;
  border-radius: 20px;
  border: 2px solid var(--border-color);
  margin-bottom: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  display: block;
}

.review-form-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-color);
}

.review-textarea {
  width: 100%;
  padding: 20px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  margin-bottom: 20px;
  min-height: 120px;
  transition: all 0.2s;
}

.review-textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.review-rating {
  margin-bottom: 24px;
}

.review-rating-label {
  display: block;
  margin-bottom: 12px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-color);
}

.review-rating-select {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--white);
  transition: all 0.2s;
}

.review-rating-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.review-actions {
  display: flex;
  gap: 12px;
}

.btn-review-submit,
.btn-review-cancel {
  padding: 14px 28px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-review-submit {
  background: var(--primary-color);
  color: white;
  width: 100%;
}

.btn-review-submit:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.btn-review-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.review-auth-message {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
  text-align: center;
}

.review-auth-message p {
  margin: 0;
  color: #856404;
  font-size: 15px;
}

.review-auth-message a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: 600;
}

.review-auth-message a:hover {
  color: #0056b3;
}

.btn-review-cancel {
  background: var(--bg-color);
  color: var(--text-color);
}

.btn-review-cancel:hover {
  background: var(--border-color);
}

.btn-add-review {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto;
  padding: 16px 32px;
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(111, 66, 193, 0.3);
}

.btn-add-review:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.4);
}

/* Добавить сервис */
.submit-service-section {
  margin-bottom: 120px;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.submit-service-block {
  width: 100%;
  background: var(--white);
  padding: 80px 60px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.submit-service-text {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-color);
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.submit-service-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.submit-benefit {
  text-align: center;
}

.submit-benefit-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  background: var(--primary-color);
  border-radius: 16px;
  color: white;
}

.submit-benefit h4 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-color);
}

.submit-benefit p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
}

.submit-service-cta {
  text-align: center;
}

.btn-submit-service {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.btn-submit-service:hover {
  background: var(--primary-color-dark, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-submit-service:active {
  transform: translateY(0);
}

.submit-service-note {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Адаптивность для блока добавления сервиса */
@media (max-width: 968px) {
  .submit-service-benefits {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .submit-service-block {
    padding: 60px 40px;
  }
}

@media (max-width: 768px) {
  .submit-service-block {
    padding: 40px 24px;
  }
  
  .submit-service-text {
    font-size: 18px;
  }
  
  .submit-benefit h4 {
    font-size: 20px;
  }
  
  .btn-submit-service {
    padding: 16px 32px;
    font-size: 16px;
  }
}

/* Разработка под ключ */
.development-section {
  margin-bottom: 120px;
  max-width: 1200px;
  width: calc(100% - 40px);
  margin-left: auto;
  margin-right: auto;
  padding: 0;
}

.development-block {
  width: 100%;
  background: var(--white);
  padding: 80px 60px;
  border-radius: 24px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.development-text {
  font-size: 22px;
  color: var(--secondary-color);
  line-height: 1.7;
  margin-bottom: 48px;
  text-align: center;
}

.development-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.dev-feature {
  padding: 32px;
  background: var(--bg-color);
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s;
  text-align: center;
}

.dev-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border-color: var(--primary-color);
}

.dev-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  border-radius: 16px;
  color: white;
}

.dev-feature h4 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-color);
}

.dev-feature p {
  font-size: 16px;
  color: var(--secondary-color);
  line-height: 1.6;
}

.development-cta {
  text-align: center;
}

.btn-development {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 40px;
  background: linear-gradient(135deg, #6f42c1 0%, #007bff 100%);
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  border-radius: 12px;
  transition: all 0.3s;
  box-shadow: 0 6px 20px rgba(111, 66, 193, 0.3);
}

.btn-development:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(111, 66, 193, 0.4);
}

@media (max-width: 768px) {
  .development-features {
    grid-template-columns: 1fr;
  }

  .add-review-form {
    padding: 24px;
  }

  .review-card {
    padding: 24px;
  }
}

