﻿/* Reset CSS */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:focus-visible {
  outline: 3px solid #4a90d9;
  outline-offset: 3px;
  border-radius: 4px;
}

/* Variables & Base Typography */
:root {
  --color-primary: #1a3a6e;
  --color-secondary: #2152a3;
  --color-accent: #d4cec4;
  --color-bg: #f5f6f8;
  --color-white: #ffffff;
  --color-text: #2d2d2d;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  font-weight: 400;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(33, 82, 163, 0.08), transparent 28%),
    radial-gradient(circle at 85% 0%, rgba(26, 58, 110, 0.06), transparent 24%);
  min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  color: var(--color-primary);
}

h1,
h2 {
  line-height: 1.1;
}

h3,
h4,
h5,
h6 {
  line-height: 1.25;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Utilities */
.container {
  width: min(1100px, 92%);
  margin-left: auto;
  margin-right: auto;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-white);
}

.btn-primary:hover {
  transform: translateY(-2px);
  background-color: #1a4690;
  opacity: 1;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  background-color: rgba(255, 255, 255, 0.18);
  opacity: 1;
}

.why-card,
.service-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.why-card:hover,
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(26, 58, 110, 0.14);
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  margin-bottom: 1.75rem;
}

.text-center {
  text-align: center;
}

section {
  padding: 4rem 0;
  content-visibility: auto;
  contain-intrinsic-size: 1px 680px;
}

main section ul {
  list-style: none;
  margin-top: 0.9rem;
  display: grid;
  gap: 0.55rem;
}

main section ul li {
  position: relative;
  padding-left: 1.5rem;
}

main section ul li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--color-secondary);
  position: absolute;
  left: 0;
  top: 0.05rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid #e2e6eb;
  transition: box-shadow 0.25s ease;
}

.site-header.scrolled {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  line-height: 1.05;
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  border: 2px solid #dbe5f5;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span {
  font-size: 0.83rem;
  color: #4f678f;
}

.logo-text strong {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.main-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav > ul > li {
  position: relative;
}

.main-nav a,
.dropdown-toggle {
  font-weight: 600;
  color: var(--color-primary);
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.96rem;
}

.has-dropdown {
  position: relative;
}

.dropdown-toggle i {
  margin-left: 0.35rem;
  font-size: 0.7rem;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  border: 1px solid #dde4ef;
  border-radius: 10px;
  box-shadow: 0 12px 20px rgba(7, 30, 68, 0.15);
  min-width: 260px;
  padding: 0.5rem;
  display: none;
  z-index: 1200;
}

.dropdown-menu ul {
  display: block;
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: block;
  padding: 0.6rem 0.7rem;
  border-radius: 7px;
}

.dropdown-menu a:hover {
  background: #f0f4fa;
}

.has-dropdown:hover .dropdown-menu {
  display: block;
}

.has-dropdown:focus-within .dropdown-menu {
  display: block;
}

.has-dropdown.open .dropdown-menu {
  display: block;
}

.hamburger {
  display: none;
  width: 46px;
  height: 40px;
  border: 1px solid #dce3ef;
  border-radius: 8px;
  background: var(--color-white);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hamburger span {
  width: 21px;
  height: 2px;
  background: var(--color-primary);
}

/* Breadcrumb */
.breadcrumb {
  background: #e9eef8;
  border-bottom: 1px solid #d5dfef;
  padding: 0.7rem 0;
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  color: #4b5f82;
  font-size: 0.92rem;
}

/* Hero */
.hero {
  position: relative;
  background: linear-gradient(135deg, #142d55 0%, #1a3a6e 62%, #254f90 100%);
  background-repeat: no-repeat;
  color: var(--color-white);
  padding: 5.5rem 0;
}

.hero.hero-bg {
  background-image:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 36%),
    linear-gradient(128deg, rgba(8, 20, 44, 0.84) 0%, rgba(20, 45, 85, 0.74) 45%, rgba(37, 79, 144, 0.62) 100%),
    url("img/realizacja-02.jpeg");
  background-size: cover;
  background-position: center 32%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
  align-items: center;
}

.hero h1 {
  color: var(--color-white);
  font-size: clamp(2rem, 5vw, 3.4rem);
  margin-bottom: 1rem;
}

.hero-content {
  background: rgba(8, 25, 54, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 1.2rem;
  box-shadow: 0 18px 34px rgba(8, 20, 44, 0.35);
}

.hero-lead {
  display: inline-block;
  margin-bottom: 0.9rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.3rem 0.75rem;
  border-radius: 30px;
  font-weight: 600;
}

.hero p {
  max-width: 760px;
  font-size: 1.05rem;
}

.hero-brand-card {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1.1rem;
  box-shadow: 0 16px 34px rgba(7, 18, 41, 0.35);
}

@supports (backdrop-filter: blur(2px)) {
  .hero-brand-card {
    backdrop-filter: blur(2px);
  }
}

.hero-brand-card img {
  width: 100%;
  max-width: 290px;
  margin: 0 auto 0.7rem;
  border-radius: 12px;
}

.hero-brand-card p {
  margin: 0;
  text-align: center;
  font-weight: 600;
}

.hero-cta {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Why us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.why-card {
  background: var(--color-white);
  border: 1px solid #e6ebf4;
  border-radius: 14px;
  padding: 1.2rem;
  text-align: center;
  box-shadow: 0 10px 24px rgba(26, 58, 110, 0.08);
}

.why-card i {
  font-size: 1.8rem;
  color: var(--color-secondary);
  margin-bottom: 0.7rem;
}

.why-card h3 {
  margin-bottom: 0.45rem;
}

/* Services 3x2 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-card {
  background: var(--color-white);
  border: 1px solid #e0e7f2;
  border-radius: 14px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 24px rgba(26, 58, 110, 0.08);
}

.service-card i {
  color: var(--color-secondary);
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.service-card h3 {
  margin-bottom: 0.6rem;
}

.service-card p + p {
  margin-top: 0.55rem;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  padding-top: 0.95rem;
  color: var(--color-secondary);
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, gap 0.18s ease;
}

.service-card a:hover {
  border-bottom-color: var(--color-secondary);
  gap: 0.55rem;
}

/* Area */
.area-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.2rem;
  align-items: start;
}

.area ul {
  list-style: disc;
  padding-left: 1.2rem;
  margin-top: 0.8rem;
}

.map-wrap iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 14px;
}

/* About */
.about .btn-primary {
  margin-top: 1.2rem;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.review-card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 14px;
  border: 1px solid #dfe7f5;
  border-left: 4px solid var(--color-secondary);
  padding: 1.1rem 1.2rem;
  box-shadow: 0 8px 18px rgba(20, 45, 85, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(20, 45, 85, 0.12);
}

.review-card::before {
  content: "Opinia klienta";
  display: inline-block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5f7598;
  margin-bottom: 0.45rem;
}

.review-card .stars {
  color: #d49d24;
  margin-bottom: 0.55rem;
  letter-spacing: 1px;
  font-size: 0.95rem;
}

.review-card p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #23395d;
  font-style: italic;
}

.review-card p::before {
  content: "“";
  color: #7e9bc5;
}

.review-card p::after {
  content: "”";
  color: #7e9bc5;
}

.review-card strong {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
  color: #1a3a6e;
  background: #e8effb;
  border: 1px solid #cfdbf2;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  font-weight: 700;
}

.opinie-info {
  font-size: 0.8rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
}

/* FAQ Accordion */
.faq-list {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid #e4e9f2;
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 1rem 1.1rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 1.1rem 1rem;
}

.faq-item.active .faq-answer {
  max-height: 220px;
}

/* Contact form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0; /* keep individual margins for label+input pairing */
  max-width: 700px;
  background: var(--color-white);
  border: 1px solid #e0e7f2;
  border-radius: 12px;
  padding: 1.2rem;
}

.contact-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d3dceb;
  border-radius: 8px;
  padding: 0.65rem 0.7rem;
  margin-bottom: 0; /* remove old margin, use .field-group gap instead */
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */
.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 2.4rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.site-footer h3 {
  color: var(--color-accent);
  margin-bottom: 0.65rem;
}

.footer-logo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.6rem;
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.site-footer a {
  color: #dfe8ff;
}

.footer-bottom {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
}

.footer-bottom a {
  color: #fff;
}

.footer-locations p {
  margin-bottom: 0.45rem;
}

.footer-locations details {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 0.45rem 0.55rem;
}

.footer-locations summary {
  cursor: pointer;
  font-weight: 700;
  color: #ffffff;
}

.footer-locations ul {
  list-style: none;
  margin-top: 0.55rem;
  display: grid;
  gap: 0.25rem;
  padding-left: 0;
}

.footer-locations li {
  color: #dfe8ff;
  font-size: 0.93rem;
}

.footer-range-map {
  margin-top: 0.65rem;
}

.footer-range-map p {
  margin-bottom: 0.45rem;
  color: #d7e4ff;
  font-size: 0.88rem;
}

.footer-range-map iframe {
  width: 100%;
  min-height: 170px;
  border: 0;
  border-radius: 10px;
}

.hidden {
  display: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 16px;
  width: min(780px, 92%);
  background: #1a2f4f;
  color: var(--color-white);
  border: 1px solid #365078;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  z-index: 1200;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner .btn-primary {
  white-space: nowrap;
}

/* Sticky mobile call button */
.mobile-call-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: #17743e;
  color: var(--color-white);
  padding: 0.9rem;
  font-weight: 700;
  font-size: 1rem;
}

.quick-contact {
  position: fixed;
  right: 14px;
  bottom: 72px;
  z-index: 1095;
  display: none;
  flex-direction: column;
  gap: 0.5rem;
}

.quick-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
  font-size: 0.9rem;
}

.quick-contact__item--whatsapp {
  background: #1fa855;
}

.quick-contact__item--facebook {
  background: #1b5cb3;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding-bottom: 56px;
  }

  .hamburger {
    display: inline-flex;
  }

  .main-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid #dce4f1;
    display: none;
    padding: 0.7rem 4%;
  }

  .main-nav.open {
    display: block;
  }

  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .main-nav li {
    width: 100%;
  }

  .main-nav a,
  .dropdown-toggle {
    display: flex;
    width: 100%;
    padding: 0.6rem 0;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    border: 1px solid #e6ebf3;
    margin-bottom: 0.5rem;
    margin-top: 0.2rem;
    min-width: 0;
  }

  .has-dropdown:hover .dropdown-menu {
    display: none;
  }

  .has-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    padding: 4.2rem 0;
  }

  .hero.hero-bg {
    background-position: center 28%;
  }

  .hero-content {
    padding: 1rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-brand-card {
    max-width: 380px;
  }

  .hero-brand-card {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .area-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .cookie-banner {
    flex-direction: column;
    align-items: flex-start;
    bottom: 62px;
  }

  .mobile-call-btn {
    display: flex;
  }

  .quick-contact {
    display: flex;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .why-card,
  .service-card,
  .review-card {
    padding: 1rem;
  }

  .footer-grid {
    gap: 1.5rem;
  }
}


.meta-placeholder {
  color: #9aa5b8;
  font-style: italic;
}

.service-visuals {
  padding-top: 1rem;
}

.service-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.service-visual-card {
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fd 100%);
  border: 1px dashed #bccae2;
  border-radius: 12px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: #57739e;
  text-align: center;
  padding: 0.35rem;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(20, 45, 85, 0.08);
}

.service-visual-card i {
  font-size: 1.4rem;
  color: var(--color-secondary);
}

.service-visual-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  filter: saturate(0.88) contrast(1.03) brightness(0.96);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.service-visual-card:hover img {
  transform: scale(1.03);
  filter: saturate(0.98) contrast(1.06) brightness(1);
}

.seo-content-block p + p {
  margin-top: 0.9rem;
}

.seo-content-block a {
  color: var(--color-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .service-visual-grid {
    grid-template-columns: 1fr;
  }
}

.seo-faq-block h3 {
  margin-top: 1rem;
  margin-bottom: 0.35rem;
  font-size: 1.32rem;
}

.whatsapp-cta-box {
  background: #e8f7ef;
  border: 1px solid #b9e4c9;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.whatsapp-cta-box h3 {
  margin-bottom: 0.35rem;
}

.whatsapp-cta-box p {
  margin-bottom: 0.7rem;
}

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

  .service-visual-card:hover img {
    transform: none !important;
  }
}



