/* === О проекте === */
.about-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 1rem 1rem;
  text-align: center;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.about-section h2 {
  font-size: 2rem;
  color: #2D3748;
  margin-bottom: 1rem;
  font-weight: 700;
}

.about-section p {
  font-size: 1.1rem;
  color: #444;
  line-height: 1.6;
}

/* === Категории === */
.categories {
  padding: 4rem 2.5rem;
  background: #f5f5f5;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.category {
  position: relative;
  height: 250px;
  background: var(--image) no-repeat center center/cover;
  color: white;
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.category span {
  z-index: 2;
  text-align: center;
  padding: 0 1rem;
  text-shadow: 1px 1px 5px black;
}

.category::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  transition: background 0.3s ease;
  z-index: 1;
}

.category:hover::before {
  background: rgba(0, 0, 0, 0.55);
}

.category::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  border-radius: 12px;
  border: 5px solid #E63600;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  animation: border-run 4s linear forwards;
}

.category:hover::after {
  opacity: 1;
}

@keyframes border-run {
  0%   { clip-path: polygon(0 0, 0 0, 0 0, 0 0); }
  25%  { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); }
  50%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 0); }
  75%  { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
  100% { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); }
}

/* === Особенности сайта === */
.features-section {
  background: linear-gradient(135deg, #2D3748 50%, #657D03 50%);
  transform: skewY(-3deg);
  margin-top: 5rem;
  padding: 7rem 0;
  color: white;
  width: 100vw;
  margin-left: -50vw;
  left: 50%;
  position: relative;
  z-index: 1;
}

.features-inner {
  transform: skewY(3deg);
  padding: 0 2rem;
  text-align: center;
}

.features-inner h2 {
  font-size: 2.2rem;
  margin-bottom: 5rem;
  color: #fff;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin-top: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-list li {
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.feature-list li:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.feature-list .icon {
  font-size: 1.6rem;
  background: #E63600;
  color: white;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}