/* Charter Link Gdynia. Statyczna strona; bez bibliotek i zewnętrznych fontów. */
:root {
  color-scheme: light;
  --navy: #102534;
  --navy-deep: #0a1c28;
  --red: #c93637;
  --red-hover: #ad2829;
  --ink: #152a38;
  --muted: #52636e;
  --line: #dce3e7;
  --light: #f1f5f7;
  --white: #ffffff;
  --content: 1200px;
  --header-offset: 9rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset); }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; font-size: 1rem; line-height: 1.65; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { display: block; width: 100%; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, textarea:focus-visible { outline: 3px solid #eaa842; outline-offset: 6px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.12; }
h2 { font-size: clamp(2rem, 3.5vw, 3rem); letter-spacing: -.045em; font-weight: 700; }
.container { width: min(calc(100% - 6rem), var(--content)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: 0; transform: translateY(-150%); background: white; color: var(--navy); padding: .75rem 1rem; }
.skip-link:focus { transform: translateY(1rem); }

.site-header { position: sticky; top: 0; z-index: 20; flex-shrink: 0; background: var(--white); color: var(--navy); border-bottom: 1px solid var(--line); transition: box-shadow .2s ease; }
.header-inner { min-height: 102px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 1.1rem; transition: min-height .2s ease, padding .2s ease; }
.brand { text-decoration: none; display: inline-flex; flex-direction: column; flex-shrink: 0; }
.brand-logo { width: 365px; height: auto; transition: width .2s ease; }
.brand-location { font-size: .75rem; font-weight: 600; letter-spacing: .12em; margin-top: .35rem; max-height: 1.7em; overflow: hidden; transition: max-height .2s ease, margin-top .2s ease, opacity .2s ease; }
.brand-location > span { color: #e25250; margin-inline: .35rem; }
.main-nav { display: flex; gap: 2.4rem; align-items: center; font-size: .9375rem; font-weight: 600; }
.main-nav a { text-decoration: none; padding-block: .65rem; }
.main-nav a:hover { text-decoration: underline; }
.main-nav .nav-contact { border: 1px solid var(--red); color: var(--red); padding: .7rem 1.2rem; display: flex; align-items: center; gap: 1.75rem; transition: background .2s; }
.nav-contact:hover { background: #fff2f2; }
.site-header.is-compact { box-shadow: 0 3px 18px #0a1c2814; }
.site-header.is-compact .header-inner { min-height: 66px; padding-block: .55rem; }
.site-header.is-compact .brand-logo { width: min(285px, 68vw); }
.site-header.is-compact .brand-location { max-height: 0; margin-top: 0; opacity: 0; }
.site-header.is-compact .nav-contact { min-height: 44px; padding-block: .45rem; }

.hero { position: relative; isolation: isolate; overflow: hidden; background: #123344; color: var(--white); }
.hero-image { position: absolute; inset: 0; z-index: -2; height: 100%; object-fit: cover; object-position: center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071b2bf0 0%, #071b2bd9 25%, #071b2b85 50%, #071b2b00 78%), linear-gradient(0deg, #071b2b9e, transparent 30%); }
.hero-content { padding-top: clamp(3rem, 6vw, 5.5rem); padding-bottom: 3.5rem; }
.eyebrow { font-size: .8125rem; font-weight: 700; letter-spacing: .13em; display: flex; align-items: center; gap: .8rem; line-height: 1.6; }
.accent-line { display: inline-block; width: 2rem; height: 3px; background: #ef5754; flex: 0 0 auto; }
h1 { font-size: clamp(3rem, 5.5vw, 4.9rem); font-weight: 700; letter-spacing: -.05em; margin-block: 1.5rem; max-width: 14ch; line-height: 1.02; }
h1 span { color: #ffffff; }
.hero-description { font-size: 1.125rem; line-height: 1.65; color: #e1e9ee; max-width: 29rem; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.6rem; padding: 1.05rem 1.4rem; font-size: .9375rem; font-weight: 700; line-height: 1.5; text-decoration: none; transition: background .2s; }
.button > span { font-size: 1.4rem; font-weight: 400; line-height: 1; flex-shrink: 0; }
.button-red { color: var(--white); background: var(--red); }
.button-red:hover { background: var(--red-hover); }
.hero .button { margin-top: 2rem; }
.hero-bottom { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; padding-block: 1.4rem; border-top: 1px solid #ffffff42; }
.hero-bottom p { font-size: .75rem; font-weight: 600; letter-spacing: .1em; }
.hero-bottom a { display: grid; place-content: center; width: 44px; height: 44px; border: 1px solid #ffffff70; border-radius: 50%; text-decoration: none; font-size: 1.5rem; flex-shrink: 0; }
.hero-bottom a:hover { background: #ffffff18; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 25rem); gap: 3rem; align-items: center; }
.tracking-card { padding: 2rem; background: var(--white); color: var(--ink); border-top: 3px solid var(--red); box-shadow: 0 12px 40px #071b2b30; }
.tracking-card .section-label { font-size: .75rem; margin-bottom: .8rem; }
.tracking-card h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); letter-spacing: -.035em; }
.tracking-description { margin-top: 1rem; color: var(--muted); font-size: .9375rem; }
.tracking-form { display: grid; gap: .7rem; margin-top: 1.4rem; }
.tracking-form[hidden] { display: none; }
.tracking-form label { font-size: .875rem; font-weight: 700; }
.tracking-form textarea { width: 100%; min-width: 0; padding: .8rem; border: 1px solid #8798a3; border-radius: 0; background: var(--white); color: var(--ink); font: inherit; font-size: 1rem; line-height: 1.5; resize: vertical; }
.tracking-form textarea::placeholder { color: var(--muted); }
.tracking-form textarea[aria-invalid="true"] { border-color: var(--red); }
.tracking-help, .tracking-note { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.tracking-error { color: var(--red); font-size: .875rem; line-height: 1.5; }
.hero .tracking-form .button { width: 100%; margin-top: .4rem; border: 0; font-family: inherit; cursor: pointer; }
.tracking-note { margin-top: 1rem; }

.intro-strip { background: var(--light); border-bottom: 1px solid var(--line); }
.strip-inner { display: grid; grid-template-columns: repeat(3, 1fr); padding-block: 2rem; }
.strip-inner p { padding-inline: 2rem; border-left: 1px solid #cbd5dc; }
.strip-inner p:first-child { padding-left: 0; border: 0; }
.strip-inner strong { display: block; font-size: 1.45rem; line-height: 1.4; letter-spacing: -.03em; }
.strip-inner span { display: block; color: var(--muted); font-size: .875rem; margin-top: .3rem; }

.section { padding-block: 6rem; }
.section-label { color: var(--muted); margin-bottom: 1.35rem; }
.section-label > span { color: var(--red); }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 4rem; align-items: end; margin-bottom: 3.5rem; }
.section-intro { color: var(--muted); max-width: 28rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.service { position: relative; padding: 2.25rem 2rem 0; }
.service:first-child { padding-left: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service-number { display: block; font-size: 2rem; color: var(--red); font-weight: 400; letter-spacing: -.05em; line-height: 1; margin-bottom: 2rem; }
.service-tag { font-size: .75rem; color: var(--muted); font-weight: 700; letter-spacing: .09em; margin-bottom: .7rem; }
.service h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.25; margin-bottom: 1rem; }
.service > p:last-child { color: var(--muted); font-size: 1rem; }

.about-section { padding-block: 5.5rem; background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.about-image-wrap { position: relative; min-width: 0; }
.about-image-wrap img { aspect-ratio: 1.12; height: auto; object-fit: cover; }
.about-image-wrap figcaption { border-left: 3px solid var(--red); padding: .7rem 1rem; color: var(--muted); font-size: .8125rem; margin-top: .8rem; line-height: 1.5; }
.about-copy h2 { margin-bottom: 1.6rem; font-size: clamp(2rem, 3vw, 2.7rem); }
.about-copy > p:not(.eyebrow) { color: var(--muted); margin-top: 1rem; }
.text-link { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .55rem; margin-top: 1.7rem; padding-block: .45rem; text-decoration: none; font-size: .9375rem; font-weight: 700; }
.text-link:hover { text-decoration: underline; }
.text-link > span:last-child { font-size: 1.4rem; margin-left: .45rem; }
.text-link .link-language { font-size: .8125rem; color: var(--muted); font-weight: 400; }

.contact-section { background: var(--navy); color: var(--white); padding-block: 5.5rem; }
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 5rem; align-items: center; }
.contact-section .section-label { color: #bac9d3; }
.contact-section .section-label > span { color: #ff7975; }
.contact-copy h2 { margin-bottom: 1.5rem; }
.contact-copy > p:last-child { color: #c4d0d8; max-width: 28rem; }
.contact-details { border-left: 1px solid #ffffff30; padding-left: 3.5rem; min-width: 0; }
.contact-office { font-size: 1.4rem; font-weight: 700; letter-spacing: -.025em; }
.contact-office span { color: #bdccd6; font-weight: 400; margin-left: .35rem; }
.contact-company { color: #bdccd6; font-size: .875rem; margin-top: .25rem; }
.contact-phone { display: inline-block; color: var(--white); font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; text-decoration: none; border-bottom: 2px solid #ef5754; padding-block: .25rem; }
.contact-phone:hover { border-bottom-color: white; }
.contact-global { margin-top: 1.4rem; }
address { font-style: normal; color: #e2e9ee; margin-block: 1.1rem 1.8rem; }
.contact-details .button { font-size: .875rem; }
.contact-note { color: #aebfc9; font-size: .8125rem; margin-top: .8rem; }
.site-footer { background: var(--navy-deep); color: #b5c4ce; font-size: .8125rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem 2rem; padding-block: 1.8rem; }
.footer-brand { font-weight: 700; font-size: 1rem; color: var(--white); letter-spacing: -.025em; }
.footer-brand .footer-location { margin-left: .65rem; font-size: .75rem; color: #b5c4ce; font-weight: 400; letter-spacing: .08em; }
.footer-inner > a { min-height: 44px; display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.footer-inner > a:hover { text-decoration: underline; }
.footer-copyright a { font-weight: 700; }

/* Strona błędu 404 — wspólna identyfikacja. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.error-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.error-main { flex: 1; display: flex; align-items: center; }
.error-content { padding-block: clamp(3rem, 6vw, 5rem); }
.error-code { font-size: clamp(6rem, 14vw, 11rem); font-weight: 700; letter-spacing: -.06em; line-height: 1; color: #ffffff; margin-left: -.045em; }
.error-main .error-title { font-size: clamp(2rem, 4.5vw, 3.5rem); line-height: 1.12; max-width: 20ch; margin-block: 1.25rem; }
.error-main .hero-description { max-width: 29rem; }
.error-main .button { margin-top: 2rem; }
.error-page .main-nav { width: auto; }

@media (min-width: 1600px) {
  .hero-content { padding-top: 6rem; padding-bottom: 5rem; }
}
@media (max-width: 1000px) {
  .container { width: calc(100% - 4rem); }
  .header-inner { gap: 1.5rem; }
  .brand-logo { width: 300px; }
  .main-nav { gap: 1.5rem; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: 2rem; }
  .tracking-card { padding: 1.5rem; }
  .hero::before { background: linear-gradient(90deg, #071b2bf0, #071b2bb8 43%, #071b2b30 100%), linear-gradient(0deg, #071b2b85, transparent 30%); }
  .section { padding-block: 4.5rem; }
  .section-heading { gap: 2rem; }
  .service { padding-inline: 1.5rem; }
  .about-section, .contact-section { padding-block: 4rem; }
  .about-grid, .contact-grid { gap: 2.5rem; }
  .contact-details { padding-left: 2rem; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 2.5rem); }
  .header-inner { min-height: 0; gap: 1rem; flex-wrap: wrap; }
  .brand-logo { width: min(310px, 76vw); }
  .brand-location { font-size: .75rem; letter-spacing: .065em; }
  .main-nav { gap: 1.3rem; flex-wrap: wrap; font-size: .875rem; }
  .main-nav .nav-contact { padding: .6rem .8rem; gap: .85rem; }
  .hero-image { object-position: 62% center; }
  .hero-content { padding-top: 3rem; padding-bottom: 3rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .tracking-card { width: 100%; max-width: 28rem; }
  .hero::before { background: linear-gradient(90deg, #071b2bec, #071b2bb0 60%, #071b2b50), linear-gradient(0deg, #071b2b80, transparent 40%); }
  h1 { font-size: clamp(2.8rem, 8.8vw, 4rem); margin-top: 1.3rem; }
  .hero-description { font-size: 1rem; }
  .hero .eyebrow { font-size: .75rem; letter-spacing: .09em; }
  .hero-bottom { padding-block: 1rem; }
  .hero-bottom p { font-size: .75rem; letter-spacing: .04em; max-width: 25ch; }
  .strip-inner { padding-block: 1.5rem; }
  .strip-inner p { padding-inline: .8rem; }
  .strip-inner strong { font-size: 1.125rem; }
  .strip-inner span { font-size: .8125rem; line-height: 1.5; }
  .section { padding-block: 3.5rem; }
  .section-heading { grid-template-columns: 1fr; gap: 1.5rem; margin-bottom: 2.3rem; }
  .section-intro { max-width: 38rem; }
  .service-grid { grid-template-columns: 1fr; }
  .service, .service:first-child { padding: 1.8rem 0; display: grid; grid-template-columns: 3.5rem 1fr; column-gap: .65rem; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .service:last-child { padding-bottom: 0; }
  .service-number { grid-column: 1; grid-row: 1 / 4; margin: 0; padding-top: .2rem; }
  .service-tag, .service h3, .service > p:last-child { grid-column: 2; }
  .service-tag { margin-bottom: .4rem; }
  .service h3 { margin-bottom: .6rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-image-wrap img { aspect-ratio: 1.5; }
  .about-copy { grid-row: 1; }
  .contact-details { padding: 2rem 0 0; border-left: 0; border-top: 1px solid #ffffff30; }
  .contact-copy h2 { font-size: clamp(1.9rem, 7vw, 3rem); }
  .footer-inner { align-items: flex-start; column-gap: 1.5rem; }
  .footer-inner > p:nth-child(2) { order: 3; width: 100%; }
}
@media (max-width: 440px) {
  .header-inner { justify-content: center; padding-block: 1.1rem .6rem; gap: .5rem; }
  .brand { align-items: center; }
  .main-nav { justify-content: space-between; width: 100%; gap: .5rem; }
  .main-nav .nav-contact { border: 0; padding-right: 0; }
  .hero-content { padding-top: 2.5rem; }
  .hero .button { gap: 1rem; padding: 1rem; width: 100%; font-size: .875rem; }
  .strip-inner { grid-template-columns: 1fr; padding-block: .5rem; }
  .strip-inner p, .strip-inner p:first-child { border-left: 0; padding: .8rem 0; display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
  .strip-inner p + p { border-top: 1px solid var(--line); }
  .strip-inner span { margin: 0; text-align: right; max-width: 15rem; }
  .contact-details .button { width: 100%; padding-inline: 1rem; gap: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  body { color: #000; background: #fff; }
  .container { width: 100%; }
  .main-nav, .hero-image, .hero-bottom, .skip-link, .button, .tracking-card, .footer-inner > a { display: none; }
  .hero-grid { display: block; }
  .site-header, .hero, .contact-section, .site-footer { background: white; color: black; }
  .site-header { position: static; box-shadow: none !important; }
  .hero::before { display: none; }
  .hero-content, .section, .about-section, .contact-section { padding-block: 1.5rem; }
  .hero-description, .contact-copy > p:last-child, address, .contact-office span, .contact-note, .contact-company, .contact-phone { color: #333; }
  h1, h1 span { font-size: 2.5rem; color: black; }
  h2 { font-size: 1.8rem; }
  .about-image-wrap { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-details { border-color: #ccc; }
  .footer-brand, .footer-brand .footer-location { color: #333; }
  .error-page { min-height: 0; }
  .error-code { color: #000; }
  .error-content { padding-block: 1.5rem; }
  section, article, .contact-details { break-inside: avoid; }
}
