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

/* Унаследовать шрифт везде, в т.ч. кнопки и ссылки */
button, input, a { font-family: inherit; }

:root {
  --navy:   #0d2246;
  --blue:   #1a3a6b;
  --sky:    #3a7bd5;
  --gold:   #c9a84c;
  --light:  #f4f7fc;
  --white:  #ffffff;
  --text:   #1a2636;
  --muted:  #6b7c93;
  --radius: 16px;
}

body {
  font-family: 'Raleway', sans-serif;
  background: linear-gradient(160deg, #e8eef8 0%, #dde5f5 50%, #e4ecf9 100%);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0 0 100px 0;
}

/* ===== LANGUAGE SWITCHER ===== */
.lang-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(58,123,213,0.15);
}

.lang-btn {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--sky);
  background: transparent;
  color: var(--sky);
  cursor: pointer;
  transition: all 0.2s;
}

.lang-btn.active,
.lang-btn:hover {
  background: var(--sky);
  color: #fff;
}

/* ===== CARD ===== */
.card {
  width: 340px;
  margin-top: 64px;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 20px 60px rgba(13,34,70,0.18),
    0 4px 16px rgba(13,34,70,0.08);
  animation: slideUp 0.6s cubic-bezier(.22,.88,.34,1) both;
}

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

/* ===== CARD HEADER ===== */
.card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 60%, #1e4a8f 100%);
  padding: 32px 24px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.card-header::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: rgba(201,168,76,0.12);
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: -30px; left: -30px;
  width: 120px; height: 120px;
  border-radius: 50%;
  background: rgba(58,123,213,0.18);
}

.photo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 14px;
}

.photo-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #e8c97a, var(--gold));
  z-index: 0;
}

.photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  display: block;
}

.person-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.25;
  position: relative;
  z-index: 1;
}

.person-title {
  font-size: 11.5px;
  font-weight: 600;
  color: #FFEB3B;
  letter-spacing: 0.04em;
  margin-top: 5px;
  line-height: 1.4;
  position: relative;
  z-index: 1;
}

/* ===== CARD BODY ===== */
.card-body {
  padding: 20px 20px 8px;
}

.field {
  margin-bottom: 16px;
}

.field-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}

.field-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.field-value a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.2s;
}

.field-value a:hover { color: var(--navy); }

/* ===== DIVIDER ===== */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(58,123,213,0.2), transparent);
  margin: 6px 0 18px;
}

/* ===== ACTION BUTTONS ===== */
.actions {
  padding: 0 20px 16px;
  display: flex;
  gap: 10px;
}

.btn-wa {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  background: #25d366;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.btn-wa:hover { background: #1ebe5d; transform: translateY(-1px); }
.btn-wa svg   { flex-shrink: 0; }

.btn-webar {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 14px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}

.btn-webar:hover { opacity: 0.88; transform: translateY(-1px); }

/* ===== SOCIALS ===== */
.socials-section {
  padding: 0 20px 24px;
}

.socials-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.socials-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s;
}

.social-icon:hover { transform: scale(1.1); }

.social-icon.instagram {
  background: radial-gradient(
    circle at 30% 107%,
    #fdf497 0%, #fdf497 5%,
    #fd5949 45%, #d6249f 60%,
    #285aeb 90%
  );
}

.social-img-link {
  display: block;
  width: auto;
  height: 40px;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s;
  flex-shrink: 0;
}

.social-img-link:hover { transform: scale(1.1); }

.social-img-link img {
  width: auto;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===== FIXED SAVE BAR ===== */
.fixed-bar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(58,123,213,0.12);
}

.btn-save {
  width: 100%;
  max-width: 340px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 4px 20px rgba(13,34,70,0.3);
}

.btn-save:hover  { opacity: 0.9; transform: translateY(-1px); }
.btn-save:active { transform: translateY(0); }
