/* KAMiCore - makieta strony. Kolory z ksiegi znaku: granat (tlo), zloto, srebro, biel. */
:root {
    --navy: #282973;
    --ink: #15163f;
    --gold: #dfd87e;
    --silver: #c0c0c0;
    --silver-k: #d1d3d4;
    --mist: #1f2064;
    --line: #45478f;
    --text: #e4e5f4;
    --muted: #bbbedd;
    --white: #fff;
    --display: 'Chakra Petch', 'Segoe UI', sans-serif;
    --body: 'IBM Plex Sans', 'Segoe UI', sans-serif;
    --cut: 18px;
    --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--navy);
    color: var(--text);
    font: 400 1.0625rem/1.65 var(--body);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--white); }
h1, h2, h3 { font-family: var(--display); color: var(--white); margin: 0; line-height: 1.12; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 600; line-height: 1.04; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.band { padding: clamp(64px, 9vw, 120px) 0; }
.band-mist { background: var(--mist); }
.band-navy { background: var(--ink); color: #d5d7ea; }
.band-navy h2, .band-navy h3 { color: var(--white); }
.band-head { max-width: 46rem; margin-bottom: clamp(32px, 5vw, 56px); }
.band-head p { margin: 16px 0 0; color: var(--muted); font-size: 1.125rem; }
.band-navy .band-head p { color: #b4b7d6; }

/* Przycisk ze scietym naroznikiem - ten sam skos co w literze K ze znaku */
.btn {
    display: inline-block;
    font: 600 1rem/1 var(--display);
    letter-spacing: 0.01em;
    text-decoration: none;
    padding: 17px 30px;
    background: var(--gold);
    color: var(--ink);
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
    transition: background-color .18s ease;
}
.btn:hover { background: #ebe6a3; }
.btn-navy { background: var(--silver-k); color: var(--ink); }
.btn-navy:hover { background: var(--white); }
.btn-ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 2px var(--silver); clip-path: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.band-navy .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px #6d6fb0; }
.band-navy .btn-ghost:hover { background: #20215a; }
.more { font: 600 0.95rem var(--display); text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; }
.more:hover { border-bottom-color: currentColor; }

/* Naglowek */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(21, 22, 63, .93); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img:first-child { width: 46px; height: 46px; }
.brand img:last-child { height: 19px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav a { font: 500 0.98rem var(--display); color: var(--white); text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { border-bottom-color: var(--gold); }
.nav .btn { padding: 12px 22px; border: 0; color: var(--ink); background: var(--gold); }
.nav .btn:hover { background: #ebe6a3; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--white); margin: 6px 0; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero-copy p { font-size: 1.2rem; color: var(--muted); max-width: 34rem; margin: 24px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; justify-self: end; }
.hero-art svg { position: absolute; inset: -12% -22%; width: 144%; height: 124%; }
.hero-art img { position: absolute; inset: 14%; width: 72%; height: 72%; }
.trace { fill: none; stroke: var(--silver); stroke-width: 2.5; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(.6, 0, .2, 1) forwards; }
.trace.t-navy { stroke: var(--gold); }
.trace:nth-of-type(2n) { animation-delay: .15s; }
.trace:nth-of-type(3n) { animation-delay: .3s; }
.via { fill: var(--white); stroke: var(--gold); stroke-width: 4; opacity: 0; animation: pop .3s ease 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { opacity: 1; } }

/* Szyna pod hero: zlota linia ze znaku, cztery przelotki = cztery obszary */
.bus { margin-top: clamp(40px, 6vw, 72px); border-top: 4px solid var(--gold); }
.bus ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.bus li { position: relative; padding: 30px 28px 38px 0; }
.bus li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.bus li::before { content: ''; position: absolute; top: -11px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--gold); transition: background-color .18s ease; }
.bus li + li::before { left: 28px; }
.bus li:hover::before { background: var(--gold); }
.bus a { text-decoration: none; display: block; }
.bus strong { display: block; font: 600 1.18rem/1.2 var(--display); color: var(--white); margin-bottom: 8px; }
.bus span { color: var(--muted); font-size: 0.97rem; line-height: 1.5; display: block; }

/* Produkty */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.product + .product { margin-top: clamp(56px, 8vw, 104px); }
.product:nth-child(odd) .product-shot { order: 2; }
.product-shot img { width: 100%; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 44px 100%, 0 calc(100% - 44px)); }
.kind { font: 500 0.95rem var(--display); color: var(--muted); margin-bottom: 10px; }
.product h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 16px; }
.ticks { list-style: none; margin: 20px 0 30px; padding: 0; }
.ticks li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--gold); }
.product .hero-actions { gap: 12px; }

/* Oferta */
.offer { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #34366f; }
.offer article { position: relative; padding: 34px 30px 36px 0; border-bottom: 1px solid #34366f; }
.offer article:not(:nth-child(3n+1)) { padding-left: 30px; border-left: 1px solid #34366f; }
.offer article::before { content: ''; position: absolute; top: -8px; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--ink); border: 3px solid var(--silver); transition: border-color .18s ease, background-color .18s ease; }
.offer article:not(:nth-child(3n+1))::before { left: 30px; }
.offer article:hover::before { border-color: var(--gold); background: var(--gold); }
.offer h3 { margin-bottom: 12px; }
.offer p { color: #b9bcd8; font-size: 0.98rem; margin-bottom: 18px; }
.offer .more { color: var(--white); }
.offer-foot { margin-top: 40px; font-size: 1.1rem; color: #d5d7ea; }
.offer-foot a { color: var(--gold); font-weight: 600; }

/* Realizacje */
.cases { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.case-main img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 0, calc(100% - 44px) 0, 100% 44px, 100% 100%, 0 100%); margin-bottom: 24px; }
.case-main h3 { font-size: 1.55rem; margin: 6px 0 12px; }
.client { font: 600 0.95rem var(--display); color: var(--gold); }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 22px; padding: 0; }
.tags li { font-size: 0.85rem; padding: 4px 10px; background: rgba(255, 255, 255, .09); color: var(--silver-k); }
.case-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--silver); }
.case-list a { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.case-list strong { display: block; font: 600 1.1rem/1.3 var(--display); color: var(--white); margin-top: 4px; }
.case-list a:hover strong { color: var(--gold); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }

/* Klienci */
.clients { background: var(--silver-k); padding: 40px 0; color: var(--ink); }
.clients .wrap { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.clients p { margin: 0; font: 500 1rem var(--display); max-width: 14rem; }
.clients ul { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; margin: 0; padding: 0; flex: 1; }
.clients img { height: 40px; width: auto; max-width: 150px; object-fit: contain; }

/* Dlaczego */
.why { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.why dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.why dl div { padding: 20px 0; border-top: 1px solid var(--line); }
.why dt { font: 600 1.1rem var(--display); color: var(--white); margin-bottom: 6px; }
.why dd { margin: 0; color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.area { margin-top: 28px; padding: 18px 22px; background: var(--mist); border-left: 4px solid var(--gold); }

/* Narzedzia */
.tools { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.tools a { display: block; background: var(--navy); padding: 20px 22px; font: 500 1.02rem var(--display); color: var(--white); text-decoration: none; transition: background-color .18s ease, color .18s ease; }
.tools a:hover { background: var(--gold); color: var(--ink); }

/* Blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.posts a { text-decoration: none; display: block; }
.posts img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 18px; clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%); }
.posts time { font-size: 0.9rem; color: var(--muted); }
.posts h3 { margin: 6px 0 10px; line-height: 1.25; }
.posts a:hover h3 { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.posts p { color: var(--muted); font-size: 0.97rem; margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(32px, 5vw, 56px); }
.head-row .band-head { margin-bottom: 0; }

/* O nas */
.about { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.about-text p { max-width: 40rem; }
.momi { background: var(--navy); padding: 30px; border-top: 4px solid var(--gold); }
.momi-top { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.momi img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.momi h3 { font-size: 1.15rem; }
.momi small { font-size: 0.9rem; color: var(--muted); }
.momi p { font-size: 0.97rem; color: var(--muted); }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 80px); }
.contact-data { list-style: none; margin: 28px 0 0; padding: 0; }
.contact-data li { padding: 16px 0; border-top: 1px solid #34366f; }
.contact-data span { display: block; font-size: 0.9rem; color: #a5a8cc; }
.contact-data a, .contact-data b { font: 600 1.25rem var(--display); color: var(--white); text-decoration: none; }
.contact-data a:hover, .contact-data b.todo { color: var(--gold); }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form .full { grid-column: 1 / -1; }
label { display: block; font-size: 0.92rem; color: #c3c6e2; margin-bottom: 6px; }
input, textarea { width: 100%; font: inherit; color: var(--white); background: #1d1e52; border: 1px solid #44468a; padding: 14px 16px; border-radius: 0; }
input:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
textarea { min-height: 150px; resize: vertical; }
.form-note { font-size: 0.85rem; color: #a5a8cc; margin: 0; }
.form-status { margin: 0; color: var(--gold); min-height: 1.5em; }

/* Stopka */
.site-foot { background: #0e0f2e; color: #a5a8cc; padding: 64px 0 28px; font-size: 0.95rem; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
.site-foot img { height: 22px; width: auto; margin-bottom: 18px; }
.site-foot h3 { color: var(--white); font-size: 1rem; margin-bottom: 14px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: 8px; }
.site-foot a { color: #c9cbe4; text-decoration: none; }
.site-foot a:hover { color: var(--gold); }
.foot-end { margin-top: 48px; padding-top: 22px; border-top: 1px solid #26275a; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 0.88rem; }
.todo { color: var(--gold); }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 0; background: var(--ink); border-bottom: 1px solid var(--line); padding: 8px 24px 20px; }
    .nav.open { display: flex; }
    .nav a { display: block; padding: 13px 0; border-bottom: 1px solid var(--line); }
    .nav .btn { margin-top: 14px; text-align: center; padding: 16px; }
    .hero-grid, .product, .cases, .why, .about, .contact { grid-template-columns: 1fr; }
    .hero-art { justify-self: center; max-width: 380px; order: -1; }
    .product:nth-child(odd) .product-shot { order: 0; }
    .bus ul, .offer, .tools { grid-template-columns: 1fr 1fr; }
    .bus li:nth-child(3) { padding-left: 0; border-left: 0; }
    .bus li:nth-child(3)::before { left: 0; }
    .bus li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .bus li:nth-child(n+3)::before { display: none; }
    .offer article:not(:nth-child(3n+1)) { padding-left: 0; border-left: 0; }
    .offer article:not(:nth-child(3n+1))::before { left: 0; }
    .offer article:nth-child(even) { padding-left: 24px; border-left: 1px solid #34366f; }
    .offer article:nth-child(even)::before { left: 24px; }
    .posts { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
    .wrap { width: calc(100% - 32px); }
    .bus ul, .offer, .tools, .why dl, form, .foot-grid { grid-template-columns: 1fr; }
    .bus li, .bus li + li { padding: 22px 0; border-left: 0; border-top: 1px solid var(--line); }
    .bus li:first-child { border-top: 0; }
    .bus li::before { display: none; }
    .offer article, .offer article:nth-child(even) { padding-left: 0; border-left: 0; }
    .offer article::before, .offer article:nth-child(even)::before { left: 0; }
    .brand img:last-child { height: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .trace { animation: none; stroke-dashoffset: 0; }
    .via { animation: none; opacity: 1; }
    * { transition: none !important; }
}
