/* ============================================================
   ПЕРЕМЕННЫЕ
   ============================================================ */
:root {
  --ink: #0a1a2b;
  --ink-soft: #1e3448;
  --gold: #c8a86b;
  --gold-soft: #e3cf9c;
  --teal: #2b6b7a;
  --teal-deep: #0f3a45;
  --glass: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.85);
}

/* ============================================================
   СБРОС И БАЗА
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Georgia', 'Times New Roman', serif;
  background: #0b1a26;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
  color: var(--ink);
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(43, 107, 122, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(200, 168, 107, 0.35) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, #13303f 0%, #071520 60%, #040d14 100%);
  background-attachment: fixed;
}

/* ============================================================
   ДЕКОРАТИВНЫЕ СЛОИ ФОНА
   ============================================================ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 168, 107, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 168, 107, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

body::after {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(900px, 95vw);
  height: min(900px, 95vw);
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(200, 168, 107, 0.18) 0%, transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 7s ease-in-out infinite;
}

/* ============================================================
   АНИМАЦИИ
   ============================================================ */
@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
}

@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -25px) scale(1.05); }
}

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes borderFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes blink {
  0%, 100% { box-shadow: 0 0 0 3px rgba(63, 191, 143, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(63, 191, 143, 0.05); }
}

/* ============================================================
   ДЕКОРАТИВНЫЕ ГЕОМЕТРИЧЕСКИЕ ЭЛЕМЕНТЫ
   ============================================================ */
.ornament {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(0.5px);
}

.ornament-1 {
  top: 8%;
  left: 6%;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(200, 168, 107, 0.35);
  box-shadow: inset 0 0 40px rgba(200, 168, 107, 0.08);
  animation: floatSlow 14s ease-in-out infinite;
}

.ornament-2 {
  bottom: 6%;
  right: 4%;
  width: 300px;
  height: 300px;
  border: 1px solid rgba(43, 107, 122, 0.4);
  animation: floatSlow 18s ease-in-out infinite reverse;
}

.ornament-3 {
  top: 60%;
  left: -60px;
  width: 160px;
  height: 160px;
  border: 1px dashed rgba(200, 168, 107, 0.25);
  border-radius: 50%;
  animation: spinSlow 40s linear infinite;
}

.ornament-4 {
  top: 12%;
  right: 12%;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, rgba(200, 168, 107, 0.25), transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
}

/* ============================================================
   ВНЕШНЯЯ РАМКА КАРТОЧКИ
   ============================================================ */
.card-frame {
  position: relative;
  max-width: 880px;
  width: 100%;
  z-index: 5;
  padding: 3px;
  border-radius: 34px;
  background: linear-gradient(140deg,
    rgba(200, 168, 107, 0.9) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(43, 107, 122, 0.8) 50%,
    rgba(255, 255, 255, 0.15) 75%,
    rgba(200, 168, 107, 0.9) 100%);
  background-size: 300% 300%;
  animation: borderFlow 12s ease infinite;
  box-shadow:
    0 35px 70px -20px rgba(0, 0, 0, 0.75),
    0 0 60px rgba(200, 168, 107, 0.15);
}

/* ============================================================
   СТЕКЛЯННАЯ КАРТОЧКА
   ============================================================ */
.card {
  position: relative;
  border-radius: 31px;
  padding: 3rem 2.8rem 2.6rem;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(244, 248, 252, 0.88) 100%);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 15%, rgba(200, 168, 107, 0.09) 0%, transparent 22%),
    radial-gradient(circle at 85% 80%, rgba(43, 107, 122, 0.09) 0%, transparent 25%),
    repeating-linear-gradient(45deg, transparent, transparent 22px, rgba(200, 168, 107, 0.035) 22px, rgba(200, 168, 107, 0.035) 23px);
  pointer-events: none;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 2;
}

/* ============================================================
   УГЛОВЫЕ РОСЧЕРКИ
   ============================================================ */
.corner {
  position: absolute;
  width: 90px;
  height: 90px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.55;
}

.corner svg { width: 100%; height: 100%; }

.corner-tl { top: 14px; left: 14px; }
.corner-tr { top: 14px; right: 14px; transform: scaleX(-1); }
.corner-bl { bottom: 14px; left: 14px; transform: scaleY(-1); }
.corner-br { bottom: 14px; right: 14px; transform: scale(-1, -1); }

/* ============================================================
   ЗАГОЛОВОК С МОНОГРАММОЙ
   ============================================================ */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.4rem;
  flex-wrap: wrap;
}

.identity {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  flex-wrap: wrap;
}

.monogram {
  position: relative;
  width: 118px;
  height: 118px;
  flex-shrink: 0;
}

.monogram-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 220deg, var(--gold) 0%, transparent 35%, var(--teal) 65%, transparent 90%, var(--gold) 100%);
  animation: spinSlow 18s linear infinite;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 2px));
}

.monogram-ring-2 {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: conic-gradient(from 40deg, rgba(200, 168, 107, 0.5) 0%, transparent 40%, rgba(43, 107, 122, 0.5) 70%, transparent 100%);
  animation: spinSlow 24s linear infinite reverse;
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1.5px));
}

.monogram-core {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  background: linear-gradient(145deg, #0f3a45 0%, #1e3448 55%, #0a1a2b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    inset 0 2px 12px rgba(200, 168, 107, 0.35),
    0 10px 25px -8px rgba(10, 26, 43, 0.6);
  overflow: hidden;
}

.monogram-core::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 55%);
}

.monogram-core span {
  font-family: 'Georgia', serif;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--gold-soft);
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(200, 168, 107, 0.55);
  line-height: 1;
  position: relative;
  z-index: 2;
}

.name-block h1 {
  font-family: 'Georgia', serif;
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.12;
  margin-bottom: 0.5rem;
}

.name-block h1 .surname {
  display: block;
  font-style: italic;
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal) 45%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  letter-spacing: 0.06em;
}

.title-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.title-line .rule {
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 2.2rem 0 2.4rem;
}

.contact {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.2rem;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(240, 245, 250, 0.7) 100%);
  border: 1px solid rgba(43, 107, 122, 0.14);
  box-shadow:
    0 6px 18px -10px rgba(10, 26, 43, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.contact::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 60%;
  background: linear-gradient(180deg, var(--gold), var(--teal));
  border-radius: 0 4px 4px 0;
  transition: transform 0.3s ease;
}

.contact:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 168, 107, 0.5);
  box-shadow:
    0 18px 30px -14px rgba(10, 26, 43, 0.5),
    0 0 0 1px rgba(200, 168, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact:hover::before {
  transform: translateY(-50%) scaleY(1);
}

.contact-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0f3a45, #1e3448);
  box-shadow:
    inset 0 1px 3px rgba(200, 168, 107, 0.4),
    0 6px 14px -6px rgba(10, 26, 43, 0.5);
  position: relative;
}

.contact-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.22), transparent 60%);
}

.contact-icon svg {
  width: 21px;
  height: 21px;
  fill: var(--gold-soft);
  position: relative;
  z-index: 2;
}

.contact-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-label {
  font-family: 'Segoe UI', sans-serif;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #7288a0;
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-value {
  font-family: 'Segoe UI', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s;
}

.contact:hover .contact-value {
  color: var(--teal-deep);
}

/* ============================================================
   РАЗДЕЛИТЕЛЬ С РОМБОМ
   ============================================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 0.4rem 0 2rem;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(43, 107, 122, 0.35), transparent);
}

.divider .diamond {
  width: 9px;
  height: 9px;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  transform: rotate(45deg);
  box-shadow: 0 0 10px rgba(200, 168, 107, 0.6);
  flex-shrink: 0;
}

/* ============================================================
   НИЖНЯЯ ПАНЕЛЬ
   ============================================================ */
.bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.socials {
  display: flex;
  gap: 0.7rem;
}

.social {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, #eef3f9);
  border: 1px solid rgba(43, 107, 122, 0.2);
  box-shadow: 0 6px 14px -8px rgba(10, 26, 43, 0.4);
  transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.social::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, rgba(200, 168, 107, 0.25), transparent 65%);
  opacity: 0;
  transition: opacity 0.3s;
}

.social:hover {
  transform: translateY(-4px) rotate(6deg);
  border-color: var(--gold);
  box-shadow:
    0 14px 22px -10px rgba(10, 26, 43, 0.5),
    0 0