/* Tralego, strona glowna */
:root {
  --navy: #0b1b45;
  --blue: #0a6cff;
  --sky: #dce9ff;
  --sky2: #a9cbff;
  --ink: #1f2a44;
  --muted: #56627c;
  --line: #e2e8f3;
  --paper: #f6f8fc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* Przyciski */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 34px; min-width: 206px;
  border: 1.5px solid var(--blue); border-radius: 6px;
  background: #fff; color: var(--navy);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: #eef4ff; }
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { background: #0558d6; border-color: #0558d6; }
.btn .arrow { font-size: 18px; line-height: 1; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 30px 0 0; text-align: center; border-bottom: 1px solid var(--line); }
.hero .shape { position: absolute; bottom: 0; height: auto; pointer-events: none; }
.hero .shape.left { left: 0; width: 27vw; }
.hero .shape.right { right: 0; width: 26.2vw; }
.hero .inner { position: relative; }
.lang-switch { position: absolute; top: 18px; right: 22px; z-index: 3; }
.lang-switch select {
  height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230b1b45' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 11px center;
  color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.lang-switch select:hover { border-color: var(--blue); }
.hero h1 { margin: 0 auto; width: min(470px, 74vw); }
.hero .tagline { margin: 22px 0 0; font-size: 29px; line-height: 1.25; font-weight: 400; color: #33415f; }
.hero .lead { margin: 12px auto 0; max-width: 680px; font-size: 17px; color: #44506b; }
.hero .cta { margin-top: 24px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hero .truck { margin: 26px auto 0; width: min(740px, 94vw); }

/* Sekcje */
section.block { padding: 84px 0; }
section.block.tint { background: var(--paper); }
.title { margin: 0; font-size: 32px; line-height: 1.2; font-weight: 600; color: var(--navy); text-align: center; }
.subtitle { margin: 10px 0 0; text-align: center; color: var(--muted); font-size: 17px; }

/* Dla kogo: przelacznik bez JavaScriptu */
.audience { max-width: 760px; margin: 0 auto; }
.audience input { position: absolute; opacity: 0; pointer-events: none; }
.switch { display: flex; padding: 5px; background: #e8eefa; border-radius: 12px; }
.switch label {
  flex: 1; padding: 13px 10px; border-radius: 9px; text-align: center; cursor: pointer;
  font-size: 17px; font-weight: 600; color: #42506e; transition: background-color .15s, color .15s;
}
#aud-carriers:checked ~ .switch label[for='aud-carriers'],
#aud-forwarders:checked ~ .switch label[for='aud-forwarders'] { background: #fff; color: var(--blue); box-shadow: 0 1px 4px rgba(11, 27, 69, .12); }
.audience input:focus-visible ~ .switch { outline: 2px solid var(--blue); outline-offset: 3px; }
.panel { display: none; margin: 22px 0 0; padding: 0; list-style: none; }
#aud-carriers:checked ~ .panel.carriers, #aud-forwarders:checked ~ .panel.forwarders { display: block; }
.panel li {
  display: flex; align-items: center; gap: 16px; padding: 20px 24px; margin-top: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 18px; color: var(--navy);
}
.tick { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sky); position: relative; }
.tick::after {
  content: ''; position: absolute; left: 10px; top: 6px; width: 6px; height: 11px;
  border: solid var(--blue); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg);
}

/* Moduly */
.modules { margin-top: 36px; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; row-gap: 14px; }
.modules span { padding: 4px 34px; font-size: 26px; line-height: 1.2; font-weight: 700; color: var(--navy); white-space: nowrap; }
.modules span + span { border-left: 1.5px solid #cfd6e3; }
.modules span:last-child { color: var(--blue); }

/* Cennik */
/* Cennik i konfigurator */
.cfg { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 10px 40px rgba(11, 27, 69, .06); }
.cfg-top { display: grid; grid-template-columns: 36% 1fr; }
.cfg-intro { padding: 52px 30px 44px 48px; border-right: 1px solid var(--line); }
.cfg-mark { font-size: 30px; line-height: 1; font-weight: 700; font-style: italic; letter-spacing: -2px; color: var(--blue); }
.cfg-intro h2 { margin: 30px 0 0; font-size: 40px; line-height: 1.12; font-weight: 300; letter-spacing: -0.01em; color: var(--navy); }
.cfg-intro h2 strong { display: block; font-weight: 700; }
.cfg-intro p { margin: 20px 0 0; font-size: 17px; color: var(--muted); }
.cfg-rule { margin-top: 30px; width: 64px; height: 3px; background: var(--blue); }
.cfg-form { padding: 46px 48px 40px 40px; }
.cfg-label { margin: 0 0 14px; font-size: 17px; color: var(--muted); }
.cfg-form input[type='radio'], .cfg-form input[type='checkbox'] { position: absolute; opacity: 0; pointer-events: none; }

.cfg-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 30px; }
.cfg-scope label {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 12px 20px;
  border: 1.5px solid #cfd8e8; border-radius: 6px; background: #fff; font-size: 17px; line-height: 1.3; color: var(--navy); cursor: pointer;
}
.cfg-scope .dot { flex: none; width: 22px; height: 22px; border: 2px solid #b4bfd4; border-radius: 50%; background: #fff; }
.cfg-scope label:has(input:checked) { border-color: var(--blue); background: #f1f6ff; font-weight: 600; }
.cfg-scope label:has(input:checked) .dot { border-color: var(--blue); box-shadow: inset 0 0 0 4px #fff; background: var(--blue); }

.cfg-period { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; border: 1.5px solid #cfd8e8; border-radius: 6px; overflow: hidden; }
.cfg-period label { position: relative; cursor: pointer; }
.cfg-period label + label { border-left: 1.5px solid #cfd8e8; }
.cfg-period label { display: flex; }
.cfg-period span { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 62px; padding: 8px 6px; text-align: center; font-size: 17px; line-height: 1.25; color: var(--navy); background: #fff; }
.cfg-period input:checked + span { background: var(--blue); color: #fff; font-weight: 600; }
.cfg-period small { display: block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--blue); white-space: nowrap; }
.cfg-period input:checked + span small { color: #cfe1ff; }

.cfg-rows { border-top: 1px solid var(--line); }
.cfg-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.cfg-name { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; color: var(--navy); }
.cfg-name img { height: 21px; width: auto; }
.cfg-price { margin-left: auto; white-space: nowrap; font-size: 21px; font-weight: 700; color: var(--blue); }
.cfg-price small { font-size: 15px; font-weight: 400; color: var(--muted); }
.toggle { position: relative; flex: none; cursor: pointer; }
.toggle .track { display: block; width: 50px; height: 28px; border-radius: 14px; background: #c5cddb; position: relative; transition: background .15s; }
.toggle .track::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.toggle input:checked + .track { background: var(--blue); }
.toggle input:checked + .track::after { left: 25px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cfg-form label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }

.cfg-total { display: flex; align-items: center; gap: 36px; margin: 0 48px; padding: 30px 0 38px; border-top: 1px solid var(--line); }
.cfg-total-label { padding-right: 36px; border-right: 1px solid var(--line); font-size: 20px; line-height: 56px; color: var(--muted); }
.cfg-sum { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.02em; color: var(--blue); white-space: nowrap; }
.cfg-cta { margin-left: auto; min-width: 340px; height: 64px; font-size: 21px; color: var(--blue); }
.cfg-cta:hover { background: var(--blue); color: #fff; }

.trial { margin: 26px 0 0; text-align: center; color: var(--muted); }

/* Podpowiedz przy "i" */
.info { position: relative; display: inline-flex; }
.info button {
  width: 20px; height: 20px; padding: 0; border: 1.5px solid #8b9bbd; border-radius: 50%; background: transparent;
  color: #5f7099; font: 700 12px/1 'Segoe UI', Arial, sans-serif; cursor: help;
}
.info .tip {
  display: none; position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); z-index: 5;
  width: 330px; padding: 14px 16px; border-radius: 10px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 400; line-height: 1.5; text-align: left; box-shadow: 0 8px 28px rgba(11, 27, 69, .25);
}
.info:hover .tip, .info:focus-within .tip { display: block; }

/* Stopka */
.footer { padding: 30px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer .wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.footer img { height: 22px; width: auto; }

.notfound { padding: 120px 0; text-align: center; }
.notfound img { width: 240px; margin: 0 auto 28px; }
.notfound h1 { margin: 0 0 24px; font-size: 28px; font-weight: 600; color: var(--navy); }

@media (max-width: 860px) {
  .hero .shape.left { width: 30vw; }
  .hero .shape.right { width: 24vw; }
  .hero .tagline { font-size: 23px; }
  section.block { padding: 60px 0; }
  .title { font-size: 26px; }
  .modules span { font-size: 21px; padding: 4px 20px; }
  .lang-switch { position: static; display: flex; justify-content: flex-end; padding: 0 18px 12px; margin-top: -14px; }
  .cfg-top { grid-template-columns: 1fr; }
  .cfg-intro { padding: 34px 26px 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .cfg-intro h2 { font-size: 36px; margin-top: 18px; }
  .cfg-form { padding: 28px 26px; }
  .cfg-total { margin: 0 26px; flex-wrap: wrap; gap: 14px 24px; }
  .cfg-total-label { border-right: 0; padding-right: 0; line-height: 1.3; flex-basis: 100%; }
  .cfg-cta { margin-left: 0; min-width: 0; flex: 1 1 100%; }
  .info .tip { left: auto; right: -20px; transform: none; width: 270px; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 18px; }
  .btn { width: 100%; }
  .switch label { font-size: 15px; }
  .panel li { font-size: 16px; padding: 16px 18px; }
  .cfg-scope { grid-template-columns: 1fr; gap: 10px; }
  .cfg-period { grid-template-columns: 1fr 1fr; }
  .cfg-period label:nth-child(3) { border-left: 0; }
  .cfg-period label:nth-child(n+3) { border-top: 1.5px solid #cfd8e8; }
  .cfg-row { flex-wrap: wrap; row-gap: 6px; }
  .cfg-name { flex: 1; min-width: 0; font-size: 16px; }
  .cfg-price { flex-basis: 100%; margin-left: 64px; }
  .cfg-sum { font-size: 48px; }
}
.api .title { margin-bottom: 14px; text-align: left; }
.api-lead { max-width: 760px; margin: 0 0 18px; font-size: 18px; line-height: 1.55; color: var(--ink, #16233f); }
.api-list { max-width: 820px; margin: 0 0 24px; padding-left: 20px; line-height: 1.6; }
.api-list li { margin: 6px 0; }
.api-code { overflow-x: auto; margin: 0 0 26px; padding: 18px 20px; border-radius: 10px; background: #0f1b33; color: #e6ecf8; font: 13px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
