/* ============================================================
   AWA 3D
   Kolorystyka: jasne tło, grafit, chłodny akcent stalowo-niebieski.
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-alt:    #f4f6f8;   /* bardzo jasny szary */
  --ink:       #2a2f36;   /* grafit / ciemny szary */
  --ink-soft:  #5b636d;   /* tekst pomocniczy */
  --line:      #e2e6ea;   /* delikatne ramki */
  --accent:    #2f7da6;   /* stalowy / chłodny błękit */
  --accent-dk: #245f80;
  --graphite:  #353b42;   /* placeholdery graficzne */
  --radius:    12px;
  --shadow:    0 1px 2px rgba(42,47,54,.05), 0 6px 18px rgba(42,47,54,.06);
  --maxw:      1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, 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 .4em; font-weight: 600; }
h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p  { margin: 0 0 1rem; color: var(--ink-soft); }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 .5rem;
}

/* ---------------------- Nagłówek / nawigacja ---------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.brand-mark { color: var(--ink); }
.brand-3d   { color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a { color: var(--ink-soft); font-size: .95rem; font-weight: 500; transition: color .15s; }
.site-nav a:hover { color: var(--ink); }
.nav-cta {
  background: var(--accent); color: #fff !important;
  padding: 8px 16px; border-radius: 8px;
}
.nav-cta:hover { background: var(--accent-dk); }

.nav-toggle {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ---------------------- Buttony ---------------------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 9px;
  font-weight: 600; font-size: .95rem;
  cursor: pointer; transition: .15s;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------- Sekcje ---------------------- */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 40px; }

/* ---------------------- Siatki ---------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------------------- Karty ---------------------- */
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.section-alt .card { background: #fff; }

.service-card h3, .example-card h3, .step-card h3, .price-card h3 { color: var(--ink); }

/* ---------------------- Grafiki (media) ---------------------- */
.media {
  display: block; width: 100%;
  border-radius: 10px;
  object-fit: cover;            /* równy kadr, bez rozciągania */
  background: var(--bg-alt);
}
.media-hero { aspect-ratio: 4 / 3; }
.media-square { aspect-ratio: 1 / 1; margin-bottom: 16px; }
.media-card { aspect-ratio: 4 / 3; margin-bottom: 16px; }

.service-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--accent);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .08em;
}

.examples-note {
  margin: 28px 0 0;
  font-size: .92rem;
  color: var(--ink-soft);
  text-align: center;
}

/* ---------------------- Placeholdery graficzne ---------------------- */
.placeholder {
  display: flex; align-items: center; justify-content: center; text-align: center;
  background: var(--graphite);
  background-image: repeating-linear-gradient(
    45deg, rgba(255,255,255,.03) 0, rgba(255,255,255,.03) 12px,
    transparent 12px, transparent 24px);
  color: #cfd5db;
  border-radius: 10px;
  padding: 16px;
}
.ph-label {
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #d7dde3; line-height: 1.4;
}
.placeholder-hero { aspect-ratio: 4 / 3; width: 100%; }
.placeholder-square { aspect-ratio: 1 / 1; width: 100%; margin-bottom: 16px; }
.placeholder-icon {
  width: 56px; height: 56px; border-radius: 10px; margin-bottom: 16px; padding: 6px;
}
.placeholder-icon .ph-label { font-size: .5rem; }

/* ---------------------- 1. Hero ---------------------- */
.hero { padding: 80px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero-text .lead { font-size: 1.1rem; max-width: 46ch; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------------------- 4. Kroki ---------------------- */
.step-card { position: relative; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 700;
  margin-bottom: 14px;
}

/* ---------------------- 5. Cennik ---------------------- */
.price-card { text-align: left; }
.price { font-size: 1.4rem; font-weight: 700; color: var(--accent); margin: 4px 0 12px; }
.price-notes {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 32px;
}
.price-notes p { margin: 0; font-size: .9rem; }

/* ---------------------- 7. Kontakt ---------------------- */
.contact-box {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; padding: 36px;
}
.contact-line { color: var(--ink); margin-bottom: .5rem; }
.contact-key {
  display: inline-block; min-width: 80px; font-weight: 600; color: var(--accent);
}
.contact-hint { font-size: .92rem; margin: 12px 0 0; }

/* ---------------------- Stopka ---------------------- */
.site-footer { background: var(--ink); color: #c7ccd2; padding: 48px 0 24px; }
.footer-inner {
  display: grid; grid-template-columns: 0.9fr 1.9fr 1fr 1.2fr; gap: 32px;
  padding-bottom: 28px; border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer-company p { line-height: 1.8; }
.site-footer .brand { font-weight: 700; font-size: 1.35rem; letter-spacing: .02em; }
.site-footer .brand-mark { color: #fff; }
.footer-brand p { margin-top: 10px; font-size: .9rem; color: #9aa1a9; }
.footer-col h4 {
  margin: 0 0 12px; font-size: .8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em; color: #fff;
}
.footer-col p { color: #9aa1a9; font-size: .9rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: #c7ccd2; font-size: .9rem; }
.footer-links a:hover { color: #fff; }
.footer-contact { margin: 0 0 .4rem; color: #c7ccd2; font-size: .9rem; }
.footer-contact .contact-key { display: inline-block; min-width: 64px; color: var(--accent); font-weight: 600; }
.footer-hint { margin: 10px 0 0; font-size: .85rem; color: #9aa1a9; }
.footer-bottom { padding-top: 18px; }
.footer-bottom p { margin: 0; font-size: .82rem; color: #7d848c; }

/* ---------------------- Podstrony ---------------------- */
.back-link { font-size: .9rem; color: var(--ink-soft); font-weight: 500; }
.back-link:hover { color: var(--accent); }
.subpage { max-width: 760px; }
.subpage h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.subpage .subpage-intro { font-size: 1.05rem; color: var(--ink-soft); margin-bottom: 28px; }
.subpage h2 { font-size: 1.25rem; margin: 28px 0 10px; }
.subpage ul { padding-left: 20px; margin: 0 0 1rem; }
.subpage li { margin-bottom: 6px; color: var(--ink-soft); }
.subpage .note { font-size: .88rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 28px; }

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 24px 16px;
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { text-align: center; margin-top: 8px; border-bottom: 0 !important; }

  .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .contact-box { flex-direction: column; align-items: stretch; text-align: left; }
  .contact-action .btn { display: block; text-align: center; }
}
