html, body
{
  width: 100%;
  height: 100%;

  margin: 0;
  padding: 0;

  font-family: "Inter", sans-serif;
}

body
{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
}
.main
{
  width: 100%;
  max-width: 1000px;

  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: flex-start;

  gap: 32px;

  padding: 2rem 4rem;
}
.main-header
{
  font-size: 50px;
  font-weight: 500;
  color: #222222;
}

.wrapper
{
  width: 100%;
  max-width: 1000px;
  height: 600px;

  box-sizing: border-box;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;

  gap: 32px;
}
.image
{
  width: 50%;
  height: 100%;

  box-sizing: border-box;
  padding: 0;

  background: url('images/msg.jpg')
  no-repeat center center;
  background-size: cover;
}
.toggler
{
  width: 50%;
  height: 100%;

  box-sizing: border-box;
  padding: 0;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;

  gap: 16px;
}
.toggler-item
{
  width: 100%;

  box-sizing: border-box;
  padding: 1rem;

  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: flex-start;

  background: #f2f2f2;

  -webkit-box-shadow: 0px 5px 15px 10px rgba(0,0,0,0.1);
  box-shadow: 0px 5px 15px 10px rgba(0,0,0,0.1);

  font-size: 20px;
  font-weight: 500;
  color: #222222;
}
.toggler-item-title
{
  width: 100%;
  box-sizing: border-box;
  padding: 0;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;

  gap: 24px;
  cursor: pointer;
}
.toggler-item-title-inner
{
  width: 100%;

  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;

  gap: 24px;
}
.toggler-item-title img
{
  width: 50px;
  height: auto;

  border-radius: 8px;
}
.toggler-item-title img.bug
{
  background: #222222;
}
.toggler-item-content
{
  width: 100%;

  box-sizing: border-box;
  padding: 0;

  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;

  font-size: 16px;
  font-weight: 400;
  color: #222222;
}
.toggler-item.active .toggler-item-content
{
  max-height: 600px; /* Задай заведомо большую высоту, чем будет занимать текст */
  opacity: 1;
  padding: 1rem 0; /* Возвращаем паддинг при открытии */
}
.toggler-item .ticon
{
  transition: transform 0.3s ease;
}
.toggler-item.active .ticon
{
  transform: rotate(180deg);
}


@media (max-width: 700px)
{
  .main
  {
    padding: 1rem; /* Уменьшаем огромные падинги на мобилках */
  }

  .main-header
  {
    font-size: 32px; /* Уменьшаем слишком большой заголовок */
  }

  .wrapper
  {
    flex-direction: column;
    height: auto; /* Убираем фиксированные 600px, чтобы контент не вылезал */
    gap: 24px;
  }

  .image
  {
    width: 100%;  /* Картинка теперь на всю ширину */
    height: 400px; /* Задаем ей фиксированную высоту, иначе в колонке она станет 0px */
  }

  .toggler
  {
    width: 100%;  /* Аккордеон теперь на всю ширину */
    height: auto; /* Позволяем ему расти вместе с открывающимся контентом */
  }

  body
  {
    min-height: 100vh;

    /* Убираем жесткий flex-центрирование, возвращаем обычный поток */
    display: block;
  }
}
