/* ============================================
   TovariMe — Design System
   ============================================ */
:root {
  --bg: #F5F1EA;
  --bg-2: #ECE6DC;
  --bg-3: #E5DDD0;
  --ink: #0F0F0E;
  --ink-2: #4A4844;
  --ink-3: #7A7670;
  --accent: #E64A19;
  --accent-soft: #FFE8DF;
  --accent-dark: #B83712;
  --trust: #1E3A8A;
  --line: #D8D1C3;
  --line-2: #BFB6A4;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;
  --white: #FFFFFF;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 15px;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

.display { font-family: 'Funnel Display', serif; letter-spacing: -0.02em; line-height: 0.95; }
.mono { font-family: 'Geist Mono', monospace; letter-spacing: -0.02em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ── Nav ─────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 241, 234, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Funnel Display'; font-weight: 800; font-size: 22px;
  letter-spacing: -1px;
}
.logo-icon {
  background: var(--ink); width: 36px; height: 28px; border-radius: 3px;
  position: relative; display: inline-block;
}
.logo-icon::before {
  content: ''; position: absolute; left: -8px; bottom: -2px;
  width: 12px; height: 3px; background: var(--accent);
  border-radius: 1px;
  transform: rotate(-25deg); transform-origin: right;
}
.logo-icon::after {
  content: ''; position: absolute; right: -4px; top: 4px;
  width: 10px; height: 18px; background: var(--ink);
  border-radius: 2px;
}
.logo-me { color: var(--accent); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  font-family: 'Geist Mono'; font-size: 11px; font-weight: 500;
  padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px;
  display: flex; gap: 6px; background: var(--bg); cursor: pointer; transition: all .15s;
}
.lang:hover { border-color: var(--line-2); }
.lang span { padding: 0 2px; transition: color .15s; }
.lang .on { color: var(--accent); }
.lang .off { color: var(--ink-2); opacity: 0.5; }

.menu-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  display: grid; place-items: center; border: none;
  font-family: 'Geist Mono'; font-size: 18px;
  transition: background .15s;
}
.menu-btn:hover { background: var(--accent); }

/* ── Mobile menu drawer ─────────────────── */
.drawer {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink); color: var(--bg);
  transform: translateX(100%);
  transition: transform .3s cubic-bezier(.4,0,.2,1);
  padding: 20px;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.drawer-close { background: rgba(245,241,234,0.1); color: var(--bg); border: none; border-radius: 10px; width: 38px; height: 38px; font-size: 18px; }
.drawer nav a {
  display: block;
  font-family: 'Funnel Display'; font-weight: 800;
  font-size: 36px; letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid rgba(245,241,234,0.1);
  transition: color .15s;
}
.drawer nav a:hover { color: var(--accent); }
.drawer nav a.current { color: var(--accent); }
.drawer-foot { margin-top: auto; padding-top: 30px; font-family: 'Geist Mono'; font-size: 11px; color: rgba(245,241,234,0.5); }

/* ── Headings / spec lines ─────────────────── */
.section-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 0 20px;
}
.section-head .num {
  font-family: 'Geist Mono'; font-size: 11px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em;
}
.section-head h2 {
  font-family: 'Funnel Display'; font-weight: 800;
  font-size: 30px; letter-spacing: -0.03em; line-height: 1;
}
.spec-line {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Geist Mono'; font-size: 11px; font-weight: 500;
  color: var(--ink-2);
  text-transform: uppercase;
}
.spec-line .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50% { opacity: 0.6; box-shadow: 0 0 0 6px rgba(22, 163, 74, 0); }
}

/* ── Buttons ─────────────────── */
.btn {
  border: none; border-radius: 12px;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 16px;
  padding: 14px 22px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .15s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: white; }
.btn-dark:hover { background: var(--accent); }
.btn-outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-full { width: 100%; }

/* ── Bus card (used on multiple pages) ─────────────────── */
.bus {
  background: white; border-radius: 18px;
  overflow: hidden; border: 1px solid var(--line);
}
.bus .photo {
  height: 200px;
  background: var(--bg-2);
  position: relative;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 18px, rgba(15,15,14,0.04) 18px, rgba(15,15,14,0.04) 19px);
  display: grid; place-items: center;
}
.bus .photo-text {
  font-family: 'Geist Mono'; font-size: 11px; color: var(--ink-2);
  background: var(--bg); padding: 6px 12px; border-radius: 999px;
  border: 1px dashed var(--line);
}
.bus .status {
  position: absolute; top: 14px; left: 14px;
  background: rgba(15,15,14,0.85); color: white;
  padding: 6px 10px; border-radius: 999px;
  font-family: 'Geist Mono'; font-size: 10px;
  display: flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.bus .status .d { width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.bus .status.busy { background: rgba(220,38,38,0.9); }
.bus .status.busy .d { background: white; }
.bus .year-tag {
  position: absolute; top: 14px; right: 14px;
  background: white; color: var(--ink);
  padding: 6px 12px; border-radius: 999px;
  font-family: 'Funnel Display'; font-weight: 800; font-size: 13px;
  letter-spacing: -0.02em;
}
.bus .body { padding: 20px; }
.bus h4 { font-family: 'Funnel Display'; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; }
.bus .badge {
  display: inline-block;
  font-family: 'Geist Mono'; font-size: 10px;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 8px; border-radius: 6px;
  margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.specs {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; padding: 14px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.spec .k {
  font-family: 'Geist Mono'; font-size: 9px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 2px;
}
.spec .v {
  font-family: 'Funnel Display'; font-weight: 700;
  font-size: 15px; letter-spacing: -0.02em;
}
.pricing-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.price-from { font-family: 'Geist Mono'; font-size: 10px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em; }
.price-amount { font-family: 'Funnel Display'; font-weight: 800; font-size: 32px; letter-spacing: -0.03em; line-height: 1; }
.price-amount span { font-size: 16px; color: var(--ink-2); font-weight: 500; }
.price-unit { font-family: 'Geist Mono'; font-size: 11px; color: var(--ink-2); margin-top: 2px; }
.cta-row { display: flex; gap: 8px; }
.cta-row .v-btn {
  flex: 1; padding: 14px; border-radius: 12px; border: none;
  font-family: 'Funnel Display'; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: all .15s;
}
.cta-row .v-btn.primary { background: var(--ink); color: white; }
.cta-row .v-btn.primary:hover { background: var(--accent); }
.cta-row .v-btn.secondary { background: transparent; color: var(--ink); border: 1px solid var(--ink); flex: 0 0 auto; padding: 14px 16px; }
.cta-row .v-btn.secondary:hover { background: var(--ink); color: white; }

/* ── Forms ─────────────────── */
.field { margin-bottom: 14px; }
.field .label {
  display: block;
  font-family: 'Geist Mono'; font-size: 10px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.field input[type=text],
.field input[type=email],
.field input[type=tel],
.field input[type=number],
.field input[type=date],
.field input[type=time],
.field select,
.field textarea {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: border-color .15s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field .help { font-size: 12px; color: var(--ink-2); margin-top: 4px; }

.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ── Dark surface (used in hero & booking widgets) ─────────────────── */
.dark-card {
  background: var(--ink); color: var(--bg);
  border-radius: 20px; padding: 24px 20px;
  position: relative; overflow: hidden;
}
.dark-card h3 {
  font-family: 'Funnel Display'; font-weight: 800; font-size: 28px;
  letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px;
}
.dark-card .sub { font-size: 13px; color: rgba(245,241,234,0.6); margin-bottom: 20px; }
.dark-card .field .label { color: rgba(245,241,234,0.5); }
.dark-card .field input,
.dark-card .field select,
.dark-card .field textarea {
  background: rgba(245,241,234,0.08);
  border: 1px solid rgba(245,241,234,0.15);
  color: var(--bg);
}
.dark-card .field input::placeholder { color: rgba(245,241,234,0.4); }
.dark-card .field input:focus { border-color: var(--accent); }

/* ── Footer ─────────────────── */
.footer { padding: 40px 20px 30px; background: var(--ink); color: var(--bg); }
.footer h4 { font-family: 'Funnel Display'; font-weight: 800; font-size: 42px; letter-spacing: -0.04em; line-height: 0.95; margin-bottom: 18px; }
.footer h4 .a { color: var(--accent); }
.footer .contacts { display: flex; flex-direction: column; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(245,241,234,0.15); }
.contact-row { display: flex; justify-content: space-between; align-items: center; }
.contact-row .k { font-family: 'Geist Mono'; font-size: 10px; color: rgba(245,241,234,0.5); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-row .v { font-family: 'Funnel Display'; font-weight: 700; font-size: 16px; }
.footer .links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 18px; margin-top: 18px; border-top: 1px solid rgba(245,241,234,0.15); }
.footer .links a { display: block; font-family: 'Geist Mono'; font-size: 12px; color: rgba(245,241,234,0.7); padding: 6px 0; }
.footer .links a:hover { color: var(--accent); }
.copyright {
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(245,241,234,0.15);
  font-family: 'Geist Mono'; font-size: 10px; color: rgba(245,241,234,0.5);
  display: flex; justify-content: space-between;
}

/* ── Floating CTA sticker ─────────────────── */
.sticker {
  position: fixed; bottom: 20px; right: 20px;
  width: 76px; height: 76px;
  background: var(--accent); color: white;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: 'Geist Mono'; font-size: 10px;
  font-weight: 500; text-align: center;
  line-height: 1.2; padding: 6px;
  transform: rotate(-8deg);
  box-shadow: 0 10px 30px rgba(230, 74, 25, 0.35);
  z-index: 40;
  animation: floaty 4s ease-in-out infinite;
  border: none;
}
@keyframes floaty {
  0%, 100% { transform: rotate(-8deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-6px); }
}

/* ── Calendar ─────────────────── */
.calendar {
  background: white;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid var(--line);
}
.cal-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px;
}
.cal-head .month {
  font-family: 'Funnel Display'; font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
}
.cal-nav-btn {
  width: 34px; height: 34px;
  background: var(--bg-2); border: none; border-radius: 8px;
  display: grid; place-items: center;
  font-size: 16px; color: var(--ink);
}
.cal-nav-btn:hover { background: var(--ink); color: white; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-weekday {
  font-family: 'Geist Mono'; font-size: 10px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.08em;
  text-align: center;
  padding: 8px 0 12px;
}
.cal-day {
  aspect-ratio: 1;
  border: none; background: transparent;
  border-radius: 8px;
  font-family: 'Geist Mono'; font-size: 13px; font-weight: 500;
  color: var(--ink);
  display: grid; place-items: center;
  transition: all .15s;
  position: relative;
}
.cal-day:hover:not(:disabled) { background: var(--bg-2); }
.cal-day.other-month { color: var(--line-2); }
.cal-day.today { font-weight: 700; }
.cal-day.today::after {
  content: ''; position: absolute; bottom: 4px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--ink);
}
.cal-day.busy {
  background: var(--bg-3);
  color: var(--line-2);
  text-decoration: line-through;
  cursor: not-allowed;
}
.cal-day.selected {
  background: var(--accent); color: white;
}
.cal-day.in-range {
  background: var(--accent-soft); color: var(--accent-dark);
}
.cal-day:disabled { color: var(--line-2); cursor: not-allowed; }

.cal-legend {
  display: flex; gap: 14px; margin-top: 18px;
  padding-top: 16px; border-top: 1px solid var(--line);
  font-family: 'Geist Mono'; font-size: 10px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.05em;
}
.cal-legend-item { display: flex; align-items: center; gap: 6px; }
.cal-legend-swatch { width: 12px; height: 12px; border-radius: 3px; }
.cal-legend-swatch.free { background: white; border: 1px solid var(--line); }
.cal-legend-swatch.busy { background: var(--bg-3); }
.cal-legend-swatch.selected { background: var(--accent); }

/* ── Trust / FAQ items ─────────────────── */
.trust-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  padding: 0 20px;
}
.trust-item {
  background: white;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid var(--line);
}
.trust-item .icon {
  font-family: 'Geist Mono'; font-size: 13px; font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}
.trust-item .t {
  font-family: 'Funnel Display'; font-weight: 700;
  font-size: 17px; letter-spacing: -0.02em; line-height: 1.1;
  margin-bottom: 6px;
}
.trust-item .d { font-size: 13px; color: var(--ink-2); line-height: 1.4; }

/* ── FAQ accordion ─────────────────── */
.faq-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-q {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 18px 20px;
  font-family: 'Funnel Display'; font-weight: 700;
  font-size: 16px; letter-spacing: -0.02em;
  color: var(--ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px;
}
.faq-q .arrow { transition: transform .2s; font-family: 'Geist Mono'; color: var(--accent); font-size: 18px; }
.faq-item.open .faq-q .arrow { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  font-size: 14px; color: var(--ink-2); line-height: 1.6;
}
.faq-item.open .faq-a { padding: 0 20px 20px; max-height: 500px; }

/* ── Price calculator ─────────────────── */
.calc {
  background: white;
  border-radius: 18px;
  padding: 22px 20px;
  border: 1px solid var(--line);
}
.calc-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.calc-row:last-of-type { border-bottom: none; }
.calc-row .k { font-size: 14px; color: var(--ink-2); }
.calc-row .v { font-family: 'Geist Mono'; font-weight: 500; font-size: 14px; color: var(--ink); }
.calc-total {
  margin-top: 14px; padding-top: 18px;
  border-top: 2px solid var(--ink);
  display: flex; justify-content: space-between; align-items: baseline;
}
.calc-total .k { font-family: 'Funnel Display'; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.calc-total .v { font-family: 'Funnel Display'; font-weight: 800; font-size: 36px; letter-spacing: -0.03em; color: var(--accent); }
.calc-total .v span { font-size: 18px; color: var(--ink); }

/* ── Bus selector chips ─────────────────── */
.chip-group { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-family: 'Geist Mono'; font-size: 12px; font-weight: 500;
  color: var(--ink);
  transition: all .15s;
}
.chip.active { background: var(--ink); color: white; border-color: var(--ink); }
.chip:hover:not(.active) { border-color: var(--ink); }

/* ── Banner / alert ─────────────────── */
.banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px; color: var(--accent-dark);
  margin-bottom: 16px;
  display: flex; gap: 10px; align-items: flex-start;
}
.banner .bi { font-family: 'Geist Mono'; font-weight: 600; }

/* ── Page wrapper ─────────────────── */
.page { padding-bottom: 60px; }
.section { padding: 32px 20px; }
.section.tight { padding: 24px 20px; }
.section.no-pad-x { padding-left: 0; padding-right: 0; }
.section h2.section-title {
  font-family: 'Funnel Display'; font-weight: 800;
  font-size: 30px; letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 20px;
}
.section .num {
  font-family: 'Geist Mono'; font-size: 11px;
  color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
  display: block;
}

/* ── Responsive ─────────────────── */
@media (min-width: 768px) {
  body { font-size: 16px; }
  .nav { padding: 16px 40px; }
  .section { padding: 40px 40px; max-width: 1200px; margin: 0 auto; }
  .section.tight { padding: 24px 40px; }
  .hero h1 { font-size: 72px !important; }
  .buses, .trust-grid { grid-template-columns: 1fr 1fr; display: grid; gap: 16px; }
  .footer h4 { font-size: 56px; }
  .footer .links { grid-template-columns: repeat(4, 1fr); }
  .footer { padding: 50px 40px 30px; }

  /* Hero in two columns on tablet+ */
  .hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
  }
  .hero-grid .meta { grid-column: 1 / -1; }

  /* Trust grid 4 columns on tablet */
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .nav { padding: 18px 60px; }
  .section { padding: 50px 60px; max-width: 1280px; margin: 0 auto; }
  .section.tight { padding: 30px 60px; }
  .footer { padding: 60px 60px 30px; max-width: 1280px; margin: 0 auto; }
  .hero h1 { font-size: 88px !important; line-height: 0.9; }
  .buses { grid-template-columns: 1fr 1fr; gap: 20px; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }

  /* Section headings: number + title side by side on desktop */
  .section .num { display: inline-block; margin-right: 16px; margin-bottom: 0; vertical-align: middle; }
  .section h2.section-title { display: inline-block; vertical-align: middle; }

  /* Tighter dark-card on desktop */
  .dark-card { padding: 32px; }
  .dark-card h3 { font-size: 32px; }

  /* Hero meta: bigger inline */
  .hero-grid { gap: 60px; }

  /* Two-column "how it works" steps */
  ol.steps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }
  ol.steps-grid li { border-bottom: none !important; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: white; }
}
