/* === Отступ для контента, чтобы не заезжал под брендинг === */
body {
  margin-left: 20%;
}

@media (max-width: 1024px) {
  body {
    margin-left: 0;
  }
}

/* === Фиксированный брендинг-блок слева === */
.longshadow-branding {
  position: fixed;
  top: 0;
  left: 0;
  width: 20%;
  min-width: 280px;
  height: 100vh;
  background-image: url('images/longshadow.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  color: #fff;
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.5rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* === Центр брендинга: бургер + соц.иконки === */
.branding-center {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  width: 100%;
}

/* === Бургер-кнопка сверху === */
#branding-burger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

#branding-burger span {
  display: block;
  width: 24px;
  height: 3px;
  margin: 4px 0;
  background-color: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.menu-open #branding-burger span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
body.menu-open #branding-burger span:nth-child(2) {
  opacity: 0;
}
body.menu-open #branding-burger span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* === Соц.иконки — прижаты вниз через margin-top: auto === */
.branding-social {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.2rem;
  margin-left: 0.2rem;
  margin-top: 40vh; /* 🔥 поднимает к середине экрана */
}

.branding-social a {
  display: block;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.branding-social a:hover {
  transform: scale(1.2);
}

.social-icon {
  width: 100%;
  height: 100%;
  transition: fill 0.3s ease;
}

.social-icon.facebook {
  fill: #1877f2; /* синий Facebook */
}
.social-icon.facebook:hover {
  fill: #0e5dc9; /* чуть темнее */
}

.social-icon.instagram {
  fill: #e1306c; /* розовый Instagram */
}
.social-icon.instagram:hover {
  fill: #c2185b; /* насыщеннее */
}

.social-icon.email {
  fill: #ffd700; /* золотой */
}
.social-icon.email:hover {
  fill: #e6c200; /* чуть темнее */
}

/* === Заголовок внизу брендинг-блока === */
.longshadow-branding h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 12px 18px;
  border-radius: 4px;
  margin: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeIn 1.2s ease-in forwards;
}

/* === Адаптация под мобильные устройства === */
@media (max-width: 1024px) {
  .longshadow-branding {
    position: relative;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
  }

  .branding-center {
    align-items: center;
  }

  #branding-burger {
    align-items: center;
  }

  .branding-social {
    flex-direction: row;
    justify-content: center;
    margin: 1rem 0;
    margin-top: 1rem;
  }

  .longshadow-branding h1 {
    margin-top: 1rem;
  }

  body {
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  body.home .longshadow-branding {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    background-size: cover;
    background-position: center center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5rem;
  }
}
@media (max-width: 768px) {
  #branding-burger {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 48px;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .branding-social {
    position: fixed;
    top: 5rem; /* чуть ниже бургера */
    right: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    z-index: 99;
  }

  .branding-social a {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
  }
}
.branding-social .phone-link {
  display: none;
}

@media (max-width: 768px) {
  .branding-social .phone-link {
    display: flex;
  }
}
