/* ===== Палитра: бежевые + красно-розовые пастельные ===== */
:root {
  --cream: #f7f0e6;
  --sand: #efe3d3;
  --blush: #f7d9d8;
  --rose: #e9a7a8;
  --deep-rose: #c86b74;
  --wine: #a4444f;
  --coffee: #5c4033;
  --soft-coffee: #7a5f52;
  --text: #4a3a33;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
  padding: 28px 20px 60px;
  overflow-x: hidden;
}

/* ===== Фон: мягкие пастельные пятна ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%);
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.7;
}

.b1 { width: 45vmax; height: 45vmax; background: radial-gradient(circle, var(--blush) 0%, rgba(247, 217, 216, 0) 68%); top: -10%; left: -8%; }
.b2 { width: 38vmax; height: 38vmax; background: radial-gradient(circle, #f3d3c7 0%, rgba(243, 211, 199, 0) 68%); bottom: -12%; right: -10%; }
.b3 { width: 28vmax; height: 28vmax; background: radial-gradient(circle, #f2c9c4 0%, rgba(242, 201, 196, 0) 68%); top: 18%; left: 58%; }
.b4 { width: 20vmax; height: 20vmax; background: radial-gradient(circle, #eec9be 0%, rgba(238, 201, 190, 0) 68%); bottom: 22%; left: 12%; }
.b5 { width: 24vmax; height: 24vmax; background: radial-gradient(circle, var(--rose) 0%, rgba(233, 167, 168, 0) 68%); top: -6%; right: 24%; opacity: 0.5; }

/* ===== Обёртка ===== */
.wrap {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.back {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--wine);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

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

/* ===== Карточка ===== */
.card {
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  padding: 34px 30px;
  box-shadow:
    0 24px 60px -20px rgba(164, 68, 79, 0.28),
    0 6px 20px -8px rgba(92, 64, 51, 0.15);
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.card + .card { margin-top: 20px; }
.card:nth-of-type(2) { animation-delay: 0.08s; }
.card:nth-of-type(3) { animation-delay: 0.16s; }
.card:nth-of-type(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Профиль ===== */
.profile { text-align: center; }

.photo {
  width: 200px;
  aspect-ratio: 4 / 5;
  margin: 0 auto 22px;
  border-radius: 26px;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.85);
  background: linear-gradient(150deg, var(--blush), var(--rose));
  box-shadow: 0 20px 44px -20px rgba(164, 68, 79, 0.6);
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.name {
  font-size: 27px;
  font-weight: 800;
  color: var(--coffee);
  letter-spacing: -0.4px;
  line-height: 1.25;
}

.role {
  margin-top: 8px;
  color: var(--deep-rose);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.lead {
  margin-top: 16px;
  color: var(--soft-coffee);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.chip {
  padding: 7px 14px;
  border-radius: 12px;
  background: rgba(233, 167, 168, 0.35);
  border: 1px solid rgba(233, 167, 168, 0.5);
  color: var(--wine);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* ===== Секции со списками ===== */
.sec-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--coffee);
  margin-bottom: 16px;
}

.sec-sub {
  margin-top: -10px;
  margin-bottom: 16px;
  color: var(--soft-coffee);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}

.edu {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: none;
}

.edu li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.edu .n {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--blush), var(--rose));
  color: var(--coffee);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.edu .org {
  font-size: 15px;
  font-weight: 700;
  color: var(--coffee);
  line-height: 1.4;
}

.edu .spec {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--soft-coffee);
  line-height: 1.45;
}

.edu .spec::before {
  content: "— ";
  color: var(--deep-rose);
  font-weight: 800;
}

/* ===== Факты ===== */
.facts { list-style: none; }

.facts li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-bottom: 1px solid rgba(233, 167, 168, 0.25);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
}

.facts li:first-child { padding-top: 0; }
.facts li:last-child { border-bottom: none; padding-bottom: 0; }

.facts .ic {
  flex: 0 0 auto;
  font-size: 16px;
  line-height: 1.45;
}

/* ===== Кнопка записи ===== */
.cta {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}

.consult-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 28px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--wine), var(--deep-rose));
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px -14px rgba(164, 68, 79, 0.65);
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.consult-btn:hover { transform: translateY(-2px); }
.consult-btn:active { transform: translateY(0); }

.consult-btn:focus-visible {
  outline: 3px solid var(--deep-rose);
  outline-offset: 2px;
}

/* ===== Уважение к настройке «уменьшить движение» ===== */
@media (prefers-reduced-motion: reduce) {
  .card {
    animation: none;
  }
}

/* ===== Мобильная адаптация ===== */
@media (max-width: 480px) {
  .card { padding: 26px 20px; }
  .photo { width: 168px; }
  .name { font-size: 23px; }
  .sec-title { font-size: 17px; }
  .edu .org { font-size: 14px; }
  .edu .spec { font-size: 13px; }
  .facts li { font-size: 14px; }
  .consult-btn { width: 100%; }
}
