/* КассОтчет — кастомные стили (Tailwind через CDN, здесь только дополнения) */

body {
  font-feature-settings: "ss01" on, "cv05" on;
  overflow-x: hidden;
}

/* Кнопки */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background-color: #2563eb;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn-primary:hover {
  background-color: #1d4ed8;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}
.btn-primary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b82f6;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.6);
  background: #fff;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1d4ed8;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.header-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #475569;
  transition: color 0.2s;
}
.header-link:hover {
  color: #0f172a;
}

.mobile-link {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: #334155;
  transition: background 0.2s, color 0.2s;
}
.mobile-link:hover {
  background: #fff;
  color: #0f172a;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: 1.5rem;
  background: #fff;
  padding: 1rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.field-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #475569;
}
.field-input {
  display: block;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  color: #0f172a;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field-input::placeholder {
  color: #94a3b8;
}
.field-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}
.field-input-error {
  border-color: #f87171;
}
.field-input-error:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}
.field-error {
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #dc2626;
}

/* Появление при скролле */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-up.delay-200 { transition-delay: 0.2s; }
.fade-in-up.delay-300 { transition-delay: 0.3s; }

/* Стиги для карточек документов (чек, счёт, акт) */
.doc-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.doc-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 24px 48px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
}
.doc-card .doc-head {
  padding: 0.75rem 1rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px dashed #e2e8f0;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}
.doc-card .doc-body {
  padding: 1rem;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, monospace;
  font-size: 0.7rem;
  line-height: 1.5;
  color: #334155;
}

/* Лёгкая анимация "плавающих" документов в Hero */
.doc-float {
  animation: docFloat 6s ease-in-out infinite;
}
.doc-float:nth-child(2) { animation-delay: -2s; }
.doc-float:nth-child(3) { animation-delay: -4s; }
@keyframes docFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-8px) rotate(1deg); }
}

/* Trust badge в Hero */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid #e2e8f0;
  font-size: 0.8rem;
  font-weight: 500;
  color: #334155;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

/* Телефон в Hero — выделенный блок */
.hero-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 1rem;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.hero-phone:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.4);
}

/* Секция документов — фон */
.section-docs {
  background: linear-gradient(180deg, #f1f5f9 0%, #e2e8f0 50%, #f8fafc 100%);
}

/* Скрытие для скринридеров */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Плавающая кнопка контактов */
.fab-contacts {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}
.fab-toggle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.fab-toggle:hover {
  background: #1d4ed8;
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5);
}
.fab-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.5);
}
.fab-contacts.is-open .fab-icon-default { display: none; }
.fab-contacts.is-open .fab-icon-open { display: block !important; }

.fab-panel {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.75rem;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
  border: 1px solid #e2e8f0;
  min-width: 12rem;
}
.fab-contacts.is-open .fab-panel {
  display: flex;
  animation: fabPanelIn 0.2s ease;
}
@keyframes fabPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.fab-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.fab-link:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.fab-link-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
}
.fab-link-telegram .fab-link-icon { color: #0088cc; }
