*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --teal: #2f8a97;
  --text-dark: #2b2b2b;
  --text-muted: #6f6f6f;
  --card-shadow: rgba(0, 0, 0, 0.2) 0px 8px 0px, rgb(255, 255, 255) 0px 8px 0px;
  --card-shadow-hover: rgba(0, 0, 0, 0.2) 0px 8px 0px, rgb(255, 255, 255) 0px 8px 0px;
  --max-width: 600px;
}

html {
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-dark);
  height: 100%;
  overflow: hidden auto;
  background-color: #d4d4d4;
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.88)), url("../images/bg.jpg");
  background-position: 50% 15%;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position: fixed;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px 100px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.top-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.top-btn--icon {
  padding: 9px;
  border-radius: 50%;
}

.top-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.profile {
  text-align: center;
  margin-bottom: 22px;
  margin-top: 30px;
}

.profile__avatar {
  width: 134px;
  height: 134px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 14px;
  border: 1px solid #111;
  background: #fff;
}

.profile__name {
  font-size: 19px;
  font-weight: 400;
  color: var(--text-dark);
  margin-bottom: 6px;
  line-height: 1.3;
}

.profile__location {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.84rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.profile__location svg {
  width: 13px;
  height: 13px;
  fill: var(--text-muted);
}

.profile__bio {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.profile__email {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-decoration: none;
}

.profile__email:hover {
  text-decoration: underline;
}

.social {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
}

.social a {
  display: flex;
  color: var(--text-dark);
  opacity: 0.8;
}

.social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.links__loading,
.links__error {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 24px 0;
}

.section-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-align: center;
  margin-top: 30px;
  margin-bottom: 2px;
}

.section-title--mixed {
  text-transform: none;
}

.link-card {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 8px 10px;
  background: #fff;
  border: 2px solid var(--teal);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  text-decoration: none;
  color: var(--teal);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.link-card:hover {
  transform: scale(1.02);
  box-shadow: var(--card-shadow-hover);
}

.link-card:active {
  transform: scale(1);
  box-shadow: var(--card-shadow);
}

.link-card__icon {
  flex-shrink: 0;
  width: 45px;
  height: 45px;
  border-radius: 10px;
  margin-right: 12px;
  object-fit: cover;
  background: #f5f5f5;
}

.link-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.link-card__title {
  font-size: 16px;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--teal);
}

.link-card__desc {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--teal);
  margin-top: 2px;
}

.link-card__desc + .link-card__desc {
  margin-top: 1px;
}

@media (min-width: 480px) {
  .page {
    padding-top: 20px;
  }
}
