
.profile-main {
  width: min(960px, calc(100% - 40px));
  margin: 0 auto;
  padding: 62px 0 90px;
}

.profile-heading { margin-bottom: 32px; }

.back-link {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--dash-gold-light);
  text-decoration: none;
}

.profile-heading h1 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(38px, 6vw, 58px);
  font-weight: 500;
}

.profile-intro {
  max-width: 720px;
  margin: 0;
  color: var(--dash-muted);
  font-size: 18px;
  line-height: 1.6;
}

.profile-card {
  overflow: hidden;
  border: 1px solid rgba(126,153,188,.22);
  border-radius: 20px;
  background: rgba(2,21,45,.62);
}

.profile-section {
  padding: 30px;
  border-bottom: 1px solid rgba(126,153,188,.18);
}

.section-heading {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}

.section-heading > span {
  display: grid;
  flex: 0 0 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(231,169,51,.62);
  border-radius: 50%;
  color: var(--dash-gold-light);
  font-size: 13px;
  font-weight: 700;
}

.section-heading h2 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 24px;
}

.section-heading p {
  margin: 0;
  color: #91a2b7;
  line-height: 1.45;
}

.profile-grid { display: grid; gap: 18px; }
.two-columns { grid-template-columns: repeat(2, minmax(0,1fr)); }
.address-columns { grid-template-columns: minmax(150px,.65fr) minmax(220px,1.35fr); }

.profile-field { margin-bottom: 20px; }

.profile-field label {
  display: block;
  margin-bottom: 8px;
  color: #e9eef6;
  font-size: 15px;
  font-weight: 700;
}

.profile-field label span,
.profile-field small {
  color: #91a2b7;
  font-weight: 400;
}

.profile-field small {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.profile-field input,
.profile-field select {
  width: 100%;
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid #31577e;
  border-radius: 11px;
  color: #fff;
  background: #173b63;
  font: inherit;
  outline: none;
  box-sizing: border-box;
}

.profile-field input:focus,
.profile-field select:focus {
  border-color: var(--dash-gold-light);
  box-shadow: 0 0 0 3px rgba(231,169,51,.13);
}

.profile-field input[readonly] {
  color: var(--dash-muted);
  background: rgba(23,59,99,.55);
  cursor: not-allowed;
}

.profile-field select option {
  color: #02152d;
  background: #fff;
}

.profile-consents {
  display: grid;
  gap: 15px;
}

.profile-consents label {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: #dce4ef;
  line-height: 1.5;
}

.profile-consents input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: var(--dash-gold);
}

.profile-status {
  display: none;
  margin: 24px 30px 0;
  padding: 14px 16px;
  border-radius: 10px;
  line-height: 1.45;
}

.profile-status.visible { display: block; }

.profile-status.success {
  border: 1px solid rgba(73,205,145,.45);
  color: #85e5b9;
  background: rgba(24,120,81,.18);
}

.profile-status.error {
  border: 1px solid rgba(255,126,126,.45);
  color: #ffadad;
  background: rgba(160,46,46,.17);
}

.profile-actions {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 16px;
  padding: 30px;
}

.profile-secondary-button,
.profile-save-button {
  min-height: 56px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.profile-secondary-button {
  border: 1px solid #31577e;
  color: #fff;
  background: transparent;
}

.profile-save-button {
  border: 0;
  color: #02152d;
  background: linear-gradient(135deg,#ffd56f,#e7a933);
}

.profile-save-button:disabled {
  cursor: wait;
  opacity: .65;
}

@media (max-width:720px) {
  .profile-main {
    width: min(100% - 24px,960px);
    padding-top: 36px;
  }

  .profile-section { padding: 23px 18px; }

  .two-columns,
  .address-columns,
  .profile-actions {
    grid-template-columns: 1fr;
  }

  .profile-actions { padding: 22px 18px; }

  .profile-status {
    margin-right: 18px;
    margin-left: 18px;
  }
}
