/* ===================== GLOBAL ===================== */
body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background: #ffffff;
    color: #222;
    margin:0;
}

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

/* ===================== HEADER ===================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eee;
    padding: 18px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.logo {
    font-size: 22px;
    text-decoration: none;
    color: #111;
}
.main-nav {
    display: flex;
    gap: 30px;
    justify-content: center;
}
.main-nav a {
    color: #444;
    font-weight: 500;
    transition: .3s;
}
.main-nav a:hover { color: #e63946; }
.header-phone {
    background: #e63946;
    color: #fff;
    padding: 10px 16px;
    border-radius: 30px;
    font-weight: 600;
}

/* ===================== HERO ===================== */
.hero {
    padding: 120px 20px;
    background: #ffffff;
    text-align: center;
}

/* ===================== KAFELKI / TILE ===================== */
.tile {
    background: #f8f9fa;
    padding: 35px 25px;
    border-radius: 16px;
    text-align: center;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0,0,0,.06);
    transition: .35s ease;
}
.tile i {
    font-size: 42px;
    color: #0d6efd;
    margin-bottom: 15px;
}
.tile h5 {
    font-weight: 600;
    margin-bottom: 10px;
}
.tile:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0,0,0,.12);
}

/* ===================== SEKCJA ZDJĘCIE W TLE ===================== */
.bg-image-section {
    position: relative;
    background-image: url('photos/header.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 120px 0;
}
.bg-image-section .overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.65);
}
.bg-image-section h2,
.bg-image-section p {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* ===================== FAQ ===================== */
.faq-section {
    background: #fff;
    padding: 60px 20px;
}
.faq-row {
    border-bottom:1px solid #eee;
}
.faq-header {
    position: relative;
    padding: 14px 28px 14px 6px;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    align-items:center;
}
.faq-content p {
    padding:0 6px 14px;
    font-size:14px;
    color:#555;
    line-height:1.6;
}

/* ===================== DLACZEGO MY ===================== */
.why-us { background:#fff; padding:60px 20px; }
.why-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:25px;
}
.why-item {
    font-size:14px;
    line-height:1.6;
    color:#222;
}
.why-item strong { display:block; margin-bottom:6px; font-weight:600; }

/* ===================== AWARIE / FAILURE ===================== */
.failures {
    background:#ffffff;
    padding:60px 20px;
}
.failures h3 {
    font-size:28px;
    margin-bottom:40px;
    color:#222;
}
.failures-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap:22px;
}
.failure-tile {
    background:#f8f9fa;
    padding:28px 20px;
    border-radius:14px;
    text-align:center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.failure-tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
.failure-tile i {
    font-size:30px;
    color:#0d6efd;
    margin-bottom:12px;
}
.failure-tile p {
    margin:0;
    font-size:14px;
    color:#222;
    line-height:1.5;
}

/* ===================== KONTAKT ===================== */
.contact-section {
    background: #f8f9fa;
    padding: 60px 20px;
}
.contact-section .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
    max-width: 1100px;
    margin: 0 auto;
}
.contact-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 14px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-box i {
    font-size: 36px;
    color: #fff;
    background: #0d6efd;
    padding: 10px;
    border-radius: 50%;
    margin-bottom: 12px;
    display: inline-block;
    transition: transform 0.3s, background 0.3s;
}
.contact-box i:hover { transform: scale(1.2); background: #e63946; }
.contact-box h5 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #0d6efd;
    position: relative;
    padding-left: 25px;
}
.contact-box h5::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: #e63946;
    border-radius: 50%;
}
.contact-box p { font-size: 14px; color: #222; }
.contact-box p a { color: #0d6efd; text-decoration:none; }
.contact-box p a:hover { text-decoration: underline; }

/* ===================== FOOTER ===================== */
.footer {
    background: #222;
    color: #fff;
    padding: 60px 20px 30px;
}
.footer a { color:#fff; transition:.3s; }
.footer a:hover { color:#0d6efd; }
.footer h5 { font-size:18px; margin-bottom:15px; color:#0d6efd; }
.footer-grid {
    display:flex;
    flex-wrap:wrap;
    gap:30px;
    justify-content:space-between;
    margin-bottom:30px;
}
.footer-item { flex:1 1 250px; }
.footer-links { list-style:none; padding:0; }
.footer-links li { margin-bottom:10px; display:flex; align-items:center; gap:6px; font-size:14px; }
.footer-links i { font-size:12px; color:#0d6efd; }
.footer-bottom { text-align:center; font-size:13px; color:#ccc; border-top:1px solid rgba(255,255,255,0.1); padding-top:15px; }

/* ===================== POLITYKA / RODO ===================== */
.policy-section {
    background:#fff;
    padding:60px 20px;
}
.policy-section h2 {
    text-align:center;
    color:#0d6efd;
    margin-bottom:40px;
    font-size:28px;
}
.policy-grid {
    display:grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap:25px;
}
.policy-tile {
    background:#f8f9fa;
    padding:25px 20px;
    border-radius:14px;
    box-shadow:0 10px 25px rgba(0,0,0,0.06);
    cursor:pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}
.policy-tile i {
    font-size:36px;
    color:#0d6efd;
    margin-bottom:12px;
    display:block;
}
.policy-tile h5 { font-size:16px; font-weight:600; margin-bottom:10px; }
.policy-content {
    max-height:0;
    overflow:hidden;
    transition:max-height 0.35s ease;
    font-size:14px;
    line-height:1.6;
    color:#222;
}
.policy-tile.active .policy-content { max-height:500px; }
.policy-tile:hover { transform:translateY(-5px); box-shadow:0 15px 35px rgba(0,0,0,0.1); }

/* ===================== ANIMACJE ===================== */

/* ===================== RESPONSYWNOŚĆ ===================== */
@media (max-width: 768px) {
    .contact-section .container, .why-grid, .failures-grid, .policy-grid {
        grid-template-columns: 1fr;
    }
    .main-nav { flex-direction: column; gap:15px; }
}
.faq-row {
    border-bottom: 1px solid #eee;
    margin-bottom: 10px;
}

.faq-header {
    padding: 14px 20px;
    cursor: pointer;
    font-weight: 500;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    transition: transform 0.25s ease;
}

.faq-row.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 20px;
}

.faq-row.active .faq-content {
    max-height: 500px; /* dopasuj do treści FAQ */
    padding: 10px 20px 15px 20px;
}
/* Ujednolicone odstępy między sekcjami */
section {
    padding-top: 40px;
    padding-bottom: 40px;
}

/* Opcjonalnie mniejsze paddingi w konkretnych sekcjach */
.why-us .container,
.failures .container,
.process {
    padding: 40px 20px;
}

/* GALERIA REALIZACJI */
.project-tile {
    width: 100%;
    height: 220px; /* wysokość kafelka, można zmienić */
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* wypełnia kafelek, przycina przy zachowaniu proporcji */
    transition: transform 0.3s ease;
}

.project-tile:hover img {
    transform: scale(1.05);
}

.project-tile:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
    transform: translateY(-3px);
}
.hero-services h1 {
    font-size: 2.8rem;
    font-weight: 700;
}

.hero-services p {
    font-size: 1.2rem;
    color: #555;
}

.hero-services i {
    color: #ffcc00;
}
.hero-modern {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
}
.hero {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), 
                url('../photos/header1.jpg') center/cover no-repeat fixed;
    color: #fff;
    min-height: 75vh;
    display: flex;
    align-items: center;
}


.hero-modern h1 {
    font-size: 3rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-shadow: 0 5px 25px rgba(0,0,0,0.7);
}

.hero-modern h2 {
    font-size: 2rem;
    margin: 15px 0;
    font-weight: 600;
    text-shadow: 0 4px 20px rgba(0,0,0,0.6);
}

.hero-modern p {
    font-size: 1.25rem;
    margin-bottom: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.hero-modern .btn {
    padding: 12px 30px;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-modern .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

.hero-modern .hero-phone {
    font-size: 1.25rem;
}

/* === BLOG LIST – PROFESSIONAL LIGHT UI === */

body {
    background: #f4f6f8;
    font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
    color: #2f3437;
}

.blog-container {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
}

/* --- Search bar --- */
.blog-search {
    margin-bottom: 35px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.blog-search input {
    flex: 1;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid #dce1e6;
    font-size: 15px;
    background: #ffffff;
}

.blog-search button {
    padding: 14px 26px;
    border-radius: 10px;
    border: none;
    background: #3b82f6;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.25s ease;
}

.blog-search button:hover {
    background: #2563eb;
}

/* --- Grid --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* --- Card --- */
.blog-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 26px 24px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px rgba(0,0,0,0.08);
}

.blog-card h3 {
    font-size: 18px;
    line-height: 1.4;
    margin-bottom: 12px;
    color: #111827;
}

.blog-card time {
    font-size: 13px;
    color: #6b7280;
}

/* --- Link --- */
.blog-card a {
    display: inline-block;
    margin-top: 16px;
    text-decoration: none;
    color: #3b82f6;
    font-weight: 500;
}

.blog-card a:hover {
    text-decoration: underline;
}

/* --- Pagination --- */
.pagination {
    margin-top: 50px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.pagination a {
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #dce1e6;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-size: 14px;
}

.pagination a.active {
    background: #3b82f6;
    color: #ffffff;
    border-color: #3b82f6;
}

.pagination a:hover {
    background: #e8eef6;
}

.emergency-diagnosis {
  background: #f4f5f7;
  padding: 70px 20px;
}

.diagnosis-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.diagnosis-badge {
  display: inline-block;
  background: #e6e7ea;
  color: #333;
  padding: 6px 14px;
  font-size: 13px;
  border-radius: 20px;
  margin-bottom: 20px;
}

.emergency-diagnosis h2 {
  font-size: 32px;
  margin-bottom: 10px;
}

.subtitle {
  color: #555;
  margin-bottom: 35px;
}

.diagnosis-card {
  background: #fff;
  border-radius: 12px;
  padding: 35px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.progress {
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: #ffcc00;
  transition: width 0.4s;
}

.progress-text {
  font-size: 13px;
  color: #666;
  margin: 10px 0 30px;
}

.step {
  display: none;
  animation: fade 0.4s ease;
}

.step.active {
  display: block;
}

.step h3 {
  margin-bottom: 20px;
}

.step button {
  display: block;
  width: 100%;
  margin: 10px 0;
  padding: 14px;
  background: #f0f1f3;
  border: 1px solid #ddd;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: 0.25s;
}

.step button:hover {
  background: #ffcc00;
  border-color: #ffcc00;
}

.result {
  display: none;
  text-align: left;
  animation: fade 0.4s ease;
}

.result-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.result-price {
  margin-top: 20px;
  font-size: 20px;
}

.result-cta {
  margin-top: 25px;
  text-align: center;
}

.result-cta a {
  margin: 0 10px;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

@keyframes fade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
:root{
  --bg:#f6f7f9;
  --card:#fff;
  --text:#111;
  --muted:#6b7280;
  --line:#e7e7e7;
  --shadow: 0 12px 30px rgba(0,0,0,.08);

  --primary:#0d6efd;
  --danger:#dc3545;
  --success:#28a745;
}

.ei-container{
  max-width: 1180px;
  margin: 24px auto 60px;
  padding: 0 16px;
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.ei-hero{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 18px 18px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  margin-bottom: 18px;
}

.ei-hero h1{ margin:0 0 8px; font-size: 26px; letter-spacing:-0.2px; }
.ei-hero p{ margin:0; color: var(--muted); }

.ei-hero__right{ display:flex; gap:10px; flex-wrap:wrap; }

.ei-hero__badges{ margin-top: 10px; display:flex; gap:8px; flex-wrap:wrap; }
.ei-badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  border: 1px solid var(--line);
  background:#fafafa;
  font-weight:800;
  font-size:12px;
  color:#333;
}

.ei-grid{
  display:grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 16px;
}

.ei-card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
}

.ei-card__head h2{ margin:0 0 6px; font-size: 18px; }
.ei-muted{ color: var(--muted); font-size: 13px; margin:0; }

.ei-form{ margin-top: 12px; }
.ei-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ei-field{ display:flex; flex-direction:column; gap: 6px; margin-bottom: 12px; }
.ei-field label{ font-size: 13px; font-weight: 800; color:#333; }

.ei-field input,
.ei-field select,
.ei-field textarea{
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  outline:none;
  font-size: 14px;
  background:#fff;
}
.ei-field textarea{ resize: vertical; }

.ei-check{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:#333;
  font-size: 13px;
  margin: 6px 0;
}
.ei-check input{ margin-top: 2px; }

.ei-actions{ display:flex; gap:10px; margin-top: 8px; flex-wrap:wrap; }
.ei-btn{
  border:0;
  border-radius: 12px;
  padding: 10px 14px;
  font-weight: 900;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}
.ei-btn--primary{ background: var(--primary); color:#fff; }
.ei-btn--danger{ background: var(--danger); color:#fff; }
.ei-btn--success{ background: var(--success); color:#fff; }
.ei-btn--ghost{ background:#eef0f3; color:#111; border:1px solid var(--line); }

.ei-full{ width:100%; }

.ei-note{
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background:#f8fafc;
  border:1px solid var(--line);
  font-size: 13px;
  color:#333;
}

.ei-result{
  background:#f8fafc;
  border:1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
}

.ei-loading{ color: var(--muted); font-weight:800; }
.ei-error{ color:#b91c1c; font-weight:800; }

.ei-price__big{
  font-size: 28px;
  font-weight: 1000;
  letter-spacing: -0.3px;
}
.ei-price__sub{
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.ei-breakdown{ margin-top: 10px; display:flex; flex-direction:column; gap:8px; }
.ei-brow{
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 12px;
  background:#fff;
  border: 1px solid var(--line);
}

.ei-disclaimer{
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.ei-divider{
  height:1px; background: var(--line);
  margin: 14px 0;
}

.ei-h3{ margin:0 0 6px; font-size: 15px; }

.ei-msg{
  margin-top: 10px;
  font-size: 13px;
  font-weight: 800;
}
.ei-msg--ok{ color:#166534; }
.ei-msg--err{ color:#b91c1c; }
.ei-msg--warn{ color:#92400e; }

.ei-honeypot{ display:none !important; }

@media (max-width: 980px){
  .ei-grid{ grid-template-columns: 1fr; }
  .ei-row{ grid-template-columns: 1fr; }
  .ei-hero{ flex-direction: column; }
}


