:root {
  --primary-color: #0e76bc;
  --primary-dark: #085890;
  --primary-light: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #f39c12;
  --text-color: #333;
  --text-light: #666;
  --border-color: #e0e0e0;
  --bg-light: #f5f7fa;
  --box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* Основная структура страницы категории */
.category-section {
  padding: 60px 0;
  background-color: white;
}

.catalog-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

/* Боковая навигация по категориям */
.catalog-nav {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  height: fit-content;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.nav-item2 {
  display: block;
  padding: 15px 20px;
  color: var(--text-color);
  text-decoration: none;
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
  font-weight: 500;
  font-size: 14px;
}

.nav-item2:hover,
.nav-item2.active {
  background: var(--primary-color);
  color: white;
  padding-left: 25px;
  font-weight: 600;
}

.nav-item2:last-child {
  border-bottom: none;
}

/* Основная область контента */
.content-area {
  background: white;
  border-radius: 10px;
  padding: 30px;
  box-shadow: var(--box-shadow);
}

.content-header {
  margin-bottom: 25px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border-color);
}

.content-title {
  font-size: 28px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.breadcrumbs {
  color: var(--text-light);
  font-size: 14px;
}

.breadcrumbs a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.content-description {
  color: var(--text-light);
  margin-bottom: 30px;
  line-height: 1.8;
  font-size: 16px;
}

.content-description p {
  margin-bottom: 15px;
}

/* Галерея изображений */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  height: 200px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.gallery-item:hover .gallery-image {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(14, 118, 188, 0.2);
  opacity: 0;
  transition: var(--transition);
}

.gallery-item:hover::after {
  opacity: 1;
}

/* Аккордеон для разделов */
.accordion-sections {
  margin-bottom: 40px;
}

.accordion-section {
  margin-bottom: 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-header {
  padding: 18px 20px;
  background: var(--bg-light);
  cursor: pointer;
  font-weight: 600;
  color: var(--secondary-color);
  transition: var(--transition);
  position: relative;
}

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

.accordion-header.active {
  background: var(--primary-color);
  color: white;
}

.accordion-header.active::after {
  content: '–';
}

.accordion-header:hover {
  background: var(--primary-light);
  color: white;
}

.accordion-content {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.accordion-content-inner {
  padding: 20px;
}

.accordion-content p, .accordion-content ul, .accordion-content ol {
  margin-bottom: 15px;
  line-height: 1.7;
  color: var(--text-light);
}

.accordion-content ul, .accordion-content ol {
  padding-left: 20px;
}

.accordion-content li {
  margin-bottom: 8px;
}

/* Типы профилей */
.profile-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.profile-item {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.profile-item h4 {
  color: var(--primary-color);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.profile-item p {
  margin-bottom: 10px;
  font-size: 14px;
}

.profile-item p:last-child {
  margin-bottom: 0;
}

/* Связанные проекты */
.related-projects {
  margin: 40px 0;
}

.related-projects h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.related-projects h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.projects-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.project-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.project-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.project-item a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: var(--transition);
}

.project-item:hover img {
  transform: scale(1.05);
}

.project-info {
  padding: 15px;
}

.project-info h4 {
  font-size: 16px;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: var(--transition);
}

.project-item:hover .project-info h4 {
  color: var(--primary-dark);
}

.project-date {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 500;
}

/* Калькулятор стоимости */
.category-calculator {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  margin-top: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.category-calculator h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.calculator-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}

.calculator-field {
  margin-bottom: 15px;
}

.calculator-field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--secondary-color);
}

.calculator-field input,
.calculator-field select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 16px;
  transition: var(--transition);
}

.calculator-field input:focus,
.calculator-field select:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(14, 118, 188, 0.1);
}

.calculate-btn {
  background: var(--primary-color);
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  width: 100%;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.calculate-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(14, 118, 188, 0.2);
}

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

.calculator-result {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.result-price {
  font-size: 26px;
  font-weight: bold;
  color: var(--primary-color);
  margin: 15px 0;
}

/* Адаптивная верстка */
@media (max-width: 1200px) {
  .catalog-container {
    padding: 15px;
    gap: 30px;
  }
  
  .profile-types {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .catalog-container {
    grid-template-columns: 250px 1fr;
  }
  
  .content-title {
    font-size: 24px;
  }
  
  .image-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-slider {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .catalog-container {
    display: flex;
    flex-direction: column;
  }
  
  .category-section {
    padding: 40px 0;
  }
  
  .content-area {
    order: 1;
    margin-bottom: 30px;
    padding: 20px;
  }
  
  .catalog-nav {
    order: 2;
    width: 100%;
  }
  
  .profile-types {
    grid-template-columns: 1fr;
  }
  
  .calculator-fields {
    grid-template-columns: 1fr;
  }
  
  .projects-slider {
    grid-template-columns: 1fr;
  }
  
  .content-title {
    font-size: 22px;
  }
}

@media (max-width: 576px) {
  .image-gallery {
    grid-template-columns: 1fr;
  }
  
  .accordion-header {
    padding: 15px;
    font-size: 14px;
  }
  
  .accordion-header::after {
    right: 15px;
  }
  
  .accordion-content {
    padding: 15px;
  }
  
  .category-calculator h3 {
    font-size: 18px;
  }
}

/* Стили для видео секции */
.video-section {
  margin: 30px 0;
}

.video-section h3 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.video-section h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background-color: var(--primary-color);
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--box-shadow);
  background-color: #000;
}

.service-video {
  width: 100%;
  height: auto;
  display: block;
  background-color: #000;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(14,118,188,0.2));
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-overlay:hover {
  background: linear-gradient(45deg, rgba(0,0,0,0.4), rgba(14,118,188,0.3));
}

.play-button {
  transition: all 0.3s ease;
  transform: scale(1);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.play-button:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.play-button svg {
  width: 80px;
  height: 80px;
}

.play-button svg circle {
  transition: all 0.3s ease;
}

.play-button:hover svg circle {
  fill: rgba(255,255,255,1);
}

.play-button svg path {
  transition: all 0.3s ease;
}

.play-button:hover svg path {
  fill: var(--primary-dark);
}

/* Адаптивность для видео */
@media (max-width: 768px) {
  .video-container {
    margin: 0;
  }
  
  .video-section h3 {
    font-size: 18px;
  }
  
  .play-button svg {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .play-button svg {
    width: 50px;
    height: 50px;
  }
}
