/* Services Page Styles */

/* Page background */
.element {
  background-color: #f5f5f5;
}

/* Fix main element alignment */
main.projects-page.element {
  align-items: center;
}

/* Add padding to footer on services page */
/* Removed - conflicts with footer.css */

/* Footer info-box styles */
.footer .info-box {
  display: flex;
  flex-direction: column;
  gap: 24px;
  flex: 1;
}

.footer .privacy-policy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  position: relative;
  align-self: stretch;
  width: 100%;
  flex: 0 0 auto;
  background-color: var(--dark-9);
  border-radius: 24px;
}

/* Исправление чекбоксов в футере на странице services */
.element .footer .custom-checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 8px !important;
  cursor: pointer !important;
  user-select: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.element .footer .custom-checkbox .checkmark {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  background: #fff url("img/icons/Checkbox.svg") center/contain no-repeat !important;
  border-radius: 4px !important;
  flex-shrink: 0 !important;
  transition: 0.2s ease-in-out !important;
  margin: 0 !important;
}

.element .footer .custom-checkbox input:checked + .checkmark {
  background: #fff url("img/icons/Checkbox-checked.svg") center/contain no-repeat !important;
}

.element .footer .custom-checkbox .label-text {
  font-size: 14px !important;
  color: #333 !important;
  line-height: 1.5 !important;
  flex: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.element .footer .custom-checkbox:not(.required-checkbox) {
  padding: 0 !important;
  margin: 0 !important;
}

/* Header container width fix for services page */
.header-white .container {
  max-width: 1312px !important;
}

/* Content wrappers for consistent width */
.hero-content,
.filters-content,
.grid-content {
  max-width: 1312px;
  width: 100%;
  padding: 0 15px;
  margin: 0 auto;
}

/* Container for content sections */
.container-content {
  max-width: 1342px;
  width: 100%;
  padding: 0px 15px;
  margin: 0px auto;
  position: relative;
}

/* Projects Hero Section */
.projects-hero {
  padding: 80px 0 60px;
  background: linear-gradient(180deg, rgba(248, 249, 250, 0.02) 0%, rgba(248, 249, 250, 0) 100%);
  width: 100%;
}

/* Reduce padding for projects-hero on services page */
.projects-hero {
  padding: 40px 0 20px !important;
}

.breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}

.breadcrumb-link {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-link:hover {
  color: #007bff;
}

.breadcrumb-separator {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #6c757d;
  font-size: 14px;
}

.breadcrumb-current {
  font-family: "Inter", Helvetica;
  font-weight: 400;
  color: #212529;
  font-size: 14px;
}

.projects-title {
  color: var(--dark-9);
  font-family: var(--head-01-font-family);
  font-size: 36px;
  font-weight: 700;
  line-height: 130%;
  margin-bottom: 24px;
  max-width: 900px;
}

.projects-subtitle {
  color: var(--gray-7);
  font-family: var(--text-m-14-font-family);
  font-size: 18px;
  font-weight: 400;
  line-height: 150%;
  max-width: 800px;
  margin-bottom: 16px;
}

/* Services Section */
.services-section {
  padding: 40px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 64px;
  align-items: stretch;
}

.service-card {
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.service-image {
  width: 100%;
  height: 240px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.service-title {
  color: #101113;
  font-family: var(--head-03-font-family);
  font-size: 20px;
  font-weight: 600;
  line-height: 130%;
  margin-bottom: 16px;
}

.service-description {
  color: var(--gray-7);
  font-family: var(--text-m-14-font-family);
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
}

/* CTA Buttons */
.services-cta {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.btn-outline {
  padding: 16px 32px;
  border-radius: 40px;
  background: #ffffff;
  color: var(--dark-9);
  font-family: var(--head-05-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid var(--dark-9);
}

.btn-outline:hover {
  background: var(--dark-9);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn-primary {
  padding: 16px 32px;
  border-radius: 40px;
  background: var(--yellow-5);
  color: var(--dark-9);
  font-family: var(--head-05-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 130%;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.btn-primary:hover {
  background: #e6a500;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(230, 165, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .projects-title {
    font-size: 32px;
  }
  
  .projects-subtitle {
    font-size: 16px;
  }
  
  .projects-hero {
    padding: 60px 0 40px;
  }
  
  .services-section {
    padding: 60px 0;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .service-content {
    padding: 24px 20px;
  }
  
  .services-cta {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-outline,
  .btn-primary {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .projects-hero {
    padding: 40px 0 30px;
  }
  
  .projects-title {
    font-size: 26px;
  }
  
  .projects-subtitle {
    font-size: 14px;
  }
  
  .service-title {
    font-size: 18px;
  }
  
  .service-description {
    font-size: 14px;
  }
}