:root {
  --paper: #ffffff;
  --paper-2: #f3f6fb;
  --ink: #12151c;
  --muted: #5b6472;
  --line: #d7dee8;
  --accent: #2563eb;
  --danger: #dc2626;
  --shadow: 0 12px 32px rgba(17, 24, 39, 0.1);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
[hidden] { display: none !important; }
body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: "Outfit", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}

.pole {
  height: 3px;
  background: linear-gradient(90deg, var(--danger) 0 33%, #fff 33% 66%, var(--accent) 66% 100%);
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 4vw;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
}
.btn-top { background: var(--danger); min-width: 7.5rem; }
.btn-go { background: var(--accent); min-width: 10rem; min-height: 52px; font-size: 1.05rem; }
.btn-wa {
  background: #25D366;
  min-width: 10rem;
  min-height: 52px;
  font-size: 1.05rem;
  gap: 0.45rem;
}
.btn-wa img { width: 22px; height: 22px; }
.btn-top-wa {
  min-width: auto;
  min-height: 44px;
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}
.btn-top-wa img { width: 20px; height: 20px; }
button.btn {
  font: inherit;
  cursor: pointer;
  border: 0;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.site-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin: 0.35rem 0 0.2rem;
}
.site-switch a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.site-switch a:hover { text-decoration: underline; }
.wa-brand {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ecfdf3;
  box-shadow: 0 0 0 1px #bbf7d0;
  text-decoration: none;
}
.wa-brand img { width: 28px; height: 28px; }
.link-shop {
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

.wa-numbers {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.55rem 4vw;
  background: #ecfdf3;
  border-bottom: 1px solid #bbf7d0;
  overflow: hidden;
}
.wa-numbers-head {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  color: #166534;
  font-size: 0.82rem;
}
.wa-rail {
  display: flex;
  gap: 0.55rem;
  overflow-x: auto;
  padding: 0.15rem 0;
  scrollbar-width: none;
}
.wa-rail::-webkit-scrollbar { display: none; }
.wa-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 0 0 auto;
  padding: 0.35rem 0.7rem 0.35rem 0.4rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #bbf7d0;
  color: inherit;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
}
.wa-chip img { width: 18px; height: 18px; }
.wa-chip small { color: var(--muted); font-weight: 500; }

.shops, .partner {
  padding: 2.4rem 4vw 2.8rem;
  border-top: 1px solid var(--line);
}
.shops { background: #fff; }
.shops-lead, .partner .lead { color: var(--muted); max-width: 40rem; }
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.8rem;
  margin-top: 1.1rem;
}
.shop-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
  box-shadow: var(--shadow);
}
.shop-card-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.shop-logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
  background: #fff;
}
.shop-card strong { font-size: 1.02rem; }
.shop-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.shop-phone img { width: 22px; height: 22px; }
.shop-links { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.shop-links a { font-size: 0.85rem; font-weight: 600; color: var(--accent); }
.partner { background: var(--paper-2); }
.hero-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 36rem;
}
.channels {
  padding: 2.4rem 4vw 2.8rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.channels h2 { margin: 0 0 0.5rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.03em; }
.channels-list {
  margin-top: 1rem;
  max-width: none;
  grid-template-columns: repeat(3, 1fr);
}
.ask {
  padding: 2.4rem 4vw 2.8rem;
  border-top: 1px solid var(--line);
  background: #eff6ff;
}
.ask h2 { margin: 0 0 0.7rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.03em; }
.ask-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  max-width: 44rem;
}
.ask-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.ask-list strong { display: block; margin-bottom: 0.2rem; }
.ask-list span { color: var(--muted); font-size: 0.95rem; }

body.wa-lock { overflow: hidden; }
.wa-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.wa-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 21, 28, 0.48);
  backdrop-filter: blur(4px);
}
.wa-dialog {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(82vh, 720px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(17, 24, 39, 0.22);
  overflow: hidden;
  animation: pop 0.22s ease;
}
.wa-dialog-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.2rem 0.35rem;
}
.wa-dialog-top h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}
.wa-dialog-lead {
  margin: 0;
  padding: 0 1.2rem 0.85rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.wa-close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--paper-2);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.wa-close:hover { background: var(--line); }
.wa-shop-list {
  overflow: auto;
  display: grid;
  gap: 0.65rem;
  padding: 0 1.1rem 1.2rem;
}
.wa-shop {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper-2);
}
.wa-shop-copy { min-width: 0; }
.wa-shop-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}
.wa-shop .shop-phone { font-size: 0.82rem; font-weight: 600; }
.wa-shop .shop-phone.muted { color: var(--muted); font-weight: 500; }
.wa-empty { margin: 0.4rem 0 0.8rem; color: var(--muted); }

main { flex: 1; display: flex; flex-direction: column; }

.hero {
  flex: 1;
  min-height: calc(100dvh - 74px);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3vw;
  align-items: center;
  padding: 2rem 4vw;
  background: var(--paper);
}

.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--danger);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2.1rem, 5vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 38rem;
}

.chat {
  height: min(78vh, 680px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.chat-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  background: #fff;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--danger) 0 33%, #fff 33% 66%, var(--accent) 66% 100%) 1;
}
.chat-top img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: cover;
}
.chat-top strong { display: block; font-size: 1rem; }
.chat-top span { display: block; font-size: 0.75rem; color: #16a34a; }

.chat-thread {
  flex: 1;
  overflow: auto;
  padding: 1rem 1rem 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  background: var(--paper-2);
}
.bubble {
  max-width: 86%;
  padding: 0.7rem 0.85rem;
  border-radius: 16px;
  font-size: 0.95rem;
  animation: pop 0.28s ease;
}
.bubble p { margin: 0; }
.bubble.out {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.bubble.out img {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  object-fit: cover;
  flex: 0 0 auto;
}
.bubble.in {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 5px;
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  animation: blink 1s infinite;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }

.chat-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 0.88rem;
}
.send {
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.8rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.steps {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  padding: 2.6rem 4vw 3rem;
  text-align: center;
}
.steps h2 { margin: 0 0 1.4rem; text-align: left; font-size: 1.5rem; }
.steps ol {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  text-align: left;
}
.steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
}
.num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.55rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}
.steps li:nth-child(even) .num { background: var(--danger); }
.steps strong { display: block; margin-bottom: 0.25rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.foot {
  padding: 1.1rem 4vw 1.4rem;
  display: grid;
  gap: 0.15rem;
  color: var(--muted);
  font-size: 0.78rem;
  background: #fff;
  border-top: 1px solid var(--line);
}
.foot strong { color: var(--ink); }
.foot .legal-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin: 0.2rem 0;
}
.foot .legal-mini a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}
.foot .legal-mini a:hover { text-decoration: underline; }

.legal {
  flex: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 1.6rem 4vw 2.4rem;
}
.legal-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  line-height: 1.2;
}
.legal-updated {
  margin: 0 0 1.2rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.legal h2 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.05rem;
}
.legal p, .legal li {
  color: var(--ink);
  font-size: 0.98rem;
}
.legal ul {
  margin: 0.3rem 0 0.8rem;
  padding-left: 1.15rem;
}
.legal li { margin: 0.25rem 0; }
.legal a { color: var(--accent); font-weight: 600; }
.legal-nav {
  margin-top: 2rem;
  color: var(--muted);
}

@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes blink {
  0%, 80%, 100% { opacity: 0.25; }
  40% { opacity: 1; }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 1.2rem 1.1rem 1.8rem;
  }
  .chat { height: min(62vh, 520px); }
  .steps { padding: 1.8rem 1.1rem 2.2rem; }
  .steps ol { grid-template-columns: 1fr 1fr; }
  .channels-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps ol { grid-template-columns: 1fr; }
  h1 { font-size: 1.85rem; }
  .top { padding: 0.85rem 1rem; }
  .btn-top { min-width: auto; padding: 0.7rem 0.9rem; }
  .shops, .partner, .ask, .channels { padding: 1.8rem 1.1rem 2.2rem; }
  .channels-list { grid-template-columns: 1fr; }
  .wa-shop {
    grid-template-columns: 44px 1fr;
  }
  .wa-shop .btn { grid-column: 1 / -1; width: 100%; }
}
