/* =========================================================
   Fe-Anor – usługi sprzątające
   Jeden arkusz stylów, mobile first.
   ========================================================= */

:root {
  --navy: #0C447C;
  --navy-dark: #083561;
  --sky: #E6F1FB;
  --accent: #378ADD;
  --accent-dark: #2470BE;
  --text: #042C53;
  --muted: #3D5A7A;
  --white: #ffffff;
  --border: #CFE0F2;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(4, 44, 83, .08);
  --shadow-lg: 0 14px 40px rgba(4, 44, 83, .14);
  --container: 1160px;
  --header-h: 68px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  padding-bottom: 72px; /* miejsce na dolny pasek na telefonie */
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; color: var(--text); letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 5.5vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.6vw, 2.15rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.h3-size { font-size: 1.15rem; font-weight: 700; }
.mt { margin-top: 36px; }
.card .btn { align-self: flex-start; margin-top: 8px; }
.ph-img img { aspect-ratio: 4 / 3; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 1000;
  background: var(--white); color: var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 10px; top: 10px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

/* ---------- Przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.1;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--sky); color: var(--navy); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Nagłówek ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; }
.logo:hover { color: var(--white); }
.logo img { height: 42px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.45rem; font-weight: 700; letter-spacing: .01em; }
.logo-tag { font-size: .72rem; font-weight: 500; opacity: .8; letter-spacing: .02em; }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 10px; border: 1px solid rgba(255,255,255,.35);
  background: transparent; color: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-open .nav-toggle .icon-close { display: block; }
.nav-open .nav-toggle .icon-menu { display: none; }

.main-nav {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--navy); border-top: 1px solid rgba(255,255,255,.12);
  max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  padding: 8px 20px 20px;
}
.nav-open .main-nav { display: block; }
.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { border-bottom: 1px solid rgba(255,255,255,.1); }
.main-nav a, .submenu-toggle {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 14px 4px; color: var(--white); text-decoration: none; font-weight: 600; font-size: 1rem;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.main-nav a:hover, .submenu-toggle:hover { color: #BFDDF8; }
.main-nav a[aria-current="page"] { color: #9FCBF5; }
.submenu-toggle svg { width: 18px; height: 18px; transition: transform .2s; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { display: none; padding: 0 0 10px 12px !important; }
.has-submenu.open .submenu { display: block; }
.submenu a { padding: 9px 4px; font-weight: 500; font-size: .95rem; opacity: .92; }
.header-phone { display: none; }
.nav-phone-mobile { margin-top: 16px; }
.main-nav .nav-phone-mobile .btn {
  width: 100%; justify-content: center; gap: .5em; padding: .85em 1.4em;
  background: var(--white); color: var(--navy); border-radius: 999px;
}

/* ---------- Sekcje ---------- */
.section { padding: 56px 0; }
.section-sky { background: var(--sky); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: .6em;
}
.lead { font-size: 1.12rem; color: var(--muted); }
.section-navy .lead { color: #D6E7F8; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--sky) 0%, #F5FAFE 55%, var(--white) 100%);
  padding: 48px 0 56px;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(55,138,221,.18), rgba(55,138,221,0) 70%); pointer-events: none;
}
.hero-grid { display: grid; gap: 32px; align-items: center; position: relative; z-index: 1; }
.hero h1 { margin-bottom: .4em; }
.hero .lead { max-width: 600px; margin-bottom: 1.6em; }
.hero-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; }
.hero-points svg { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 2px; }

.page-hero { background: var(--sky); padding: 40px 0 44px; }
.page-hero .lead { max-width: 720px; }
.breadcrumbs { font-size: .88rem; margin-bottom: 14px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Placeholdery zdjęć ---------- */
.ph-img { border-radius: var(--radius); overflow: hidden; background: var(--sky); box-shadow: var(--shadow); }
.ph-img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- Grafika firmowa (zamiast zdjęć) ---------- */
.visual {
  position: relative; overflow: hidden; border-radius: 20px; padding: 36px 30px;
  background: linear-gradient(145deg, var(--navy) 0%, #1660A8 100%); color: var(--white);
  box-shadow: var(--shadow-lg); min-height: 300px; display: flex; flex-direction: column; justify-content: center;
}
.visual::before {
  content: ""; position: absolute; right: -90px; bottom: -90px; width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.16), rgba(255,255,255,0) 70%);
}
.visual::after {
  content: ""; position: absolute; left: -60px; top: -60px; width: 180px; height: 180px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.12);
}
.visual > * { position: relative; z-index: 1; }
.visual-logo { width: 110px; height: auto; margin-bottom: 18px; }
.visual-icon {
  width: 84px; height: 84px; border-radius: 22px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; margin-bottom: 18px;
}
.visual-icon svg { width: 46px; height: 46px; }
.visual-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; font-family: Georgia, "Times New Roman", serif; }
.visual-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.visual-points li {
  display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; width: fit-content;
}
.visual-points svg { width: 20px; height: 20px; color: #9FCBF5; flex: none; }

/* ---------- Karty ---------- */
.grid { display: grid; gap: 20px; }
.card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .card-link { margin-top: auto; font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.card .card-link::after { content: "→"; transition: transform .2s; }
.card:hover .card-link::after { transform: translateX(3px); }
.card-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sky); color: var(--accent-dark);
  display: grid; place-items: center; margin-bottom: 16px;
}
.card-icon svg { width: 28px; height: 28px; }
a.card { text-decoration: none; color: inherit; }

.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .card-icon { flex: none; margin: 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { margin: 0; color: var(--muted); }

/* ---------- Kroki ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.steps li {
  counter-increment: step; position: relative; background: var(--white); border-radius: var(--radius);
  padding: 24px 22px 22px 78px; border: 1px solid var(--border);
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 22px;
  width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: var(--white);
  display: grid; place-items: center; font-weight: 800; font-size: 1.1rem;
}
.steps h3 { margin-bottom: .25em; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Listy ---------- */
.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--sky) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23378ADD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.section-sky .check-list li::before { background-color: var(--white); }
.two-col { display: grid; gap: 32px; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.tags li a, .tags li span {
  display: inline-block; padding: 8px 16px; border-radius: 999px; background: var(--white);
  border: 1px solid var(--border); text-decoration: none; font-weight: 600; color: var(--text);
}
.tags li a:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- Obszar ---------- */
.area-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.area-card {
  display: flex; align-items: center; gap: 10px; padding: 16px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--border); text-decoration: none; color: var(--text); font-weight: 700;
}
.area-card svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.area-card:hover { border-color: var(--accent); color: var(--accent-dark); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-q { margin: 0; font-size: 1.02rem; }
.faq-q button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: 0; text-align: left; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--text);
}
.faq-q button::after {
  content: "+"; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--sky);
  display: grid; place-items: center; font-size: 1.3rem; font-weight: 600; color: var(--accent-dark); transition: transform .2s;
}
.faq-q button[aria-expanded="true"]::after { content: "−"; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }
.js .faq-a[hidden] { display: none; }

/* ---------- CTA ---------- */
.cta-box {
  background: linear-gradient(135deg, var(--navy) 0%, #1660A8 100%); color: var(--white);
  border-radius: 20px; padding: 40px 28px; display: grid; gap: 24px; align-items: center;
  box-shadow: var(--shadow-lg);
}
.cta-box h2 { color: var(--white); margin-bottom: .3em; }
.cta-box p { color: #D6E7F8; margin: 0; }

/* ---------- Formularz ---------- */
.form-card { background: var(--white); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.form-grid { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .req { color: #C0392B; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; color: var(--text); padding: 12px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm); background: #FBFDFF;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55,138,221,.2);
}
.field-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.field-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-card .btn { width: 100%; }

/* ---------- Kontakt ---------- */
.contact-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .card-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.contact-list .card-icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; }
.contact-list a { font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--sky); }
.map-embed iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Galeria ---------- */
.gallery { display: grid; gap: 20px; }
.gallery-item { margin: 0; background: var(--white); border-radius: var(--radius); border: 1px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--border); }
.ba div { position: relative; }
.ba img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ba span {
  position: absolute; left: 8px; top: 8px; background: rgba(4,44,83,.82); color: var(--white);
  font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px;
}
.gallery-item figcaption { padding: 14px 16px; font-size: .95rem; }
.gallery-item figcaption strong { display: block; }

/* ---------- Opinie (szablon) ---------- */
.testimonial { background: var(--white); border: 1px dashed var(--accent); border-radius: var(--radius); padding: 24px; }
.testimonial blockquote { margin: 0 0 12px; font-style: italic; color: var(--muted); }
.testimonial cite { font-style: normal; font-weight: 700; }

.placeholder-note {
  background: #FFF8E1; border: 1px dashed #E0B341; color: #6B5310; border-radius: var(--radius-sm);
  padding: 12px 16px; font-size: .9rem; margin-bottom: 20px;
}

/* ---------- Treść prawna ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.4em; }

/* ---------- Stopka ---------- */
.site-footer { background: var(--navy); color: #D6E7F8; padding: 48px 0 24px; font-size: .95rem; }
.site-footer a { color: #D6E7F8; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 32px; }
.site-footer h2 { color: var(--white); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-about p { margin: 14px 0 0; }
.footer-bottom {
  margin-top: 36px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: .85rem;
}

/* ---------- Dolny pasek mobilny ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--border); box-shadow: 0 -4px 18px rgba(4,44,83,.1);
}
.mobile-bar .btn { padding: .8em 1em; }

/* ---------- 404 / dziękujemy ---------- */
.center-page { text-align: center; padding: 80px 0; }
.center-page .big { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 10px; }
.center-page .btn-row { justify-content: center; }
.center-page .lead { max-width: 560px; margin-left: auto; margin-right: auto; }

/* =========================================================
   Tablet
   ========================================================= */
@media (min-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   Desktop
   ========================================================= */
@media (min-width: 1000px) {
  body { padding-bottom: 0; }
  .mobile-bar { display: none; }
  .section { padding: 84px 0; }
  .hero { padding: 80px 0 90px; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 56px; }
  .page-hero { padding: 56px 0 60px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 78px 22px 24px; }
  .steps li::before { top: 22px; left: 22px; }
  .two-col { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
  .two-col.wide-left { grid-template-columns: 1.3fr 1fr; }
  .cta-box { grid-template-columns: 1fr auto; padding: 48px 56px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }

  .nav-toggle { display: none; }
  .main-nav {
    display: block; position: static; background: none; border: 0; padding: 0; max-height: none; overflow: visible;
  }
  .main-nav > ul { display: flex; align-items: center; gap: 2px; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a, .submenu-toggle { padding: 10px 12px; font-size: .95rem; border-radius: 8px; width: auto; }
  .main-nav > ul > li > a:hover, .submenu-toggle:hover { background: rgba(255,255,255,.08); color: var(--white); }
  .submenu-toggle svg { width: 16px; height: 16px; margin-left: 4px; }
  .submenu {
    position: absolute; top: 100%; left: 0; min-width: 270px; padding: 8px !important;
    background: var(--white); border-radius: 12px; box-shadow: var(--shadow-lg);
  }
  .has-submenu:hover .submenu, .has-submenu:focus-within .submenu, .has-submenu.open .submenu { display: block; }
  .submenu a { color: var(--text); padding: 10px 12px; opacity: 1; }
  .submenu a:hover { background: var(--sky); color: var(--navy); }
  .nav-phone-mobile { display: none; }
  .header-phone { display: inline-flex; padding: .7em 1.1em; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
