/* ============================================================
   LockHelp — лендінг «Аварійна допомога із замками»
   Темна преміальна тема, mobile-first, без зовнішніх залежностей.
   ============================================================ */

:root {
  --bg: #0b0d12;
  --bg-elevated: #12151c;
  --bg-card: #171b24;
  --border: #262b36;
  --text: #f4f5f7;
  --text-muted: #a3a9b7;
  --accent: #e2ab4d;
  --accent-strong: #f0bd5e;
  --accent-text: #17130a;
  --danger-safe: #2f7d4f; /* не використовується як "гарантія", лише нейтральний акцент іконок */
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --mobile-bar-height: 64px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 56px 0;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 700;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.section-subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: 1rem;
  max-width: 60ch;
}

/* Скрин-рідер видимість */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--accent);
  color: var(--accent-text);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* Фокус для клавіатурної навігації */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent-strong), var(--accent));
  color: var(--accent-text);
  box-shadow: 0 6px 18px rgba(226, 171, 77, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(226, 171, 77, 0.36);
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-block {
  width: 100%;
}

.btn-lg {
  padding: 18px 26px;
  font-size: 1.15rem;
}

/* Легка, ненав'язлива анімація кнопки дзвінка */
@media (prefers-reduced-motion: no-preference) {
  .btn-pulse {
    animation: pulse-shadow 2.6s ease-in-out infinite;
  }
}

@keyframes pulse-shadow {
  0%, 100% { box-shadow: 0 6px 18px rgba(226, 171, 77, 0.28); }
  50% { box-shadow: 0 6px 24px rgba(226, 171, 77, 0.5); }
}

/* ---------- Шапка ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.9);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 20px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}

.header__call {
  padding: 10px 16px;
  font-size: 0.95rem;
}

/* ---------- Перший екран ---------- */
.hero {
  padding-top: 40px;
  padding-bottom: 40px;
}

.hero__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

@media (min-width: 860px) {
  .hero__grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.hero__title {
  font-size: clamp(1.7rem, 1.3rem + 2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.hero__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 0 0 24px;
  max-width: 52ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero__phone {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.hero__phone a {
  text-decoration: none;
}

.hero__caption {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 0;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 30% 20%, rgba(226, 171, 77, 0.18), transparent 60%), var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__illustration svg {
  width: 46%;
  height: 46%;
  color: var(--accent);
}

/* ---------- Картки послуг ---------- */
.services__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .services__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
}

.service-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.service-card__text {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

/* ---------- Переваги ---------- */
.advantages__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .advantages__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.advantage-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.advantage-item__icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 2px;
}

.advantage-item p {
  margin: 0;
  font-size: 0.95rem;
}

/* ---------- Як це працює ---------- */
.steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  position: relative;
}

.step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.step p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--text-muted);
}

/* ---------- Блок довіри ---------- */
.trust__grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .trust__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.trust-item {
  text-align: center;
  padding: 18px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.trust-item__icon {
  width: 28px;
  height: 28px;
  margin: 0 auto 10px;
  color: var(--accent);
}

.trust-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- Фінальний CTA ---------- */
.final-cta {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg));
  border-top: 1px solid var(--border);
  text-align: center;
}

.final-cta__title {
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem);
  font-weight: 800;
  margin: 0 0 10px;
}

.final-cta__text {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 24px;
}

.final-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.final-cta__phone {
  font-size: 1.2rem;
  font-weight: 700;
}

.final-cta__phone a {
  text-decoration: none;
}

.final-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ---------- Футер ---------- */
.footer {
  padding: 32px 0 calc(32px + var(--mobile-bar-height) + var(--safe-bottom));
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (min-width: 860px) {
  .footer {
    padding-bottom: 32px;
  }
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  margin-bottom: 12px;
}

.footer__logo {
  font-weight: 800;
  color: var(--text);
}

.footer__disclaimer {
  margin: 0;
  max-width: 70ch;
}

/* ---------- Закріплена мобільна панель дзвінка ---------- */
.mobile-call-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding: 10px 16px calc(10px + var(--safe-bottom));
}

.mobile-call-bar .btn {
  height: 44px;
}

@media (min-width: 860px) {
  .mobile-call-bar {
    display: none;
  }
}

/* Приховані (доки немає посилання) елементи месенджера не повинні займати місце чи фокус */
[hidden] {
  display: none !important;
}
