:root {
  --page-bg: #f1ebde;
  --grid: rgba(204, 160, 144, .35);
  --surface: #fcf8f3;
  --text: #35261f;
  --muted: #82716a;
  --accent: #cd6c89;
  --accent-hover: #bf5c79;
  --pink: #ffcbd6;
  --pink-hover: #f8b9c8;
  --grid-size: 44px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 280px;
  min-height: 100vh;
  padding: 49px 16px 48px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  background-color: var(--page-bg);
  background-image:
    linear-gradient(to right, var(--grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.profile {
  width: 100%;
  max-width: 560px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
  border-radius: 28px 28px 8px 8px;
  box-shadow: 0 20px 46px rgba(66, 45, 29, .13);
}

.profile__cover {
  position: relative;
  height: 248px;
  background: #59602c;
  overflow: hidden;
}

.profile__cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom;
  
}
/* Стекло поверх изображения */
.profile__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.041);
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.048);
  pointer-events: none;
}

/* Надпись остаётся чёткой поверх стекла */
.profile__badge {
  z-index: 1;
}


.profile__badge {
  position: absolute;
  top: 18px;
  left: 20px;
  padding: 9px 11px;
  border: 1px solid rgba(255, 255, 255, .7);
  color: #fff;
  background: rgba(36, 42, 14, .12);
  font-size: 11px;
  line-height: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
}

.profile__body {
  position: relative;
  padding: 0 20px 25px;
}

.profile__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  margin: -64px auto 0;
  overflow: hidden;
  border: 5px solid var(--surface);
  border-radius: 50%;
  background: #ded2bd;
  box-shadow: 0 12px 25px rgba(59, 38, 27, .15);
}

.profile__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.profile__intro {
  margin-top: 16px;
  text-align: center;
}

.profile__eyebrow {
  margin: 0 0 2px;
  color: #ed5f83;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 1.6px;
}

h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.8px;
  overflow-wrap: break-word;
}

.profile__description {
  max-width: 400px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 24px;
}

.profile__links {
  display: grid;
  gap: 10px;
  margin-top: 23px;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 57px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 8px;
  color: #fff;
  background: var(--pink);
  box-shadow: 0 7px 14px rgba(130, 72, 82, .07);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.link-card[href] {
  cursor: pointer;
}

.link-card__icon {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
}

.link-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card__icon--text {
  font-size: 11px;
  font-weight: 400;
}

.link-card__title {
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-shadow: 0 1px 3px rgba(139, 74, 91, .25);
}

.link-card__content {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.link-card__subtitle {
  font-size: 11px;
  line-height: 16px;
  opacity: .9;
}

.link-card__arrow {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin-left: auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-card--gift {
  min-height: 84px;
  margin-bottom: 2px;
  padding: 15px 16px;
  gap: 20px;
  background: var(--accent);
}

.link-card--gift .link-card__title {
  font-size: 16px;
  font-weight: 700;
  text-shadow: none;
}

.link-card--gift .link-card__arrow {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.link-card {
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.link-card__arrow {
  transition: transform 0.2s ease;
}

.link-card:focus-visible {
  outline: 3px solid #804359;
  outline-offset: 3px;
}

/* Наведение — для устройств с мышью */
@media (hover: hover) and (pointer: fine) {
  .link-card[href]:hover {
    background: var(--pink-hover);
    border-color: rgba(255, 255, 255, 0.75);
    transform: translateY(-3px);
    box-shadow:
      0 10px 20px rgba(130, 72, 82, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.4);
  }

  .link-card--gift[href]:hover {
    background: var(--accent-hover);
  }

  .link-card[href]:hover .link-card__arrow {
    transform: translate(2px, -2px);
  }
}

/* Нажатие — мышью и на сенсорном экране.
   Размещаем после hover, чтобы нажатие имело приоритет. */
.link-card[href]:active {
  transform: translateY(1px) scale(0.98);
  box-shadow:
    0 2px 5px rgba(130, 72, 82, 0.1),
    inset 0 2px 5px rgba(130, 72, 82, 0.15);
}

.link-card[href]:active .link-card__arrow {
  transform: translate(0, 0);
}

/* Учитываем настройку уменьшения движения */
@media (prefers-reduced-motion: reduce) {
  .link-card,
  .link-card__arrow {
    transition: none;
  }

  .link-card[href]:hover,
  .link-card[href]:active,
  .link-card[href]:hover .link-card__arrow,
  .link-card[href]:active .link-card__arrow {
    transform: none;
  }
}

.profile__footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 51px;
  padding: 16px 12px;
  border-top: 1px solid #e7d4cb;
  color: #705b52;
  text-align: center;
  font-size: 9px;
  line-height: 18px;
  letter-spacing: 1px;
}

.profile__footer> :first-child,
.profile__footer> :last-child {
  font-size: 11px;
}

@media (max-width: 600px) {
  body {
    padding: 24px 14px;
  }

  h1 {
    font-size: clamp(27px, 6.65vw, 40px);
    letter-spacing: -.5px;
  }
}

@media (max-width: 380px) {
  body {
    padding: 16px 10px;
  }

  .profile {
    border-radius: 22px 22px 8px 8px;
  }

  .profile__cover {
    height: 210px;
  }

  .profile__body {
    padding-inline: 14px;
  }

  .profile__description {
    font-size: 14px;
  }

  .link-card--gift {
    gap: 12px;
    padding-inline: 12px;
  }

  .link-card--gift .link-card__title {
    font-size: 14px;
  }

  .profile__footer {
    gap: 8px;
    letter-spacing: .7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .link-card {
    transition: none;
  }

  .link-card[href]:hover,
  .link-card[href]:active {
    transform: none;
  }
}