/* Trasimo – strona firmy (trasimo.pl). Kolory i krój jak w marce: docs/MARKA.md (Jost, morski #0E7C86, tło #0A212F). */

@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/jost-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jost-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/jost-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jost-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/jost-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --night: #0A212F;      /* tło marki (ikona aplikacji) */
  --deep: #0D2a3a;       /* podniesione powierzchnie */
  --rim: #1d4256;        /* linie i obramowania */
  --text: #E9F2F3;
  --muted: #9ab4bc;
  --teal: #0E7C86;       /* kolor marki – przyciski */
  --lane: #6CC3CC;       /* pasy w literze A – akcent na ciemnym */
  --amber: #E8B04B;      /* status: termin się zbliża */
  --coral: #E57A6E;      /* status: usterka */
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font: 400 17px/1.6 'Jost', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lane); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--lane); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--teal); color: #fff; padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 20; }

h1, h2, h3 { font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 3.8vw, 44px); letter-spacing: -0.02em; }
h3 { font-size: 21px; }
p { margin: 0; }
.lead { font-size: 20px; color: var(--muted); max-width: 34em; }

/* przyciski */
.btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 22px;
  border-radius: 10px; font: 500 16px/1 'Jost', sans-serif; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .15s, border-color .15s;
}
.btn-main { background: var(--teal); color: #fff; }
.btn-main:hover { background: #10909b; }
.btn-ghost { color: var(--text); border-color: var(--rim); }
.btn-ghost:hover { border-color: var(--lane); }

/* nagłówek strony */
.top { position: sticky; top: 0; z-index: 10; background: rgba(10, 33, 47, .86); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(29, 66, 86, .6); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.top .logo img { height: 22px; width: auto; }
.top nav { display: flex; gap: 26px; margin-left: auto; }
.top nav a { color: var(--muted); text-decoration: none; font-size: 16px; }
.top nav a:hover { color: var(--text); }
.top .btn { min-height: 40px; padding: 0 16px; font-size: 15px; }
/* menu na telefonie: przycisk „Menu” rozwija listę tematów (bez JavaScriptu) */
.menu-m { display: none; position: relative; }
.menu-m summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid var(--rim); border-radius: 10px; font-size: 15px; font-weight: 500; }
.menu-m summary::-webkit-details-marker { display: none; }
.menu-m summary::before { content: ''; width: 16px; height: 10px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; box-sizing: border-box; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat; }
.menu-m[open] summary { border-color: var(--lane); }
.top .menu-m nav { gap: 2px; margin: 0; }
.menu-m nav { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; display: flex; flex-direction: column; padding: 8px; background: var(--deep); border: 1px solid var(--rim); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.menu-m nav a { display: block; padding: 12px 12px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 17px; }
.menu-m nav a[aria-current="page"] { background: rgba(108, 195, 204, .12); color: var(--lane); }

@media (max-width: 760px) {
  .top .wrap { height: 60px; gap: 10px; padding: 0 16px; }
  .top .logo img { height: 18px; }
  .top > .wrap > nav { display: none; }
  .menu-m { display: block; margin-left: auto; }
  .top .btn { min-height: 40px; padding: 0 14px; font-size: 15px; }
  .wrap { padding: 0 20px; }
  h1 { font-size: 34px; line-height: 1.12; }
  .page-title { font-size: 32px; }
  h2 { font-size: 28px; }
  .lead { font-size: 17px; }
  .hero { padding: 36px 0 48px; }
  .hero .lead { margin-top: 16px; }
  .hero .actions { margin-top: 24px; }
  .hero .actions .btn { flex: 1 1 auto; justify-content: center; }
  .hero .note { font-size: 14px; }
  .section.first { padding-top: 40px; }
  .feature-text h3 { font-size: 23px; }
}
@media (max-width: 380px) { .top .btn { display: none; } }

/* hero */
.hero { position: relative; overflow: hidden; padding: 88px 0 96px; }
.hero::before {
  /* droga z logo: trzy zwężające się pasy, bardzo delikatnie w tle */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 78% 40%, rgba(14, 124, 134, .22), transparent 70%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { max-width: 13em; }
.hero .lead { margin-top: 24px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero .note { margin-top: 20px; font-size: 15px; color: var(--muted); }
@media (max-width: 920px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding: 56px 0 64px; } }

/* karta dnia pracy w hero – element, który ma zapaść w pamięć */
.day { margin: 0;
  position: relative; background: linear-gradient(180deg, #0f3043, #0c2635);
  border: 1px solid var(--rim); border-radius: 18px; padding: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35);
}
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.day-head b { font-weight: 600; font-size: 18px; }
.day-head span { color: var(--muted); font-size: 14px; }
.day-head .plate, .plate { display: inline-block; border: 1px solid #c9d6da; color: #0A212F; background: #f4f7f8; border-radius: 4px; padding: 0 6px; font-weight: 600; font-size: 13px; letter-spacing: .04em; }
.map { margin: 16px 0 6px; border-radius: 12px; background: #0b2331; border: 1px solid #173a4d; overflow: hidden; }
.map svg { width: 100%; height: auto; }
.route { stroke-dasharray: 1; stroke-dashoffset: 0; }
@media (prefers-reduced-motion: no-preference) {
  .route { animation: draw 2.6s cubic-bezier(.5, 0, .2, 1) .3s both; }
  .stop { animation: pop .4s ease-out both; }
  .stop-2 { animation-delay: 1.4s; } .stop-3 { animation-delay: 2.7s; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.stop { transform-box: fill-box; transform-origin: center; }
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: baseline; padding: 10px 2px; border-top: 1px solid #173a4d; font-size: 15px; }
.events li:first-child { border-top: 0; }
.events time { color: var(--muted); font-variant-numeric: tabular-nums; }
.events .v { color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { display: inline-block; border-radius: 6px; padding: 1px 8px; font-size: 13px; font-weight: 500; }
.tag-ok { background: rgba(108, 195, 204, .14); color: var(--lane); }
.tag-warn { background: rgba(232, 176, 75, .15); color: var(--amber); }
.tag-bad { background: rgba(229, 122, 110, .15); color: var(--coral); }

/* sekcje */
.section { padding: 104px 0; border-top: 1px solid rgba(29, 66, 86, .55); }
.section-head { max-width: 40em; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }
@media (max-width: 760px) { .section { padding: 72px 0; } .section-head { margin-bottom: 40px; } }

/* jak zacząć – to naprawdę są kolejne kroki, więc numery */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: k; border-top: 1px solid var(--rim); }
.steps li { position: relative; padding: 28px 28px 8px 0; counter-increment: k; }
.steps li::before { content: counter(k); display: block; font-size: 56px; font-weight: 500; line-height: 1; color: var(--lane); margin-bottom: 18px; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--muted); }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } .steps li { padding-right: 0; } }

/* funkcje: tekst + mały kawałek aplikacji */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 48px 0; }
.feature + .feature { border-top: 1px solid rgba(29, 66, 86, .55); }
.feature:nth-child(even) .feature-text { order: 2; }
.feature-text h3 { font-size: 28px; margin-bottom: 14px; }
.feature-text p { color: var(--muted); }
.feature-text ul { margin: 18px 0 0; padding-left: 20px; color: var(--muted); }
.feature-text li { margin: 6px 0; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; gap: 28px; } .feature:nth-child(even) .feature-text { order: 0; } }

.screen { background: var(--deep); border: 1px solid var(--rim); border-radius: 14px; padding: 8px 18px; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 0; border-top: 1px solid #173a4d; font-size: 15px; }
.row:first-child { border-top: 0; }
.row .what { display: flex; flex-direction: column; gap: 2px; }
.row small { color: var(--muted); font-size: 13px; }
.row .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; align-items: end; height: 120px; padding: 14px 0 6px; }
.bars span { background: var(--teal); border-radius: 3px 3px 0 0; }
.bars span.now { background: var(--lane); }
.bars-legend { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; padding-bottom: 12px; }

/* więcej funkcji – lista, nie siatka kart */
.more { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 48px; margin-top: 72px; }
.more div { border-left: 2px solid var(--teal); padding-left: 18px; }
.more h3 { font-size: 18px; margin-bottom: 6px; }
.more p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .more { grid-template-columns: 1fr; gap: 28px; } }

/* dane i bezpieczeństwo */
.trust { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; }
.trust dl { margin: 0; }
.trust dt { font-weight: 600; font-size: 18px; margin-top: 22px; }
.trust dt:first-child { margin-top: 0; }
.trust dd { margin: 4px 0 0; color: var(--muted); }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; gap: 36px; } }

/* cennik */
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table caption { text-align: left; font-weight: 600; font-size: 20px; padding-bottom: 6px; }
.price-table caption small { display: block; font-weight: 400; color: var(--muted); font-size: 15px; margin-top: 4px; }
.price-table th, .price-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid #173a4d; }
.price-table th { color: var(--muted); font-weight: 400; font-size: 15px; }
.price-table td:last-child, .price-table th:last-child { text-align: right; }
.price-table td:last-child { font-weight: 600; }
.addons { list-style: none; margin: 0; padding: 0; }
.addons li { padding: 14px 0; border-bottom: 1px solid #173a4d; }
.addons li div { display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.addons li div span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.addons p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.trial { margin-top: 36px; padding: 20px 22px; border-radius: 14px; border: 1px solid var(--teal); background: rgba(14, 124, 134, .12); }
.trial b { font-weight: 600; }
.fine { color: var(--muted); font-size: 14px; margin-top: 16px; }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }

/* pytania */
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--rim); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-size: 19px; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; color: var(--lane); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); padding-bottom: 22px; max-width: 40em; }

/* kontakt */
.contact { text-align: left; }
.contact .box { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 32px; padding: 48px; border-radius: 22px; border: 1px solid var(--rim);
  background: radial-gradient(80% 140% at 100% 0%, rgba(14, 124, 134, .3), transparent 60%), var(--deep); }
.contact h2 { max-width: 14em; }
.contact p { color: var(--muted); margin-top: 12px; }
@media (max-width: 760px) { .contact .box { padding: 28px; } }

/* stopka */
.foot { padding: 56px 0 48px; border-top: 1px solid rgba(29, 66, 86, .55); color: var(--muted); font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot img { height: 20px; width: auto; margin-bottom: 16px; }
.foot h4 { color: var(--text); font-weight: 600; font-size: 15px; margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 6px 0; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.todo { background: #4a3a10; color: #ffe7a3; padding: 0 4px; border-radius: 4px; }
@media (max-width: 760px) { .foot .wrap { grid-template-columns: 1fr; } }

/* podstrony i kafelki tematów na stronie głównej */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.section.first { border-top: 0; padding-top: 72px; }
.page-title { font-size: clamp(36px, 4.6vw, 54px); letter-spacing: -0.025em; }
.top nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-color: var(--lane); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.section.topics-sec { padding: 8px 0 72px; border-top: 0; }
.topics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rim); }
.topics a { display: flex; flex-direction: column; gap: 8px; padding: 26px 24px 26px 0; text-decoration: none; color: var(--text); border-bottom: 2px solid transparent; transition: border-color .15s; }
.topics a + a { padding-left: 24px; border-left: 1px solid rgba(29, 66, 86, .55); }
.topics a:hover { border-bottom-color: var(--lane); }
.topics b { font-weight: 600; font-size: 20px; }
.topics span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr 1fr; } .topics a:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 520px) { .topics { grid-template-columns: 1fr; } .topics a, .topics a + a { padding-left: 0; border-left: 0; border-top: 1px solid rgba(29, 66, 86, .55); } }
@media (max-width: 1020px) { .top nav { gap: 18px; } .top nav a { font-size: 15px; } }

/* „Zaloguj się” w menu – link do panelu firm */
.top nav a.nav-login { color: var(--lane); }

/* formularz kontaktowy */
.contact-page { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-page .section-head { margin-bottom: 0; }
.contact-page .side { margin-top: 28px; color: var(--muted); line-height: 1.9; }
.form { display: flex; flex-direction: column; gap: 18px; background: var(--deep); border: 1px solid var(--rim); border-radius: 18px; padding: 28px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-weight: 500; font-size: 16px; }
.form .two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.form input[type=email], .form input[type=text], .form input[type=number], .form textarea {
  font: 400 17px/1.4 'Jost', system-ui, sans-serif; color: var(--text); background: var(--night);
  border: 1px solid var(--rim); border-radius: 10px; padding: 12px 14px; width: 100%; }
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--lane); outline-offset: 1px; border-color: transparent; }
.form .check { flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; font-size: 15px; color: var(--muted); }
.form .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.form .req { color: var(--coral); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.form .btn[disabled] { opacity: .7; cursor: default; }
.form-msg { min-height: 1.6em; margin: 0; font-size: 15px; }
.form-msg.ok { color: var(--lane); }
.form-msg.bad { color: var(--coral); }
@media (max-width: 860px) { .contact-page { grid-template-columns: 1fr; gap: 32px; } .form { padding: 20px; } .form .two { grid-template-columns: 1fr; } .form .btn { align-self: stretch; justify-content: center; } }
