@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #ffffff;
  --bg-alt: #f7f5f1;
  --bg-dark: #1a1c24;
  --gold: #b8943f;
  --gold-light: #c9a654;
  --gold-dark: #9a7a2e;
  --text: #3a3832;
  --text-m: #6b6860;
  --text-d: #9a9790;
  --text-l: #b5b2aa;
  --border: #e8e5df;
  --font-h: 'Playfair Display', Georgia, serif;
  --font-b: 'Source Sans 3', 'Segoe UI', sans-serif;
  --mw: 1060px;
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased
}

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

a {
  color: var(--gold-dark);
  text-decoration: none;
  transition: color .3s
}

a:hover {
  color: var(--gold)
}

.container {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 28px
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: all .4s
}

.nav.nav-hero {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent
}

.nav.scrolled {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  padding: 10px 0
}

.nav.scrolled.nav-hero {
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(16px)
}

.nav-inner {
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center
}

.nav-logo {
  opacity: 1;
  pointer-events: auto;
  transition: opacity .4s
}

.nav-logo img {
  height: 40px
}

.nav.nav-hero .nav-logo {
  opacity: 0;
  pointer-events: none
}

.nav.nav-hero .nav-links a {
  color: var(--text-m);
  font-weight: 500;
  font-size: .85rem;
  letter-spacing: .08em;
  text-shadow: none
}

.nav.nav-hero .nav-links a:hover {
  color: var(--gold-dark)
}

.nav.nav-hero.scrolled .nav-logo {
  opacity: 1;
  pointer-events: auto
}

.nav.nav-hero.scrolled .nav-links a {
  color: var(--text-m);
  font-weight: 500;
  font-size: .8rem;
  text-shadow: none
}

.nav.nav-hero.scrolled .nav-links a:hover {
  color: var(--gold-dark)
}

.nav.nav-hero .nav-toggle span {
  background: var(--text)
}

.nav.nav-hero.scrolled .nav-toggle span {
  background: var(--text)
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
  margin-right: -48px
}

.nav-links a {
  color: var(--text-m);
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: all .3s
}

.nav-links a:hover {
  color: var(--gold-dark)
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: all .3s
}

/* ===== BTN ===== */
.btn {
  display: inline-block;
  padding: 14px 36px;
  background: var(--gold);
  color: #fff;
  font-family: var(--font-b);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: all .3s
}

.btn:hover {
  background: var(--gold-dark);
  color: #fff;
  transform: translateY(-1px)
}

/* ===== SECTIONS ===== */
.section {
  padding: 80px 0
}

.section-alt {
  background: var(--bg-alt)
}

.section-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 10px
}

.section-title {
  font-family: var(--font-h);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.3
}

.section-subtitle {
  font-size: .95rem;
  color: var(--text-m);
  max-width: 520px;
  line-height: 1.8
}

.gold-line {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 16px
}

.section-center {
  text-align: center;
  max-width: 540px;
  margin: 0 auto 48px
}

.section-center .gold-line {
  margin: 0 auto 16px
}

.section-center .section-subtitle {
  margin: 0 auto
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center
}

.hero-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .65) 20%, rgba(255, 255, 255, .85) 45%, rgba(255, 255, 255, .95) 100%);
  z-index: 1
}

.hero-logo-corner {
  position: absolute;
  top: 24px;
  left: 36px;
  z-index: 3
}

.hero-logo-corner img {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .2))
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--mw);
  margin: 0 auto;
  padding: 0 28px;
  width: 100%;
  display: flex;
  justify-content: flex-end
}

.hero-text {
  max-width: 500px;
  padding: 100px 0 40px;
  margin-right: -120px
}

.hero-quote {
  font-family: var(--font-h);
  font-size: 1.4rem;
  font-style: italic;
  font-weight: 400;
  color: var(--text);
  line-height: 2;
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 3px solid var(--gold)
}

.btn-hero {
  padding: 16px 44px;
  font-size: .88rem;
  letter-spacing: .12em
}

.hero-highlights {
  display: flex;
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--border)
}

.hero-highlight {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 10px;
  border-right: 1px solid var(--border);
  color: var(--text-d);
  font-size: .68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .05em;
  line-height: 1.3
}

.hero-highlight:last-child {
  border-right: none
}

.hero-hl-icon {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  margin-bottom: 2px
}

.hero-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-d);
  animation: bob 2s ease-in-out infinite
}

.hero-scroll svg {
  width: 20px;
  height: 20px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2
}

@keyframes bob {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

/* ===== O MNIE ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start
}

.about-text p {
  margin-bottom: 14px;
  color: var(--text-m);
  font-size: .92rem;
  line-height: 1.85
}

.about-text strong {
  color: var(--gold-dark);
  font-weight: 600
}

.about-image img {
  width: 88%;
  aspect-ratio: 3/4;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  margin: 0 auto
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
  border-top: 1px solid var(--border)
}

.about-stat {
  text-align: center;
  padding: 24px 12px;
  border-right: 1px solid var(--border)
}

.about-stat:last-child {
  border-right: none
}

.about-stat-number {
  font-family: var(--font-h);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--gold-dark);
  line-height: 1;
  margin-bottom: 6px
}

.about-stat-unit {
  font-family: var(--font-h);
  font-size: .85rem;
  color: var(--gold);
  font-weight: 500
}

.about-stat-label {
  font-size: .78rem;
  color: var(--text-d);
  margin-top: 4px;
  line-height: 1.4
}

/* ===== JAK PRACUJE ===== */
.work-row {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: center
}

.work-tile {
  position: relative;
  background: var(--bg);
  border: none;
  border-radius: 16px;
  padding: 36px 28px 32px;
  text-align: left;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, .06);
  transition: transform .3s, box-shadow .3s;
  flex: 0 0 calc(33.333% - 19px);
  max-width: calc(33.333% - 19px)
}

.work-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .1)
}

.work-tile:nth-child(n+4) {
  flex: 0 0 calc(40% - 14px);
  max-width: calc(40% - 14px)
}

.work-tile-accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 16px 16px 0 0
}

.work-tile-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px
}

.work-tile-icon svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5
}

.work-tile h3 {
  font-family: var(--font-h);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
  position: relative
}

.work-tile p {
  color: var(--text-m);
  font-size: .88rem;
  line-height: 1.8;
  position: relative
}

/* ===== DLACZEGO WARTO ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px
}

.why-card {
  padding: 28px 24px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  transition: border-color .3s
}

.why-card:hover {
  border-color: var(--gold)
}

.why-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px
}

.why-card-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5
}

.why-card h3 {
  font-family: var(--font-h);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500
}

.why-card p {
  color: var(--text-m);
  font-size: .88rem;
  line-height: 1.8
}

/* ===== MAP ===== */
.map-section {
  width: 100%;
  height: 300px;
  filter: grayscale(.3)
}

.map-section iframe {
  width: 100%;
  height: 100%;
  border: 0
}

/* ===== CONTACT TILES ===== */
.contact-tiles {
  background: var(--bg-dark);
  padding: 48px 0
}

.contact-tiles-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0
}

.contact-tile {
  text-align: center;
  padding: 32px 20px;
  border-right: 1px solid rgba(255, 255, 255, .08)
}

.contact-tile:last-child {
  border-right: none
}

.contact-tile svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  margin: 0 auto 14px
}

.contact-tile-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px
}

.contact-tile-value {
  font-size: .95rem;
  color: #e8e6e1
}

.contact-tile-value a {
  color: #e8e6e1
}

.contact-tile-value a:hover {
  color: var(--gold-light)
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: start
}

.contact-info-items {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px
}

.contact-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bg-alt)
}

.contact-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--gold-dark);
  fill: none;
  stroke-width: 1.5
}

.contact-item-label {
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-d)
}

.contact-item-value {
  color: var(--text);
  font-size: .92rem
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-b);
  font-size: .9rem;
  transition: border-color .3s;
  outline: none
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-l)
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold)
}

.form-group textarea {
  resize: vertical;
  min-height: 110px
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-d);
  margin-bottom: 8px
}

/* Success State */
.form-success-msg {
  text-align: center;
  padding: 40px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: none;
  animation: fadeIn 0.6s ease forwards
}

.form-success-msg.visible {
  display: block
}

.success-icon {
  width: 64px;
  height: 64px;
  background: var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(184, 148, 63, .3)
}

.success-icon svg {
  width: 32px;
  height: 32px;
  stroke: currentColor;
  fill: none;
  stroke-width: 3
}

.form-success-msg h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 12px
}

.form-success-msg p {
  color: var(--text-m);
  font-size: .95rem;
  line-height: 1.6
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--gold);
  margin-top: 3px
}

.footer {
  padding: 28px 0;
  text-align: center;
  border-top: 1px solid var(--border)
}

.footer p {
  color: var(--text-d);
  font-size: .8rem
}

/* ===== ZAPROSZENIE ===== */
.invite-hero {
  padding: 110px 0 48px
}

.invite-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center
}

.invite-text p {
  color: var(--text-m);
  font-size: .92rem;
  line-height: 1.85;
  margin-bottom: 14px
}

.invite-image img {
  width: 75%;
  height: auto;
  margin-left: auto;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1)
}

.invite-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px
}

.invite-hl {
  text-align: center;
  padding: 24px 16px;
  background: var(--bg);
  border: 1px solid var(--border)
}

.invite-hl-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%
}

.invite-hl-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 1.5
}

.invite-hl h4 {
  font-family: var(--font-h);
  font-size: .92rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 4px
}

.invite-hl p {
  font-size: .82rem;
  color: var(--text-m);
  line-height: 1.6
}

.invite-quote {
  background: var(--bg-alt);
  border-left: 3px solid var(--gold);
  padding: 28px 32px;
  margin: 0 auto;
  max-width: 680px
}

.invite-quote p {
  font-family: var(--font-h);
  font-size: 1.1rem;
  font-style: italic;
  color: var(--text-m);
  line-height: 1.8
}

/* ===== REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0)
}

/* ===== RESPONSIVE ===== */
@media(max-width:900px) {
  .section {
    padding: 56px 0
  }

  .section-title {
    font-size: 1.6rem
  }

  .hero {
    min-height: 100vh;
    padding: 0
  }

  .hero-overlay {
    width: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, .75) 35%, rgba(255, 255, 255, .96) 65%)
  }

  .hero-bg img {
    object-position: 7% center
  }

  .hero-content {
    justify-content: center;
    text-align: center
  }

  .hero-text {
    max-width: 100%;
    padding: 200px 0 20px;
    margin-right: 0
  }

  .hero-quote {
    text-align: left;
    font-size: 1.05rem
  }

  .hero-logo-corner {
    top: 16px;
    left: 20px
  }

  .hero-logo-corner img {
    height: 160px
  }

  .hero-scroll {
    display: none
  }

  .about-grid,
  .invite-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px
  }

  .about-image img {
    aspect-ratio: 3/4;
    max-height: 420px;
    width: 75%;
    border-radius: 16px
  }

  .invite-image img {
    aspect-ratio: auto;
    max-height: 400px;
    width: 70%;
    margin: 0 auto
  }

  .work-tile,
  .work-tile:nth-child(n+4) {
    flex: 0 0 calc(50% - 14px);
    max-width: calc(50% - 14px)
  }

  .work-tile:nth-child(5) {
    flex: 0 0 100%;
    max-width: 100%
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: 16px
  }

  .contact-tiles-inner {
    grid-template-columns: 1fr;
    gap: 0
  }

  .contact-tile {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    padding: 24px 16px
  }

  .contact-tile:last-child {
    border-bottom: none
  }

  .invite-highlights {
    grid-template-columns: 1fr;
    gap: 12px
  }

  .form-row {
    grid-template-columns: 1fr
  }

  .map-section {
    height: 220px
  }

  .nav-logo {
    opacity: 1 !important;
    pointer-events: auto !important
  }

  .nav.nav-hero .nav-logo {
    opacity: 0 !important;
    pointer-events: none !important
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    z-index: 999;
    margin-right: 0
  }

  .nav-links.open {
    display: flex
  }

  .nav-links a {
    font-size: 1rem;
    color: var(--text)
  }

  .nav.nav-hero .nav-links a {
    color: var(--text);
    text-shadow: none;
    font-weight: 500;
    font-size: 1rem
  }

  .nav-toggle {
    display: block;
    z-index: 1001
  }

  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px)
  }

  .nav-toggle.open span:nth-child(2) {
    opacity: 0
  }

  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px)
  }
}

@media(max-width:640px) {
  .container {
    padding: 0 20px
  }

  .section-title {
    font-size: 1.4rem
  }

  .hero-quote {
    font-size: .95rem
  }

  .hero-logo-corner img {
    height: 140px
  }

  .work-row {
    gap: 12px
  }

  .work-tile,
  .work-tile:nth-child(n+4) {
    flex: 0 0 calc(50% - 6px);
    max-width: calc(50% - 6px);
    padding: 24px 18px
  }

  .work-tile:nth-child(5) {
    flex: 0 0 100%;
    max-width: 100%
  }

  .why-card {
    padding: 22px 18px
  }

  .about-stat-number {
    font-size: 1.6rem
  }
}

@media(max-width:420px) {
  .section {
    padding: 44px 0
  }

  .section-title {
    font-size: 1.25rem
  }

  .btn {
    padding: 12px 24px;
    font-size: .78rem
  }

  .hero-logo-corner img {
    height: 120px
  }
}