/* Signal-Vector — контактная форма, модалка, cookie-баннер.
   Держим монохромную палитру темы: чёрное на белом, тонкие рамки, скругления 999px. */

:root {
  --sv-form-border: rgba(0, 0, 0, 0.15);
  --sv-form-border-hover: rgba(0, 0, 0, 0.35);
  --sv-form-muted: rgba(0, 0, 0, 0.6);
  --sv-form-panel: #fff;
  --sv-form-radius: 12px;
}

/* ---------- Модалка «Связаться» ---------- */

.sv-contact-modal {
  position: fixed;
  inset: 0;
  z-index: 9500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.sv-contact-modal[hidden] { display: none; }
.sv-contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  animation: sv-fade-in 160ms ease-out;
}
.sv-contact-modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: var(--sv-form-panel);
  border-radius: var(--sv-form-radius);
  padding: 40px 32px 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  animation: sv-modal-in 200ms ease-out;
}
.sv-contact-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #111;
  cursor: pointer;
}
.sv-contact-modal-close:hover { background: rgba(0, 0, 0, 0.05); }
.sv-contact-modal-title {
  font-size: 1.5rem;
  line-height: 1.15;
  font-weight: 600;
  margin: 0 0 8px;
  color: #111;
}
.sv-contact-modal-lead {
  color: var(--sv-form-muted);
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.4;
}

@keyframes sv-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes sv-modal-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Форма (общая для модалки и страницы) ---------- */

.sv-contact-form { display: grid; gap: 16px; }
.sv-contact-field { display: grid; gap: 6px; }
.sv-contact-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: #111;
}
.sv-contact-field input,
.sv-contact-field textarea {
  width: 100%;
  padding: 10px 12px;
  font: inherit;
  color: #111;
  background: #fff;
  border: 1px solid var(--sv-form-border);
  border-radius: 8px;
  outline: none;
  transition: border-color 120ms ease-out, box-shadow 120ms ease-out;
}
.sv-contact-field textarea { resize: vertical; min-height: 96px; }
.sv-contact-field input:focus,
.sv-contact-field textarea:focus {
  border-color: #111;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.08);
}
.sv-contact-field[data-invalid="true"] input,
.sv-contact-field[data-invalid="true"] textarea {
  border-color: #b3261e;
}
.sv-contact-error {
  color: #b3261e;
  font-size: 0.8125rem;
  min-height: 1em;
}
.sv-contact-error:empty { display: none; }

.sv-contact-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.sv-contact-consent {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 0.8125rem;
  color: var(--sv-form-muted);
  line-height: 1.4;
}
.sv-contact-consent input {
  margin-top: 3px;
  accent-color: #111;
}
.sv-contact-consent a { color: #111; text-decoration: underline; }
.sv-contact-consent .sv-contact-error { grid-column: 1 / -1; }

.sv-contact-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.sv-contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease-out;
}
.sv-contact-submit:hover:not([disabled]) { background: #333; }
.sv-contact-submit[disabled] { opacity: 0.55; cursor: not-allowed; }

.sv-contact-status { margin: 0; font-size: 0.8125rem; color: var(--sv-form-muted); }
.sv-contact-status[data-tone="ok"]   { color: #0a7a2b; }
.sv-contact-status[data-tone="err"]  { color: #b3261e; }

/* Inline-версия на странице «Контакты» */
.sv-contact-inline {
  max-width: 560px;
  border: 1px solid var(--sv-form-border);
  border-radius: var(--sv-form-radius);
  padding: 28px 28px 24px;
  background: #fff;
}

/* ---------- Cookie-баннер ---------- */

.sv-cookie {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 9000;
  display: flex;
  justify-content: center;
}
.sv-cookie[hidden] { display: none; }
.sv-cookie-panel {
  max-width: 720px;
  width: 100%;
  background: #111;
  color: #fff;
  border-radius: var(--sv-form-radius);
  padding: 20px 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  display: grid;
  gap: 12px;
}
.sv-cookie-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}
.sv-cookie-body {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.85);
}
.sv-cookie-body a { color: #fff; text-decoration: underline; }
.sv-cookie-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.sv-cookie-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  color: #fff;
  transition: background 120ms ease-out, color 120ms ease-out;
}
.sv-cookie-btn-secondary:hover { background: rgba(255, 255, 255, 0.1); }
.sv-cookie-btn-primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}
.sv-cookie-btn-primary:hover { background: #ebebeb; }

@media (max-width: 640px) {
  .sv-cookie { left: 12px; right: 12px; bottom: 12px; }
  .sv-cookie-panel { padding: 16px 18px; }
  .sv-cookie-actions { justify-content: stretch; }
  .sv-cookie-btn { flex: 1; }
  .sv-contact-modal-panel { padding: 32px 20px 24px; }
}

/* ---------- Мобильная кнопка «Связаться» в бургер-меню ---------- */
.sv-m-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  margin: 12px 0;
  border-radius: 999px;
  background: #111;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.9375rem;
}

/* ---------- Страница «Контакты» ---------- */
.sv-contacts-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr);
}
.sv-contacts-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  font-weight: 600;
  margin: 0 0 12px;
}
.sv-contacts-page h2 {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 12px;
}
.sv-contacts-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 1024px) {
  .sv-contacts-grid {
    grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
    gap: clamp(40px, 5vw, 64px);
  }
}
.sv-contacts-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sv-contacts-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 6px 16px;
  font-size: 0.9375rem;
  line-height: 1.45;
}
@media (min-width: 576px) {
  .sv-contacts-direct .sv-contacts-list li {
    grid-template-columns: 132px minmax(0, 1fr);
  }
  .sv-contacts-legal .sv-contacts-list li {
    grid-template-columns: 240px minmax(0, 1fr);
  }
  .sv-contacts-legal .sv-contacts-list .sv-contacts-entity {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
}
.sv-contacts-list dt,
.sv-contacts-list .sv-c-label {
  color: var(--sv-form-muted, rgba(0, 0, 0, 0.6));
  font-weight: 500;
}
.sv-contacts-list a { color: #111; text-decoration: underline; }

.sv-policy {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  font-size: 0.9375rem;
  line-height: 1.55;
}
.sv-policy h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0 0 24px; font-weight: 600; }
.sv-policy h2 { font-size: 1.125rem; margin: 32px 0 12px; font-weight: 600; }
.sv-policy p, .sv-policy ul, .sv-policy ol { margin: 0 0 12px; }
.sv-policy ul, .sv-policy ol { padding-left: 22px; }
.sv-policy li { margin-bottom: 6px; }
.sv-policy a { color: #111; }
