/* ============================================================
   PacknFly — mobile-first styles (LUGGit-inspired layout:
   alternating section bands, flat illustrations, card pricing)
   ============================================================ */

:root {
  --bg: #f4f7fb;
  --band-blue: #f0f4ff;
  --card: #ffffff;
  --ink: #14233c;
  --ink-soft: #51617a;
  --brand: #13335f;        /* deep navy — headers, footer */
  --primary: #1b56c4;      /* action blue */
  --primary-press: #14439c;
  --orange: #f97316;       /* illustration / highlight orange */
  --accent: #f59e0b;
  --accent-soft: #fef3e0;
  --line: #e3e9f2;
  --good: #0f8a4d;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(20, 35, 60, 0.08), 0 4px 14px rgba(20, 35, 60, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  background: #fff;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

[hidden] { display: none !important; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 8px;
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo img { height: 32px; width: auto; }

.lang-toggle {
  display: flex;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
  max-width: 64vw;
  overflow-x: auto;
  scrollbar-width: none;
}
.lang-toggle::-webkit-scrollbar { display: none; }
.lang-toggle button {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 8px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}
.lang-toggle button.active {
  background: var(--card);
  color: var(--brand);
  box-shadow: 0 1px 3px rgba(20, 35, 60, 0.15);
}

.anchor-nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0 12px 10px;
  max-width: 960px;
  margin: 0 auto;
  scrollbar-width: none;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav a {
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
}
.anchor-nav a:active, .anchor-nav a:hover { background: var(--bg); color: var(--brand); }
.anchor-nav .nav-book {
  background: var(--primary);
  color: #fff;
  margin-left: auto;
}
.anchor-nav .nav-book:hover { background: var(--primary-press); color: #fff; }

/* ---------- bands & layout ---------- */
.band { padding: 52px 0; scroll-margin-top: 96px; }
.band-blue { background: var(--band-blue); }
.band-white { background: #fff; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: clamp(36px, 9.5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin: 14px 0 12px;
  color: var(--brand);
}
h2 {
  font-size: clamp(26px, 6.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin: 0 0 8px;
  color: var(--brand);
}
h3 { font-size: 18px; margin: 0 0 4px; }

.section-sub { color: var(--ink-soft); margin: 0 0 24px; font-size: 17px; }

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

/* ---------- hero ---------- */
.hero { padding-top: 36px; padding-bottom: 44px; }

.hero-grid { display: flex; flex-direction: column; }

.badge {
  display: inline-block;
  background: var(--accent-soft);
  color: #92600a;
  border: 1px solid #f3ddb2;
  font-size: 13px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.hero-sub {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 8px;
}
.hero-desc { color: var(--ink-soft); margin: 0 0 22px; font-size: 17px; }

.cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  text-align: center;
  border-radius: 14px;
  padding: 15px 22px;
  cursor: pointer;
  border: 0;
  transition: background-color 0.15s ease;
}
.btn-primary { background: var(--primary); color: #fff; flex: 1 1 auto; }
.btn-primary:hover { background: var(--primary-press); }
.btn-ghost {
  background: var(--card);
  color: var(--primary);
  border: 1.5px solid var(--line);
  flex: 1 1 auto;
}
.btn-ghost:hover { border-color: var(--primary); }

.hero-art { margin: 28px auto 0; width: min(280px, 72vw); }

.trust-list {
  list-style: none;
  margin: 30px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.trust-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 15px;
  font-weight: 600;
}

/* ---------- how it works ---------- */
.steps {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.step { padding: 22px 20px 20px; }
.step-art {
  width: min(220px, 60vw);
  margin: 0 auto 14px;
}
.step h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
}
.step-num {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step p { margin: 8px 0 0; color: var(--ink-soft); font-size: 15.5px; }

/* ---------- pricing cards ---------- */
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.price-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  column-gap: 14px;
  padding: 18px 18px;
}
.price-card h3 { margin: 0; font-size: 16.5px; }
.price-card .price {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.price-card .card-note {
  grid-column: 2 / 4;
  margin: 4px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--good);
}
.price-card.popular { border: 2px solid var(--primary); }
.popular-tag {
  position: absolute;
  top: -11px;
  right: 14px;
  background: var(--orange);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}

.size-chip {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e3ecff;
  color: var(--primary);
  font-weight: 800;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-chip.chip-box {
  background: #ffe6d3;
  color: var(--orange);
  font-size: 13px;
}

.extras { margin-top: 14px; padding: 16px 18px; }
.extras-title {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.extras ul { list-style: none; margin: 0; padding: 0; }
.extras li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.extras li:last-child { border-bottom: 0; }
.extras strong { white-space: nowrap; font-variant-numeric: tabular-nums; }
.extras li.deal strong { color: var(--good); }

.example-box {
  margin-top: 16px;
  background: var(--card);
  border: 1.5px dashed #b9cdf5;
  border-radius: var(--radius);
  padding: 15px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
}

.payment-note { color: var(--ink-soft); font-size: 14px; margin: 14px 2px 0; }

/* ---------- box section ---------- */
.box-section h2 { font-size: clamp(23px, 5.8vw, 28px); }

.box-specs { display: flex; gap: 12px; margin-top: 4px; }

.box-spec {
  flex: 1;
  padding: 18px 14px;
  text-align: center;
  color: var(--orange);
}
.box-spec svg { width: 84px; margin: 0 auto 10px; }
.box-spec-m svg { width: 100px; }
.box-spec strong { display: block; color: var(--brand); font-size: 17px; }
.box-spec .dim { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); margin-top: 2px; }
.box-spec .fits { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.box-limit {
  margin: 16px 0 4px;
  background: var(--accent-soft);
  border: 1px solid #f3ddb2;
  border-radius: 12px;
  padding: 13px 14px;
  font-size: 15px;
  font-weight: 600;
  color: #92600a;
}
.box-slogan {
  margin: 12px 2px 0;
  font-weight: 700;
  color: var(--brand);
  font-style: italic;
}

/* ---------- coverage ---------- */
.coverage-card { padding: 20px; }
.coverage-card p { margin: 0; font-weight: 600; font-size: 16.5px; }

/* ---------- booking form ---------- */
.booking-card { padding: 24px 18px; margin-top: 16px; }

.field { display: block; margin-bottom: 18px; }
fieldset.field { border: 0; padding: 0; margin: 0 0 18px; }

.field-label {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  margin-bottom: 6px;
}

input[type="text"],
input[type="email"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--ink);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  -webkit-appearance: none;
  appearance: none;
  min-height: 46px;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--card);
}
textarea { resize: vertical; }

.hint { display: block; font-size: 13px; color: var(--ink-soft); margin-top: 6px; }

.messenger-row { display: grid; grid-template-columns: 124px 1fr; gap: 8px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.two-col .field { margin-bottom: 18px; }

/* item steppers */
.item-rows { display: flex; flex-direction: column; gap: 6px; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 9px 10px 9px 12px;
}
.item-row.selected { border-color: var(--primary); background: #eef4ff; }
.item-name { font-size: 14.5px; font-weight: 600; }
.item-name em { font-style: normal; color: var(--ink-soft); font-weight: 500; font-size: 13.5px; }

.stepper { display: flex; align-items: center; gap: 2px; }
.step-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--primary);
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  line-height: 1;
}
.step-btn:active { background: var(--primary); color: #fff; }
.qty {
  min-width: 28px;
  text-align: center;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.box-note {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--good);
  background: #ecf8f1;
  border: 1px solid #cdeeda;
  border-radius: 10px;
  padding: 10px 12px;
}

/* contents chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg);
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  user-select: none;
}
.chips input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 1px; }

/* honeypot */
.hp { position: absolute !important; left: -9999px !important; height: 1px; width: 1px; opacity: 0; }

/* total */
.total-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--brand);
  color: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-weight: 700;
  font-size: 17px;
  margin-top: 4px;
}
.total-value { font-size: 21px; font-variant-numeric: tabular-nums; }
.total-old {
  font-size: 15px;
  font-weight: 600;
  color: #8fa3c0;
  text-decoration: line-through;
  margin-right: 6px;
}
.discount-note {
  margin: 8px 2px 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--good);
}
.oversized-note { margin: 8px 2px 0; }

.btn-submit { width: 100%; margin-top: 16px; font-size: 18px; padding: 16px; }
.btn-submit:disabled { opacity: 0.6; cursor: default; }

.form-msg { margin: 12px 2px 0; font-size: 15px; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: #c0392b; }

/* ---------- trust badge + faq ---------- */
.trust-badge { text-align: center; margin-bottom: 40px; }
.stars {
  color: var(--orange);
  font-size: 28px;
  letter-spacing: 6px;
  line-height: 1;
  margin-bottom: 10px;
}
.trust-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 4px;
}
.trust-sub { font-size: 14.5px; color: var(--ink-soft); margin: 0; }

.faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq-list details { padding: 0 16px; }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: var(--primary);
  font-size: 20px;
  font-weight: 700;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--brand);
  color: #c8d6ea;
  padding: 36px 20px 28px;
  text-align: center;
  font-size: 14.5px;
}
.footer-brand { color: #fff; font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.footer-kto { font-size: 13px; margin: 0 0 16px; }
.footer-contact { margin: 0 0 20px; line-height: 1.8; }

.qr-row { display: flex; justify-content: center; gap: 12px; margin-bottom: 24px; }
.qr { margin: 0; }
.qr-img {
  width: clamp(90px, 27vw, 120px);
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
  padding: 6px;
}
.qr figcaption { font-size: 12px; margin-top: 7px; }

.footer-copy { font-size: 12px; color: #8fa3c0; margin: 0; }

/* ---------- floating contact FAB ---------- */
.float-contacts {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(20, 35, 60, 0.25);
}
.float-btn:active { transform: scale(0.94); }
.fb-line { background: #06c755; }
.fb-wa { background: #25d366; }
.fb-wc { background: #07c160; }

.fab-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 10px;
}
.fab-menu .float-btn {
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.float-contacts.open .fab-menu .float-btn {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
/* small stagger while opening (top button arrives last) */
.float-contacts.open .fab-menu .float-btn:nth-child(3) { transition-delay: 0s; }
.float-contacts.open .fab-menu .float-btn:nth-child(2) { transition-delay: 0.05s; }
.float-contacts.open .fab-menu .float-btn:nth-child(1) { transition-delay: 0.1s; }

.fab-main {
  width: 52px;
  height: 52px;
  background: var(--primary);
}
.fab-main:active { transform: scale(0.94); }
.fab-main .icon-close { display: none; }
.float-contacts.open .fab-main .icon-chat { display: none; }
.float-contacts.open .fab-main .icon-close { display: block; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 80px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20, 35, 60, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 70;
  white-space: nowrap;
}
.toast.show { opacity: 1; }

/* ---------- desktop (kept simple) ---------- */
@media (min-width: 760px) {
  .container { max-width: 880px; }
  .hero { padding-top: 56px; }
  .hero-grid {
    flex-direction: row;
    align-items: center;
    gap: 32px;
  }
  .hero-copy { flex: 1.2; }
  .hero-art { flex: 1; margin: 0; width: auto; max-width: 300px; }
  .cta-row .btn { flex: 0 1 auto; min-width: 180px; }
  .trust-list { flex-direction: row; }
  .trust-list li { flex: 1; text-align: center; }

  .steps { flex-direction: row; align-items: stretch; }
  .step { flex: 1; }
  .step-art { width: 100%; max-width: 200px; }

  .price-cards { flex-direction: row; align-items: stretch; }
  .price-card {
    flex: 1;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    row-gap: 10px;
    padding: 26px 16px 22px;
  }
  .price-card .card-note { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .fab-menu .float-btn, .toast { transition: none; }
}
