:root {
  --photo-ink: #17191c;
  --photo-muted: #626870;
  --photo-blue: #176b87;
  --photo-coral: #ca5545;
  --photo-surface: #f4f6f7;
  --photo-line: #dce1e4;
}

body {
  color: var(--photo-ink);
  background: #ffffff;
}

.container-header {
  color: var(--photo-ink);
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(16, 20, 24, 0.24);
}

.container-header > .grid-child:first-child {
  width: calc(100% - 2rem);
  max-width: 1240px;
  margin-inline: auto;
  padding-block: 12px;
}

.container-header .navbar-brand {
  min-width: 0;
}

.container-header .brand-logo {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 14px;
  color: var(--photo-ink);
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.container-header .brand-logo > span {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.container-header .brand-logo::before {
  width: 72px;
  height: 56px;
  flex: 0 0 auto;
  content: '';
  background: url('/images/brand/fotografie-logo-original.png') center / contain no-repeat;
}

.container-header .brand-logo::after {
  min-width: 0;
  content: 'FotografieProduktowe.pl';
  color: var(--photo-ink);
  font: inherit;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.container-header .site-description {
  width: 100%;
  max-width: 840px;
  margin-top: 3px;
  color: var(--photo-muted);
  font-size: 0.95rem;
}

.container-header .container-nav {
  width: 100%;
  max-width: none;
  padding: 7px max(1rem, calc((100vw - 1240px) / 2));
  background: #15191d;
}

.container-header .mod-menu > li > a {
  color: #ffffff;
}

.container-component {
  padding-top: 0;
}

.native-recovery {
  width: min(100%, 1240px);
  max-width: 100%;
  margin-inline: auto;
  overflow: hidden;
}

.legacy-hero {
  min-height: clamp(380px, 62vh, 680px);
  display: grid;
  align-items: center;
  padding: clamp(28px, 6vw, 76px);
  color: #ffffff;
  background-color: #e9eef1;
  background-image: linear-gradient(90deg, rgba(7, 10, 13, 0.88), rgba(7, 10, 13, 0.46) 42%, rgba(7, 10, 13, 0.08) 78%), var(--hero-image);
  background-position: center, 70% center;
  background-size: cover, cover;
}

.legacy-hero.compact {
  min-height: 280px;
  align-items: center;
  background-image: linear-gradient(100deg, #11171c, #176b87);
}

.legacy-hero > div {
  width: 100%;
  min-width: 0;
  max-width: 760px;
}

.legacy-hero h1 {
  max-width: 100%;
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(2.1rem, 4.2rem, 4.2rem);
  font-weight: 850;
  line-height: 1.06;
  overflow-wrap: break-word;
  white-space: normal;
}

.legacy-hero p {
  max-width: 100%;
  margin: 0;
  font-size: 1.2rem;
  overflow-wrap: break-word;
}

.content-block,
.legacy-cta {
  padding: clamp(30px, 5vw, 70px) clamp(18px, 5vw, 66px);
}

.content-block:nth-child(even) {
  background: var(--photo-surface);
}

.content-block > h1,
.content-block > h2,
.legacy-cta > h2 {
  margin-top: 0;
  color: var(--photo-ink);
}

.intro-copy {
  max-width: 980px;
  margin-inline: auto;
  text-align: center;
}

.legacy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.legacy-card {
  padding: 24px;
  border: 1px solid var(--photo-line);
  border-top: 4px solid var(--photo-blue);
  border-radius: 5px;
  background: #ffffff;
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.legacy-card:nth-child(3n + 2) {
  border-top-color: var(--photo-coral);
}

.legacy-card:hover {
  box-shadow: 0 12px 34px rgba(17, 30, 39, 0.12);
  transform: translateY(-2px);
}

.legacy-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.legacy-gallery figure {
  min-width: 0;
  margin: 0;
  border: 1px solid var(--photo-line);
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.legacy-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: contain;
  background: #ffffff;
}

.legacy-gallery figcaption {
  padding: 10px 12px;
  color: var(--photo-muted);
  font-size: 0.9rem;
}

.legacy-button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--photo-blue);
  border-radius: 4px;
  color: #ffffff;
  background: var(--photo-blue);
  font-weight: 700;
  text-decoration: none;
}

.legacy-button.secondary {
  color: var(--photo-ink);
  background: #ffffff;
}

.legacy-button:hover {
  color: #ffffff;
  background: #124f64;
}

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

.contact-panel address {
  margin-bottom: 20px;
  color: var(--photo-muted);
  font-size: 1.1rem;
}

@media (max-width: 767px) {
  .container-header > .grid-child:first-child {
    width: 100%;
    padding-inline: 16px;
  }

  .container-header .navbar-brand {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .container-header .brand-logo {
    display: inline-flex;
    max-width: 100%;
    gap: 9px;
    font-size: 1.15rem;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .container-header .brand-logo::before {
    width: 54px;
    height: 42px;
  }

  .container-header .site-description {
    font-size: 0.86rem;
  }

  .legacy-hero {
    width: 100%;
    min-width: 0;
    min-height: 430px;
    box-sizing: border-box;
    overflow: hidden;
    background-position: center, 66% center;
  }

  .legacy-hero h1 {
    font-size: 2rem;
  }

  .content-block,
  .legacy-cta {
    padding-inline: 18px;
  }

  .legacy-button {
    width: 100%;
    justify-content: center;
    margin: 4px 0;
  }
}
