/* Kruk Projects — Edyta Kruk */

@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display-latin.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Display";
  src: url("/fonts/red-hat-display-latin-ext.woff2") format("woff2");
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/fonts/red-hat-text-latin.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Red Hat Text";
  src: url("/fonts/red-hat-text-latin-ext.woff2") format("woff2");
  font-weight: 300 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy: #1A2B3B;      /* granat z makiety */
  --navy-deep: #13212E;
  --ink: #1E2429;       /* tekst */
  --mist: #F2F4F5;      /* tło */
  --steel: #DCE3E8;     /* tło usług / kontaktu */
  --slate: #5B6B78;     /* tekst drugorzędny */
  --gold: #D9B45F;      /* złoto z materiałów marki, akcent na granacie */
  --line: #C9D3DA;
  --white: #FFFFFF;

  --display: "Red Hat Display", system-ui, sans-serif;
  --text: "Red Hat Text", system-ui, sans-serif;

  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--text);
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: inherit; }

:focus-visible { outline: 2px solid #2F6FA0; outline-offset: 3px; border-radius: 2px; }

section[id] { scroll-margin-top: 4.5rem; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: 1rem; top: -4rem; z-index: 50;
  background: var(--white); color: var(--navy); padding: .6rem 1rem; font-weight: 600;
}
.skip:focus { top: 1rem; }

.h2 {
  font: 600 clamp(1.75rem, 3.2vw, 2.375rem)/1.15 var(--display);
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--navy);
}

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand__k { width: 1.7rem; height: 1.7rem; fill: currentColor; flex: none; }
.brand__name {
  display: flex; flex-direction: column;
  font: 500 1.25rem/1 var(--display); letter-spacing: -0.01em;
}
.brand__name small {
  font: 500 .625rem/1 var(--display); letter-spacing: .32em; text-transform: uppercase;
  margin-top: .35rem; color: var(--slate);
}
.brand--light { color: var(--white); }
.brand--light .brand__name small { color: var(--gold); }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(242,244,245,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top__row { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font: 500 .95rem/1 var(--text); color: var(--ink); padding: .5rem 0; }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: .4em; text-decoration-thickness: 1px; }
.nav .nav__cta { background: var(--navy); color: var(--white); padding: .7rem 1.1rem; border-radius: 3px; }
.nav .nav__cta:hover { background: var(--navy-deep); color: var(--white); text-decoration: none; }

.menu-btn { display: none; }

@media (max-width: 52rem) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: .6rem;
    background: none; border: 0; padding: .6rem 0; font: 500 .95rem var(--text); color: var(--ink); cursor: pointer;
  }
  .menu-btn__bars { position: relative; width: 1.25rem; height: 2px; background: currentColor; }
  .menu-btn__bars::before { content: ""; position: absolute; right: 0; top: -6px; width: 1.25rem; height: 2px; background: currentColor; }
  .menu-btn__bars::after  { content: ""; position: absolute; right: 0; top: 6px;  width: .8rem;  height: 2px; background: currentColor; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--mist); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.25rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .95rem 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav .nav__cta { margin-top: 1rem; text-align: center; border: 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--navy); color: var(--white);
  padding-block: clamp(5rem, 13vw, 10rem) clamp(4.5rem, 11vw, 8.5rem);
}
.hero__k {
  position: absolute; pointer-events: none;
  left: max(60%, calc(50% + 10rem)); top: 50%; transform: translateY(-50%);
  height: 125%; width: auto; aspect-ratio: 285 / 281;
  fill: none; stroke: var(--gold); stroke-width: 1.1; opacity: .35;
}
.hero__inner { position: relative; }
.hero__title {
  font: 600 clamp(2.5rem, 7.2vw, 5.75rem)/1.02 var(--display);
  letter-spacing: -0.03em;
  margin: 0 0 1.75rem;
  max-width: 14ch;
}
.hero__lead { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; max-width: 38rem; color: #D5DEE5; margin-bottom: 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }

.btn {
  display: inline-block; text-decoration: none; font: 600 1rem/1 var(--text);
  padding: 1rem 1.5rem; border-radius: 3px; transition: background-color .15s ease;
}
.btn--light { background: var(--white); color: var(--navy); }
.btn--light:hover { background: var(--steel); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--navy-deep); }
.link-light { color: var(--white); font-weight: 500; text-underline-offset: .35em; text-decoration-thickness: 1px; text-decoration-color: var(--gold); }
.link-light:hover { text-decoration-thickness: 2px; }

/* ---------- About ---------- */
.about { padding-block: var(--sec); }
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem 4rem; }
.about__body { max-width: 40rem; }
.about__lead {
  font: 500 clamp(1.375rem, 2.4vw, 1.75rem)/1.35 var(--display); letter-spacing: -0.01em;
  color: var(--navy); margin-bottom: 1.5rem;
}
.about__sign { font: 500 1rem/1 var(--display); color: var(--slate); margin-top: 2rem; padding-left: 2.5rem; position: relative; }
.about__sign::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.75rem; height: 1px; background: var(--slate); }

/* ---------- Services ---------- */
.services { background: var(--steel); padding-block: var(--sec); }
.svc { list-style: none; margin: 3rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.svc__item { padding-block: 2rem 2.25rem; border-top: 2px solid var(--navy); }
.svc__item:nth-child(n+3) { border-top-width: 1px; border-top-color: #A9B8C3; }
.svc__title { font: 600 1.375rem/1.25 var(--display); letter-spacing: -0.01em; color: var(--navy); margin: 0 0 .9rem; max-width: 22ch; }
.svc__item p { color: #2E3A44; max-width: 34rem; }
.svc__formats { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.svc__formats span { font-size: .875rem; font-weight: 500; padding: .3rem .75rem; border: 1px solid var(--navy); border-radius: 999px; color: var(--navy); }

/* ---------- Audiovisual band ---------- */
.av { background: var(--navy); color: #D5DEE5; padding-block: var(--sec); overflow: hidden; }
.av__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: center; }
.av__kicker { font: 500 1rem/1.3 var(--display); color: var(--gold); margin-bottom: .9rem; }
.av__title { font: 600 clamp(1.75rem, 3.4vw, 2.625rem)/1.12 var(--display); letter-spacing: -0.02em; color: var(--white); margin: 0 0 1.25rem; max-width: 18ch; }
.av__text p { max-width: 34rem; margin-bottom: 1.75rem; }
.av__photo { margin: 0; justify-self: end; width: min(100%, 30rem); }
.av__photo img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  clip-path: circle(47.5% at 49% 49%);
}

/* Wnioski z badań — druga część pasma audiowizualnego */
.insight { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: center; margin-top: clamp(4rem, 9vw, 7rem); padding-top: clamp(3rem, 7vw, 5rem); border-top: 1px solid rgba(255,255,255,.12); }
.insight__fig { margin: 0; }
.insight__fig img { width: 100%; border-radius: 4px; }
.insight__fig figcaption { font-size: .85rem; color: #9FB0BE; margin-top: .9rem; max-width: 34rem; }
.insight__title { font: 600 clamp(1.5rem, 3vw, 2.25rem)/1.15 var(--display); letter-spacing: -0.02em; color: var(--white); margin: 0 0 1.25rem; max-width: 20ch; }
.insight__text > p { max-width: 34rem; }
.insight__stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; margin: 0 0 1.75rem; }
.insight__stats dd { margin: 0; font: 600 clamp(2.25rem, 4.5vw, 3rem)/1 var(--display); color: var(--gold); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.insight__stats dt { font-size: .95rem; line-height: 1.45; margin-top: .4rem; }
.insight__stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.insight__list { margin: .5rem 0 1.75rem; padding-left: 1.1rem; }
.insight__list li { margin-bottom: .35rem; }
.insight__list li::marker { color: var(--gold); }

/* Baner marki pod hero */
.banner { background: var(--white); }
.banner img { width: 100%; aspect-ratio: 2000 / 750; object-fit: cover; }

/* ---------- Projects ---------- */
.projects { padding-block: var(--sec); }
.projects__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 1.5rem 4rem; margin-bottom: 3rem; }
.projects__intro { max-width: 40rem; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.tile { margin: 0; background: var(--white); border-radius: 4px; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile figcaption { font: 600 1.125rem/1.2 var(--display); color: var(--navy); padding: 1.1rem 1.25rem 1.25rem; }

.eu { margin-top: clamp(3.5rem, 7vw, 5.5rem); background: var(--white); border: 1px solid var(--line); border-radius: 4px; }
.eu__logos { width: 100%; max-width: 46rem; margin: 0 auto; padding: 1rem 1.5rem; }
.eu__body { border-top: 1px solid var(--line); padding: clamp(1.5rem, 4vw, 3rem); max-width: 52rem; }
.eu__label { font-weight: 600; color: var(--slate); font-size: .95rem; margin-bottom: .75rem; }
.eu__title { font: 600 clamp(1.25rem, 2.2vw, 1.5rem)/1.3 var(--display); color: var(--navy); margin: 0 0 1.25rem; letter-spacing: -0.01em; }
.eu__more { margin: 1.25rem 0 0; }
.eu__more summary {
  cursor: pointer; font-weight: 600; color: var(--navy); list-style: none;
  display: inline-flex; align-items: center; gap: .6rem; padding: .25rem 0;
}
.eu__more summary::-webkit-details-marker { display: none; }
.eu__more summary::before {
  content: ""; width: .5rem; height: .5rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform .2s ease;
}
.eu__more[open] summary::before { transform: rotate(45deg); }
.eu__more[open] summary { margin-bottom: 1rem; }
@media (prefers-reduced-motion: reduce) { .eu__more summary::before { transition: none; } }
.eu__money { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 2rem; margin: 2rem 0 1.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.eu__money dt { font-size: .9rem; color: var(--slate); margin-bottom: .2rem; }
.eu__money dd { margin: 0; font: 600 1.5rem/1.2 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.eu__tag { font-weight: 600; color: var(--navy); }

/* ---------- Contact ---------- */
.contact { background: var(--steel); padding-block: var(--sec); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 3rem clamp(2rem, 6vw, 5rem); align-items: end; }
.contact__lead { font: 500 clamp(1.25rem, 2.1vw, 1.5rem)/1.4 var(--display); color: var(--navy); margin: 1.25rem 0 1rem; max-width: 30ch; }
.contact__grid > div:first-child p:last-child { max-width: 36rem; }
.contact__card { background: var(--navy); color: var(--white); padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 4px; }
.contact__label { color: var(--gold); font-size: .95rem; margin-bottom: .5rem; }
.contact__mail {
  display: block; font: 600 clamp(1.25rem, 2.6vw, 1.75rem)/1.2 var(--display); letter-spacing: -0.01em;
  text-decoration: none; overflow-wrap: anywhere; margin-bottom: 1.75rem;
}
.contact__mail:hover { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
.contact__fb { display: inline-block; color: var(--white); font-weight: 500; margin: -.75rem 0 1.75rem; text-underline-offset: .3em; text-decoration-color: var(--gold); }
.contact__card .btn--dark { background: var(--white); color: var(--navy); }
.contact__card .btn--dark:hover { background: var(--steel); }

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: #B9C6D0; padding-top: 3.5rem; font-size: .95rem; }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; padding-bottom: 2.5rem; }
.foot__brand p { margin-top: 1rem; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; align-content: start; }
.foot__links a { color: var(--white); text-underline-offset: .3em; text-decoration-color: rgba(255,255,255,.35); }
.foot__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.25rem 1.75rem; font-size: .875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 52rem) {
  .about__grid, .projects__head, .av__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .av__photo { justify-self: start; width: min(100%, 24rem); }
  .insight { grid-template-columns: minmax(0, 1fr); }
  .insight__fig { max-width: 34rem; }
  .banner img { aspect-ratio: 4 / 3; }
  .svc { grid-template-columns: minmax(0, 1fr); }
  .svc__item:nth-child(n+2) { border-top-width: 1px; border-top-color: #A9B8C3; }
  .hero__k { left: 62%; height: 110%; opacity: .22; }
}
@media (max-width: 34rem) {
  .tiles, .eu__money { grid-template-columns: minmax(0, 1fr); }
  .hero__k { display: none; }
  body { font-size: 1rem; }
}
