/* =========================================================
   Sylviorenovering — styles-clean.css
   Zoptymalizowana wersja (2026-01-21)
   ========================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* -------------------------
   1) Zmienne i podstawy
------------------------- */
:root {
  --bg: #121212;
  --surface: #1a1a1a;
  --surface-2: #222;
  --text: #ffffff;
  --muted: #bfc3c8;
  --primary: #FFD700;
  --primary-600: #e6c200;
  --primary-700: #cfa800;
  --accent: #26D07C;
  --border: #333;

  --container: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 10px 30px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.2);

  --fs-900: clamp(32px, 5vw, 56px);
  --fs-800: clamp(24px, 3.5vw, 36px);
  --fs-700: clamp(20px, 2.2vw, 28px);
  --fs-500: 18px;
  --fs-400: 16px;
  --lh: 1.6;
  --header-h: 72px;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark light;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(1200px 800px at 10% -10%, #1a2030 0%, var(--bg) 60%) fixed;
  line-height: var(--lh);
  font-size: var(--fs-400);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

h1,h2,h3,h4 {
  margin: 0 0 .4em;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
h1{ font-size: var(--fs-900); }
h2{ font-size: var(--fs-800); }
h3{ font-size: var(--fs-700); }
p{ margin: 0 0 1rem; color: var(--muted); }

a{ color: var(--primary); text-decoration: none; }
a:hover{ color: var(--primary-600); }

/* -------------------------
   2) Header i nawigacja
------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(120%) blur(8px);
  background: linear-gradient(180deg, rgba(15,17,21,.9), rgba(15,17,21,.6));
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display:flex; align-items:center; gap:10px;
  color:#fff; font-weight:700; font-size:20px;
}
.logo-img { width: clamp(42px, 8vw, 100px); height: clamp(42px, 8vw, 100px); border-radius: 50%; object-fit: cover; }
.logo-text { color: var(--primary); }

.nav {
  display: flex; gap: 14px; align-items: center; flex-wrap: wrap;
}
.nav a {
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}
.nav a:hover { background: rgba(255,255,255,.06); }
.nav a.is-active { background: var(--primary); color: #111; }

/* -------------------------
   3) Przycisk
------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px; font-weight: 600;
  cursor: pointer; transition: all .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--primary), var(--primary-600));
  color: #0a0a0a; font-weight: 700;
  box-shadow: 0 0 20px rgba(255,215,0,.25);
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--primary-600), var(--primary-700));
  box-shadow: 0 0 30px rgba(255,215,0,.35);
}

/* -------------------------
   4) Hero
------------------------- */
.hero {
  padding: clamp(60px, 6vw, 100px) 0;
  position: relative;
}
.hero-flex {
  display:flex; align-items:center; justify-content:space-between; gap:clamp(2rem,4vw,5rem);
}
.hero-image {
  flex:0 1 640px; position:relative; text-align:right;
}
.hero-image img {
  max-width: 100%; height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.22);
}
.hero-image::before {
  content:""; position:absolute; inset:0; border-radius:16px;
  background: radial-gradient(circle at 70% 60%, rgba(255,215,0,.35), transparent 70%);
  filter: blur(45px); opacity:.8; pointer-events: none;
}

/* -------------------------
   5) Sekcje
------------------------- */
section { scroll-margin-top: calc(var(--header-h) + 8px); }
.grid-2, .grid-3 { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px){
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

/* -------------------------
   6) CTA i formularz
------------------------- */
.cta-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}
.cta-form label {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
}
.cta-form input,
.cta-form textarea {
  width: 100%;
  background: #0f141f;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--border), white 10%);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 16px;
  margin-bottom: 14px;
}
.cta-form input:focus,
.cta-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255,215,0,.18);
  outline: none;
}

/* Walidacja */
.error-msg {
  color: #ff3333;
  font-size: 15px;
  font-weight: 600;
  margin: 6px 0 10px;
  animation: fadeInError 0.25s ease;
}
@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.cta-form input.error,
.cta-form textarea.error {
  border-color: #ff3333;
  box-shadow: 0 0 0 4px rgba(255,51,51,0.25);
}

/* -------------------------
   7) Recenzje
------------------------- */
.reviews {
  padding: 80px 0;
  background: var(--surface-2);
  text-align: center;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.review {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,.25);
  transition: transform 0.15s ease;
}
.review:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(255,215,0,.2);
}
.review-stars { color: #FFD700; font-size: 1.5rem; margin-bottom: 10px; }
.review-text { font-style: italic; color: var(--text); margin-bottom: 10px; }
.review-author { color: var(--primary); font-weight: 600; }

/* -------------------------
   8) Media Queries
------------------------- */
@media (max-width: 850px) {
  .hero-flex { flex-direction: column; text-align: center; }
  .menu-toggle {
    display: block !important;
    position: absolute; top: 10px; right: 14px;
    font-size: 1.8rem; color: var(--text);
    background: none; border: none; z-index: 300;
  }
  .nav {
    display: none !important;
    flex-direction: column;
    position: absolute; top: calc(var(--header-h));
    left: 0; width: 100%;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 8px 20px rgba(0,0,0,.35);
  }
  .nav.open { display: flex !important; }
}

/* -------------------------
   9) Jasny motyw
------------------------- */
html[data-theme="light"] {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --surface-2: #f4f6fb;
  --text: #0f1624;
  --muted: #516079;
  --border: #e3e8f2;
}

/* -------------------------
   10) Scrollbar i print
------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--primary-600); border-radius: 8px; }
@media print {
  .site-header, .site-footer, .btn, .nav { display: none !important; }
}
