/*
 * ATEX LOGISTYKA - statyczna wizytowka.
 * Kolory, szerokosc i font mozna zmienic w :root.
 * Bez bibliotek, zewnetrznych fontow i cookies.
 * Ikona w podpisie studia jest obslugiwana przez zewnetrzny zasob JS.
 */
:root {
  --background: #f6f5f1;
  --ink: #202520;
  --muted: #63695f;
  --green: #526358;
  --green-hover: #3e4f43;
  --line: #d9ddd4;
  --pale: #e3e8de;
  --content-width: 1200px;
  --header-height: 72px;
  --screen-height: 100vh;
  --footer-font-size: 0.6875rem;
  --gutter: clamp(22px, 5.6vw, 80px);
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --author-font: ui-monospace, "SFMono-Regular", "Cascadia Code", "Roboto Mono", Consolas, monospace;
  color-scheme: light;
}

/* Stabilny pierwszy ekran: svh nie zmienia sie przy chowaniu paska adresu.
 * Nie nadpisywac przez dvh: powodowal przeliczanie ukladu podczas scrolla.
 * Zmiana orientacji lub rzeczywistego rozmiaru okna nadal zmienia uklad.
 * 100vh w :root pozostaje wariantem zapasowym dla starszych przegladarek. */
@supports (height: 100svh) {
  :root { --screen-height: 100svh; }
}

/* Podstawy */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* Jedno odsuniecie o menu. Sekcje maja juz wlasny padding.
   * Dodatkowe 20px zostawialo pod menu urwany tekst poprzedniej sekcji. */
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
/* Clip nie tworzy przodka przewijania, ktory unieruchomilby sticky.
 * W starszych przegladarkach overflow-x: hidden zostaje tylko na html. */
@supports (overflow: clip) {
  html, body { overflow-x: clip; }
}
body {
  max-width: 100%;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}
body { margin: 0; background: var(--background); color: var(--ink); font-family: var(--font); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: var(--green); color: var(--background); }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--green); outline-offset: 6px; }
main:focus, section:focus { outline: none; }
img, svg { display: block; max-width: 100%; }
p, h1, h2, h3, dl, dd { margin: 0; }
address { font-style: normal; }
.container { width: min(var(--content-width), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.accent { color: var(--green); }
.eyebrow, .section-label { font-size: 0.6875rem; font-weight: 500; line-height: 1.5; letter-spacing: .13em; text-transform: uppercase; }
.status-dot { width: 6px; height: 6px; flex: 0 0 6px; background: var(--green); border-radius: 50%; }
.skip-link { position: fixed; top: -100px; left: 24px; z-index: 200; padding: 12px 20px; color: var(--background); background: var(--ink); }
.skip-link:focus { top: 12px; }

/* Naglowek na pelnej szerokosci, przypiety na calej stronie.
 * Wewnetrzny kontener zachowuje dotychczasowe proporcje na komputerze. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--background);
}

/* Osobny naglowek mobilny. Na desktopie nie uczestniczy w ukladzie. */
.mobile-header { display: none; }
.header-inner { min-height: var(--header-height); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--line); }
.brand { display: block; flex: 0 0 auto; padding-block: 8px; }
.brand img { width: 120px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 0.75rem; }
.main-nav a { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 14px; border: 1px solid var(--line); transition: color .18s ease, background .18s ease, border-color .18s ease; }
.main-nav a:hover { color: var(--green); border-color: var(--green); }
.main-nav .nav-contact { gap: 8px; border-color: var(--green); background: var(--green); color: var(--background); }
.main-nav .nav-contact:hover { border-color: var(--green-hover); background: var(--green-hover); color: var(--background); }


/* Strzalki wektorowe: bez glifow fontu i automatycznej zamiany na emoji. */
.arrow-icon { display: block; flex: 0 0 auto; width: 1.125rem; height: 1.125rem; }

/* Pierwszy ekran. Minimum zamiast sztywnej wysokosci: przy zoomie tekst
 * moze wydluzyc sekcje, ale nie zostanie uciety ani nalozony na kolejna. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--screen-height) - var(--header-height));
  /* Duza dekoracja konczy sie na krawedzi sekcji, nie poszerza dokumentu. */
  overflow: hidden;
  overflow: clip;
}
.hero-grid {
  position: relative;
  display: grid;
  flex: 1 0 auto;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  align-items: center;
  gap: 36px;
  padding: clamp(24px, calc(var(--screen-height) * .065), 76px) 0;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.group-label { display: flex; align-items: center; gap: 10px; color: var(--green); font-size: 0.625rem; letter-spacing: .125em; }
h1 { margin-top: 30px; font-size: clamp(60px, 7.3vw, 104px); line-height: .98; letter-spacing: -.064em; font-weight: 700; }
.hero-subtitle { margin-top: 27px; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.35; letter-spacing: -.025em; color: var(--green); }
.hero-description { max-width: 425px; margin-top: 18px; color: var(--muted); font-size: 1rem; line-height: 1.75; }
.button { max-width: 100%; display: inline-flex; align-items: center; justify-content: space-between; gap: 27px; min-height: 55px; margin-top: 32px; padding: 13px 20px 13px 23px; background: var(--green); color: var(--background); font-size: 0.8125rem; transition: background .18s ease; }
.button:hover { background: var(--green-hover); }
.button-arrow { width: 1.25rem; height: 1.25rem; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; align-self: center; padding-top: 17px; }
.art-topline { display: flex; justify-content: space-between; margin: 0 30px 8px; font-size: 0.5625rem; letter-spacing: .16em; color: var(--muted); }
.network { width: 100%; height: auto; max-height: clamp(220px, calc(var(--screen-height) - 285px), 490px); }
.art-grid { stroke: #e4e6df; }
.art-disc { fill: var(--pale); }
.art-orbit { stroke: #dce1d7; }
.art-cross { stroke: #b5bdae; }
.art-route { stroke: var(--green); }
.art-route-secondary { stroke: #899682; }
.art-point { fill: var(--green); }
.art-point-ring { stroke: #a5b29d; }
.art-endpoint { fill: var(--background); stroke: var(--green); stroke-width: 1.4; }
.art-labels { font-family: var(--font); font-size: 0.5625rem; letter-spacing: 1.4px; fill: var(--green); }
.art-caption { display: flex; align-items: center; justify-content: flex-end; padding-right: 29px; margin-top: -5px; font-family: var(--font); font-size: 0.5625rem; font-weight: 700; line-height: 1.5; letter-spacing: .16em; color: var(--muted); }

/* Wspolny uklad sekcji */
.section-grid { display: grid; grid-template-columns: 24% minmax(0, 1fr); column-gap: 36px; }
.section-label { display: block; padding-top: 8px; color: var(--green); font-size: 0.625rem; }
h2 { overflow-wrap: anywhere; font-size: clamp(32px, 3.55vw, 49px); font-weight: 500; line-height: 1.13; letter-spacing: -.044em; }
.section-intro { max-width: 575px; margin-top: 25px; font-size: 1rem; line-height: 1.8; color: var(--muted); }

/* Dzialalnosc: otwarte wiersze, bez kafelkow */
.activity { border-top: 1px solid var(--line); padding-top: 72px; padding-bottom: 60px; }
.service-list { margin-top: 40px; }
.service-row { display: grid; grid-template-columns: 45% minmax(0, 1fr); gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.service-row h3 { display: flex; align-items: flex-start; gap: 20px; font-size: 1.0625rem; line-height: 1.6; font-weight: 500; letter-spacing: -.015em; }
.service-symbol { width: 1.125rem; height: 1.125rem; margin-top: .27em; color: var(--green); }
.service-row p { max-width: 365px; color: var(--muted); font-size: 0.8125rem; line-height: 1.85; }

/* Grupa ATEX */
.group { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-top: 66px; padding-bottom: 66px; }
.group-content { display: grid; grid-template-columns: 45% minmax(0, 1fr); gap: 24px; }
.group h2 { font-size: clamp(32px, 3vw, 40px); }
.group-description { padding-top: 2px; color: var(--muted); font-size: 0.875rem; line-height: 1.85; }
.group-description p + p { margin-top: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 29px; min-height: 44px; margin-top: 20px; border-bottom: 1px solid var(--green); color: var(--ink); font-size: 0.75rem; }
.text-link:hover { color: var(--green); border-color: transparent; }

.group-dots { display: grid; grid-template-columns: repeat(2, 9px); gap: 5px; margin-top: 30px; }
.group-dots i { width: 9px; height: 9px; background: var(--green); border-radius: 50%; }
.group-dots i:nth-child(2) { grid-column: 1; grid-row: 2; }
.group-dots i:nth-child(3) { grid-column: 1; grid-row: 3; }
.group-dots i:nth-child(4) { grid-column: 2; grid-row: 3; }

/* Kontakt */
.contact { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 78px; padding-top: 72px; padding-bottom: 70px; }
.contact h2 { margin-top: 29px; font-size: clamp(37px, 4vw, 56px); }
.contact-heading > p:not(.section-label) { margin-top: 25px; color: var(--muted); font-size: 0.875rem; line-height: 1.85; }
.contact-scope { display: flex; align-items: center; gap: 9px; margin-top: 36px; color: var(--green); font-size: 0.6875rem; }
.contact-details { padding-top: 6px; min-width: 0; }
.contact-row { padding: 22px 0 21px; border-bottom: 1px solid var(--line); }
.contact-row:first-child { padding-top: 0; }
.contact-row .eyebrow { display: block; margin-bottom: 10px; color: var(--muted); font-size: 0.5625rem; }
.contact-value { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-size: clamp(20px, 2vw, 28px); line-height: 1.4; letter-spacing: -.02em; }
a.contact-value:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
a.contact-value { min-height: 44px; }
.address-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
.address-row .eyebrow { grid-column: 1 / -1; }
.address-row address { overflow-wrap: anywhere; font-size: 0.9375rem; line-height: 1.7; }
.map-link { display: inline-flex; align-items: center; align-self: end; gap: 17px; min-height: 44px; border-bottom: 1px solid var(--green); font-size: 0.6875rem; }
.map-link:hover { color: var(--green); border-color: transparent; }
.map-link .arrow-icon { width: 1rem; height: 1rem; }

/* Stopka. .author-credit nie dziedziczy fontu strony. */
.site-footer { display: grid; grid-template-columns: 1.12fr 1fr auto; column-gap: 40px; row-gap: 30px; padding-top: 33px; border-top: 1px solid var(--line); }
.footer-company { display: flex; align-items: center; gap: 27px; }
.footer-company img { width: 107px; height: auto; flex: 0 0 auto; }
.footer-company p { color: var(--muted); font-size: 0.625rem; line-height: 1.7; }
.registration { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 27px; }
.registration div { display: grid; gap: 3px; }
.registration dt { font-size: 0.5rem; letter-spacing: .1em; color: var(--muted); }
.registration dd { font-size: 0.625rem; letter-spacing: .02em; }
.back-to-top { display: flex; width: 44px; height: 44px; align-items: center; justify-content: center; align-self: center; border: 1px solid var(--line); font-size: 1.25rem; }
.back-to-top:hover { background: var(--pale); }
.footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px 24px;
  padding: 12px 0 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--footer-font-size);
  line-height: 1.5;
}
.footer-meta { display: flex; flex-wrap: wrap; min-width: 0; align-items: center; gap: 4px 24px; }
.footer-meta p, .footer-group-link { font-size: inherit; }
.footer-copyright { display: inline-flex; align-items: center; gap: .34em; white-space: nowrap; }
.footer-group-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; }
.footer-group-link:hover { color: var(--ink); }
.footer-group-link .arrow-icon { width: .8125rem; height: .8125rem; }

/* Podpis studia: osobny font i akcent, jak w zalaczonym wzorze go-tools. */
.author-credit {
  --credit-accent: #176c4d;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
  justify-self: end;
  color: var(--muted);
  font-family: var(--author-font);
  font-size: inherit;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-decoration: none;
  text-transform: none;
  transition: color 180ms ease;
}
.studio-credit-copy { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.studio-credit-prefix { display: block; margin-bottom: .35em; line-height: 1.2; }
.studio-credit-line { display: inline-flex; align-items: center; justify-content: flex-end; gap: .28em; max-width: 100%; line-height: 1.2; white-space: nowrap; }
.studio-credit-name,
.studio-credit-signoff { display: inline-block; line-height: 1.2; }
.author-credit:hover,
.author-credit:focus-visible { color: var(--credit-accent); }
.author-credit:focus-visible { outline-color: var(--credit-accent); }
.studio-credit-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.35em;
  height: 1.35em;
  color: var(--credit-accent);
  line-height: 1;
}
.studio-credit-icon > * {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.studio-credit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Tablety i mniejsze laptopy */
@media (max-width: 1050px) {

  .hero-grid { gap: 16px; padding-block: clamp(24px, calc(var(--screen-height) * .055), 60px); }
  h1 { font-size: clamp(61px, 7.6vw, 80px); }
  .hero-description { font-size: 0.875rem; }
  .group-label { font-size: 0.5rem; letter-spacing: .09em; }
  .hero-art { padding-top: 10px; }
  .art-topline { margin-inline: 15px; font-size: 0.4375rem; }
  .art-caption { font-size: 0.4375rem; padding-right: 15px; }
  .section-grid { grid-template-columns: 20% minmax(0, 1fr); gap: 24px; }
  .section-label { font-size: 0.5625rem; gap: 10px; }
  .group-content { grid-template-columns: 43% minmax(0, 1fr); }
  .group h2 { font-size: 2.125rem; }
  .contact { gap: 48px; }
  .site-footer { column-gap: 22px; }
  .footer-company { gap: 16px; }
  .registration { gap: 18px; }
}

/* Telefony: osobny, stabilny naglowek bez natywnej nawigacji kotwic. */
@media (max-width: 760px) {
  :root { --gutter: 24px; --header-height: 64px; --footer-font-size: 0.625rem; }

  /* Smooth scroll na telefonie realizuje JS tylko w osi Y.
   * Wylaczamy natywne przewijanie kotwic, zeby przegladarka nie zmieniala
   * pozycji naglowka ani nie wykonywala dodatkowego skoku po animacji. */
  html {
    scroll-behavior: auto;
    scroll-padding-top: var(--header-height);
  }

  body {
    padding-top: var(--header-height);
    overscroll-behavior-x: none;
  }

  /* Desktopowy header jest calkowicie odlaczony na telefonie. */
  .site-header { display: none; }

  .mobile-header {
    display: block;
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1000;
    width: 100%;
    height: var(--header-height);
    background: var(--background);
    border-bottom: 1px solid var(--line);
    contain: layout paint;
    isolation: isolate;
  }

  .mobile-header-inner {
    width: 100%;
    height: 100%;
    padding-inline: var(--gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .mobile-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    height: 100%;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .mobile-brand img {
    display: block;
    width: 104px;
    height: auto;
  }

  .mobile-nav {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    font-size: 0.75rem;
  }

  .mobile-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding-inline: 10px;
    white-space: nowrap;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    transition: none;
    transform: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    user-select: none;
    -webkit-user-select: none;
  }

  .mobile-nav .mobile-nav-contact {
    border-color: var(--green);
    background: var(--green);
    color: var(--background);
  }

  /* Na dotyku nie ma hover/active, ktore potrafily mignac podczas tapniecia. */
  .mobile-nav a:hover,
  .mobile-nav a:active {
    transform: none;
    filter: none;
    opacity: 1;
  }
  .mobile-nav a:not(.mobile-nav-contact):hover,
  .mobile-nav a:not(.mobile-nav-contact):active {
    border-color: var(--line);
    background: transparent;
    color: var(--ink);
  }
  .mobile-nav .mobile-nav-contact:hover,
  .mobile-nav .mobile-nav-contact:active {
    border-color: var(--green);
    background: var(--green);
    color: var(--background);
  }
  .mobile-nav a:focus:not(:focus-visible),
  .mobile-brand:focus:not(:focus-visible) { outline: none; }

  /* Na telefonie pierwszy ekran nie zalezy od zmiennej wysokosci viewportu.
   * Mobilne paski przegladarki nie powoduja dzieki temu przeskoku/tla przy scrollu. */
  .hero { min-height: 0; }
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    align-content: center;
    gap: 0;
    padding-top: clamp(28px, 8vw, 52px);
    padding-bottom: clamp(118px, 30vw, 178px);
  }
  /* Na telefonie znak jest duzym, osobnym tlem pod tekstem.
   * Jego rozmiar nie zalezy od wolnego miejsca pod przyciskiem. */
  .hero-art {
    position: absolute;
    right: calc(-1 * var(--gutter) - 64px);
    bottom: 12px;
    z-index: 0;
    width: clamp(330px, 110vw, 560px);
    max-width: none;
    padding: 0;
    opacity: .95;
    pointer-events: none;
    user-select: none;
    -webkit-mask-image: linear-gradient(135deg, transparent 9%, rgba(0, 0, 0, .25) 35%, #000 68%);
    mask-image: linear-gradient(135deg, transparent 9%, rgba(0, 0, 0, .25) 35%, #000 68%);
  }
  .hero-art .art-topline, .hero-art .art-caption, .hero-art .art-labels { display: none; }
  .hero, .hero-grid, .hero-copy, .hero-art, .hero-art * {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  .network { height: auto; max-height: none; }
  .group-label { font-size: 0.5625rem; letter-spacing: .09em; }
  /* Rozmiary liter zaleza od szerokosci, nie od wysokosci paska adresu. */
  h1 { margin-top: 22px; font-size: clamp(60px, 12.4vw, 91px); }
  .hero-subtitle { margin-top: 18px; font-size: 1.5rem; }
  .hero-description { max-width: 440px; margin-top: 14px; font-size: 0.9375rem; }
  .button { margin-top: 24px; min-height: 50px; }
  .art-topline { font-size: 0.5rem; margin-inline: 21px; }
  .art-caption { font-size: 0.5rem; padding-right: 24px; }
  .section-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .section-label { padding-top: 0; font-size: 0.625rem; gap: 15px; }
  h2 { font-size: clamp(34px, 6.8vw, 44px); }
  .activity { padding-top: 53px; padding-bottom: 40px; }
  .section-intro { margin-top: 21px; font-size: 0.9375rem; }
  .service-list { margin-top: 31px; }
  .service-row { grid-template-columns: minmax(0, 1fr); gap: 11px; padding-block: 22px; }
  .service-row h3 { gap: 14px; font-size: 1.125rem; }
  .service-row p { max-width: 500px; margin-left: 32px; font-size: 0.875rem; }
  .group { padding-top: 44px; padding-bottom: 47px; }
  .group-content { grid-template-columns: minmax(0, 1fr); gap: 25px; }
  .group h2 { font-size: 2.375rem; }
  .group-dots { display: none; }
  .group-description { max-width: 500px; font-size: 0.9375rem; }
  .text-link { margin-top: 17px; font-size: 0.8125rem; }
  .contact { grid-template-columns: minmax(0, 1fr); gap: 38px; padding-top: 52px; padding-bottom: 50px; }
  .contact h2 { margin-top: 26px; font-size: clamp(38px, 8vw, 50px); }
  .contact-heading > p:not(.section-label) { margin-top: 21px; font-size: 0.9375rem; }
  .contact-scope { margin-top: 23px; }
  .contact-value { font-size: 1.625rem; }
  .contact-details { padding-top: 0; }
  .site-footer { grid-template-columns: minmax(0, 1fr) auto; row-gap: 26px; padding-top: 28px; }
  .footer-company { gap: 22px; }
  .footer-company p { font-size: 0.5625rem; }
  .registration { grid-row: 2; grid-column: 1 / -1; justify-content: flex-start; gap: 30px; }
  .back-to-top { grid-column: 2; grid-row: 1; }
  .footer-bottom {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    gap: 2px 16px;
    padding-top: 14px;
  }
  .footer-meta { display: contents; }
  .footer-meta p { grid-column: 1; grid-row: 1; min-height: 22px; display: flex; align-items: center; }
  .footer-copyright { gap: .34em; }
  .footer-group-link { grid-column: 1; grid-row: 2; min-height: 24px; gap: 6px; }
  .author-credit { grid-column: 1 / -1; grid-row: 3; justify-self: end; align-self: center; align-items: center; gap: 6px; }
  .studio-credit-icon { align-self: center; }
}

@media (max-width: 380px) {
  :root { --gutter: 20px; }
  .mobile-brand img { width: 98px; }
  .mobile-nav { gap: 6px; font-size: 0.6875rem; }
  .mobile-nav a { min-height: 34px; padding-inline: 8px; }
  .group-label { font-size: 0.5rem; letter-spacing: .065em; }
  h1 { font-size: min(3.5rem, 17.5vw); }
  .hero-subtitle { font-size: 1.375rem; }
  .hero-description { font-size: 0.875rem; }
  .button { padding-inline: 17px; gap: 22px; font-size: 0.75rem; }
  .art-topline { font-size: 0.4375rem; }
  .art-caption { font-size: 0.4375rem; padding-right: 16px; }
  h2 { font-size: 2rem; }
  .contact h2 { font-size: 2.3125rem; }
  .footer-company { align-items: flex-start; flex-direction: column; gap: 11px; }
  .address-row { grid-template-columns: minmax(0, 1fr); }
  .map-link { justify-self: start; margin-top: 7px; }
  .registration { gap: 23px; }
}

/* Niskie okna laptopow: mniej odstepow, bez wymuszania wysokosci. */
@media (min-width: 761px) and (max-height: 800px) and (hover: hover) and (pointer: fine) {
  .hero-grid { padding-block: 24px; }
  h1 { font-size: clamp(52px, min(7.3vw, calc(var(--screen-height) * .128)), 96px); }
  .hero-subtitle { margin-top: 22px; }
  .hero-description { margin-top: 16px; }
  .button { margin-top: 24px; }
}

@media (min-width: 761px) and (max-height: 640px) and (hover: hover) and (pointer: fine) {
  .hero-grid { padding-block: 18px; }
  h1 { margin-top: 22px; font-size: clamp(48px, min(6.8vw, calc(var(--screen-height) * .11)), 76px); }
  .hero-subtitle { margin-top: 16px; font-size: 1.375rem; }
  .hero-description { margin-top: 14px; font-size: .9375rem; line-height: 1.6; }
  .button { min-height: 48px; margin-top: 18px; }
}

/* Telefon poziomo lub bardzo niskie okno: tekst w dwoch kolumnach,
 * zamiast pomniejszania calej strony albo ukrywania tresci. */
/* Na telefonie wybor ukladu zalezy od orientacji i szerokosci, nie
 * od zmiennej wysokosci okna. Na komputerze zostaje wariant niskiego okna. */
@media (orientation: landscape) and (max-width: 960px) and (pointer: coarse),
       (orientation: landscape) and (max-height: 540px) and (hover: hover) and (pointer: fine) {
  :root { --header-height: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); padding-block: 12px; gap: 0; }
  .hero-art { display: none; }
  .hero-copy { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 8px 24px; }
  .group-label { grid-column: 1 / -1; font-size: .5rem; }
  h1 { grid-column: 1; grid-row: 2 / 5; align-self: center; margin: 0; font-size: clamp(36px, 6vw, 56px); }
  .hero-subtitle { grid-column: 2; grid-row: 2; margin: 0; font-size: 1.0625rem; }
  .hero-description { grid-column: 2; grid-row: 3; max-width: 560px; margin: 0; font-size: .8125rem; line-height: 1.5; }
  .button { grid-column: 2; grid-row: 4; justify-self: start; min-height: 44px; margin: 0; padding: 8px 12px; gap: 16px; font-size: .75rem; }
}

/* Preferencje uzytkownika i wydruk */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --background: #fff; --ink: #000; --muted: #444; --gutter: 0px; }
  body { font-size: 11pt; }
  .container { width: 100%; max-width: none; }
  .main-nav, .hero-art, .button, .skip-link, .back-to-top, .map-link { display: none; }
  .site-header { position: static; }
  .header-inner { min-height: 75px; }
  .hero { display: block; min-height: 0; overflow: visible; }
  .hero-grid, .section-grid, .contact, .group-content { display: block; }
  .hero-grid, .activity, .group, .contact { padding-block: 22px; }
  h1 { font-size: 43pt; }
  h2, .group h2, .contact h2 { font-size: 24pt; }
  .section-label { margin-bottom: 12px; }
  .hero-description, .section-intro { max-width: none; }
  .service-list { margin-top: 20px; }
  .service-row { padding-block: 14px; }
  .group-description, .contact-details { margin-top: 20px; }
  .service-row, .contact-row, .site-footer { break-inside: avoid; }
}
