/* Fresh Video – statyczna wersja strony (odświeżona) */

:root {
  --teal: #01978e;
  --teal-bright: #01c1b8;
  --teal-dark: #005954;
  --ink: #0f1113;
  --ink-2: #171a1d;
  --ink-3: #20252a;
  --text: #282828;
  --text-soft: #5b6470;
  --on-dark: #e9edef;
  --on-dark-soft: #aab3b9;
  --light: #f4f5f5;
  --white: #fff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, .45);
  --wrap: 1180px;
  --header-h: 84px;
  --f-display: 'Rajdhani', 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-body: 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; transition: color .2s; }
a:hover { color: var(--teal-bright); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--ink); padding: 10px 16px; border-radius: 10px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), height .35s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(15, 17, 19, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 54px; width: auto; transition: height .35s var(--ease); }
.is-scrolled .brand img { height: 46px; }

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav a {
  display: block; padding: 8px 16px; border-radius: 999px;
  color: var(--white); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
}
.nav a:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.nav a[aria-current="page"] { background: var(--white); color: var(--teal-dark); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: var(--white); cursor: pointer;
  position: relative; z-index: 60;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  position: absolute; left: 50%; width: 20px; height: 2px; margin-left: -10px;
  background: currentColor; border-radius: 2px; transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span { top: 50%; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; left: 0; margin: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0; z-index: 55;
    background: rgba(1, 89, 84, .97);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav ul { flex-direction: column; align-items: center; gap: 10px; }
  .nav a { font-family: var(--f-display); font-size: 2rem; font-weight: 500; padding: 6px 22px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 .9rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase;
  background: var(--teal-bright); color: var(--white);
  box-shadow: 0 12px 30px -10px rgba(1, 193, 184, .7);
  transition: transform .25s var(--ease), background .25s, box-shadow .25s;
}
.btn:hover { background: var(--teal-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .5); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn--ghost { background: transparent; color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .5); }
.btn--ghost:hover { background: var(--white); color: var(--teal-dark); box-shadow: none; }
.btn--dark { background: var(--ink-3); box-shadow: none; }
.btn--dark:hover { background: var(--teal); }

/* ---------- Typography helpers ---------- */
.overline {
  display: inline-block; margin-bottom: 14px;
  font: 700 .8rem/1.2 var(--f-body); letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal-bright);
}
.overline::before { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 12px 4px 0; background: currentColor; vertical-align: middle; }
.h-serif { font-family: var(--f-serif); font-weight: 600; font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100svh, 900px);
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 40px) 0 90px;
  color: var(--white);
  background: var(--teal-dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: heroZoom 18s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1200px 600px at 10% 20%, rgba(1, 193, 184, .55), transparent 60%),
    linear-gradient(115deg, rgba(1, 151, 142, .94) 0%, rgba(1, 151, 142, .78) 40%, rgba(0, 60, 56, .55) 100%);
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero h1 {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.6rem); line-height: .98; letter-spacing: -.01em;
  margin-bottom: 40px; max-width: 12ch;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border-radius: 20px; border: 2px solid rgba(255, 255, 255, .55);
}
.hero__scroll::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--white); animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--header-h) + 70px) 0 90px;
  text-align: center; color: var(--white);
  background: var(--teal);
}
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(1, 151, 142, .95), rgba(0, 89, 84, .9));
}
.page-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px; z-index: -1;
  background: var(--ink); clip-path: polygon(0 100%, 100% 30%, 100% 100%);
}
.page-hero h1 { font-family: var(--f-display); font-weight: 400; font-size: clamp(2.8rem, 7vw, 4.6rem); line-height: 1; margin-bottom: 18px; }
.page-hero p { margin: 0; font-size: clamp(1rem, 2vw, 1.3rem); letter-spacing: .08em; opacity: .92; }
.page-hero p.caps { text-transform: uppercase; letter-spacing: .14em; font-size: clamp(.9rem, 1.8vw, 1.1rem); font-weight: 600; }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 120px) 0; }
.section--dark { background: var(--ink); color: var(--on-dark); }
.section--dark-2 { background: var(--ink-2); color: var(--on-dark); }
.section--teal { background: var(--teal); color: var(--white); position: relative; overflow: hidden; }
.section--teal::before {
  content: ""; position: absolute; width: 620px; height: 620px; right: -200px; top: -260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
}
.section--light { background: var(--light); color: var(--text); }
.section--dark h2, .section--dark-2 h2 { color: var(--white); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.split p { color: var(--on-dark-soft); font-size: 1.1rem; }
.split--light p { color: var(--text-soft); }

.media-frame { position: relative; }
.media-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: 0;
  border: 2px solid var(--teal); border-radius: var(--radius-lg);
}
.media-frame img { position: relative; z-index: 1; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* Services */
.services { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(32px, 5vw, 70px); align-items: start; position: relative; }
.services__intro h2 { font-family: var(--f-serif); font-size: clamp(2.3rem, 4.5vw, 3.3rem); color: var(--white); }
.services__intro p { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-size: .95rem; opacity: .9; }
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  padding: 30px 28px; border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.card:hover { transform: translateY(-5px); background: rgba(255, 255, 255, .14); }
.card h3 { font-family: var(--f-serif); font-size: 1.35rem; letter-spacing: .04em; text-transform: uppercase; margin: 18px 0 10px; color: var(--white); }
.card p { margin: 0; font-size: 1rem; line-height: 1.65; color: rgba(255, 255, 255, .88); }
.icon-badge {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: var(--white); color: var(--teal);
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .4);
}
.icon-badge svg { width: 26px; height: 26px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: center; position: relative; }
.feature { padding: 34px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); }
.feature .icon-badge { margin: 0 auto 18px; }
.feature h3 { font-family: var(--f-serif); font-size: 1.4rem; letter-spacing: .04em; text-transform: uppercase; margin: 0; color: var(--white); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.filters button {
  padding: 10px 20px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18);
  background: transparent; color: var(--on-dark); cursor: pointer;
  font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s, border-color .2s;
}
.filters button:hover { border-color: var(--teal-bright); color: var(--white); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: var(--white); }

.grid-portfolio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.work { margin: 0; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.work[hidden] { display: none; }
.work__media { position: relative; overflow: hidden; border-radius: var(--radius); aspect-ratio: 1; background: var(--ink-3); box-shadow: var(--shadow); }
.work__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.work__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 45%); opacity: .8; transition: opacity .35s; }
.work:hover .work__media img { transform: scale(1.07); }
.work:hover .work__media::after { opacity: 1; }
.chip {
  position: absolute; left: 16px; bottom: 16px; z-index: 1;
  padding: 7px 13px; border-radius: 999px; background: var(--teal); color: var(--white);
  font: 700 .7rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
}
.work figcaption { padding: 18px 4px 0; color: var(--on-dark); font-size: 1.02rem; line-height: 1.55; }

/* CTA */
.cta { position: relative; padding: clamp(80px, 10vw, 130px) 0; background: var(--ink); overflow: hidden; }
.cta__wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 60%; object-fit: cover; object-position: center bottom; opacity: .95; }
.cta__box {
  position: relative; max-width: 820px; margin: 0 auto; text-align: center;
  padding: clamp(40px, 6vw, 70px) clamp(24px, 5vw, 60px);
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.cta__box h2 { font-family: var(--f-serif); font-size: clamp(1.7rem, 3.6vw, 2.6rem); color: var(--ink); margin-bottom: 32px; }

/* ---------- Contact ---------- */
.gallery-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.gallery-strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .4s var(--ease); }
.gallery-strip img:hover { transform: translateY(-6px) rotate(-.6deg); }

.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px, 6vw, 80px); align-items: start; }
.contact h2 { font-family: var(--f-serif); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--ink); }
.contact__lead { font-size: 1.15rem; font-weight: 600; color: var(--text-soft); margin-bottom: 30px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 14px; }
.contact__list a { display: inline-flex; align-items: center; gap: 12px; color: var(--text); font-weight: 600; }
.contact__list a:hover { color: var(--teal); }
.contact__list svg { width: 20px; height: 20px; color: var(--teal); }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .25); }
.form-card h3 { font-family: var(--f-serif); font-size: 1.6rem; color: var(--ink); margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.field label span { color: var(--teal); }
.field input, .field textarea {
  width: 100%; padding: 15px 16px; border-radius: 12px;
  border: 1.5px solid transparent; background: var(--light);
  font: 400 1rem/1.5 var(--f-body); color: var(--ink);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--teal); background: var(--white); box-shadow: 0 0 0 4px rgba(1, 151, 142, .12); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form-status.is-ok { display: block; background: rgba(1, 151, 142, .1); color: var(--teal-dark); }
.form-status.is-err { display: block; background: #fdecec; color: #9b1c1c; }
.form-card .btn { width: 100%; justify-content: center; }
.form-card .btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0b0d; color: var(--on-dark-soft); padding: 70px 0 30px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer-grid img { height: 64px; width: auto; margin-bottom: 18px; }
.footer-grid h2 { font: 700 .78rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--white); margin-bottom: 20px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--on-dark); }
.footer-grid a:hover { color: var(--teal-bright); }
.footer-grid li a { display: inline-flex; align-items: center; gap: 10px; }
.footer-grid li svg { width: 18px; height: 18px; color: var(--teal-bright); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 26px; font-size: .85rem; }
.footer-bottom a { color: var(--on-dark); }

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white); box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal-dark); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .4s; }

/* ---------- 404 ---------- */
.notfound { min-height: 100svh; display: grid; place-items: center; text-align: center; color: var(--white); padding: 120px 20px 60px; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.notfound h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(5rem, 18vw, 10rem); line-height: 1; margin: 0; }
.notfound p { font-size: 1.2rem; margin-bottom: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services { grid-template-columns: 1fr; }
  .grid-portfolio { grid-template-columns: repeat(2, 1fr); }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --header-h: 72px; }
  body { font-size: 1rem; }
  .brand img { height: 44px; }
  .split { grid-template-columns: 1fr; }
  .media-frame { margin-right: 22px; }
  .cards, .features { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero { min-height: 88svh; }
}
@media (max-width: 560px) {
  .grid-portfolio { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
}
