/* ================================================================= */
/* Шапка сайта                                                       */
/* ================================================================= */
.header-section {
  text-align: center;
  position: relative;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Баннер */
.header-banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  border-radius: 0;
  overflow: visible; /* Чтобы логотип на 50% свисал ниже границы фона */
}

/* Фоновое изображение во всю ширину */
.header-bg-img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
}

/* Круглый контейнер логотипа */
.brand-logo-wrap {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #ffffff;
  box-shadow: 0 6px 18px rgba(78, 61, 46, 0.14);
  overflow: hidden;

  /* Центрирование и смещение ровно наполовину за нижний край */
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translate(-50%, 50%);
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Логотип */
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Слоган под баннером */
.brand-subtitle {
 /* font-family: 'Playpen Sans', cursive, sans-serif;*/
  font-size: 1.45rem;
  color: var(--text-soft);
  letter-spacing: 0.02em;
  margin: 72px auto 30px;
  line-height: 1.3;
  text-align: center;
  padding: 0 16px;
  max-width: 800px;
}

/* ================================================================= */
/* Адаптив для планшетов и смартфонов                                */
/* ================================================================= */
@media (max-width: 768px) {
  .header-bg-img {
    height: 160px;
  }

  .brand-logo-wrap {
    width: 86px;
    height: 86px;
    border-width: 2.5px;
  }

  .brand-subtitle {
    font-size: 1.15rem;
    margin-top: 56px;
    margin-bottom: 22px;
  }
}