/* Netstar — strona publiczna
   Jeden krój (Archivo, zmienna szerokość i grubość), kolor z logo: cyjan procesowy #00ADEF.
   Jedyny „głośny” element: wielka gwiazda z logo w nagłówku strony głównej. Reszta spokojna. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --cyan: #00ADEF;        /* kolor marki */
  --cyan-ink: #006F9E;    /* linki na jasnym tle (kontrast 5.6:1) */
  --ink: #10293A;         /* tekst i ciemne sekcje */
  --ink-2: #4A6272;       /* tekst pomocniczy */
  --mist: #EAF4F8;        /* jasne tło sekcji */
  --line: #C8DCE5;
  --paper: #FFFFFF;
  --on-ink-2: #9FC3D3;
  --danger: #B42318;

  --font: "Archivo", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wide: 125%;
  --semi: 112%;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  --step-4: clamp(2.25rem, 1.2rem + 4.4vw, 4.5rem);

  --gap: clamp(1.25rem, 3vw, 2.5rem);
  --section: clamp(3.5rem, 8vw, 6.5rem);
  --wrap: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  font-kerning: normal;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan-ink); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.contact :focus-visible, .footer :focus-visible { outline-color: var(--cyan); }

.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .75rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

.draft-bar { background: #FFE8A3; color: var(--ink); text-align: center; padding: .5rem 1rem; font-size: var(--step--1); }

/* ---------- Nagłówek ---------- */
.masthead { background: var(--paper); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.masthead__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }
.brand img { width: 168px; height: auto; }
.nav-main { margin-left: auto; display: flex; gap: .25rem; }
.nav-main a {
  color: var(--ink); text-decoration: none; font-weight: 550; font-stretch: var(--semi);
  padding: .5rem .7rem; border-radius: 3px; font-size: .98rem;
}
.nav-main a:hover { background: var(--mist); }
.nav-main a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--cyan); border-radius: 0; }
.nav-mobile { display: none; }

.masthead__phone {
  display: grid; text-decoration: none; color: var(--ink); line-height: 1.15;
  padding-left: 1.25rem; border-left: 1px solid var(--line);
}
.masthead__phone-label { font-size: .78rem; color: var(--ink-2); }
.masthead__phone-num { font-weight: 800; font-stretch: var(--wide); font-size: 1.12rem; white-space: nowrap; }
.masthead__phone:hover .masthead__phone-num { color: var(--cyan-ink); }

@media (max-width: 64rem) {
  .masthead__in { min-height: 4rem; gap: .75rem; }
  .brand img { width: 128px; }
  .nav-main { display: none; }
  .masthead__phone { margin-left: auto; padding-left: 0; border: 0; }
  .masthead__phone-label { display: none; }
  .nav-mobile { display: block; }
  .nav-mobile__toggle {
    display: inline-flex; align-items: center; gap: .5rem; list-style: none; cursor: pointer;
    font-weight: 650; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 3px; min-height: 2.75rem;
  }
  .nav-mobile__toggle::-webkit-details-marker { display: none; }
  .nav-mobile__bars, .nav-mobile__bars::before, .nav-mobile__bars::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .nav-mobile__bars::before, .nav-mobile__bars::after { content: ""; position: absolute; left: 0; }
  .nav-mobile__bars::before { top: -6px; } .nav-mobile__bars::after { top: 6px; }
  .nav-mobile[open] .nav-mobile__bars { background: transparent; }
  .nav-mobile[open] .nav-mobile__bars::before { top: 0; transform: rotate(45deg); }
  .nav-mobile[open] .nav-mobile__bars::after { top: 0; transform: rotate(-45deg); }
  .nav-mobile__list {
    position: absolute; left: 0; right: 0; top: 100%; display: flex;
    flex-direction: column; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: .5rem var(--gap) 1rem;
    box-shadow: 0 12px 24px -12px rgba(16, 41, 58, .35);
  }
  .nav-mobile__list a { color: var(--ink); text-decoration: none; font-weight: 550; padding: .8rem 0; border-bottom: 1px solid var(--mist); font-size: var(--step-1); }
  .nav-mobile__list a[aria-current="page"] { box-shadow: inset 4px 0 0 var(--cyan); padding-left: .9rem; }
}
@media (max-width: 26rem) {
  .brand img { width: 108px; }
  .masthead__phone-num { font-size: .98rem; }
  .nav-mobile__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}

/* ---------- Komunikaty ---------- */
.notice { padding: .9rem 0; font-weight: 550; }
.notice--ok { background: #DDF5E6; color: #0B4A28; }
.notice--error { background: #FDE4E1; color: var(--danger); }

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 700; font-stretch: var(--semi);
  padding: .85rem 1.4rem; border-radius: 3px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #1C3D52; }
.btn--cyan { background: var(--cyan); color: var(--ink); }
.btn--cyan:hover { background: #33BEF2; }
.link-strong { font-weight: 700; color: var(--cyan-ink); }

/* ---------- Hero (strona główna) ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--cyan); color: var(--ink);
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
}
.hero__star {
  position: absolute; right: -9vw; top: 50%;
  width: min(62vw, 46rem); height: auto;
  transform: translateY(-46%) rotate(-12deg);
  fill: var(--paper);
  animation: star-in 1.1s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes star-in {
  from { opacity: 0; transform: translateY(-40%) rotate(-40deg) scale(.85); }
  to   { opacity: 1; transform: translateY(-46%) rotate(-12deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .hero__star { animation: none; } }

.hero__in { position: relative; }
.hero__art {
  position: absolute; top: 50%;
  right: max(1.5rem, calc((100vw - var(--wrap)) / 2 - 1rem));
  width: clamp(17rem, 29vw, 27rem); height: auto;
  transform: translateY(-42%);
  animation: art-in .9s .35s cubic-bezier(.2, .7, .2, 1) both;
}
@keyframes art-in { from { opacity: 0; transform: translateY(-36%); } to { opacity: 1; transform: translateY(-42%); } }
@media (prefers-reduced-motion: reduce) { .hero__art { animation: none; } }
@media (max-width: 70rem) { .hero__art { display: none; } }
.hero__title {
  margin: 0; max-width: 17ch;
  font-size: var(--step-4); line-height: 1.02; letter-spacing: -0.015em;
  font-weight: 820; font-stretch: var(--wide);
  text-wrap: balance;
}
.hero__text { max-width: 46ch; font-size: var(--step-1); line-height: 1.5; margin: 1.5rem 0 2.25rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero__call {
  display: inline-grid; text-decoration: none; color: var(--ink); line-height: 1.05;
  background: var(--paper); padding: .8rem 1.4rem .9rem; border-radius: 3px;
}
.hero__call-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); }
.hero__call-num { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); font-weight: 850; font-stretch: var(--wide); letter-spacing: -0.01em; white-space: nowrap; }
.hero__call:hover .hero__call-num { color: var(--cyan-ink); }
.hero__call--small .hero__call-num { font-size: var(--step-2); }
.hero__where { margin: 2rem 0 0; font-size: var(--step--1); font-weight: 550; }

@media (max-width: 48rem) {
  .hero__star { right: -30vw; top: auto; bottom: -18vw; width: 85vw; transform: rotate(-12deg); opacity: .35; animation: none; }
}

/* ---------- Sekcje ---------- */
.section { padding: var(--section) 0; }
.section--mist { background: var(--mist); }
.section--line { border-top: 1px solid var(--line); }
.section--tight { padding: 2.5rem 0 0; }
.section:not(.section--mist) + .section:not(.section--mist):not(.section--line) { padding-top: 0; }
.h2 {
  margin: 0 0 1.75rem; font-size: var(--step-3); line-height: 1.1;
  font-weight: 780; font-stretch: var(--wide); letter-spacing: -0.01em;
}
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 1.75rem; }
.section__head .h2 { margin: 0; }

.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
@media (max-width: 52rem) { .split { grid-template-columns: 1fr; } }

/* ---------- Lista usług ---------- */
.areas { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.areas li { border-bottom: 1px solid var(--line); }
.areas__row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: .4rem 3rem;
  padding: 1.6rem .25rem; color: var(--ink); text-decoration: none; align-items: baseline;
  transition: background-color .15s, padding .15s;
}
.areas__title { font-size: var(--step-2); font-weight: 760; font-stretch: var(--wide); line-height: 1.15; }
.areas__text { color: var(--ink-2); max-width: 52ch; }
.areas__row:hover, .areas__row:focus-visible { background: var(--mist); padding-left: 1rem; padding-right: 1rem; }
.areas__row:hover .areas__title { color: var(--cyan-ink); }
@media (max-width: 44rem) { .areas__row { grid-template-columns: 1fr; padding: 1.25rem 0; } }
@media (prefers-reduced-motion: reduce) { .areas__row { transition: none; } }

/* ---------- Treść (Markdown) ---------- */
.prose { max-width: 66ch; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose h2 {
  font-size: var(--step-2); font-weight: 760; font-stretch: var(--wide); line-height: 1.2;
  margin: 2.5em 0 .7em; padding-top: 1.25rem; border-top: 2px solid var(--ink);
}
.prose h2:first-child { padding-top: 0; border-top: 0; }
.prose h3 { font-size: var(--step-1); font-weight: 700; margin: 1.8em 0 .5em; }
.prose ul { list-style: none; padding: 0; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .35em; }
.prose ul li::before {
  content: ""; position: absolute; left: 0; top: .42em; width: .85rem; height: .85rem;
  background: var(--cyan);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.prose ol { padding-left: 1.4rem; }
.prose strong { font-weight: 700; }
.prose img { margin: 1.75rem 0; border: 1px solid var(--line); background: #fff; max-height: 30rem; width: auto; }
.prose blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--cyan); }

/* ---------- Sekcje w dwóch kolumnach ---------- */
.blocks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 5vw, 4.5rem); }
@media (max-width: 56rem) { .blocks { grid-template-columns: 1fr; } }
.block { max-width: none; }
.block > h2:first-child { margin-top: 0; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.block > :last-child { margin-bottom: 0; }
.block img { max-height: 14rem; }

/* ---------- Oś czasu ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--ink); }
.timeline__item { position: relative; padding: 0 0 1.75rem 2.25rem; display: grid; gap: .2rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: 0; top: .35rem; width: 1rem; height: 1rem; background: var(--cyan);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.timeline__year { font-size: var(--step-2); font-weight: 820; font-stretch: var(--wide); line-height: 1.1; }
.timeline__text { color: var(--ink-2); max-width: 40ch; }

/* ---------- Opinie ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: var(--gap); }
.quote { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--cyan); }
.quote blockquote { margin: 0 0 1rem; font-size: var(--step-1); line-height: 1.45; }
.quote blockquote p { margin: 0; }
.quote blockquote p::before { content: "„"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { color: var(--ink-2); font-size: var(--step--1); font-weight: 600; }

/* ---------- Kursy ---------- */
.course-index { list-style: none; padding: 0; margin: 0; columns: 2 18rem; column-gap: var(--gap); }
.course-index li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.course-index a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 600; }
.course-index a:hover { color: var(--cyan-ink); text-decoration: underline; }

.courses { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 0 var(--gap); }
.course { padding: 1.5rem 0; border-top: 1px solid var(--line); scroll-margin-top: 1rem; transition: background-color .4s; }
.course__title { margin: 0 0 .5rem; font-size: var(--step-1); font-weight: 750; font-stretch: var(--semi); line-height: 1.25; }
.course__text { color: var(--ink-2); }
.course__text p { margin: 0; }
.course:target { background: var(--mist); box-shadow: -1rem 0 0 var(--mist), 1rem 0 0 var(--mist); border-top-color: var(--cyan); }

/* ---------- Kasy fiskalne ---------- */
.products { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: 2.5rem var(--gap); }
.product { display: flex; flex-direction: column; }
.product__img { background: #fff; border-bottom: 2px solid var(--ink); margin-bottom: 1rem; aspect-ratio: 1; display: grid; place-items: center; }
.product__img img { width: 88%; height: 88%; object-fit: contain; }
.product__name { margin: 0 0 .4rem; font-size: var(--step-1); font-weight: 760; font-stretch: var(--semi); }
.product__text { color: var(--ink-2); margin: 0 0 .75rem; flex: 1; }
.product__price { margin: 0; font-size: var(--step-2); font-weight: 830; font-stretch: var(--wide); }
.note { margin: 2.5rem 0 0; color: var(--ink-2); font-size: var(--step--1); }

/* ---------- Nagłówek podstrony ---------- */
.pagehead { background: var(--mist); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4.5rem) 0; overflow: hidden; }
.pagehead__in { display: grid; gap: var(--gap); align-items: center; }
.pagehead--image .pagehead__in { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.pagehead__title {
  margin: 0; font-size: var(--step-4); font-weight: 820; font-stretch: var(--wide);
  line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance;
}
.pagehead__lead { margin: 1.25rem 0 0; font-size: var(--step-1); line-height: 1.5; max-width: 50ch; color: var(--ink); }
.pagehead__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
@media (max-width: 52rem) {
  .pagehead--image .pagehead__in { grid-template-columns: 1fr; }
  .pagehead__img { aspect-ratio: 16 / 9; }
}

/* ---------- Wezwanie do kontaktu ---------- */
.cta { background: var(--cyan); padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.cta__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; }
.cta__text { margin: 0; font-size: var(--step-3); font-weight: 780; font-stretch: var(--wide); line-height: 1.1; max-width: 18ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }

/* ---------- Dane firmy (kontakt) ---------- */
.company { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem var(--gap); margin: 0; }
.company div { border-top: 1px solid var(--line); padding-top: .75rem; }
.company dt { font-size: var(--step--1); color: var(--ink-2); }
.company dd { margin: 0; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Sekcja kontaktowa ---------- */
.contact { background: var(--ink); color: #fff; padding: var(--section) 0; margin-top: var(--section); }
.section--tight + .contact { margin-top: 2.5rem; }
.contact a { color: var(--cyan); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(2rem, 6vw, 5rem); }
@media (max-width: 56rem) { .contact__grid { grid-template-columns: 1fr; } }
.contact__phones { display: grid; gap: .1rem; margin: 0 0 .75rem; }
.contact__phones a { color: #fff; text-decoration: none; font-size: var(--step-3); font-weight: 830; font-stretch: var(--wide); line-height: 1.15; }
.contact__phones a:hover { color: var(--cyan); }
.contact__mail { font-size: var(--step-1); font-weight: 600; }
.contact__facts { margin: 2rem 0; display: grid; gap: 1.25rem; }
.contact__facts dt { color: var(--on-ink-2); font-size: var(--step--1); }
.contact__facts dd { margin: 0; }
.contact__map { display: block; position: relative; max-width: 24rem; text-decoration: none; }
.contact__map img { border-radius: 3px; filter: saturate(.85); }
.contact__map span { display: inline-block; margin-top: .5rem; font-weight: 600; text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Formularz ---------- */
.form { background: var(--paper); color: var(--ink); padding: clamp(1.25rem, 3vw, 2.25rem); border-radius: 3px; align-self: start; }
.form a { color: var(--cyan-ink); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }
@media (max-width: 36rem) { .form__row { grid-template-columns: 1fr; } }
.field { margin-bottom: 1.15rem; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: .35rem; }
.field__opt { font-weight: 400; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff;
  border: 1.5px solid #8FAAB8; border-radius: 3px; padding: .7rem .8rem;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(0, 173, 239, .45); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-size: .9rem; margin: .35rem 0 0; font-weight: 550; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 1.25rem; height: 1.25rem; margin: .2rem 0 0; accent-color: var(--ink); }
.field--check label { font-weight: 400; font-size: .92rem; margin: 0; }
.field--check .field__error { grid-column: 2; }
.form__error { background: #FDE4E1; color: var(--danger); padding: .75rem 1rem; border-radius: 3px; font-weight: 600; margin: 0 0 1.25rem; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { width: 100%; font-size: var(--step-1); padding: 1rem; }
.form--sent { border-left: 6px solid var(--cyan); }
.form__sent-title { font-size: var(--step-2); font-weight: 800; font-stretch: var(--wide); margin: 0 0 .5rem; }

/* ---------- Stopka ---------- */
.footer { background: var(--ink); color: #fff; border-top: 1px solid #23465B; padding: 3rem 0 2rem; font-size: .95rem; }
.contact + .footer, main:has(> .contact:last-child) + .footer { border-top-color: #23465B; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--cyan); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem var(--gap); }
@media (max-width: 52rem) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 30rem) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand img { width: 140px; margin-bottom: 1rem; }
.footer__brand p { color: var(--on-ink-2); max-width: 28ch; margin: 0; }
.footer__h { font-size: .85rem; font-weight: 600; color: var(--on-ink-2); margin: 0 0 .5rem; }
.footer p { margin: 0; }
.footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid #23465B; color: var(--on-ink-2); font-size: .85rem; }

@media print {
  .masthead, .hero__star, .contact form, .cta, .footer { display: none; }
  body { font-size: 11pt; }
}
