/* ============================================================
   LogOptima 360 - style
   ------------------------------------------------------------
   Sekcje:
     1. Zmienne (kolory, odstępy) - łatwo zmienić w 1 miejscu
     2. Reset i podstawy
     3. Elementy wspólne (container, przyciski, nagłówki sekcji)
     4. Nagłówek + nawigacja
     5. Hero
     6. Wartość / problem
     7. Usługi
     8. Specjalizacja
     9. O mnie / liczby
    10. Kontakt
    11. Stopka
    12. Wersja mobilna (media queries)
   ============================================================ */

/* ---------- 1. ZMIENNE ---------- */
:root {
  --navy:        #0d1b2a;   /* granat - tło ciemnych sekcji */
  --navy-2:      #12263a;   /* nieco jaśniejszy granat */
  --blue:        #1e6feb;   /* akcent - przyciski, linki */
  --blue-dark:   #1657bd;
  --cyan:        #38bdf8;   /* jasny akcent */
  --ink:         #0f172a;   /* podstawowy tekst */
  --muted:       #5b6b7f;   /* tekst pomocniczy */
  --line:        #e3e8ef;   /* linie / obramowania */
  --bg:          #ffffff;
  --bg-soft:     #f5f8fc;   /* delikatne tło sekcji */
  --radius:      14px;
  --shadow:      0 10px 30px rgba(13, 27, 42, .08);
  --maxw:        1140px;
}

/* ---------- 2. RESET I PODSTAWY ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ---------- 3. ELEMENTY WSPÓLNE ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* Przyciski */
.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 20px rgba(30, 111, 235, .35);
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .35);
}
.btn-ghost:hover { border-color: #fff; }
.btn-full { width: 100%; text-align: center; }

/* Nagłówki sekcji */
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--blue);
  margin: 0 0 .6em;
}
.section-eyebrow.light { color: var(--cyan); }
.section-head h2 { font-size: 2.1rem; }
.section-lead { color: var(--muted); font-size: 1.1rem; }

/* wspólny pionowy odstęp sekcji */
section { padding: 88px 0; }

/* ---------- 4. NAGŁÓWEK + NAWIGACJA ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo-mark { font-size: 1.35rem; font-weight: 800; letter-spacing: -.5px; }
.logo-accent { color: var(--blue); }
.logo-360 {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 2px 8px;
  border-radius: 6px;
  margin-left: 4px;
  vertical-align: middle;
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { font-weight: 500; color: var(--ink); }
.main-nav a:hover { color: var(--blue); }
.main-nav .nav-cta {
  background: var(--blue);
  color: #fff;
  padding: 9px 18px;
  border-radius: 8px;
}
.main-nav .nav-cta:hover { background: var(--blue-dark); color: #fff; }

/* hamburger - ukryty na desktopie */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- 5. HERO ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(56, 189, 248, .18), transparent),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 96px 0 84px;
}
.hero-inner { max-width: 860px; }
.hero-eyebrow {
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .85rem;
  font-weight: 700;
}
.hero-title { font-size: 3rem; letter-spacing: -1px; margin-bottom: .35em; }
.hero-subtitle {
  font-size: 1.2rem;
  color: #c7d2e0;
  max-width: 680px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 40px; }

.hero-trust { border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 22px; }
.hero-trust > span { color: #8ea3bd; font-size: .85rem; }
.trust-logos { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 10px; }
.trust-logos span { font-weight: 700; color: #dbe6f4; opacity: .85; }

/* ---------- 6. WARTOŚĆ / PROBLEM ---------- */
.value { background: var(--bg-soft); }
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.value-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}
.value-icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: rgba(30, 111, 235, .1);
  color: var(--blue);
  border-radius: 12px;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}
.value-item h3 { font-size: 1.2rem; }
.value-item p { color: var(--muted); margin: 0; }

/* ---------- 7. USŁUGI ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  background: #fff;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: #cfe0fb;
}
.service-card h3 { font-size: 1.25rem; }
.service-card p { color: var(--muted); margin: 0; }

/* karta wyróżniona */
.service-featured {
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  border-color: transparent;
}
.service-featured p { color: #c7d2e0; }
.service-badge {
  display: inline-block;
  background: var(--cyan);
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 14px;
}

/* ---------- 8. SPECJALIZACJA ---------- */
.specialty {
  background:
    radial-gradient(900px 400px at 15% 120%, rgba(56, 189, 248, .16), transparent),
    linear-gradient(180deg, var(--navy-2) 0%, var(--navy) 100%);
  color: #fff;
}
.specialty-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 50px;
  align-items: center;
}
.specialty h2 { font-size: 2.1rem; }
.specialty-text > p { color: #c7d2e0; font-size: 1.1rem; }
.specialty-list { list-style: none; padding: 0; margin: 22px 0 0; }
.specialty-list li {
  padding-left: 30px;
  position: relative;
  margin-bottom: 12px;
  color: #dbe6f4;
}
.specialty-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--cyan);
  font-weight: 800;
}
.specialty-badge {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 20px;
  padding: 46px 30px;
  text-align: center;
}
.specialty-badge .temp {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--cyan);
  letter-spacing: -1px;
}
.specialty-badge .temp-label { color: #b9c8dc; }

/* ---------- 9. O MNIE / LICZBY ---------- */
.about-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}
.about h2 { font-size: 2.1rem; margin-bottom: .15em; }
.about-role { color: var(--blue); font-weight: 600; margin-bottom: 1.2em; }
.about-text > p { color: var(--muted); }
.about-highlights { list-style: none; padding: 0; margin: 20px 0 0; }
.about-highlights li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 12px;
}
.about-highlights li::before {
  content: "▹";
  position: absolute; left: 0;
  color: var(--blue);
  font-weight: 800;
}
.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.stat {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -1px;
}
.stat-label { font-size: .9rem; color: var(--muted); }

/* ---------- 10. KONTAKT ---------- */
.contact { background: var(--bg-soft); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact h2 { font-size: 2.1rem; }
.contact-text > p { color: var(--muted); font-size: 1.1rem; }
.contact-details { margin-top: 26px; display: grid; gap: 12px; }
.contact-line {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: var(--ink);
}
.contact-line:hover { color: var(--blue); }
.contact-ico {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--blue);
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.contact-form label {
  display: block;
  font-weight: 600;
  font-size: .92rem;
  margin-bottom: 16px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  font-weight: 400;
  background: #fbfcfe;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(30, 111, 235, .15);
}
.form-note { font-size: .88rem; color: var(--muted); margin: 12px 0 0; min-height: 1.2em; }
.form-note.ok { color: #167a3c; }

/* ---------- 11. STOPKA ---------- */
.site-footer { background: var(--navy); color: #b9c8dc; padding: 34px 0; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.site-footer .logo-mark { color: #fff; }
.site-footer p { margin: 0; font-size: .9rem; }

/* ---------- 12. WERSJA MOBILNA ---------- */
@media (max-width: 900px) {
  .value-grid,
  .services-grid { grid-template-columns: 1fr 1fr; }
  .specialty-inner,
  .about-inner,
  .contact-inner { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.3rem; }
}

@media (max-width: 640px) {
  section { padding: 60px 0; }
  .value-grid,
  .services-grid,
  .about-stats { grid-template-columns: 1fr; }
  .hero-title { font-size: 2rem; }
  .hero-subtitle { font-size: 1.05rem; }

  /* menu chowa się i rozwija po kliknięciu hamburgera */
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .main-nav .nav-cta { text-align: center; margin-top: 10px; border-bottom: 0; }
}
