:root {
  --navy-950: #081826;
  --navy-900: #0b2138;
  --navy-800: #123150;
  --navy-700: #1b4269;
  --steel: #7da7cd;
  --steel-deep: #35648f;
  --gold: #c9a227;
  --gold-soft: #e3c878;
  --ink: #16222e;
  --muted: #57687a;
  --line: #dce3ea;
  --bg: #ffffff;
  --bg-soft: #f3f6f9;
  --pad: clamp(1.2rem, 4vw, 4rem);
  --wrap: 1240px;
  --radius: 18px;
  --font-display: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --font-body: "Instrument Sans", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--steel-deep); text-decoration: none; }
a:hover { color: var(--gold); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  color: var(--navy-900);
  letter-spacing: -0.015em;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.section {
  padding: clamp(4rem, 9vw, 7rem) var(--pad);
}

.wrap { max-width: var(--wrap); margin: 0 auto; }

.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 0.9rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn svg { flex: none; }

.btn-gold {
  background: var(--gold);
  color: var(--navy-950);
}
.btn-gold:hover {
  background: var(--gold-soft);
  color: var(--navy-950);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(201, 162, 39, 0.3);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-soft); }

.btn-navy {
  background: var(--navy-800);
  color: #fff;
}
.btn-navy:hover {
  background: var(--navy-700);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(18, 49, 80, 0.25);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem var(--pad);
  background: rgba(8, 24, 38, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: #fff;
  line-height: 1.25;
}
.brand-text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel);
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 2rem);
  list-style: none;
}

.site-nav a {
  color: #e8eef4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--gold-soft); }

.nav-cta a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy-950);
  background: var(--gold);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
}
.nav-cta a:hover { background: var(--gold-soft); color: var(--navy-950); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(60% 80% at 78% 40%, rgba(53, 100, 143, 0.5), transparent 70%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950) 65%);
  color: #fff;
  padding: clamp(3rem, 7vw, 5.5rem) var(--pad) 0;
  overflow: hidden;
}

.hero-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
}

.hero-copy { padding-bottom: clamp(3rem, 6vw, 5rem); }

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 700;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold-soft);
}

.hero-lead {
  margin-top: 1.3rem;
  max-width: 34rem;
  color: #c6d4e2;
  font-size: 1.08rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.2rem;
}

.hero-note {
  margin-top: 1.4rem;
  font-size: 0.88rem;
  color: var(--steel);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-photo {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
}
.hero-photo img {
  width: min(100%, 520px);
  mask-image:
    linear-gradient(to bottom, transparent 0, #000 26%, #000 100%),
    linear-gradient(to right, transparent 2%, #000 26%, #000 74%, transparent 98%);
  -webkit-mask-image:
    linear-gradient(to bottom, transparent 0, #000 26%, #000 100%),
    linear-gradient(to right, transparent 2%, #000 26%, #000 74%, transparent 98%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}

.hero-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* linia planu — rysuje się przy załadowaniu */
.draw-path {
  stroke-dasharray: 1800;
  stroke-dashoffset: 1800;
  animation: draw 2.6s ease-out 0.4s forwards;
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-house {
  position: absolute;
  top: clamp(4.5rem, 10vw, 6.5rem);
  right: clamp(0.8rem, 2.5vw, 2.2rem);
  opacity: 0;
  animation: house-in 0.8s ease-out 2.6s forwards;
}
@keyframes house-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 0.9; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-house { animation: none; opacity: 0.9; }
}

/* ---------- stats strip ---------- */

.stats {
  background: var(--navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(1.8rem, 4vw, 2.6rem) var(--pad);
}
.stats-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-top: 0.2rem;
}

/* ---------- services ---------- */

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

.service-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  background: var(--bg);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(11, 33, 56, 0.1);
  border-color: transparent;
}
.service-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin: 1.2rem 0 0.6rem;
}
.service-card p { color: var(--muted); font-size: 0.98rem; }

.service-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2rem;
  align-items: center;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  border: 0;
  color: #fff;
}
.service-featured h3 { color: #fff; font-size: 1.5rem; margin-top: 0; }
.service-featured p { color: #c6d4e2; max-width: 46rem; }
.service-featured .service-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  border: 1px solid rgba(227, 200, 120, 0.4);
  border-radius: 999px;
  padding: 0.25rem 0.8rem;
  margin-bottom: 0.9rem;
}

.icon-tile {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--bg-soft);
  display: grid;
  place-items: center;
}
.service-featured .icon-tile { background: rgba(255, 255, 255, 0.08); }

.icon-tile svg .icon-anim {
  transition: transform 0.3s ease;
  transform-origin: center;
}
.service-card:hover .icon-anim { transform: translateY(-3px); }

/* ---------- process ---------- */

.process { background: var(--bg-soft); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
  position: relative;
}

.process-line {
  position: absolute;
  top: 28px;
  left: 30px;
  width: 75%;
  height: 4px;
  pointer-events: none;
}
.process-line path {
  stroke: var(--gold);
  stroke-width: 2;
  stroke-dasharray: 6 8;
  fill: none;
}

.step { position: relative; }
.step-dot {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  border: 3px solid var(--bg-soft);
  box-shadow: 0 0 0 2px var(--gold);
  position: relative;
  z-index: 1;
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin: 1.1rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ---------- about ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-photo {
  position: relative;
  border-radius: var(--radius);
}
.about-photo img { border-radius: var(--radius); }
.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  border: 1px solid rgba(11, 33, 56, 0.12);
  pointer-events: none;
}
.about-photo .photo-frame {
  position: absolute;
  top: -14px;
  left: -14px;
  width: 120px;
  height: 120px;
  border-top: 3px solid var(--gold);
  border-left: 3px solid var(--gold);
  border-top-left-radius: var(--radius);
}

.about-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.about-copy > p { margin-top: 1.1rem; color: var(--muted); }

.about-facts {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.8rem;
  list-style: none;
}
.about-facts li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.98rem;
}
.about-facts svg { flex: none; margin-top: 0.3rem; }

.about-social {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
}
.about-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy-800);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.about-social a:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- reviews ---------- */

.reviews { background: linear-gradient(160deg, var(--navy-900), var(--navy-950)); color: #fff; }
.reviews .section-head h2 { color: #fff; }
.reviews .section-head p { color: #c6d4e2; }

.reviews-summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.2rem;
}
.reviews-summary strong {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-soft);
}
.reviews-summary span { color: var(--steel); font-size: 0.92rem; }

.stars { display: inline-flex; gap: 3px; }
.stars svg { width: 18px; height: 18px; fill: var(--gold); }

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

.review-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.review-card blockquote {
  border: 0;
  color: #dbe6f0;
  font-size: 0.98rem;
  flex: 1;
}
.review-card footer {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold-soft);
}

.reviews-cta { margin-top: 2.2rem; text-align: center; }

/* ---------- faq ---------- */

.faq-list { max-width: 820px; }

.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  color: var(--navy-900);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold);
  transition: transform 0.25s ease;
  flex: none;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p {
  padding: 0 2.5rem 1.4rem 0;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- contact ---------- */

.contact { background: var(--bg-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-info h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.contact-info > p { margin-top: 1rem; color: var(--muted); }

.contact-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.8rem;
  max-width: 24rem;
}
.contact-ctas .btn { justify-content: center; }

.contact-meta {
  margin-top: 1.8rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.contact-meta a { font-weight: 600; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.6rem, 3.5vw, 2.4rem);
  display: grid;
  gap: 1.1rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy-900);
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font: inherit;
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--ink);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}
.contact-form textarea { resize: vertical; min-height: 110px; }

.contact-form label.form-consent {
  display: flex;
  gap: 0.7rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
  align-items: flex-start;
}
.form-consent input { width: 16px; height: 16px; margin-top: 0.2rem; }

.contact-form .btn { justify-self: start; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: var(--steel);
  padding: 2.2rem var(--pad);
  font-size: 0.88rem;
}
.footer-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.site-footer a { color: #c6d4e2; }
.site-footer a:hover { color: var(--gold-soft); }
.footer-links { display: flex; gap: 1.4rem; list-style: none; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .draw-path { animation: none; stroke-dashoffset: 0; }
  .btn, .service-card { transition: none; }
}

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-featured { grid-template-columns: auto 1fr; }
  .service-featured .btn { grid-column: 2; justify-self: start; }
  .process-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1.4rem; }
  .process-line { display: none; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-nav ul {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--navy-950);
    padding: 1rem var(--pad) 1.6rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    gap: 0.2rem;
  }
  .site-nav ul.open { display: flex; }
  .site-nav ul a { display: block; padding: 0.7rem 0; font-size: 0.95rem; }
  .nav-cta a { justify-content: center; margin-top: 0.6rem; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero-photo img { width: min(100%, 380px); }
  .hero-path { display: none; }

  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .service-featured { grid-template-columns: 1fr; gap: 1.2rem; }
  .service-featured .btn { grid-column: auto; }
  .process-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .contact-ctas { max-width: none; }
}
