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

:root {
  --bg: #f6f4f1;
  --surface: #FAF9F7;
  --surface-alt: #f0ece7;
  --text: #171513;
  --muted: #504C46; 
  --line: rgba(23, 21, 19, 0.12);
  --dark: #121212;
  --light: #FCFBF9;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.06);
  --radius: 0px;
  --container: 1220px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  min-width: 0;
  max-width: 100%;
  word-break: break-word;
  margin: 0;
  padding: 0;
  scroll-padding-top: 100px;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--dark);
  color: var(--light);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

body {
  margin: 0;
  padding: 0;
  padding-bottom: 80px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1rem, 0.22vw + 0.96rem, 1.075rem);
  background: var(--surface);
  color: var(--text);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: pretty;
}

body.no-scroll {
  overflow: hidden;
}

body, p, li, h1, h2, h3, h4, h5, h6, a, span, strong, em {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  hyphens: none;
}

main {
  flex: 1;
}

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

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.button:hover,
.button:focus-visible,
.brand-text:hover,
.brand-text:focus-visible,
.skip-link:hover,
.skip-link:focus-visible {
  text-decoration: none;
}

.container {
  width: 100%;
  max-width: min(var(--container), calc(100% - 56px));
  margin: 0 auto;
}

.narrow {
  max-width: 860px;
}

.left-block {
  text-align: left;
}

.section {
  padding: clamp(36px, 3vw, 132px) 0;
}

.section-alt {
  background: var(--surface);
}

.section-narrow {
  padding-top: clamp(82px, 7vw, 112px);
  padding-bottom: clamp(82px, 7vw, 112px);
}

#obszary,
#jak-pracuje {
  background: var(--bg);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(246, 244, 241, 0.86);
  border-bottom: 1px solid var(--line);
}

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

.brand-text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-start;
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
}

.brand-role {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1;
  margin: 0;
  transform: translateX(0.5px);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.96rem;
}

.main-nav a {
  color: var(--muted);
  transition: color 0.25s ease;
  padding: 8px; 
  margin: -8px;
}

.main-nav a:hover {
  color: var(--text);
}

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  color: var(--text);
}

@media (max-width: 1024px) {
  .menu-toggle {
    display: block;
    z-index: 101; 
  }

  .main-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%; 
    width: min(85%, 340px);
    height: 100vh;
    background: var(--bg);
    padding: 100px 30px 40px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    overflow-y: auto;
    gap: 0; 
  }

  .main-nav.is-open {
    right: 0;
  }

  .main-nav a {
    font-size: 1.25rem;
    padding: 18px 0;
    margin: 0;
    border-bottom: 1px solid var(--line);
    width: 100%;
    color: var(--text);
    font-weight: 500;
  }
}

.hero {
  padding-top: clamp(88px, 10vw, 148px);
  padding-bottom: clamp(88px, 10vw, 138px);
  border-bottom: 1px solid rgba(23, 21, 19, 0.12);
  background: linear-gradient(180deg, var(--bg) 0%, rgba(255, 255, 255, 0.9) 100%);
}

.hero-grid,
.about-grid,
.contact-grid,
.footer-grid {
  display: grid;
  gap: 56px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(380px, 500px);
  gap: clamp(56px, 6vw, 96px);
  align-items: center;
}

.hero-copy {
  max-width: min(860px, 100%);
  padding-top: 0;
}

.hero-copy> :first-child {
  margin-top: 0;
}

.about-grid {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  align-items: start;
}

.contact-grid,
.footer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eyebrow,
.section-label,
.card-subtitle,
.contact-label {
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.eyebrow,
.section-label {
  color: var(--muted);
  margin-bottom: 18px;
}

.hero .eyebrow {
  margin-bottom: clamp(14px, 1.8vw, 22px);
}

.section-label-light {
  color: rgba(255, 255, 255, 0.72);
}

h1,
h2,
h3,
.highlight,
.about-quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.08;
  letter-spacing: -0.024em;
  margin: 0 0 24px;
}

h1 {
  font-size: clamp(3.15rem, 4.6vw, 5.2rem);
  text-wrap: pretty;
  hyphens: none;
}

.hero h1 {
  font-size: clamp(3.35rem, 4.35vw, 5.15rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: clamp(24px, 2vw, 32px);
  text-wrap: normal;
  hyphens: none;
}

.hero-subtitle {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  color: var(--muted);
  hyphens: none;
}

h2 {
  font-size: clamp(2.35rem, 3.4vw, 3.6rem);
  text-wrap: normal;
  hyphens: none;
}

h3 {
  font-size: clamp(1.8rem, 1.4vw + 1.45rem, 2.1rem);
  margin-bottom: 14px;
  hyphens: none;
}

.lead {
  max-width: 48ch;
  font-size: clamp(1.03rem, 0.28vw + 0.97rem, 1.14rem);
  line-height: 1.72;
  color: var(--muted);
  margin: 0;
  text-align: left;
  text-wrap: pretty;
  hyphens: none;
}

.hero .lead {
  max-width: 60ch;
  font-size: clamp(1.03rem, 0.24vw + 0.98rem, 1.12rem);
  line-height: 1.72;
  margin: 0;
  text-align: left;
  text-wrap: normal;
  hyphens: none;
}

.lead-small,
.card p,
.about-copy p,
.contact-details p,
.site-footer p,
.rodo-wrap p,
.rodo-wrap li {
  color: var(--muted);
  margin: 0 0 16px;
  line-height: 1.72;
  text-align: left;
  text-wrap: pretty;
  hyphens: none;
}

.about-copy,
.contact-copy,
.contact-details,
.rodo-wrap,
.section-heading,
.narrow,
.contact-stack {
  max-width: 920px;
}

.about-copy,
.contact-copy,
.contact-details,
.section-heading {
  text-wrap: pretty;
}

.hero-image,
.about-photo {
  width: 100%;
  border-radius: 0;
  box-shadow: var(--shadow);
  object-fit: cover;
}

.hero-image {
  aspect-ratio: 4 / 5;
  object-position: center 22%;
}

.about-photo {
  min-height: 640px;
}

.manifesto {
  padding: clamp(64px, 8vw, 112px) 0;
  background-color: var(--bg);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.manifesto-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}

.manifesto-left h3 {
  font-size: clamp(2.35rem, 3.4vw, 3.6rem);
  line-height: 1.05;
  margin: 0;
  color: var(--text);
  font-family: 'Cormorant Garamond', Georgia, serif;
  letter-spacing: -0.024em;
}

.manifesto-right p {
  font-size: clamp(1.15rem, 0.28vw + 1.1rem, 1.35rem);
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
  max-width: 48ch;
}

@media (max-width: 1024px) {
  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .manifesto-right p {
    max-width: 100%;
  }
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 0;
  font-weight: 600;
  transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
  background: var(--text);
  color: var(--surface);
}

.button:hover {
  transform: translateY(-1px);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--text);
}

.button-dark {
  background: var(--dark);
  color: var(--light);
}

.button-dark:hover {
  background: var(--light);
  color: var(--dark);
  border: 1px solid var(--dark);
}

.button-light,
.cta-band .button {
  background: var(--surface);
  color: var(--text);
  border: 1px solid transparent;
}

.button-light:hover,
.cta-band .button:hover {
  background: transparent;
  color: var(--surface);
  border: 1px solid var(--surface);
}

.about-link-line {
  font-weight: 600;
  color: var(--text);
  margin-top: 6px;
  text-align: left !important;
}

.about-quote {
  font-size: clamp(1.9rem, 2.3vw, 2.6rem);
  font-style: italic;
  line-height: 1.22;
  letter-spacing: -0.01em;
  margin: clamp(2px, 0.2vw, 42px) 0;
  text-align: left;
}

.about-quote-wrap {
  display: flex;
  justify-content: center;
  padding: clamp(17px, 2vw, 28px) 0;
}

.about-quote-centered {
  width: min(100%, 72ch);
  padding: clamp(16px, 1vw, 22px);
  margin: 0;
  border-block: 1px solid var(--line);
  border-radius: 0;
  text-align: center;
}

/* Nowa klasa do przerywania gridu przez cytat */
.areas-quote {
  grid-column: 1 / -1;
  width: 100%;
  margin: clamp(10px, 2vw, 20px) 0;
}

.about-copy p {
  line-height: 1.7;
  max-width: 68ch;
  margin: 0 0 1.4em;
}

.about-copy h2 {
  font-size: clamp(2.45rem, 3.2vw, 3.65rem);
  line-height: 1.04;
  letter-spacing: -0.026em;
  max-width: none;
  text-wrap: normal;
  margin-bottom: clamp(24px, 2.2vw, 34px);
}

.about-copy .about-quote-wrap+p {
  margin-top: clamp(21px, 2vw, 30px);
}

.about-copy.about-copy--bottom {
  margin-top: clamp(42px, 4vw, 60px);
}

.section-heading {
  margin-bottom: 40px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  transition: background-color 0.28s ease, color 0.28s ease, transform 0.28s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-sizing: border-box;
}

.card:hover {
  background: var(--dark);
  color: var(--light);
  transform: translateY(-2px);
}

.card:hover p,
.card:hover li,
.card:hover .card-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.card-subtitle {
  color: var(--muted);
  margin-bottom: 18px;
  text-align: left !important;
}

.card ul,
.work-list,
.rodo-list ul {
  padding-left: 22px;
}

.card li,
.work-list li,
.rodo-list li li {
  margin-bottom: 8px;
  text-align: left;
}

.work-list {
  max-width: 80ch;
}

.highlight {
  font-size: clamp(2rem, 3vw, 3.1rem);
  margin: 36px 0 0;
  text-align: left;
}

.how-i-work-block {
  max-width: 980px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(23, 21, 19, 0.12);
  box-shadow: 0 28px 54px rgba(23, 21, 19, 0.06);
  border-radius: 0;
  padding: clamp(40px, 4vw, 54px);
}

#jak-pracuje .work-list {
  margin-bottom: clamp(24px, 2.2vw, 32px);
}

.cta-band {
  background: var(--dark);
  color: var(--light);
}

.contact-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 980px;
}

.contact-lead {
  max-width: 56ch;
  font-size: clamp(1.06rem, 0.28vw + 1rem, 1.18rem);
  line-height: 1.65;
  color: var(--text);
  margin: 0 0 clamp(34px, 3vw, 46px);
}

.contact-details {
  max-width: 820px;
  display: flex;
  flex-direction: column;
}

.contact-item {
  margin-bottom: 0;
  padding-bottom: 28px;
}

.contact-label {
  display: block;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: left;
}

.contact-details a {
  font-weight: 600;
}

.contact-note {
  margin-top: clamp(8px, 1.4vw, 18px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  max-width: 66ch;
}

.muted {
  color: var(--muted);
}

.site-footer {
  padding: 36px 0 3rem;
  border-top: 1px solid var(--line);
  background-color: var(--surface);
  margin-top: auto;
  margin-bottom: 0 !important;
  overflow: hidden;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 0;
  color: var(--text) !important;
  text-align: left !important;
}

.site-footer p,
.site-footer a {
  margin-bottom: 0;
}

.site-footer p:not(:last-child) {
  margin-bottom: 16px;
}

.site-footer p:last-child,
.footer-grid>div:last-child {
  margin-bottom: 0;
}

.site-footer a:hover,
.contact-details a:hover {
  opacity: 0.75;
}

/* RODO i POLITYKA PRYWATNOŚCI */
.rodo-page,
.rodo-page * {
  font-family: 'Inter', Arial, sans-serif;
}

.rodo-page h1,
.rodo-page h2,
.rodo-page h3,
.rodo-page .section-label,
.rodo-page .highlight,
.rodo-page .about-quote {
  font-family: 'Inter', Arial, sans-serif;
  font-style: normal;
  letter-spacing: normal;
}

.rodo-main {
  padding: 72px 0 96px;
  background: var(--surface);
}

.rodo-wrap {
  max-width: 920px;
}

.rodo-header {
  margin-bottom: 42px;
}

.rodo-label {
  margin-bottom: 14px;
}

.rodo-title {
  margin: 0 0 22px;
  font-size: clamp(2rem, 2vw + 1.3rem, 2.8rem);
  line-height: 1.18;
  font-weight: 700;
  color: var(--text);
  text-wrap: pretty;
}

.rodo-back {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.5;
}

.rodo-intro,
.rodo-wrap p,
.rodo-wrap li {
  font-size: 1rem;
  line-height: 1.82;
  color: var(--muted);
  text-align: left;
  text-wrap: pretty;
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}

.rodo-wrap p {
  margin: 0 0 16px;
}

.rodo-wrap ul,
.rodo-wrap ol {
  margin: 0;
}

.rodo-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.rodo-list>li {
  margin-bottom: 38px;
  padding-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.rodo-list>li:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.rodo-list-title {
  display: block;
  margin: 0 0 16px;
  font-size: clamp(1.08rem, 0.35vw + 1rem, 1.24rem);
  line-height: 1.45;
  font-weight: 700;
  color: var(--text);
  text-wrap: pretty;
}

.rodo-list ul {
  padding-left: 22px;
  margin: 10px 0 16px;
}

.rodo-list ul li {
  margin-bottom: 10px;
  padding-left: 2px;
}

.rodo-list p+ul,
.rodo-list p+p {
  margin-top: 8px;
}

.rodo-email-line {
  white-space: nowrap;
}

#obszary .section-heading h2 {
  max-width: 100%;
  text-wrap: normal;
  font-size: clamp(2.1rem, 2.6vw, 3.2rem);
  white-space: normal;
}

@media (min-width: 1200px) {
  .hero-copy,
  .about-copy,
  .section-heading,
  .narrow,
  .contact-stack {
    max-width: 960px;
  }
}

@media (min-width: 768px) {
  .contact-lead {
    white-space: nowrap;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .about-grid,
  .contact-grid,
  .footer-grid,
  .areas-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: clamp(36px, 5vw, 56px);
  }

  .hero-copy,
  .about-copy,
  .section-heading,
  .narrow,
  .contact-stack,
  .contact-details {
    max-width: none;
  }

  .hero h1 {
    max-width: none;
    margin-bottom: 18px;
  }

  .hero .lead {
    max-width: 58ch;
  }

  .hero-image {
    max-width: 680px;
    margin: 0 auto;
    aspect-ratio: 5 / 6;
    object-position: center 18%;
  }

  .about-photo {
    min-height: auto;
    max-height: 760px;
  }
}

@media (max-width: 767.98px) {
  .contact-lead {
    white-space: normal;
  }
  #obszary .section-heading h2 {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(var(--container), calc(100% - 34px));
  }

  .section {
    padding: 74px 0;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 76px;
  }

  .hero {
    padding-top: 18px;
  }

  .hero-grid {
    gap: 30px;
  }

  .hero-copy,
  .about-copy,
  .contact-copy,
  .contact-details,
  .section-heading,
  .narrow,
  .rodo-wrap {
    max-width: none;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 12vw, 3.8rem);
    line-height: 0.98;
    max-width: none;
    margin-bottom: 16px;
  }

  .hero .lead,
  .contact-lead {
    max-width: none;
  }

  .hero-image {
    aspect-ratio: 4 / 5;
    border-radius: 0;
    object-position: center 16%;
  }

  .button {
    width: 100%;
  }

  .card {
    padding: 26px;
  }

  .rodo-main {
    padding: 40px 0 64px;
  }

  .rodo-wrap {
    max-width: none;
  }

  .rodo-back {
    margin-bottom: 26px;
  }

  .rodo-header {
    margin-bottom: 34px;
  }

  .rodo-title {
    font-size: clamp(1.7rem, 7vw, 2.2rem);
    line-height: 1.22;
  }

  .rodo-list>li {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }

  .rodo-list ul {
    padding-left: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}