@media (max-width: 600px) {
  .btn[type="submit"], .btn.primary[type="submit"] {
    text-align: center;
    justify-content: center;
    display: flex;
  }
}
.btn[disabled], .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.service-select-row {
  margin-top: -2px;
}

.service-select-row {
  display: flex;
  gap: 12px;
  margin-bottom: 8px;
}

@media (max-width: 600px) {
  .service-select-row {
    flex-direction: column;
    gap: 10px;
  }
  .service-btn {
    width: 100%;
    font-size: 15px;
    padding: 13px 14px;
  }
}
.service-btn {
  flex: 1;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(163,179,217,.22);
  background: rgba(18,24,43,.6);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.service-btn.selected,
.service-btn:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(14,165,233,0.25);
  outline: none;
}
:root {
      --bg: #0b1020;
      --card: #12182b;
      --muted: #a3b3d9;
      --text: #e7ecff;
      --brand: #0ea5e9;
      --brand-2: #22d3ee;
      --ok: #22c55e;
      --warn: #f59e0b;
      --err: #ef4444;
      --radius: 18px;
      --shadow: 0 10px 30px rgba(0,0,0,.35);
    }

    * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body {
      margin: 0;
      font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Inter, "Helvetica Neue", Arial;
      color: var(--text);
      background: radial-gradient(1200px 800px at 85% -10%, rgba(14,165,233,.15), transparent 40%),
                  radial-gradient(800px 600px at -10% 10%, rgba(34,211,238,.12), transparent 50%),
                  var(--bg);
      line-height: 1.6;
    }

    
    .nav {
      position: sticky; top: 0; z-index: 50;
      backdrop-filter: blur(10px);
      background: rgba(11,16,32,.6);
      border-bottom: 1px solid rgba(163,179,217,.12);
    }
    .nav-inner { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; }
    .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
    .logo {
      width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      box-shadow: var(--shadow);
      font-weight: 800; letter-spacing: .5px;
    }
    .brand span { font-weight: 700; }

    .menu { display: flex; gap: 20px; align-items: center; }
    .menu a { color: var(--muted); text-decoration: none; font-weight: 600; opacity: .9; }
    .menu a:hover, .menu a.active { color: var(--text); }

    .cta {
      border: 1px solid rgba(163,179,217,.25);
      padding: 9px 14px; border-radius: 999px; text-decoration: none; color: var(--text);
      font-weight: 700; display: inline-flex; align-items: center; gap: 8px;
      background: linear-gradient(180deg, rgba(163,179,217,.10), rgba(163,179,217,.03));
    }
    .cta:hover { border-color: rgba(163,179,217,.45); }
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 20px;
  scroll-margin-top: 70px;
}
#o-mnie .card:hover,
#uslugi .card:hover { 
  background: rgba(18,24,43,0.85);
  box-shadow: 0 0 20px rgba(14,165,233,0.25);
}
    .hamb { display: none; background: none; border: 0; color: var(--text); font-size: 22px; }

    @media (max-width: 860px) {
  .menu {
    position: fixed;
    inset: 74px 14px auto;
    flex-direction: column;
    background: rgba(11,16,32,.99);
    border: 1px solid rgba(163,179,217,.15);
    border-radius: var(--radius);
    padding: 14px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-30px) scaleY(0.95);
    pointer-events: none;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(.4,0,.2,1), transform 0.35s cubic-bezier(.4,0,.2,1);
    gap: 20px;
    align-items: center;
  }
  #kontakt .muted {
    text-align: center;
  }
  .menu.open {
    opacity: 1;
    transform: translateY(0) scaleY(1);
    pointer-events: auto;
    visibility: visible;
  }
  .hamb { display: inline-flex; }

  .sec-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .sec-head h2 {
    width: 100%;
    text-align: center;
    font-size: clamp(22px, 7vw, 32px);
  }
  .card h3 {
    font-size: 18px; 
  }
    }


    .hero { max-width: 800px; margin: 0 auto; padding: 80px 20px 40px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
    .badge { display: inline-flex; gap: 8px; align-items: center; padding: 6px 10px; border: 1px solid rgba(163,179,217,.25); border-radius: 999px; font-size: 14px; color: var(--muted); background: rgba(163,179,217,.06); }
    .badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 0 6px rgba(34,197,94,.15); }
    .hero h1 { font-size: clamp(30px, 5vw, 56px); line-height: 1.1; margin: 14px 0; }
    .hero p { font-size: 18px; color: var(--muted); max-width: 650px; margin: 0 auto 16px; text-align: center; opacity: 0; transform: translateY(10px); transition: .6s ease; }
    .hero p.visible { opacity: 1; transform: translateY(0); }
    .btns { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
    .btn { padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(163,179,217,.25); color: var(--text); text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px; background: linear-gradient(180deg, rgba(163,179,217,.10), rgba(163,179,217,.03)); }
    .btn.primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; }

    section { max-width: 1100px; margin: 0 auto; padding: 60px 20px; }
    .sec-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
    .sec-head h2 { margin: 0; font-size: clamp(24px, 3.2vw, 38px); }
    .sec-head p { margin: 0; color: var(--muted); }

    .grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
    @media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }

    .card { background: linear-gradient(180deg, rgba(18,24,43,.7), rgba(18,24,43,.4)); border: 1px solid rgba(163,179,217,.18); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
    .card h3 { margin: 0 0 6px; color: var(--brand); }
    .muted { color: var(--muted); }

#o-mnie .card, #uslugi .card{ 
  text-align: center; 
  padding: 24px 18px; 
  transition: background 0.3s ease, box-shadow 0.3s ease; 
}

#o-mnie .card:hover, #uslugi .card:hover { 
  background: rgba(18,24,43,0.85);
  box-shadow: 0 0 20px rgba(14,165,233,0.25); 
}

.menu a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  opacity: .9;
  transition: color 0.3s ease, opacity 0.3s ease; 
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  opacity: 1;
}



    
    .projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    @media (max-width: 1000px) { .projects { grid-template-columns: repeat(2,1fr); } }
    @media (max-width: 680px) { .projects { grid-template-columns: 1fr; } }
    .project { position: relative; overflow: hidden; border-radius: 16px; border: 1px solid rgba(163,179,217,.18); background: #0d1326; }
    .project img { width: 100%; height: 220px; object-fit: cover; display: block; filter: saturate(1.05) contrast(1.05); }
    .project .info { position: absolute; inset: auto 0 0 0; padding: 12px 14px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.7)); }
    .project .tags { display: flex; flex-wrap: wrap; gap: 6px; }
    .tag { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: rgba(14,165,233,.18); color: #d9f3ff; border: 1px solid rgba(14,165,233,.35); }
    .projects.single { display: grid; grid-template-columns: 1fr; }
    .projects.single .project { width: 100%; height: 100%; }

    
    .testi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
    @media (max-width: 900px) { .testi { grid-template-columns: 1fr; } }
    .quote { position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid rgba(163,179,217,.18); background: linear-gradient(180deg, rgba(18,24,43,.7), rgba(18,24,43,.4)); }
    .quote::before { content: "\201C"; position: absolute; top: -16px; left: 12px; font-size: 60px; color: rgba(163,179,217,.25); }

    
    form { display: grid; gap: 12px; }
    input, textarea { width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(163,179,217,.22); background: rgba(18,24,43,.6); color: var(--text); }
    textarea { min-height: 140px; resize: vertical; }
    .note { font-size: 14px; color: var(--muted); }

 


footer { 
  border-top: 1px solid rgba(163,179,217,.12); 
  padding: 26px 20px; 
  color: var(--muted); 
  text-align: center;
}

    
    .reveal { opacity: 0; transform: translateY(10px); transition: .6s ease; }
    .reveal.visible { opacity: 1; transform: none; }