body {
    margin: 0; /* Убираем отступы браузера */
    padding: 0; /* Убираем внутренние отступы */
    
    background: linear-gradient(120deg, #0d2445 0%, #1a1e40 40%, #3a1e45 80%, #100a25 100%);
    background-attachment: fixed; /* Фиксируем фон, чтобы он не «размножался» при прокрутке */
    background-size: cover; /* Растягиваем на весь экран с сохранением пропорций */
    background-position: center; /* Центрируем градиент */
    background-repeat: no-repeat; /* Запрещаем повторение фона */
    
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    font: normal normal 14px/20px Arial, Georgia, "Times New Roman", Times, serif;
    
    min-height: 100vh; /* Гарантируем высоту в 100% от высоты экрана */
    width: 100%; /* Ширина на весь экран */
}


h1 {
    color: white;
    font-size: 24px;
    font-weight: lighter;
}

h2 {
    color: white;
    font-size: 24px;
    font-weight: lighter;
}

.clr {
    clear: both;
}


.content {
    width: 800px;
    margin: 20px auto;
    z-index: 20;
}

.post {
    background: #F5F5F5;
    width: 100%;
    padding: 20px;
    float: left;
}

.description {
    color: white;
    font-family: Calibri Light;
    font-size: 16px;
    line-height: 18px;
    margin-top: 10px;
}



/* Форма обратной связи */
#inline {
    margin-left: 30px;
    width: 80%;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px;
}

.txt {
    display: inline-block;
    color: #676767;
    width: 190px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 5px 9px;
    font-size: 15px !important;
    line-height: 1.4em;
}

.txtarea {
    display: inline-block;
    color: #676767;
    width: 617px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    padding: 5px 9px;
    font-size: 15px !important;
    line-height: 1.4em;
    height: 80px;
}

.txt:focus,
.txtarea:focus {
    border-style: solid;
    border-color: #bababa;
    color: #444;
}

input.error,
textarea.error {
    border-color: #973d3d;
    border-style: solid;
    background: #f0bebe;
    color: #a35959;
}

input.error:focus,
textarea.error:focus {
    border-color: #973d3d;
    color: #a35959;
}

#send {
    color: #FFFFFF;
    display: block;
    cursor: pointer;
    padding: 5px 11px;
    font-size: 1.2em;
    border: solid 1px #F9F9F9;
    border-radius: 2px;
    background: #0457AF;
    width: 210px;
    margin-bottom: 20px;
}

#send:hover {
    background: #00BFFF;
}

.profile {
    margin-top: 50px;
}

.profile__container {
    display: flex;
    column-gap: 52px;
}

.profile-info {
    width: 100%;

    box-shadow: -7px 6px 3px rgba(0, 0, 0, 0.07);
    border-radius: 32px 0px 0px 32px;
    padding: 24px 32px 24px 32px;
}

.profile-info__container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* или center / stretch — см. ниже */
    align-content: flex-start;
    /* для многострочного wrap */
    column-gap: 52px;
    row-gap: 52px;
    flex-wrap: wrap;
    min-height: 100vh;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}


@media screen and (max-width: 900px) {
    .profile__container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar {
        flex-wrap: wrap;
        justify-content: center;
        margin-left: 0 !important;
        /*align-items: ;*/
    }

}

@media screen and (max-width: 768px) and (min-width: 500px) {
    .profile-info {
        padding: 24px 56px 24px 56px !important;
    }
}

@media screen and (min-width: 768px) {
    .profile-info-general {
        width: 420px !important;
        display: block !important;
    }

    .profile-info-addition {
        width: 420px !important;
        height: 600px !important;
    }

    .profile-info-addition__payments {
        width: 420px;
        height: 480px;
    }

    .profile-info-addition__balance {
        width: 420px;
        height: 226px;
    }
}

.profile-info-general {
    background: ;
    width: 100%;
    border-radius: 16px;
    z-index: 1;

    background-size: cover;

    /* Тонкая базовая рамка (чтобы анимация была заметнее) */
    border: 1px solid transparent;
    /* Прозрачная рамка — только для контура */

    /* Анимация обводки через box-shadow (в цветах градиента) */
    animation: pulse-gradient 2s infinite ease-in-out;
}

/* Анимация: свечение в цветах градиента */
@keyframes pulse-gradient {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        /* Прозрачное начало */
    }

    25% {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.6),
            /* Белый свет */
            0 0 10px 6px rgba(255, 215, 0, 0.5);
        /* Золотой свет */
    }

    50% {
        box-shadow:
            0 0 0 6px rgba(255, 215, 0, 0.7),
            /* Золотой пик */
            0 0 15px 8px rgba(138, 43, 226, 0.4);
        /* Пурпурное свечение */
    }

    75% {
        box-shadow:
            0 0 0 4px rgba(138, 43, 226, 0.5),
            /* Пурпурный свет */
            0 0 12px 6px rgba(26, 10, 42, 0.3);
        /* Тёмный оттенок */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        /* Возврат к прозрачности */
    }
}

.profile-info-addition {
    display: flex;
    flex-direction: column;
    row-gap: 24px;
}

.profile-info-addition__payments,
.profile-info-addition__balance {
    border-radius: 16px;
    backdrop-filter: blur(20px);

    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #752f91 80%,
            #100a25 100%);
    background-size: cover;

    width: 100%;
    z-index: 1;

    /* Тонкая базовая рамка (чтобы анимация была заметнее) */
    border: 1px solid transparent;
    /* Прозрачная рамка — только для контура */

    /* Анимация обводки через box-shadow (в цветах градиента) */
    animation: pulse-gradient 2s infinite ease-in-out;
}

/* Анимация: свечение в цветах градиента */
@keyframes pulse-gradient {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        /* Прозрачное начало */
    }

    25% {
        box-shadow:
            0 0 0 4px rgba(255, 255, 255, 0.6),
            /* Белый свет */
            0 0 10px 6px rgba(255, 215, 0, 0.5);
        /* Золотой свет */
    }

    50% {
        box-shadow:
            0 0 0 6px rgba(255, 215, 0, 0.7),
            /* Золотой пик */
            0 0 15px 8px rgba(138, 43, 226, 0.4);
        /* Пурпурное свечение */
    }

    75% {
        box-shadow:
            0 0 0 4px rgba(138, 43, 226, 0.5),
            /* Пурпурный свет */
            0 0 12px 6px rgba(26, 10, 42, 0.3);
        /* Тёмный оттенок */
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
        /* Возврат к прозрачности */
    }
}



.profile-info__header {
    display: flex;
    justify-content: space-between;
    padding: 16px;
    position: relative;
    align-items: center;
    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #3a1e45 80%,
            #100a25 100%);

    /* Скругление только верхних углов */
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}


.profile-info-addition__payments_block {
    color: white;
    display: flex;
    flex-direction: column;
    padding: 24px;
    box-shadow: #FFFF00;
}

.profile-info-addition__header {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    text-transform: capitalize;
    color: white;
    opacity: 0.7;
}

.profile-info-addition__group {
    display: flex;
    justify-content: space-between;
}

.profile-info-addition__subheader {
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;

    color: white;

    opacity: 0.5;
}

.profile-info-addition__balance,
.active {
    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #752f91 80%,
            #100a25 100%);
    border-radius: 16px !important;
}

.profile-info-addition__balance,
.active .profile-info__header_text {
    color: white !important;
}

.profile-info__header::after {
    content: '';
    height: 2px;
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    background: #D4AF37;
}

.profile-info__header_text {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 27px;
    color: white;
    text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.profile-info__header_btn {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    line-height: 21px;
    text-align: center;
    padding: 10px 24px;
    color: #FFFFFF;
    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #3a1e45 80%,
            #100a25 100%);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 32px;
}

.profile-info-general__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    row-gap: 24px;
    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #752f91 80%,
            #100a25 100%);

    /* Скругление только нижних углов */
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

#profile-info-general__content {
  /* Центрирование через Flexbox */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;

  /* Размеры и отступы */
  min-height: 300px;
  padding: 24px;
  width: 100%;

  /* Стили фона и анимации */
  border-radius: 16px;
  background: linear-gradient(120deg,
    #0d2445 0%,
    #1a1e40 40%,
    #3a1e45 80%,
    #100a25 100%);
  background-size: cover;
  border: 1px solid transparent;
  animation: pulse-gradient 2s infinite ease-in-out;
  z-index: 1;
}

/* Форма внутри контейнера */
form#contact {
  width: 100%;
  max-width: 500px; /* Ограничиваем ширину формы */
  display: flex;
  flex-direction: column;
  gap: 16px; /* Отступы между полями */
}

/* Поля ввода */
.txt, .txtarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

/* Кнопка */
#send {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 14px 24px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

#send:hover {
  background-color: #0056b3;
}

/* Анимация (как в вашем коде) */
@keyframes pulse-gradient {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
  25% { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.6), 0 0 10px 6px rgba(255, 215, 0, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(255, 215, 0, 0.7), 0 0 15px 8px rgba(138, 43, 226, 0.4); }
  75% { box-shadow: 0 0 0 4px rgba(138, 43, 226, 0.5), 0 0 12px 6px rgba(26, 10, 42, 0.3); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

form#contact {
  width: 100%;
  max-width: 500px;           /* Ограничивает ширину формы */
  display: flex;
  flex-direction: column;
  gap: 15px;                 /* Отступы между полями */
}

.txt, .txtarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

#send { 
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-size: 17px;
    line-height: 21px;
    text-align: center;
    padding: 10px 24px;
    color: #FFFFFF;
    background: linear-gradient(120deg,
            #0d2445 0%,
            #1a1e40 40%,
            #3a1e45 80%,
            #100a25 100%);
    box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
    border-radius: 32px;
}

#send:hover {
  background-color: #752f91;
}

.success-message {
  color: white !important;
  font-weight: normal; /* если нужно убрать жирность */
}

/* Форма обратной связи */