body {
  background-color: #000;
  background-image: url("/static/bg.png");
  background-repeat: no-repeat;
  background-position: left top;
  background-attachment: fixed;
  background-size: auto;
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  font-size: 1rem; /* Возвращаем стандартный размер */
}

@media (max-width: 768px) {
  body {
    background-size: 100%;
    background-position: center top;
    background-attachment: scroll;
    /* font-size удалён — шрифт остаётся стандартным */
  }

  .content-section {
    padding: 1rem;
    margin: 0 0.5rem; /* уменьшенные внешние отступы */
  }
}

.site-title {
  position: absolute;
  top: 20px;
  right: 40px;
  text-align: right;
  z-index: 1000;
}

.brand-title {
  margin: 0;
  font-size: 2.8rem;
  font-weight: 700;
  color: white;
}

.brand-subtitle {
  font-size: 1.2rem;
  color: #ccc;
  margin-top: -5px;
}

.content-section {
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  color: #111;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.content-section .card {
  background-color: #f8f9fa;
  transition: transform 0.2s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-section .card:hover {
  transform: translateY(-4px);
}

.content-section .card-title {
  font-weight: 600;
}

.content-section h2 {
  font-weight: 600;
}

.tech-icon {
  height: 50px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.8;
}

.tech-icon:hover {
  transform: scale(1.15);
  opacity: 1;
}

.card-img-top {
  border-radius: 1rem;
  object-fit: cover;
  height: 200px;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.card-body {
  padding: 1rem;
}

.portfolio-section .card {
  border-radius: 1rem;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.portfolio-section .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}