/* Additional styles for service pages and other components */

/* ==========================================
   SERVICE LIST
   ========================================== */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.service-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 30px;
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.service-item:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.service-item__icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: var(--white);
  flex-shrink: 0;
}

.service-item__content {
  flex: 1;
}

.service-item__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
}

.service-item__title a {
  color: var(--text-color);
  transition: var(--transition);
}

.service-item__title a:hover {
  color: var(--primary-color);
}

.service-item__description {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-item__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.service-item__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

.service-item__features i {
  color: var(--success-color);
  font-size: 16px;
}

.service-item__aside {
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 200px;
  align-items: stretch;
}

.service-item__price {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary-color);
  text-align: center;
}

/* ==========================================
   IMPROVED SERVICE BLOCKS
   ========================================== */
.service-single__content h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-color);
  margin: 30px 0 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
}

.service-single__content h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-color);
  margin: 25px 0 15px;
  position: relative;
  padding-left: 20px;
}

.service-single__content h3::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 2px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.check-list li:hover {
  background: var(--bg-gray);
  padding-left: 10px;
  border-radius: 8px;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li i {
  color: var(--success-color);
  font-size: 16px;
  flex-shrink: 0;
}

.check-list li i.fa-exclamation-triangle {
  color: #f59e0b;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin: 25px 0;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 12px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.process-step:hover {
  background: var(--white);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.process-step__number {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}

.process-step__text {
  font-weight: 500;
  color: var(--text-color);
}

.faq {
  margin: 25px 0;
}

.faq details {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  transition: var(--transition);
}

.faq details:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow);
}

.faq summary {
  padding: 20px;
  background: var(--bg-gray);
  cursor: pointer;
  font-weight: 600;
  color: var(--text-color);
  transition: var(--transition);
  list-style: none;
  position: relative;
}

.faq summary:hover {
  background: var(--white);
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--primary-color);
  transition: var(--transition);
}

.faq details[open] summary::after {
  content: '−';
}

.faq details[open] summary {
  background: var(--primary-color);
  color: var(--white);
}

.faq details p {
  padding: 20px;
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   SERVICE SINGLE PAGE
   ========================================== */
.service-single {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 32px;
}

.service-single__image {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 30px;
}

.service-single__image img {
  width: 100%;
  height: auto;
}

.service-single__content h2 {
  font-size: 32px;
  margin-bottom: 15px;
  margin-top: 30px;
}

.service-single__content h2:first-child {
  margin-top: 0;
}

.service-single__content h3 {
  font-size: 24px;
  margin-bottom: 15px;
  margin-top: 25px;
}

.service-single__content p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.process-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 8px;
}

.process-step__number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
}

.process-step__text {
  font-size: 16px;
  font-weight: 500;
}

.service-single__sidebar {
  position: sticky;
  top: 100px;
  height: fit-content;
}

.service-sidebar-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.service-sidebar-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.service-sidebar-card__price {
  text-align: center;
  margin-bottom: 20px;
}

.service-sidebar-card__price .label {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.service-sidebar-card__price .value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-color);
}

.service-sidebar-card--accent {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.service-sidebar-card--accent h3 {
  color: var(--white);
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

.sidebar-list i {
  color: var(--success-color);
  font-size: 16px;
}

/* ==========================================
   CONTACT PAGE
   ========================================== */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.contact-card {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--bg-gray);
  border-radius: 12px;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.contact-card__icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.contact-card__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 5px;
}

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

.contact-card__value a {
  color: var(--primary-color);
}

.social-buttons {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 8px;
  background: var(--bg-gray);
  transition: var(--transition);
  font-weight: 500;
}

.social-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.social-button i {
  font-size: 20px;
}

.contact-form-wrapper {
  background: var(--bg-gray);
  padding: 40px;
  border-radius: 12px;
}

.contact-form-wrapper h2 {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-form-wrapper p {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.map-placeholder {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

/* ==========================================
   ABOUT PAGE
   ========================================== */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.about-text h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.about-text p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 15px;
}

.about-image {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.stats-section {
  padding: 60px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.stat-card {
  text-align: center;
}

.stat-card__number {
  font-size: 56px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
}

.stat-card__label {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
}

.feature-item__icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.feature-item h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.feature-item p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   REVIEWS PAGE
   ========================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.review-card {
  background: var(--white);
  border-radius: 12px;
  padding: 25px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.review-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.review-card__author {
  display: flex;
  gap: 15px;
  align-items: center;
}

.review-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 24px;
}

.review-card__name {
  font-weight: 600;
  margin-bottom: 3px;
}

.review-card__date {
  font-size: 12px;
  color: var(--text-muted);
}

.review-card__rating {
  color: #fbbf24;
  font-size: 16px;
}

.review-card__text {
  line-height: 1.6;
  margin-bottom: 15px;
  color: var(--text-color);
}

.review-card__service {
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 15px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================
   ORGANIZATION PAGE
   ========================================== */
.org-content h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

.org-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.org-benefit {
  text-align: center;
  padding: 30px;
  background: var(--bg-gray);
  border-radius: 12px;
}

.org-benefit i {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.org-benefit h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.org-benefit p {
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.legal-content h2 {
  font-size: 28px;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content p {
  color: var(--text-muted);
  margin-bottom: 15px;
}

/* ==========================================
   CTA BOX
   ========================================== */
.cta-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  border-radius: 16px;
  padding: 50px;
  box-shadow: var(--shadow-lg);
  gap: 40px;
}

.cta-box__content {
  flex: 1;
}

.cta-box__title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.cta-box__text {
  font-size: 18px;
  color: var(--text-muted);
}

.cta-box__actions {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

/* Trusted By */
.trusted-by {
  position: relative;
  padding: 40px 0;
}

.trusted-by-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.trusted-by-grid.hidden {
  opacity: 0;
}

.trusted-item {
  height: 100px;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.trusted-item img { 
  max-width: 100%; 
  max-height: 60px; 
  height: auto; 
  filter: grayscale(1); 
  opacity: 0.7;
  transition: all 0.3s ease;
}

.trusted-item:hover img { 
  filter: none; 
  opacity: 1;
  transform: scale(1.05);
}


@media (max-width: 768px) {
  .trusted-by-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
  }
  
  .trusted-item { 
    height: 80px; 
    padding: 15px;
  }
  
  .trusted-item img { 
    max-height: 50px; 
  }
}

/* ==========================================
   RESPONSIVE - ADDITIONAL
   ========================================== */
@media (max-width: 1024px) {
  .service-single {
    grid-template-columns: 1fr;
  }
  
  .service-single__sidebar {
    position: static;
  }
  
  .contact-content {
    grid-template-columns: 1fr;
  }
  
  .about-content {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .service-item {
    grid-template-columns: 1fr;
  }
  
  .service-item__aside {
    flex-direction: row;
    min-width: 100%;
    gap: 10px;
  }
  
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .reviews-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    flex-direction: column;
    text-align: center;
    padding: 30px;
  }
  
  .cta-box__actions {
    width: 100%;
    justify-content: center;
  }
  
  .service-item__features {
    grid-template-columns: 1fr;
  }
}

/* Forms generic */
.contact-form input,
.contact-form select,
.contact-form textarea,
.order-form input,
.order-form select,
.order-form textarea {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

@media (max-width: 480px) {
  .contact-form-wrapper {
    padding: 24px;
  }
  .map-placeholder iframe {
    width: 100% !important;
  }
}

/* ==========================================
   SEO CONTENT SECTION
   ========================================== */
.seo-section {
  background: var(--bg-gray);
}

.seo-content {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.75;
}

.seo-content h2 {
  font-size: 34px;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-color);
  line-height: 1.3;
}

.seo-content h3 {
  font-size: 22px;
  font-weight: 600;
  margin-top: 24px;
  margin-bottom: 14px;
  color: var(--text-color);
}

.seo-content p {
  color: var(--text-muted);
  margin-bottom: 14px;
  font-size: 16px;
}

.seo-content p strong {
  color: var(--text-color);
  font-weight: 600;
}

.seo-list {
  list-style: none;
  margin: 16px 0;
  padding-left: 0;
}

.seo-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

.seo-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--success-color);
  font-weight: 700;
  font-size: 18px;
}

.seo-list li strong {
  color: var(--text-color);
  font-weight: 600;
}

.check-list {
  list-style: none;
  margin: 20px 0;
  padding-left: 0;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.check-list i {
  color: var(--success-color);
  font-size: 18px;
  margin-top: 3px;
  flex-shrink: 0;
}

.check-list .fa-exclamation-triangle {
  color: var(--warning-color, #ff9800);
}

.seo-cta {
  margin-top: 28px;
  padding: 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  border-radius: 16px;
  text-align: center;
  color: var(--white);
}

.seo-cta h3 {
  color: var(--white);
  font-size: 24px;
  margin-bottom: 12px;
  margin-top: 0;
}

.seo-cta p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  margin-bottom: 18px;
}

.seo-cta .btn {
  margin-top: 10px;
}

.seo-cta-inline {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 30px;
  padding: 30px;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.seo-cta-text {
  font-size: 16px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================
   ERROR PAGES
   ========================================== */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content {
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-size: 120px;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 20px;
}

.error-title {
  font-size: 32px;
  margin-bottom: 15px;
}

.error-text {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ==========================================
   RESPONSIVE IMPROVEMENTS
   ========================================== */
@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .process-step {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }
  
  .service-single__content h2 {
    font-size: 22px;
  }
  
  .service-single__content h3 {
    font-size: 18px;
  }
  
  .check-list li {
    padding: 10px 0;
  }
  
  .faq summary {
    padding: 15px;
  }
  
  .faq details p {
    padding: 15px;
  }
}

/* ==========================================
   FAQ
   ========================================== */
.faq {
  max-width: 900px;
  margin-top: 18px;
}

.faq details {
  background: var(--bg-gray);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0 14px;
}

.faq details + details { margin-top: 10px; }

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 14px 0;
  font-weight: 600;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
}

.faq details[open] summary::after {
  content: "–";
}

.faq p { margin: 0 0 14px 0; color: var(--text-muted); }

/* ==========================================
   SEO RESPONSIVE
   ========================================== */
@media (max-width: 768px) {
  .seo-content h2 {
    font-size: 24px;
  }
  
  .seo-content h3 {
    font-size: 18px;
  }
  
  .seo-cta {
    padding: 22px 16px;
  }
  
  .seo-cta h3 {
    font-size: 20px;
  }
  
  .seo-cta p {
    font-size: 14px;
  }
  
  .seo-cta-inline {
    flex-direction: column;
    text-align: center;
  }
  
  .error-code {
    font-size: 80px;
  }
  
  .error-title {
    font-size: 24px;
  }
  
  .error-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .error-actions .btn {
    width: 100%;
  }
}

/* Уплотнение отступов на страницах услуг */
body.page-services .section,
body.page-service-single .section {
  padding: 48px 0;
}

@media (max-width: 480px) {
  body.page-services .section,
  body.page-service-single .section { padding: 36px 0; }
  .service-single { gap: 20px; }
}

