/* Пульс-кафе — страница «Контакты». Стили ТОЛЬКО этой страницы.
   Тёмная тема, единый акцент #2dd4bf (см. ARCHITECTURE.md).
   Кнопка .call-btn свёрстана строго по CONTRACTS/call-button.yaml. */

:root {
  --bg: #0b0f0e;
  --surface: #131a18;
  --surface-2: #182220;
  --text: #e6f2ef;
  --muted: #8aa39c;
  --accent: #2dd4bf;
  --accent-ink: #0b0f0e;
  --border: rgba(45, 212, 191, 0.18);
  --radius: 14px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden; /* страховка от разъездов на 390px */
}

a { color: inherit; }

.muted { color: var(--muted); }

.inline-link {
  color: var(--accent);
  text-decoration: none;
}
.inline-link:hover { text-decoration: underline; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(11, 15, 14, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}
.brand .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(45, 212, 191, 0.14);
}
.brand-name {
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 1.15rem;
}

/* ---------- Кнопка «Позвонить» — строго по CONTRACTS/call-button.yaml ---------- */
.call-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 10px;
  border: none;
  text-decoration: none;
  cursor: pointer;
  background: #2dd4bf;
  color: #0b0f0e;
  transition: transform .12s ease, opacity .12s ease;
}
.call-btn:hover { opacity: 0.9; }
.call-btn:active { transform: translateY(1px); }
.call-ico { font-size: 15px; line-height: 1; }

/* ---------- Основной контент ---------- */
.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 8px;
}

.hero { margin-bottom: 28px; }
.eyebrow {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.hero h1 {
  font-size: clamp(1.8rem, 6vw, 2.8rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.lead {
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
  font-size: clamp(0.95rem, 3vw, 1.05rem);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
}
.card h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

/* Адрес */
.addr {
  font-style: normal;
  font-size: 1.05rem;
  margin: 0 0 14px;
}
.contact-line { margin: 6px 0; }

/* Часы */
.hours {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(138, 163, 156, 0.14);
}
.hours li:last-child { border-bottom: none; }
.hours .day { color: var(--muted); }
.hours .time { font-weight: 600; font-variant-numeric: tabular-nums; }
.note { margin: 0; font-size: 0.9rem; }

/* Карта-заглушка */
.map-card { margin-bottom: 18px; }
.map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  min-height: 220px;
  border-radius: 12px;
  border: 1px dashed rgba(45, 212, 191, 0.35);
  background:
    radial-gradient(circle at 30% 30%, rgba(45, 212, 191, 0.08), transparent 60%),
    repeating-linear-gradient(45deg, var(--surface-2) 0 14px, #141d1b 14px 28px);
  color: var(--muted);
}
.map-pin { font-size: 2rem; }
.map-text { font-size: 1rem; line-height: 1.4; }

/* Форма */
.form-card { margin-bottom: 24px; }
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.field input,
.field textarea {
  width: 100%;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: rgba(138, 163, 156, 0.65); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.18);
}

.submit-btn {
  align-self: flex-start;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 22px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform .12s ease, opacity .12s ease;
}
.submit-btn:hover { opacity: 0.9; }
.submit-btn:active { transform: translateY(1px); }

/* ---------- Подвал ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
}
.site-footer p { margin: 0; font-size: 0.88rem; }
.foot-nav { margin-bottom: 8px; }

/* Строка копирайта — значения строго из CONTRACTS/footer-copyright.yaml.
   Селектор .site-footer .copyright (специфичнее, чем .site-footer p выше) —
   иначе общее правило подвала перебивает font-size контракта (14px). */
.site-footer .copyright {
  color: #8aa39c;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ---------- Мобилка 390px ---------- */
@media (max-width: 640px) {
  .site-header { padding: 12px 16px; gap: 12px; }
  .brand-name { font-size: 1.05rem; }
  .page { padding: 24px 16px 8px; }
  .grid { grid-template-columns: 1fr; }
  .card { padding: 18px 18px; }
  .submit-btn { align-self: stretch; text-align: center; }
}
