/* Services Pages Styles */
/* Стили для страниц услуг (шаблон services.php) */

/* Общие стили */
.section {
  padding: var(--spacing-lg) 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md) !;
}

/* Breadcrumb */
.breadcrumb {
  font-size: 14px;
  background: rgb(218 207 200 / 69%);
  padding: 8px 16px;
  border-radius: 20px;
  display: inline-flex;
}

.breadcrumb__link {
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600;
  position: relative;
}

.breadcrumb__link:hover {
  color: #f08230;
}

.breadcrumb__separator {
  color: #9ca3af;
  margin: 0 4px;
  font-weight: 400;
}

.breadcrumb__current {
  color: #f08230;
  font-weight: 700;
}

/* Page Header */
.post-header {
  background: linear-gradient(135deg, #ee8230 0%, #ffffff 50%, #f1f5f9 100%);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.post-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
   radial-gradient(circle at 20% 80%, rgb(115 254 50 / 10%) 0%, transparent 50%), 
   radial-gradient(circle at 80% 20%, rgb(199 236 170 / 8%) 0%, transparent 50%);
   pointer-events: none;
}

.post-header__content {
  text-align: left;
  max-width: 100%;
  position: relative;
  z-index: 2;
}

.post-header__title {
  font-family: 'Manrope', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: #1f2937;
  margin: 24px 0 16px 0;
  line-height: 1.2;
  background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.post-header__description {
  font-size: 18px;
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-weight: 400;
}


/* Content Layout */
.post-content {
  padding: 0px 0px;
  background: #ffffff;
}

.content-grid {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 60px;
  align-items: start;
}

.post-content__main {
  min-width: 0;
}

.post-content__text {
  font-size: 16px;
  line-height: 1.7;
  color: #374151;
}

.post-content__text h1,
.post-content__text h2,
.post-content__text h3,
.post-content__text h4,
.post-content__text h5,
.post-content__text h6 {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: #1f2937;
  margin: 2rem 0 1rem 0;
  line-height: 1.3;
}

.post-content__text h1 { font-size: 32px; }
.post-content__text h2 { font-size: 28px; }
.post-content__text h3 { font-size: 24px; }
.post-content__text h4 { font-size: 20px; }
.post-content__text h5 { font-size: 18px; }
.post-content__text h6 { font-size: 16px; }

.post-content__text p {
  margin-bottom: 1.5rem;
}

.post-content__text ul,
.post-content__text ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

.post-content__text li {
  margin-bottom: 0.5rem;
}

.post-content__text a {
  text-decoration: none;
  border-bottom-color: #478913;
  border-bottom: 1px solid ;
  transition: all 0.3s ease;
}

.post-content__text a:hover {
  border-bottom-color: #47891333;
}

/* Sidebar */
.post-content__sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-widget {
  background: #f8fafc;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid #e5e7eb;
}

.sidebar-widget__title {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav__link {
  color: #374151;
  text-decoration: none;
  padding: 2px 16px;
  border-radius: 0px;
  transition: all 0.3s ease;
  font-weight: 500;
  border-left: 3px solid transparent;
  border-bottom: 1px #e8e8e8 solid;
}

.sidebar-nav__link:hover {
  background: #ffffff;
  color: #478913;
  border-left-color: #478913;
  transform: translateX(4px);
}

.sidebar-nav__link.is-active {
  background: #ffffff;
  color: #478913;
  border-left-color: #478913;
  font-weight: 600;
}

.sidebar-product-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sidebar-product {
  display: flex;
  gap: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  background: white;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-product:hover {
  border-color: #c5d0c0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.sidebar-product__image {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.sidebar-product__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sidebar-product__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sidebar-product__title {
  font-weight: 600;
  font-size: 15px;
  color: #1f2937;
}

.sidebar-product__excerpt {
  font-size: 13px;
  color: #6b7280;
  line-height: 1.3;
}

/* Contact Info */
.contact-info {
  color: #374151;
}

.contact-info__item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.contact-info__item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.contact-info__item strong {
  color: #1f2937;
  font-weight: 600;
}

/* Tags */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.tag-list__item {
  background: #f3f4f6;
  color: #374151;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  transition: all 0.2s ease;
}

.tag-list__item:hover {
  background: #e5e7eb;
  color: #1f2937;
}

/* Layout Styles */
.post-content__layout {
  margin-top: 2rem;
}

/* Стили для layouts snippet */
.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter, 1.5rem);
}

.column {
  grid-column: span var(--columns, 12);
}

.margin-xl {
  margin: 2rem 0;
}

.text {
  line-height: 1.6;
}

/* Блоки внутри layout */
.text .blocks {
  margin: 0;
}

.text .block {
  margin-bottom: 1.5rem;
}

.text .block:last-child {
  margin-bottom: 0;
}

/* Стили для блоков внутри layout */
.text .block-heading h1,
.text .block-heading h2,
.text .block-heading h3,
.text .block-heading h4,
.text .block-heading h5,
.text .block-heading h6 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.text .block-text p {
  margin-bottom: 1rem;
}

.text .block-image {
  margin: 1.5rem 0;
}

.text .block-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

/* Стили для изображений в блоках - ограничение размера */
.post-content__text figure,
.post-content__layout figure,
.text figure {
  max-width: 100%;
  margin: 1.5rem 0;
  overflow: hidden;
}

.post-content__text figure img,
.post-content__layout figure img,
.text figure img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin: auto;
}

.post-content__text img,
.post-content__layout img,
.text img {
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* Ограничение высоты для больших изображений */
.post-content__text figure img,
.post-content__layout figure img {
  max-height: 400px;
}

.text figure img {
  max-height: 350px;
}

/* Catalog products */
/* Responsive Design */
@media (max-width: 1024px) {
  .content-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .post-content__sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .post-header {
    padding: 30px 0;
  }
  
  .post-header__title {
    font-size: 32px;
  }
  
  .post-content {
    padding: 40px 0;
  }
  
  .content-grid {
    gap: 30px;
  }
  
  .sidebar-widget {
    padding: 20px;
  }
  
  .column {
    grid-column: span 12;
  }
  
  /* Мобильные ограничения для изображений */
  .post-content__text figure img,
  .post-content__layout figure img {
    max-height: 250px;
  }
  
  .text figure img {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .post-header__title {
    font-size: 28px;
  }
  
  .content-grid {
    gap: 20px;
  }
  
  .sidebar-widget {
    padding: 16px;
  }
}

