:root {
  --orange: #d88b3c;
  --orange-dark: #b9712a;
  --header: #1a1a1a;
  --about: #1e1e1c;
  --footer: #2e2926;
  --title: #3a3c48;
  --tile: #f6f6f6;
  --tile-line: #ebebeb;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Lato, Carlito, Calibri, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: #333;
  background: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2 {
  font-family: "Roboto Slab", Rockwell, "Courier New", serif;
  font-weight: 700;
  margin: 0;
}

.wrap { width: min(1140px, 100% - 2.5rem); margin-inline: auto; }

/* Header */
.site-header { background: var(--header); height: 89px; }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo img { height: 70px; width: auto; }
.nav { display: flex; gap: 2.1rem; }
.nav a { color: #ddd; text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--orange); }

/* Hero */
.hero {
  min-height: min(765px, calc(100vh - 89px));
  min-height: min(765px, calc(100svh - 89px));
  display: grid;
  align-items: center;
  background: #2b2b2b url("img/hero.jpg") center / cover no-repeat;
  color: #fff;
}
.hero-inner { width: min(1140px, 100% - 2.5rem); margin-inline: auto; display: grid; grid-template-columns: 1fr 1fr; }
.hero-text { grid-column: 2; text-align: center; padding-block: 3rem; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.2; margin-bottom: 2.2rem; }
.hero h1 span { color: var(--orange); }

.button {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  padding: .75rem 1.5rem;
  border-bottom: 3px solid var(--orange-dark);
}
.button:hover { background: var(--orange-dark); }

/* Services */
.services { padding-block: 5.5rem 6rem; text-align: center; }
.services h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--title); }
.divider { margin: 1.6rem auto 4rem; }
.divider svg { display: block; margin-inline: auto; }

.tiles {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: min(1140px, 100% - 2.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.9rem 1.9rem;
}
.tiles li {
  background: var(--tile);
  border: 2px solid var(--tile-line);
  color: var(--orange);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  line-height: 1.2;
  min-height: 100px;
  padding: .9rem .6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* About */
.about { background: var(--about); color: #aaa; }
.about-grid {
  width: min(1140px, 100% - 2.5rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 383px;
  gap: 4rem;
  align-items: stretch;
}
.about-text { padding-block: 6rem 5rem; max-width: 520px; }
.about h2 { color: #fff; font-size: 2.2rem; }
.clip { margin: 1.8rem 0 2.2rem; }
.about p { margin: 0; line-height: 24px; letter-spacing: .01em; }
.about-photo { width: 100%; height: 100%; min-height: 510px; object-fit: cover; object-position: center top; }

/* Footer */
.site-footer { background: var(--footer); color: #ddd; padding-block: 3.2rem 4.5rem; font-size: 13px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.footer-nav { display: flex; gap: 2.2rem; margin-bottom: 1.6rem; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover, .contact a:hover { color: var(--orange); }
.copy { margin: 0; font-size: 15px; }
.contact { margin-top: 1.6rem; line-height: 1.9; }
.fb { display: block; padding: .3rem; color: #ddd; }
.fb:hover { color: var(--orange); }

@media (max-width: 900px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 0; }
  .about-text { padding-block: 3.5rem 2.5rem; }
  .about-photo { min-height: 0; max-height: 520px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-text { grid-column: 1; }
}

@media (max-width: 520px) {
  .site-header { height: auto; padding-block: .6rem; }
  .site-header .wrap { flex-wrap: wrap; gap: .4rem; }
  .logo img { height: 54px; }
  .nav { gap: 1.1rem; }
  .nav a { font-size: 14px; }
  .tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Podstrony */
.tiles li a { color: inherit; text-decoration: none; display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; margin: -.9rem -.6rem; padding: .9rem .6rem; }
.tiles li:has(a) { padding: 0; }
.tiles li a { margin: 0; padding: .9rem .6rem; min-height: 96px; }
.tiles li:hover { border-color: var(--orange); }

.page-hero {
  background: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), #1d1d1d;
  color: #fff; text-align: center; padding-block: 6.5rem 6rem;
}
.hero-uslugi { background-image: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), url("img/hero-uslugi.jpg"); background-size: cover; background-position: center; }
.hero-kontakt { background-image: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), url("img/hero-kontakt.jpg"); background-size: cover; background-position: center; }
.page-hero h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.2; margin-bottom: 1rem; }
.page-hero h1 span { color: var(--orange); }
.page-hero p { max-width: 62ch; margin: 0 auto; color: #bbb; font-size: 13px; font-weight: 700; }

.svc, .cta { background: #f6f6f6; }
.svc { padding-block: 5rem; }
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; }
.svc-text { grid-column: 2; max-width: 520px; }
.svc h2, .why h2, .cta h2, .contact-cols h2 { font-size: 1.7rem; color: var(--title); margin-bottom: 1.4rem; }
.svc p { font-size: 13px; line-height: 1.8; margin: 0 0 1.2rem; }

.why { padding-block: 4.5rem; text-align: center; }
.why-tiles { list-style: none; margin: 2.5rem auto 0; padding: 0; width: min(1140px, 100% - 2.5rem); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
.why-tiles li { background: var(--tile); border: 2px solid var(--tile-line); padding: 1.6rem 1rem; color: var(--orange); font-size: 13px; display: grid; justify-items: center; gap: .8rem; }

.cta { padding-block: 4rem; }
.cta p { margin: 0 0 1.6rem; }
.cta a:not(.button), .contact-cols a:not(.button) { color: var(--orange-dark); }

.contact-cols { padding-block: 5rem 4.5rem; }
.cc-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; max-width: 760px; }
.contact-cols p { line-height: 1.9; }
.map { display: block; width: 100%; height: 340px; border: 0; margin-bottom: 1.5rem; }

@media (max-width: 900px) {
  .svc-grid, .cc-grid { grid-template-columns: 1fr; }
  .svc-text { grid-column: 1; }
  .why-tiles { grid-template-columns: repeat(2, 1fr); }
}

.svc ul, .svc ol { font-size: 13px; line-height: 1.8; margin: 0 0 1.2rem; padding-left: 1.3rem; }
.svc li { margin-bottom: .35rem; }

/* Rozwijane menu Usługi */
.nav { align-items: center; }
.nav-item { position: relative; display: flex; align-items: center; height: 89px; }
.sub { display: none; position: absolute; top: 100%; left: -1.2rem; min-width: 340px; margin: 0; padding: .5rem 0; list-style: none; background: var(--header); border-top: 2px solid var(--orange); z-index: 30; box-shadow: 0 8px 20px rgba(0,0,0,.35); }
.nav-item:hover .sub, .nav-item:focus-within .sub { display: block; }
.nav .sub a { display: block; padding: .5rem 1.3rem; font-size: 14px; line-height: 1.4; color: #ddd; }
.nav .sub a:hover { background: #2a2a2a; color: var(--orange); }
@media (max-width: 700px) { .sub { display: none !important; } .nav-item { height: auto; } }
