/* app/static/css/site.css */

:root{
  /* фон под картинку (тёмный фиолетовый) */
  --bg: #120a1e;

  /* неоновый акцент (розово-фиолетовый) */
  --neon: #d64bff;
  --neon-2: #8a3bff;

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);

  --glass: rgba(18,10,30,.52);
  --glass-2: rgba(18,10,30,.38);

  --border: rgba(214,75,255,.35);
  --shadow: rgba(214,75,255,.25);
}

*{ box-sizing: border-box; }
html, body{ height: 100%; }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  overflow: hidden; /* чтобы фон не скроллился */
}

/* ---- background hero image ---- */
.page{
  position: relative;
  min-height: 100vh;
}

.hero-bg{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay{
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 900px at 40% 30%, rgba(214,75,255,.12), transparent 55%),
    radial-gradient(900px 700px at 75% 65%, rgba(138,59,255,.14), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  pointer-events: none;
}

/* ---- contacts overlay ---- */
.contacts{
  position: fixed;
  top: 24px;
  left: 24px;
  display: grid;
  gap: 14px;
  z-index: 10;
  width: min(420px, calc(100vw - 48px));
}

.contacts__card{
  background: linear-gradient(180deg, var(--glass), var(--glass-2));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 14px 12px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow:
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 10px 30px rgba(0,0,0,.35),
    0 0 28px var(--shadow);
}

.place__title{
  margin: 0 0 10px 0;
  font-size: 16px;
  letter-spacing: .2px;
  font-weight: 700;
  text-shadow: 0 0 12px rgba(214,75,255,.22);
}

.place__row{
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}

.icon-btn{
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;

  border-radius: 12px;
  border: 1px solid rgba(214,75,255,.30);
  background: rgba(18,10,30,.35);

  box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.icon-btn:hover{
  transform: translateY(-1px);
  border-color: rgba(214,75,255,.55);
  box-shadow:
    0 0 0 1px rgba(255,255,255,.05) inset,
    0 0 18px rgba(214,75,255,.22);
}

.icon-btn:active{
  transform: translateY(0px);
}

.icon{
  width: 18px;
  height: 18px;
  fill: rgba(255,255,255,.92);
  filter: drop-shadow(0 0 8px rgba(214,75,255,.25));
}

.text-link{
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.25;
  transition: color .12s ease, text-shadow .12s ease;
  overflow-wrap: anywhere;
}

.text-link:hover{
  color: #ffffff;
  text-shadow: 0 0 10px rgba(214,75,255,.25);
}

.text-link:active{
  color: rgba(255,255,255,.88);
}

/* ---- responsive ---- */
@media (max-width: 520px){
  body{ overflow: auto; } /* на мобилке пусть будет скролл, если понадобится */
  .contacts{
    top: 16px;
    left: 16px;
    width: calc(100vw - 32px);
  }
  .contacts__card{
    border-radius: 16px;
    padding: 12px 12px 10px;
  }
  .place__title{ font-size: 15px; }
  .text-link{ font-size: 13px; }
}


@media (max-width: 768px){
  .hero-bg{
    object-fit: contain;
    background: var(--bg);
  }
}
