* { box-sizing: border-box; }
:root { color-scheme: light; --ink: #202438; --paper: #f5f2e9; --orange: #ff7547; --blue: #363fa3; --line: rgba(32,36,56,.18); font-family: Arial, Helvetica, sans-serif; font-synthesis: none; text-rendering: optimizeLegibility; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
::selection { background: var(--orange); color: var(--ink); }
.shell { width: min(1320px, calc(100% - 96px)); margin-inline: auto; }
.site-header { position: sticky; z-index: 20; top: 0; background: rgba(245,242,233,.92); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 21px; letter-spacing: -.08em; font-weight: 800; }
.brand-light { font-weight: 400; }
.brand-dot { align-self: flex-start; margin-left: -8px; padding-top: 2px; font-size: 9px; letter-spacing: 0; }
.brand-symbol { width: 24px; height: 23px; display: flex; align-items: end; gap: 3px; transform: skew(-24deg); }
.brand-symbol span { display: block; width: 5px; background: var(--orange); border-radius: 4px 4px 1px 1px; }
.brand-symbol span:nth-child(1) { height: 12px; }
.brand-symbol span:nth-child(2) { height: 19px; background: var(--blue); }
.brand-symbol span:nth-child(3) { height: 15px; }
.main-nav { display: flex; align-items: center; gap: 39px; margin-left: auto; margin-right: 50px; }
.main-nav a, .header-contact { font-size: 13px; font-weight: 600; transition: color .2s ease; }
.main-nav a:hover, .header-contact:hover { color: var(--blue); }
.header-contact { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); border-radius: 99px; padding: 13px 18px; }
.mobile-menu { display: none; border: 1px solid var(--line); border-radius: 50%; background: transparent; cursor: pointer; }
.hero { min-height: 670px; padding-top: 78px; padding-bottom: 82px; display: grid; grid-template-columns: 1fr .9fr; align-items: center; gap: 5%; overflow: hidden; }
.hero-copy { position: relative; z-index: 1; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; color: #5c6070; font: 600 10px/1.4 Arial, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,117,71,.14); }
.eyebrow-separator { color: #a3a4aa; }
.hero h1 { margin: 31px 0 38px; font-size: clamp(68px, 8.2vw, 116px); line-height: .91; letter-spacing: -.085em; font-weight: 650; }
.hero h1 span, .hero-highlight, .section-heading h2 span, .collab-heading h2 span, .services-content h2 span, .contact-inner h2 span { color: var(--blue); }
.hero-bottom { display: flex; align-items: end; justify-content: space-between; max-width: 500px; gap: 25px; }
.hero-description { max-width: 360px; margin: 0; color: #5d6070; font-size: 16px; line-height: 1.65; }
.round-link { display: grid; place-items: center; flex: 0 0 auto; width: 52px; height: 52px; border: 1px solid var(--ink); border-radius: 50%; font-size: 23px; transition: background .2s, color .2s, transform .2s; }
.round-link:hover { background: var(--ink); color: var(--paper); transform: translateY(3px); }
.hero-art { position: relative; min-height: 475px; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid rgba(54,63,163,.24); border-radius: 50%; transform: rotate(-27deg); }
.art-orbit-one { width: 550px; height: 205px; }
.art-orbit-two { width: 490px; height: 335px; transform: rotate(35deg); }
.art-grid { position: absolute; width: 340px; height: 400px; background-image: radial-gradient(rgba(54,63,163,.24) 1px, transparent 1px); background-size: 14px 14px; mask-image: radial-gradient(ellipse at center, black 20%, transparent 73%); }
.browser-window { position: relative; z-index: 2; width: min(100%, 430px); padding: 11px; border-radius: 12px; background: #fffdf8; box-shadow: 0 28px 80px rgba(37,39,71,.18); transform: rotate(3deg); }
.browser-bar { display: flex; align-items: center; justify-content: space-between; height: 27px; padding: 0 6px 8px; color: #777986; font-size: 9px; }
.browser-dots { display: flex; gap: 4px; }
.browser-dots i { width: 5px; height: 5px; border-radius: 50%; background: #e4d6cd; }
.browser-image { height: 286px; overflow: hidden; background: #ece6da; }
.browser-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.browser-caption { display: flex; justify-content: space-between; padding: 11px 2px 1px; color: #626574; font: 600 8px Arial, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.art-sticker { position: absolute; z-index: 3; top: 14px; right: 3px; width: 96px; height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink); background: var(--orange); border-radius: 50%; font-size: 11px; line-height: 1.1; text-align: center; transform: rotate(11deg); }
.asterisk { font-size: 22px; line-height: 1; }
.art-note { position: absolute; z-index: 3; left: -5px; bottom: 26px; display: flex; flex-direction: column; font-size: 22px; line-height: .98; letter-spacing: -.06em; font-weight: 650; transform: rotate(-7deg); }
.art-note span:nth-child(2) { color: var(--blue); }
.intro-strip { padding: 30px 0; background: var(--blue); color: var(--paper); }
.intro-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.intro-strip .eyebrow { flex: 0 0 190px; color: rgba(255,255,255,.65); }
.intro-statement { max-width: 630px; margin: 0 auto; font-size: clamp(22px, 2.5vw, 34px); letter-spacing: -.045em; }
.intro-statement span { color: #ff9a75; }
.intro-foot { display: flex; align-items: center; gap: 9px; color: rgba(255,255,255,.72); font-size: 10px; white-space: nowrap; }
.projects-section { padding-top: 122px; padding-bottom: 125px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 54px; }
.section-heading h2, .collab-heading h2, .services-content h2 { margin: 18px 0 0; font-size: clamp(48px, 6vw, 78px); line-height: .96; letter-spacing: -.075em; font-weight: 620; }
.section-aside { max-width: 315px; margin: 0 0 5px; color: #656879; font-size: 14px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 44px 25px; align-items: start; }
.project-card--wide { grid-row: span 2; }
.project-image { position: relative; display: block; aspect-ratio: 1.2; overflow: hidden; background: #e5dfd2; }
.project-card--wide .project-image { aspect-ratio: .91; }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.project-image:hover img { transform: scale(1.04); }
.project-arrow { position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 19px; transition: transform .2s; }
.project-image:hover .project-arrow { transform: rotate(45deg); }
.project-number { position: absolute; left: 17px; bottom: 14px; color: white; font: 600 10px Arial,sans-serif; letter-spacing: .1em; text-shadow: 0 1px 6px rgba(0,0,0,.4); }
.project-meta { display: flex; justify-content: space-between; gap: 12px; padding-top: 15px; }
.project-meta h3 { margin: 0 0 5px; font-size: 16px; letter-spacing: -.03em; font-weight: 650; }
.project-meta p { margin: 0; color: #696c7a; font-size: 11px; }
.project-type { padding-top: 3px; color: #777986; font: 600 9px Arial,sans-serif; letter-spacing: .08em; }
.portfolio-note { display: flex; align-items: center; gap: 10px; margin: 31px 0 0; color: #6c6f7b; font-size: 11px; }
.note-star { color: var(--orange); font-size: 16px; }
.collab-section { background: #e9e6dc; padding: 110px 0 38px; }
.collab-inner { display: grid; grid-template-columns: .88fr 1.12fr; column-gap: 10%; }
.collab-heading h2 { margin-bottom: 25px; }
.collab-heading > p:last-child { max-width: 360px; margin: 0; color: #676978; font-size: 14px; line-height: 1.7; }
.partner-list { border-top: 1px solid var(--line); }
.partner-row { display: grid; grid-template-columns: 34px 1fr 1.05fr 18px; gap: 12px; align-items: center; min-height: 86px; border-bottom: 1px solid var(--line); }
.partner-number { align-self: start; padding-top: 28px; color: #737684; font: 10px Arial,sans-serif; }
.partner-row h3 { margin: 0; font-size: 15px; letter-spacing: -.03em; font-weight: 620; }
.partner-row p { margin: 0; color: #656879; font-size: 11px; line-height: 1.5; }
.collab-bottom { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin-top: 64px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 13px; }
.collab-bottom > span { color: #686b78; }
.collab-bottom a { display: inline-flex; align-items: center; gap: 12px; font-weight: 650; }
.services-section { padding-top: 118px; padding-bottom: 120px; }
.services-top { display: flex; justify-content: space-between; padding-bottom: 27px; border-bottom: 1px solid var(--line); }
.services-index { color: #777986; font: 10px Arial,sans-serif; letter-spacing: .1em; }
.services-content { display: grid; grid-template-columns: 1fr .72fr; align-items: end; gap: 9%; padding-top: 45px; }
.services-content h2 { margin: 0; }
.service-list { border-top: 1px solid var(--line); }
.service-item { display: grid; grid-template-columns: 35px 1fr 17px; align-items: center; gap: 12px; min-height: 59px; border-bottom: 1px solid var(--line); }
.service-item > span { color: #777986; font: 10px Arial,sans-serif; }
.service-item p { margin: 0; font-size: 14px; font-weight: 600; }
.service-item > span:last-child { color: var(--blue); font-size: 15px; text-align: center; }
.contact-section { position: relative; overflow: hidden; background: var(--orange); padding: 100px 0 86px; }
.contact-inner { position: relative; z-index: 1; }
.contact-inner .eyebrow { color: rgba(32,36,56,.72); }
.contact-inner .status-dot { background: var(--blue); box-shadow: 0 0 0 4px rgba(54,63,163,.13); }
.contact-inner h2 { margin: 28px 0 45px; font-size: clamp(70px, 10vw, 130px); line-height: .87; letter-spacing: -.09em; font-weight: 650; }
.contact-inner h2 span { color: var(--paper); }
.contact-bottom { display: flex; align-items: end; justify-content: space-between; gap: 25px; max-width: 780px; }
.contact-bottom p { margin: 0; font-size: 15px; line-height: 1.65; }
.contact-button { display: inline-flex; align-items: center; gap: 22px; padding: 16px 20px; border: 1px solid var(--ink); border-radius: 99px; font-size: 13px; font-weight: 650; transition: background .2s, color .2s; }
.contact-button:hover { background: var(--ink); color: var(--paper); }
.contact-decoration { position: absolute; right: 2%; bottom: -28%; color: rgba(255,255,255,.15); font-size: clamp(240px, 38vw, 540px); line-height: .8; font-weight: 800; letter-spacing: -.12em; pointer-events: none; }
.site-footer { background: var(--ink); color: var(--paper); padding: 38px 0 22px; }
.footer-top { display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center; padding-bottom: 38px; }
.site-footer .brand { color: var(--paper); }
.footer-top > p { margin: 0; color: rgba(245,242,233,.7); font-size: 13px; line-height: 1.55; }
.footer-top > a:last-child { justify-self: end; display: flex; align-items: center; gap: 10px; font-size: 14px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; border-top: 1px solid rgba(245,242,233,.22); color: rgba(245,242,233,.65); font-size: 10px; }
.footer-bottom a { color: var(--paper); }
/* ===== Web Floyd CMS — dodatki do szablonu ===== */
picture { display: contents; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.contact-section a:focus-visible { outline-color: var(--ink); }
.site-footer a:focus-visible { outline-color: var(--orange); }
.main-nav a.is-active { color: var(--blue); }
a.partner-row, a.service-item { transition: color .2s; }
a.partner-row:hover h3, a.service-item:hover p { color: var(--blue); }
.preview-bar { position: sticky; top: 0; z-index: 30; display: flex; justify-content: center; gap: 14px; padding: 9px 16px; background: var(--blue); color: var(--paper); font-size: 12px; font-weight: 600; }
.preview-bar a { text-decoration: underline; text-underline-offset: 3px; }
.preview-bar + .site-header { top: 36px; }
/* Ludzik: powrót do panelu — widoczny tylko dla zalogowanego */
.admin-link { display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px; margin-left: -10px; border: 1px solid var(--ink); border-radius: 50%; color: var(--ink); background: var(--paper); transition: background .2s, color .2s; }
.admin-link:hover { background: var(--ink); color: var(--paper); }
@media (max-width: 640px) { .admin-link { width: 42px; height: 42px; margin-left: -14px; } .mobile-menu { margin-left: auto; } }
/* Nagłówek podstrony */
.page-header { padding-top: 96px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.page-header h1 { margin: 26px 0 0; font-size: clamp(56px, 7.4vw, 100px); line-height: .92; letter-spacing: -.08em; font-weight: 650; }
.page-header h1 span { color: var(--blue); }
.page-header .lead { max-width: 520px; margin: 30px 0 0; color: #5d6070; font-size: 16px; line-height: 1.65; }
.page-header-actions { margin: 36px 0 0; }
/* Sekcja tekstowa */
.text-section { padding: 76px 0 92px; }
.text-section--sand { background: #e9e6dc; }
.text-section--ink { background: var(--ink); color: var(--paper); }
.text-inner { display: grid; grid-template-columns: .55fr 1fr; gap: 6%; align-items: start; }
.text-inner > .prose:only-child { grid-column: 2; }
.text-section h2 { margin: 0; font-size: clamp(34px, 3.6vw, 48px); line-height: 1; letter-spacing: -.06em; font-weight: 620; }
.text-section h2 span { color: var(--blue); }
.text-section--ink h2 span { color: var(--orange); }
.prose { max-width: 68ch; color: #3d4155; font-size: 16px; line-height: 1.72; }
.text-section--ink .prose { color: rgba(245,242,233,.82); }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { margin: 1.8em 0 .55em; color: var(--ink); letter-spacing: -.035em; line-height: 1.2; font-weight: 650; }
.text-section--ink .prose h2, .text-section--ink .prose h3, .text-section--ink .prose h4 { color: var(--paper); }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; } .prose h4 { font-size: 17px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-section--ink .prose a { color: var(--orange); }
.prose blockquote { padding-left: 18px; border-left: 3px solid var(--orange); font-size: 18px; color: var(--ink); }
/* Stopka: dane firmy i menu */
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0 0 17px; color: rgba(245,242,233,.55); font-size: 10px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (max-width: 900px) {
  .text-inner { grid-template-columns: 1fr; gap: 26px; }
  .text-inner > .prose:only-child { grid-column: auto; }
}
@media (max-width: 640px) {
  .page-header { padding-top: 62px; padding-bottom: 44px; }
  .page-header h1 { font-size: clamp(48px, 13vw, 72px); }
  .page-header .lead { font-size: 14px; }
  .text-section { padding: 56px 0 68px; }
  .prose { font-size: 15px; }
  .preview-bar + .site-header { top: 52px; }
  .preview-bar { flex-wrap: wrap; gap: 4px 12px; }
}
@media (max-width: 900px) {
  .shell { width: min(100% - 52px, 700px); }
  .header-inner { min-height: 72px; }
  .main-nav { gap: 20px; margin-right: 12px; }
  .hero { grid-template-columns: 1fr 1fr; min-height: 600px; gap: 2%; padding-top: 55px; }
  .hero h1 { font-size: clamp(64px, 9vw, 86px); }
  .hero-art { min-height: 400px; }
  .browser-image { height: 235px; }
  .art-orbit-one { width: 430px; }
  .art-orbit-two { width: 400px; }
  .section-heading h2, .collab-heading h2, .services-content h2 { font-size: 60px; }
  .collab-inner { column-gap: 5%; }
  .partner-row { grid-template-columns: 27px 1fr 1fr 14px; gap: 8px; }
  .partner-row h3 { font-size: 13px; }
}
@media (max-width: 640px) {
  .shell { width: calc(100% - 40px); }
  .header-inner { min-height: 68px; }
  .main-nav { display: none; position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .header-contact { display: none; }
  .mobile-menu { display: grid; place-items: center; width: 42px; height: 42px; font-size: 19px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; gap: 16px; padding-top: 55px; padding-bottom: 45px; }
  .hero h1 { margin: 27px 0 24px; font-size: clamp(60px, 15vw, 88px); }
  .hero-description { font-size: 14px; }
  .round-link { width: 45px; height: 45px; }
  .hero-art { min-height: 365px; margin: 0 -9px; }
  .browser-window { width: min(84%, 375px); }
  .browser-image { height: 226px; }
  .art-orbit-one { width: 400px; height: 170px; }
  .art-orbit-two { width: 350px; height: 270px; }
  .art-sticker { top: 3px; right: 4%; width: 78px; height: 78px; font-size: 9px; }
  .art-note { left: 2%; bottom: 17px; font-size: 18px; }
  .intro-strip { padding: 25px 0; }
  .intro-inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .intro-strip .eyebrow { flex-basis: auto; }
  .intro-statement { margin: 0; font-size: 25px; line-height: 1.18; }
  .intro-foot { margin-top: 2px; }
  .projects-section { padding-top: 78px; padding-bottom: 78px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 17px; margin-bottom: 30px; }
  .section-heading h2, .collab-heading h2, .services-content h2 { font-size: clamp(46px, 12vw, 62px); }
  .section-aside { max-width: 100%; margin: 0; font-size: 13px; }
  .project-grid { grid-template-columns: 1fr; gap: 32px; }
  .project-card--wide { grid-row: auto; }
  .project-card--wide .project-image, .project-image { aspect-ratio: 1.05; }
  .project-meta h3 { font-size: 15px; }
  .portfolio-note { align-items: flex-start; font-size: 10px; line-height: 1.5; }
  .collab-section { padding: 76px 0 30px; }
  .collab-inner { display: flex; flex-direction: column; gap: 34px; }
  .collab-heading > p:last-child { font-size: 13px; }
  .partner-row { grid-template-columns: 26px 1fr 16px; min-height: 80px; gap: 9px; }
  .partner-number { padding-top: 20px; }
  .partner-row h3 { font-size: 14px; }
  .partner-row p { grid-column: 2; grid-row: 2; align-self: start; margin-top: -19px; padding-bottom: 14px; font-size: 10px; }
  .partner-row > span:last-child { grid-column: 3; grid-row: 1; }
  .collab-bottom { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 5px; font-size: 12px; }
  .services-section { padding-top: 76px; padding-bottom: 78px; }
  .services-content { grid-template-columns: 1fr; gap: 30px; padding-top: 30px; }
  .service-item { min-height: 55px; }
  .contact-section { padding: 72px 0 65px; }
  .contact-inner h2 { margin: 27px 0 30px; font-size: clamp(65px, 15vw, 92px); }
  .contact-bottom { align-items: flex-start; flex-direction: column; gap: 24px; }
  .contact-bottom p { font-size: 13px; }
  .contact-decoration { right: -5%; bottom: -2%; font-size: 210px; }
  .site-footer { padding-top: 30px; }
  .footer-top { grid-template-columns: 1fr 1fr; row-gap: 22px; padding-bottom: 27px; }
  .footer-top > p { justify-self: end; text-align: right; }
  .footer-top > a:last-child { grid-column: 1 / -1; justify-self: start; }
  .footer-bottom { flex-wrap: wrap; gap: 10px 16px; font-size: 9px; }
  .footer-bottom > span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}
