@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Roboto+Condensed:wght@400;700&family=Roboto:ital,wght@0,300;0,400;0,700;1,700&display=swap');

/* ========================================
   KOLORY I WSPÓLNE WYMIARY STRONY
   Zmieniaj tu główne barwy oraz maksymalną
   szerokość zawartości na dużych ekranach.
   ======================================== */
:root {
  --ink: #021421;
  --surface: #242c39;
  --paper: #f7f7f6;
  --text: #f4f5f5;
  --muted: #c3c8cd;
  --red: #ff0000;
  --line: rgba(226, 231, 234, .55);
  --container: 1210px;
}

/* Formularz kontaktowy: pole antyspamowe i komunikaty wysyłki */
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.form-message.error {
  color: #ff6b6b;
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .65;
}

/* Podstawowe ustawienia wszystkich podstron. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
html, body { background-color: var(--ink); }
body { margin: 0; background: var(--ink); color: var(--text); font-family: 'Roboto', Arial, sans-serif; font-size: 16px; line-height: 1.4; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

/* ========================================
   NAGŁÓWEK I MENU
   .nav - biały, zaokrąglony pasek u góry.
   .nav-links - odstępy i wielkość pozycji menu.
   ======================================== */
.container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.site-header { padding: 54px 18px 0; position: sticky; top: 0; z-index: 100; }
/* Ciemny pas za pływającą nawigacją: wypełnia przestrzeń nad belką
   i miękko przechodzi w przezroczystość tuż pod nią. */
.site-header::before { background: linear-gradient(to bottom, rgba(2, 20, 33, .97) 0%, rgba(2, 20, 33, .94) 63%, rgba(2, 20, 33, 0) 100%); content: ""; height: calc(100% + 76px); left: 0; pointer-events: none; position: absolute; right: 0; top: 0; z-index: 0; }
/* Na stronie głównej nagłówek nakłada się na hero jak w projekcie,
   a jednocześnie pozostaje widoczny podczas przewijania. */
.home-page .site-header { left: auto; margin-bottom: -137px; position: sticky; right: auto; top: 0; }
.nav { align-items: center; background: #fff !important; border-radius: 41px; box-shadow: 0 8px 18px rgba(2, 20, 33, .32); color: #101923 !important; display: flex; min-height: 83px; padding: 10px 66px; position: relative; z-index: 1; color-scheme: light; }
.brand { align-items: center; display: flex; gap: 24px; margin-right: auto; }
.brand > img { width: 130px; }
.language { align-items: center; color: #3c434a; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 15px; gap: 9px; letter-spacing: .16em; padding-left: 0; }
.language strong { color: var(--red); font-weight: 700; }
.language-option { cursor: pointer; text-decoration: none; transition: color .2s ease; }
.language-option:hover { color: var(--red); }
.language-option:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.language-separator { font-weight: 400; letter-spacing: 0; margin-inline: -3px; }
/* Ikona globu przy wyborze języka — 14 px zgodnie z plikiem projektowym. */
.language-icon { flex: 0 0 14px; height: 14px; width: 14px; }
/* Ten sam wybór języka jest pierwszym wierszem menu na tablecie i telefonie. */
.nav-language { align-items: center; color: #3c434a; display: none; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 15px; gap: 9px; justify-content: flex-end; letter-spacing: .16em; }
.nav-language strong { color: var(--red); font-weight: 700; }
.nav-links { display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 25px; gap: 48px; }
.nav-links a { transition: color .2s ease; }
.nav-links a:hover, .nav-links .active { color: var(--red); }
.menu-button { background: transparent; border: 0; cursor: pointer; display: none; height: 38px; padding: 6px; width: 40px; }
.menu-button span { background: #101923; display: block; height: 2px; margin: 5px 0; transition: .2s; width: 100%; }

/* ========================================
   HERO - PIERWSZY EKRAN STRONY GŁÓWNEJ
   min-height ustala wysokość hero na desktopie.
   .hero-content ustala miejsce nagłówka i przycisku.
   .hero-video to zapętlony film w tle.
   ======================================== */
.hero {
  align-items: flex-start;
  /* Tło widoczne pod filmem i gdy video nie odpali (np. iPhone Low Power Mode). */
  background-color: var(--ink);
  background-image: url('assets/img/hero-web.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  margin-top: -4px;
  min-height: 995px;
  overflow: hidden;
  position: relative;
}
.home-page .hero { margin-top: 0; }
/* Delikatne, jednolite przyciemnienie filmu poprawia czytelność tekstu. */
.hero::after {
  background: rgba(0, 0, 0, .50);
  content: '';
  inset: 0;
  position: absolute;
  z-index: 1;
}
/* Film wypełnia całą sekcję hero. Dzięki top + bottom nie zostawia czarnego paska pod sobą. */
.hero-video {
  background-color: var(--ink);
  bottom: 0;
  height: 100%;
  left: 0;
  object-fit: cover;
  object-position: center top;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
  /* Lekko powiększony kadr ucina czarny pas z końca materiału. */
  transform: scale(1.22);
  transform-origin: center top;
}
.hero-content { padding: 390px 0 78px; position: relative; z-index: 2; }
.hero h1 { font-family: 'Montserrat', Arial, sans-serif; font-size: 65px; font-weight: 700; letter-spacing: .01em; line-height: 1.04; margin: 0; max-width: 720px; text-transform: uppercase; }
.button { background: var(--red); border: 0; color: #fff; cursor: pointer; display: inline-flex; font-size: 12px; font-weight: 700; justify-content: center; letter-spacing: .02em; min-height: 34px; padding: 10px 24px; text-transform: uppercase; transition: filter .2s, transform .2s; }
.button:hover { filter: brightness(1.12); transform: translateY(-1px); }
/* Przyciski strony głównej: Roboto Condensed Bold 12 px, jak w zakładce „O nas”. */
.hero .button { align-items: center; border-radius: 0 0 0 14px; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; height: 32px; margin-top: 35px; min-height: 0; min-width: 197px; padding: 0; }
.hero .button:hover { background: var(--ink); color: #fff; filter: none; }

/* Na dużych ekranach treść hero wychodzi poza bezpieczny kontener, zgodnie z wizualizacją. */
@media (min-width: 781px) {
  .home-page .hero-content { margin-left: clamp(48px, 5.5vw, 105px); margin-right: 24px; width: auto; }
}

/* Wspólny odstęp sekcji i nagłówki z poziomą linią. */
.section { padding: 110px 0; }
.section.surface { background: var(--surface); }
.eyebrow { align-items: center; color: var(--red); display: flex; font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; gap: 16px; letter-spacing: .01em; line-height: 1; margin: 0 0 32px; text-transform: uppercase; }
.eyebrow::after { background: var(--line); content: ''; height: 1px; flex: 1; margin-top: 7px; }
.lead { color: var(--text); font-size: 34px; font-weight: 300; line-height: 1.14; margin: 0; max-width: 530px; }

/* ========================================
   STRONA GŁÓWNA: SEKCJA "O NAS"
   .about-grid - dwie kolumny z opisem i obrazami.
   .about-copy .lead - rozmiar tekstu opisu.
   top przy ostatnim obrazku wyrównuje go z lewym.
   ======================================== */
.home-page .section:first-of-type { padding: 110px 0; }
/* Osobna linia przy tytule "O nas" - jej margin-bottom ustala wysokość linii. */
.home-page .section:first-of-type .eyebrow::after { display: none; }
.about-title-line { align-self: flex-end; background: var(--line); flex: 1; height: 1px; margin-bottom: 7px; }
.about-grid { align-items: start; column-gap: 150px; display: grid; grid-template-areas: 'copy offer' 'contact secondary'; grid-template-columns: 530px 530px; row-gap: 45px; }
.about-copy { grid-area: copy; }
.about-offer { grid-area: offer; }
.about-contact { grid-area: contact; }
.about-secondary { grid-area: secondary; }
.image-link { border-bottom: 1px solid var(--line); display: block; overflow: hidden; }
.image-link img { aspect-ratio: 1.85; object-fit: cover; transition: none; width: 100%; }
/* Grafiki w sekcji "O nas" mają projektowe proporcje 530 × 200 px. */
.about-offer img, .about-contact img, .about-secondary img { aspect-ratio: 530 / 200; }
/* Po najechaniu zmieniamy tylko kolor przycisku. Skalowanie kadru
   odsłaniało jego fragment pod przyciskiem i rozstrajało kompozycję. */
.image-link:hover img { transform: none; }
.image-link span { color: var(--red); display: block; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 15px; letter-spacing: .04em; padding: 13px 20px 11px; text-transform: uppercase; }
.about-copy .lead { font-size: 24px; letter-spacing: normal; overflow-wrap: normal; text-align: left; text-wrap: pretty; word-break: normal; word-spacing: normal; }
.about-offer, .about-contact, .about-secondary { border-bottom: 0; }
.about-offer span, .about-contact span { border-bottom: 1px solid var(--line); border-bottom-left-radius: 14px; border-left: 1px solid var(--line); margin-top: 15px; padding-left: 22px; }
.icon-grid { display: grid; gap: 38px; grid-template-columns: repeat(4, 1fr); margin-top: 136px; text-align: center; }
.icon-grid img { height: 55px; margin: auto; object-fit: contain; width: 55px; }
.icon-grid p { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 15px; margin: 9px 0 0; }

/* ========================================
   STRONA GŁÓWNA: SEKCJA "OFERTA"
   .service-preview - układ tekstu i grafiki.
   .service-list gap - odstęp między trzema usługami.
   ======================================== */
.home-page .section.surface { padding: 110px 0; }
.home-page .section.surface .eyebrow::after { align-self: flex-end; margin: 0 0 2px; }
.service-list { display: grid; gap: 70px; }
.service-preview { align-items: start; display: grid; grid-template-columns: 581px 587px; justify-content: space-between; }
.service-preview p { font-family: 'Roboto', Arial, sans-serif; font-size: 24px; font-weight: 300; line-height: 1.14; margin: 0; max-width: 581px; }
.service-preview strong { color: #fff; }
.service-preview .image-link { align-self: center; border: 0; border-bottom-left-radius: 14px; position: relative; }
/* Grafiki oferty: docelowy wymiar projektu to 587 × 198 px. */
.service-preview .image-link img { aspect-ratio: 587 / 198; display: block; }
.service-preview .image-link span { align-items: center; background: var(--red); border-bottom-left-radius: 14px; bottom: 0; color: white; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; font-weight: 700; height: 32px; justify-content: center; left: 0; min-width: 0; padding: 0; position: absolute; text-align: center; width: 173px; }
/* Po najechaniu przycisk oferty przyjmuje granat tła sekcji „O nas”. */
.service-preview .image-link span { transition: background-color .2s ease; }
.service-preview .image-link:hover span { background: var(--ink); color: #fff; }

/* Strona główna: końcowa sekcja "O firmie Elektrin". */
.company-section .eyebrow::after { display: none; }
.company-title-line { align-self: flex-end; background: var(--line); flex: 1; height: 1px; margin-bottom: 7px; }
.company-teaser { align-items: end; column-gap: 60px; display: grid; grid-template-areas: 'copy photo' 'action action'; grid-template-columns: 1fr 1fr; row-gap: 0; }
.company-copy { align-self: center; grid-area: copy; }
.company-teaser .lead { font-size: 24px; max-width: 530px; }
.company-photo { grid-area: photo; }
.company-photo img { max-height: 470px; object-fit: contain; object-position: bottom; width: 100%; }
.company-action { align-items: flex-end; display: flex; gap: 14px; grid-area: action; }
.company-action .button { align-items: center; border-bottom-left-radius: 14px; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; font-weight: 700; height: 32px; justify-content: center; min-height: 0; padding: 0; text-align: center; width: 247px; }
.company-action .button:hover { background: var(--surface); color: #fff; filter: none; }
.company-action-line { align-self: flex-end; background: var(--line); flex: 1; height: 1px; }

/* Stopka widoczna na wszystkich podstronach. */
.site-footer {
  background: #fff !important;
  color: #101923 !important;
  padding: 24px 0;
  color-scheme: light;
}
.footer-inner { align-items: start; display: flex; font-size: 13px; justify-content: space-between; gap: 30px; }
.footer-inner p { margin: 0; }

/* ========================================
   PODSTRONA: USŁUGI (uslugi.html)
   ======================================== */
.page-intro { padding: 102px 0 46px; }
.page-intro h1 { color: var(--red); font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; margin: 0 0 20px; text-transform: uppercase; }
.page-intro h2, .service-block h2 { align-items: center; display: flex; font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; gap: 18px; line-height: 1.05; margin: 0 0 14px; text-transform: uppercase; }
.page-intro h2::before, .service-block h2::before { border: 1px solid var(--red); border-radius: 6px; color: var(--red); content: 'ϟ'; display: grid; font-size: 31px; height: 34px; line-height: 1; place-items: center; width: 34px; }
.page-intro p { color: var(--muted); margin: 0; max-width: 980px; }
.service-block { padding: 54px 0 0; }
.service-block + .service-block { margin-top: 52px; }
.service-block.surface-block { background: var(--surface); margin-top: 68px; padding: 54px 0; }
.wide-photo { margin: 26px 0 36px; max-height: 270px; object-fit: cover; width: 100%; }
.columns-3 { display: grid; gap: 42px; grid-template-columns: repeat(3, 1fr); }
.columns-3 h3 { font-size: 14px; font-style: italic; margin: 0 0 14px; text-transform: uppercase; }
.columns-3 h3::before, .check-list li::before { color: var(--red); content: '✓'; display: inline-grid; border: 1px solid var(--red); border-radius: 50%; height: 18px; margin-right: 8px; place-items: center; width: 18px; }
.columns-3 p { color: var(--muted); margin: 0; }
.engineering-grid { align-items: end; display: grid; gap: 52px; grid-template-columns: 1.25fr .75fr; }
.engineering-grid .wide-photo { grid-column: 1 / -1; margin-bottom: 0; }
.engineering-grid img { object-fit: cover; width: 100%; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { color: var(--muted); margin: 12px 0; }

/* WŁASNY UKŁAD PODSTRONY „USŁUGI” — zgodny z przekazaną wizualizacją. */
.services-page { background: var(--ink); }
.services-page .service-block { margin: 0; padding: 72px 0; }
.services-page .service-installations { padding-top: 102px; }
.services-page .service-akpia { background: var(--surface); }
.services-page-title { color: var(--red); font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1; margin: 0 0 24px; text-transform: uppercase; }
.services-page .service-block h2 { align-items: center; color: #fff; display: flex; font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; gap: 14px; line-height: 1.05; margin: 0 0 16px; text-transform: uppercase; }
.services-page .service-block h2::before { display: none; }
.service-heading-icon { flex: 0 0 28px; height: 28px; width: 28px; }
.service-lead { color: var(--muted); font-size: 21px; font-weight: 300; line-height: 1.22; margin: 0; max-width: none; }
.service-banner { aspect-ratio: 1245 / 251; display: block; margin: 28px 0 34px; object-fit: cover; width: 100%; }
.service-columns { display: grid; gap: 42px; grid-template-columns: repeat(3, 1fr); }
.service-columns h3 { align-items: flex-start; color: #fff; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 14px; font-style: italic; font-weight: 700; gap: 8px; line-height: 1.1; margin: 0 0 16px; text-transform: uppercase; }
.service-columns h3 img { flex: 0 0 18px; height: 18px; width: 18px; }
.service-columns p { color: var(--muted); font-size: 16px; font-weight: 300; line-height: 1.25; margin: 0; }
.engineering-layout { align-items: start; display: grid; gap: 70px; grid-template-columns: minmax(0, 659px) minmax(0, 1fr); }
.engineering-layout > img { aspect-ratio: 659 / 251; object-fit: cover; width: 100%; }
.engineering-layout h3 { color: #fff; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 16px; font-style: italic; margin: 4px 0 18px; text-transform: uppercase; }
.services-page .check-list li { align-items: flex-start; display: flex; font-size: 16px; font-weight: 300; gap: 10px; line-height: 1.25; margin: 12px 0; }
.services-page .check-list li::before { background: url('assets/img/uslugi/ikona%20ptaszek%20ok%2026px.svg') center / contain no-repeat; border: 0; content: ''; flex: 0 0 18px; height: 18px; margin: 0; width: 18px; }

/* ========================================
   PODSTRONA: O NAS (o-nas.html)
   ======================================== */
.about-page { padding: 108px 0 0; }
.about-intro { padding-bottom: 80px; }
.about-page .eyebrow { font-size: 40px; margin-bottom: 26px; }
/* Na podstronie „O nas” tytuł nie ma linii, a opis wykorzystuje całą szerokość kontenera. */
.about-page .eyebrow::after { display: none; }
.prose { color: var(--muted); font-family: 'Roboto', Arial, sans-serif; font-size: 21px; font-weight: 300; line-height: 1.22; max-width: none; }
.prose p { margin: 0 0 20px; }
.prose strong { color: #fff; font-weight: 700; }
/* Biały pas z logo certyfikatów i wyróżnień. */
.certificates { background: #fff !important; padding: 40px 0; color-scheme: light; }
.certificate-row { align-items: center; color: #1d2935; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.certificate { display: grid; flex: 1 1 137px; height: 100px; place-items: center; }
.certificate img { height: 100px; max-width: 137px; object-fit: contain; width: 100%; }
/* Trzy odnośniki bezpośrednio pod pasem certyfikatów. */
.certificate-actions { display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); margin-top: 28px; }
.certificate-action { align-items: center; background: var(--ink); border-bottom-left-radius: 14px; color: #fff; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 11px; font-weight: 700; height: 42px; justify-content: center; padding: 8px 16px; text-align: center; text-transform: uppercase; }
.certificate-action:hover { background: var(--red); }
/* Osadzone okno filmu YouTube oraz odnośnik do pełnego certyfikatu CWB. */
/* Górny odstęp przy filmie odpowiada odstępowi pod ostatnim zdaniem sekcji „O nas”. */
.about-video { padding: 100px 0 70px; }
.video-frame { aspect-ratio: 1237 / 698; background: #000; margin-inline: auto; max-width: 1237px; }
.video-frame iframe { border: 0; display: block; height: 100%; width: 100%; }
.business-certificate-link { align-items: center; background: var(--red); border-bottom-left-radius: 14px; color: #fff; display: flex; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; font-weight: 700; height: 32px; justify-content: center; margin-top: 42px; text-align: center; text-transform: uppercase; width: 392px; }
.business-certificate-link:hover { background: var(--surface); color: #fff; }
.business-certificate { display: block; margin-top: 14px; max-width: 100%; width: 392px; }
.business-certificate img { display: block; width: 100%; }

/* ========================================
   PODSTRONA: KONTAKT (kontakt.html)
   ======================================== */
.contact-page { padding: 92px 0 0; }
.contact-top { align-items: start; display: grid; gap: clamp(52px, 5.4vw, 68px); grid-template-columns: minmax(0, 574px) minmax(0, 592px); justify-content: space-between; }
.contact-page h1 { color: var(--red); font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: .98; margin: 0; text-transform: uppercase; }
.contact-page h1 span { color: #fff; display: block; }
.contact-intro > p { color: var(--muted); font-size: 21px; font-weight: 300; line-height: 1.2; margin: 22px 0 26px; max-width: 500px; }
.contact-intro em { color: #fff; font-size: inherit; font-style: italic; font-weight: 700; }
.form-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; }
.form-field { display: block; position: relative; }
.form-field > img { height: 15px; left: 14px; object-fit: contain; opacity: .82; pointer-events: none; position: absolute; top: 50%; transform: translateY(-50%); width: 15px; }
.form-grid input, .form-grid textarea { background: transparent; border: 1px solid #66717a; color: #fff; font-family: 'Roboto', Arial, sans-serif; font-size: 14px; font-weight: 300; outline: none; padding: 0 12px 0 39px; width: 100%; }
.form-grid input { height: 40px; }
.form-grid input::placeholder, .form-grid textarea::placeholder { color: #aab1b6; opacity: 1; }
.form-grid input:focus, .form-grid textarea:focus { border-color: var(--red); }
.form-field-message { grid-column: 1 / -1; }
.form-field-message > img { top: 13px; transform: none; }
.form-grid textarea { min-height: 149px; padding-bottom: 12px; padding-top: 12px; resize: vertical; }
.consent { align-items: flex-start; color: #aab1b6; display: flex; font-size: 11px; gap: 10px; line-height: 1.15; margin: 13px 0 18px; max-width: 430px; }
.consent strong { color: var(--red); }
.consent input { accent-color: var(--red); height: 15px; margin: 0; width: 15px; }
.contact-submit { align-items: center; border-bottom-left-radius: 14px; font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; font-weight: 700; height: 32px; justify-content: center; min-height: 0; padding: 0; width: 248px; }
.contact-submit span { font-size: 19px; line-height: 1; margin-right: 12px; }
.contact-submit:hover { background: var(--surface); color: #fff; filter: none; }
.contact-card { border: 1px solid #63707a; min-height: 0; padding: 34px 30px; }
.contact-card h2 { color: var(--red); font-family: 'Montserrat', Arial, sans-serif; font-size: 21px; font-weight: 700; line-height: 1.1; margin: 0 0 30px; text-transform: uppercase; }
.contact-details { display: grid; gap: 0 19px; grid-template-columns: 22px 1fr; }
.contact-details > img { align-self: start; height: 20px; margin-top: 1px; object-fit: contain; width: 20px; }
.contact-details address, .contact-details p { color: var(--muted); font-size: 21px; font-style: normal; font-weight: 300; line-height: 1.2; margin: 0 0 26px; }
.contact-details p { padding-top: 0; }
.contact-details a { color: #fff; font-weight: 700; }
.divider { background: #53606a; height: 1px; margin: 28px 0 30px; }
.contact-card .check-list li { align-items: flex-start; color: var(--muted); display: flex; font-size: 21px; font-weight: 300; gap: 11px; line-height: 1.2; margin: 17px 0; }
.contact-card .check-list li::before { background: url('assets/img/uslugi/ikona%20ptaszek%20ok%2026px.svg') center / contain no-repeat; border: 0; content: ''; flex: 0 0 18px; height: 18px; margin: 4px 0 0; width: 18px; }
.direct-contact { padding: 82px 0 0; }
.direct-contact h2 { color: var(--red); font-family: 'Montserrat', Arial, sans-serif; font-size: 40px; font-weight: 700; line-height: 1.02; margin: 0 0 42px; text-transform: uppercase; }
.direct-contact h2 span { color: #fff; display: block; }
.team-grid { display: grid; gap: 42px 70px; grid-template-columns: repeat(3, 1fr); }
.team-grid p { color: var(--muted); font-size: 14px; font-weight: 300; line-height: 1.23; margin: 0; overflow-wrap: break-word; word-break: break-word; }
.team-grid strong { color: #fff; font-weight: 700; }

/* Wymuszone ułożenie kolumn na desktopie i tablecie (gdy są 3 kolumny):
   Serwis+Maksym+Dawid | Przemysław+Marcin+Michał+Mateusz | Katarzyna+Aleksandra+Zofia */
@media (min-width: 481px) {
  .team-grid { grid-template-rows: repeat(4, auto); }
  .team-serwis     { grid-column: 1; grid-row: 1; }
  .team-maksym     { grid-column: 1; grid-row: 2; }
  .team-dawid      { grid-column: 1; grid-row: 3; }
  .team-marcin     { grid-column: 2; grid-row: 1; }
  .team-michal     { grid-column: 2; grid-row: 2; }
  .team-mateusz    { grid-column: 2; grid-row: 3; }
  .team-przemyslaw { grid-column: 2; grid-row: 4; }
  .team-katarzyna  { grid-column: 3; grid-row: 1; }
  .team-aleksandra { grid-column: 3; grid-row: 2; }
  .team-zofia      { grid-column: 3; grid-row: 3; }
}


.contact-map { height: 223px; margin: 100px 0 62px; overflow: hidden; width: 100%; }
.contact-map iframe { border: 0; display: block; height: 100%; width: 100%; }

/* ZEWNĘTRZNE MATERIAŁY: osadzamy je dopiero po świadomym kliknięciu użytkownika. */
.external-media { position: relative; }
.external-media-consent {
  align-items: center;
  background: linear-gradient(135deg, #000512, var(--ink));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
  justify-content: center;
  padding: clamp(20px, 4vw, 42px);
  text-align: center;
  width: 100%;
}
.external-media-consent p {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: clamp(14px, 1.4vw, 18px);
  font-weight: 300;
  line-height: 1.45;
  margin: 0;
  max-width: 680px;
}
.external-media-consent strong,
.external-media-consent span { display: block; }
.external-media-consent strong { font-weight: 700; margin-bottom: 5px; }
.external-media-button {
  background: var(--red);
  border: 0;
  border-bottom-left-radius: 14px;
  color: #fff;
  cursor: pointer;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  min-height: 40px;
  padding: 8px 22px;
  transition: background-color .2s ease, color .2s ease;
}
.external-media-button:hover,
.external-media-button:focus-visible {
  background: var(--surface);
  color: #fff;
}
.external-media-consent a {
  color: #fff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.external-media.is-loaded { padding: 0; }
.form-message { color: #fff; display: none; margin: 16px 0 0; }
.form-message.visible { display: block; }

/* ========================================
   TABLET I TELEFON (maks. 1100 px)
   Tu zmieniaj układ mobilny: menu, kolumny,
   wielkości oraz odstępy.
   ======================================== */
@media (max-width: 1100px) {
  .container { width: min(calc(100% - 32px), var(--container)); }
  .site-header { padding: 14px 10px 0; }
  .site-header::before { height: calc(100% + 56px); }
  .home-page .site-header { margin-bottom: -72px; }
  .nav { min-height: 58px; padding: 9px 22px; }
  .brand { gap: 12px; }
  .brand > img { width: 83px; }
  .language { font-size: 10px; padding-left: 0; }
  .menu-button { display: block; }
  /* Rozwijane menu: węższe niż belka, wyrównane pod ikoną hamburgera. */
  .nav-links { align-items: stretch; background: #fff; border-radius: 18px; box-shadow: 0 12px 25px rgba(0,0,0,.24); display: none; flex-direction: column; gap: 0; left: auto; padding: 8px 14px; position: absolute; right: 10px; text-align: right; top: 74px; width: max(140px, 33.333%); }
  .nav-links.open { display: flex; }
  .nav-language { border-bottom: 1px solid #e6e9eb; display: flex; padding: 10px 8px 12px; }
  .nav-links a { border-bottom: 1px solid #e6e9eb; padding: 13px 8px; text-align: right; }
  .nav-links a:last-child { border-bottom: none; }
  .hero { min-height: 515px; }
  .hero-content { padding: 172px 0 56px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .section, .home-page .section:first-of-type, .home-page .section.surface { padding: 70px 0; }
  .about-grid, .company-teaser, .contact-top { gap: 42px; grid-template-columns: 1fr; }
  .about-grid { grid-template-areas: 'copy' 'offer' 'contact' 'secondary'; }
  .company-teaser { grid-template-areas: 'copy' 'photo' 'action'; }
  .icon-grid { gap: 28px 16px; grid-template-columns: 1fr 1fr; margin-top: 64px; }
  .service-preview { gap: 25px; grid-template-columns: 1fr; }
  .service-preview:nth-child(even) .image-link { order: -1; }
  .company-photo { max-width: 550px; }
  .page-intro { padding: 70px 0 32px; }
  .page-intro h1, .page-intro h2, .service-block h2, .about-page .eyebrow, .contact-page h1, .direct-contact h2 { font-size: clamp(31px, 9vw, 42px); }
  .columns-3, .engineering-grid { gap: 32px; grid-template-columns: 1fr; }
  .engineering-grid .wide-photo { grid-column: auto; }
  .services-page .service-block, .services-page .service-installations { padding: 70px 0; }
  .services-page .service-block h2 { font-size: clamp(31px, 9vw, 42px); }
  .services-page-title { font-size: clamp(31px, 9vw, 42px); }
  .service-columns, .engineering-layout { gap: 32px; grid-template-columns: 1fr; }
  .service-banner { margin: 24px 0 30px; }
  .contact-page { padding-top: 62px; }
  .contact-top { gap: 48px; }
  .contact-card { min-height: 0; }
  .form-field-message { grid-column: auto; }
  .contact-map { height: 210px; margin-top: 54px; }
  .direct-contact { padding-top: 64px; }
  .team-grid { gap: 30px; grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; gap: 16px; }
  .about-page { padding-top: 82px; }
  .about-intro { padding-bottom: 50px; }
  .certificates { padding: 32px 0; }
  .certificate-row { gap: 10px; }
  .certificate { flex-basis: 90px; height: 64px; }
  .certificate img { height: 64px; max-width: 90px; }
  .certificate-actions { gap: 10px; grid-template-columns: 1fr; }
  .about-video { padding: 70px 0 48px; }
}

/* Małe telefony (maks. 480 px). */
@media (max-width: 480px) {
  body { font-size: 15px; }
  .nav { padding: 9px 16px; }
  .language { display: flex; }
  .hero { background-position: 58% top; min-height: 480px; }
  .hero h1 { font-size: 37px; }
  .eyebrow { font-size: 31px; }
  .lead { font-size: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid textarea { grid-column: auto; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 24px 20px; }
  .contact-card address { margin-left: 0; }
  .certificate-row { justify-content: center; }
  .certificate { flex-basis: 76px; height: 54px; }
  .certificate img { height: 54px; max-width: 76px; }
  .certificate-action { font-size: 10px; }
  .business-certificate-link { max-width: 100%; width: 392px; }
}

/* ========================================
   TABLET 481–1100 PX
   Osobny układ pomiędzy telefonem a desktopem.
   Wartości wynikają z pliku „Wymiarowanie_Tablet”.
   ======================================== */
@media (min-width: 481px) and (max-width: 1100px) {
  /* Bezpieczna szerokość treści: przy projekcie 779 px pozostaje po 60 px z boków.
     Na szerszym iPadzie obszar rośnie proporcjonalnie maksymalnie do 779 px. */
  .container { width: min(calc(100% - 120px), 779px); }

  /* Belka tabletu: jej maksymalna szerokość odpowiada układowi tabletu,
     a nie pełnej szerokości desktopu. */
  .site-header { padding: 22px 0 0; }
  .site-header::before { height: calc(100% + 72px); }
  .home-page .site-header { margin-bottom: -94px; }
  .nav { border-radius: 40px; margin-inline: auto; min-height: 72px; padding: 10px 28px; width: min(calc(100% - 56px), 900px); }
  .brand > img { width: 100px; }
  .language { display: none; }
  .menu-button { align-items: center; display: flex; flex-direction: column; gap: 6px; height: 51px; justify-content: center; padding: 0; width: 51px; }
  .menu-button span { border-radius: 999px; height: 6px; margin: 0; width: 51px; }
  .nav-links { left: auto; right: 28px; top: 84px; width: max(180px, min(33.333%, 300px)); }

  /* Wspólna typografia i przyciski dla tabletu. */
  .button,
  .hero .button,
  .company-action .button,
  .contact-submit,
  .certificate-action,
  .business-certificate-link,
  .service-preview .image-link span {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
  }
  .eyebrow,
  .services-page-title,
  .about-page .eyebrow,
  .contact-page h1,
  .direct-contact h2 { font-size: 32px; }

  /* HERO — na tablecie zachowuje pionowy, większy kadr z wersji mobile.
     Dzięki temu film nie wygląda jak rozciągnięty baner desktopowy. */
  .home-page .hero { min-height: clamp(620px, 70svh, 760px); }
  .home-page .hero-video { object-position: 58% center; transform: scale(1.36); transform-origin: center center; }
  .home-page .hero-content { align-self: flex-end; margin-left: auto; margin-right: auto; padding: 0 0 56px; }
  .home-page .hero h1 { font-size: 48px; line-height: 1.04; max-width: 545px; }
  .home-page .hero .button { font-size: 15px; margin-top: 18px; min-width: 197px; }

  /* iPad Pro w pionie (1024 × 1366): hero zajmuje pełną wysokość planszy.
     Dzięki temu film nie kończy się nad sekcją „O nas”. */
  @media (min-width: 900px) {
    .home-page .hero { min-height: 1366px; }
    /* Treść hero jest bliżej lewego marginesu, zgodnie z kadrem iPada Pro. */
    .home-page .hero-content { margin-left: 62px; margin-right: 0; }
  }

  /* Strona główna — „O nas”: opis, pełny kadr PLC i cztery wyróżniki. */
  .section,
  .home-page .section:first-of-type,
  .home-page .section.surface { padding: 52px 0; }
  .about-grid { gap: 30px; grid-template-areas: 'copy' 'offer' 'contact' 'secondary'; grid-template-columns: 1fr; }
  .about-copy .lead,
  .company-teaser .lead,
  .service-preview p { font-size: 18px; line-height: 1.2; max-width: none; }
  .about-offer img,
  .about-contact img,
  .about-secondary img { aspect-ratio: 669 / 197; }
  .about-offer span,
  .about-contact span { font-size: 15px; margin-top: 10px; }
  .icon-grid { gap: 24px 14px; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
  .icon-grid img { height: 44px; width: 44px; }
  .icon-grid p { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; line-height: 1.16; }

  /* Oferta — każdy opis nad swoim obrazem 669 × 197 px. */
  .service-list { gap: 46px; }
  .service-preview { gap: 16px; grid-template-columns: 1fr; }
  .service-preview:nth-child(even) .image-link { order: initial; }
  .service-preview .image-link img { aspect-ratio: 669 / 197; }
  .service-preview .image-link span { font-size: 15px; height: 32px; width: 150px; }

  /* „O firmie Elektrin”: nowy tabletowy PNG jest szerokim, przyciętym kadrem.
     Tekst zajmuje czytelną lewą kolumnę, a postacie wypełniają prawą część. */
  .company-section { padding-bottom: 42px; }
  .company-teaser {
    align-items: start;
    column-gap: 22px;
    /* Przycisk i jego linia są wspólnym dolnym rzędem, dzięki czemu
       linia dochodzi do prawej krawędzi całej sekcji. */
    grid-template-areas: 'copy action' 'copy photo';
    grid-template-columns: minmax(0, 1fr) minmax(360px, 432px);
    row-gap: 18px;
  }
  .company-copy { align-self: start; max-width: 310px; padding-top: 10px; }
  .company-teaser .lead { max-width: 310px; }
  /* Lekko unosimy kadr pracowników, aby jego górna krawędź licowała się
     optycznie z tekstem, bez wyciągania obrazu poza bezpieczny obszar. */
  .company-photo { align-self: start; height: auto; max-width: none; overflow: visible; position: static; transform: none; }
  .company-photo picture { display: block; position: static; width: 100%; }
  .company-photo img { display: block; height: auto; max-width: 100%; object-fit: contain; object-position: right bottom; width: 100%; }
  .company-action { align-self: end; gap: 14px; margin-top: 0; width: 100%; }
  .company-action .button { font-size: 15px; width: 190px; }
  .company-action-line { min-width: 0; }

  /* O FIRMIE ELEKTRIN — tablet.
     Opis i pracownicy tworzą jeden, równy rząd. Przycisk z linią jest
     niżej, dzięki czemu nie odrywa się wizualnie od całej kompozycji. */
  .company-section { padding-bottom: 52px; }
  .company-teaser {
    align-items: end;
    column-gap: 28px;
    row-gap: 14px;
    grid-template-areas:
      'copy photo'
      'action action';
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr);
  }
  .company-copy { align-self: center; max-width: none; padding-top: 0; width: 100%; }
  .company-teaser .lead { max-width: 340px; }
  .company-action { align-self: end; gap: 14px; margin-top: 0; width: 100%; }
  .company-action .button { font-size: 15px; width: 220px; }
  .company-action-line { flex: 1; min-width: 0; }
  .company-photo {
    align-self: end;
    height: auto;
    justify-self: end;
    max-width: 460px;
    overflow: visible;
    position: static;
    transform: none;
    width: min(100%, 520px);
  }
  .company-photo picture { display: block; position: static; width: 100%; }
  .company-photo img { display: block; height: auto; max-width: 100%; object-fit: contain; object-position: right bottom; width: 100%; }

  /* Usługi — pionowy rytm zgodny z planszą tabletową. */
  .services-page .service-block,
  .services-page .service-installations { padding: 52px 0; }
  .services-page .service-installations { padding-top: 58px; }
  .services-page-title { margin-bottom: 22px; }
  .services-page .service-block h2 { font-size: 34px; margin-bottom: 15px; }
  .service-heading-icon { flex-basis: 26px; height: 26px; width: 26px; }
  .service-lead { font-size: 21px; line-height: 1.2; }
  .service-banner { aspect-ratio: 669 / 251; margin: 24px 0 28px; }
  .service-columns { gap: 26px; grid-template-columns: 1fr; }
  .service-columns h3 { font-size: 21px; margin-bottom: 8px; }
  .service-columns h3 img { flex-basis: 21px; height: 21px; width: 21px; }
  .service-columns p,
  .services-page .check-list li { font-size: 21px; line-height: 1.2; }
  .engineering-layout { gap: 28px; grid-template-columns: 1fr; }
  .engineering-layout > picture > img { aspect-ratio: 669 / 251; object-fit: cover; width: 100%; }
  .engineering-layout h3 { font-size: 21px; margin: 0 0 12px; }

  /* O nas — tekst 21 px oraz czytelny pas wyróżnień. */
  .about-page { padding-top: 70px; }
  .about-intro { padding-bottom: 62px; }
  .about-page .eyebrow { margin-bottom: 22px; }
  .prose { font-size: 21px; line-height: 1.2; }
  .prose p { margin-bottom: 18px; }
  .certificates { padding: 30px 0; }
  .certificate-row { gap: 8px; justify-content: center; }
  .certificate { flex: 0 0 74px; height: 70px; }
  .certificate img { height: 70px; max-width: 74px; }
  .certificate-actions { gap: 12px; grid-template-columns: 1fr; margin-top: 22px; }
  .certificate-action { font-size: 15px; height: 36px; }
  .about-video { padding: 62px 0 52px; }
  .video-frame { aspect-ratio: 659 / 370; }
  .business-certificate-link { font-size: 15px; margin-top: 28px; width: 100%; }
  .business-certificate { width: 392px; }

  /* Kontakt — dwa równe moduły, potem siatka osób i mapa na całą szerokość. */
  .contact-page { padding-top: 70px; }
  .contact-top { gap: 30px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact-page h1 { font-size: 32px; }
  .contact-intro > p { font-size: 18px; margin: 16px 0 20px; }
  .form-grid { gap: 9px; grid-template-columns: 1fr 1fr; }
  .form-grid input { height: 36px; }
  .form-grid textarea { min-height: 122px; }
  .form-grid input,
  .form-grid textarea { font-size: 14px; }
  .contact-submit { font-size: 15px; width: 190px; }
  .contact-card { padding: 26px 20px; }
  .contact-card h2 { font-size: 21px; margin-bottom: 22px; }
  .contact-details { gap: 0 14px; grid-template-columns: 18px 1fr; }
  .contact-details > img { height: 18px; width: 18px; }
  .contact-details address,
  .contact-details p,
  .contact-card .check-list li { font-size: 18px; line-height: 1.2; }
  .contact-card .check-list li { gap: 8px; margin: 11px 0; }
  .divider { margin: 20px 0 22px; }
  .direct-contact { padding-top: 58px; }
  .team-grid { gap: 26px 32px; grid-template-columns: repeat(3, 1fr); }
  .team-grid p { font-size: 14px; }
  .contact-map { height: 246px; margin: 58px 0 42px; }
  .footer-inner { flex-direction: row; font-size: 11px; gap: 24px; }
}

/* Zabezpieczenie: na stronie głównej istnieje tylko jedna linia przy „O nas”. */
.home-page .about-copy > .eyebrow::after { display: none !important; }

/* ========================================
   MOBILE — PROJEKT DLA SZEROKOŚCI 390 PX
   Wartości poniżej wynikają z przekazanego
   pliku „Wymiarowanie_Mobile”. Dotyczą tylko
   telefonów — tablet i desktop pozostają bez zmian.
   ======================================== */
@media (max-width: 480px) {
  /* Wspólny bezpieczny obszar treści: 350 px przy ekranie 390 px. */
  .container { width: min(calc(100% - 40px), 350px); }
  body { font-size: 18px; line-height: 1.18; }

  /* Mobilna belka: logo i menu, bez wyboru języka. */
  .site-header { padding: 24px 20px 0; }
  .site-header::before { height: calc(100% + 30px); }
  .home-page .site-header { margin-bottom: -79px; }
  .nav { border-radius: 32px; min-height: 56px; padding: 8px 16px; }
  .brand { gap: 0; }
  .brand > img { width: 76px; }
  .language { display: none; }
  /* Hamburger: trzy kreski 34 × 4 px, z miękko zaokrąglonymi końcami. */
  .menu-button { align-items: center; display: flex; flex-direction: column; gap: 4px; height: 34px; justify-content: center; padding: 0; width: 34px; }
  .menu-button span { border-radius: 999px; flex: 0 0 4px; height: 4px; margin: 0; width: 34px; }
  .nav-links { left: auto; right: 20px; top: 68px; width: max(140px, 33.333%); }

  /* HERO strony głównej: wysoki kadr wideo, jak na wizualizacji mobile. */
  .hero { min-height: 843px; }
  .hero-video { object-position: 58% center; transform: scale(1.55); transform-origin: center center; }
  .hero-content { padding: 382px 0 58px; }
  .hero h1 { font-size: 32px; line-height: 1.12; max-width: 300px; }
  .hero .button { margin-top: 28px; min-width: 193px; }

  /* Strona główna — sekcja „O nas”. */
  .home-page .section:first-of-type { padding: 40px 0 32px; }
  .home-page .section:first-of-type .container { display: flex; flex-direction: column; }
  .about-grid { display: contents; }
  .about-copy { order: 0; }
  .icon-grid { order: 1; }
  .about-offer { order: 2; }
  .about-contact, .about-secondary { display: none; }
  .eyebrow { font-size: 30px; gap: 10px; margin-bottom: 18px; }
  .about-title-line, .company-title-line { margin-bottom: 5px; }
  .about-copy .lead, .lead { font-size: 18px; line-height: 1.18; max-width: none; }
  .icon-grid { gap: 23px 14px; margin-top: 32px; }
  .icon-grid img { height: 42px; width: 42px; }
  .icon-grid p { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; line-height: 1.14; margin-top: 6px; }
  .about-offer { margin-top: 32px; }
  .about-offer img { aspect-ratio: 350 / 200; }
  .about-offer span, .about-contact span { font-family: 'Roboto', Arial, sans-serif; font-size: 14px; padding: 12px 14px 10px; }

  /* Oferta: opis nad zdjęciem, pełna szerokość zdjęć 350 × 197 px. */
  .home-page .section.surface { padding: 32px 0; }
  .home-page .section.surface .eyebrow { font-family: 'Roboto', Arial, sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 13px; }
  .service-list { gap: 42px; }
  .service-preview { display: flex; flex-direction: column; gap: 14px; }
  .service-preview:nth-child(even) .image-link { order: initial; }
  .service-preview p { font-size: 18px; line-height: 1.18; max-width: none; }
  .service-preview .image-link { align-self: stretch; width: 100%; }
  .service-preview .image-link img { aspect-ratio: 350 / 197; }
  .service-preview .image-link span { font-family: 'Roboto', Arial, sans-serif; font-size: 16px; font-weight: 400; height: 26px; width: 125px; }

  /* „O firmie Elektrin”: opis i transparentna grafika w jednym rzędzie. */
  .company-section { padding: 32px 0 26px; }
  .company-section .eyebrow { margin-bottom: 14px; }
  /* Węższy tekst zostawia miejsce na czytelniejszy, większy kadr pracowników. */
  .company-teaser { align-items: stretch; column-gap: 8px; grid-template-areas: 'copy photo' 'action photo'; grid-template-columns: 142px minmax(0, 1fr); row-gap: 10px; }
  .company-teaser .lead { font-size: 18px; line-height: 1.14; }
  .company-photo { align-self: end; height: 248px; }
  .company-photo img { height: 248px; max-height: none; object-fit: contain; object-position: right bottom; width: 100%; }
  .company-action { align-items: flex-end; gap: 0; }
  .company-action .button { font-family: 'Roboto Condensed', Arial, sans-serif; font-size: 12px; height: 32px; width: 174px; }
  .company-action-line { display: none; }

  /* Wspólna stopka telefonu. */
  .site-footer { padding: 16px 0 18px; }
  .footer-inner { font-size: 10px; gap: 10px; line-height: 1.25; }

  /* Podstrona Usługi: jeden ciąg treści i dedykowane kadry 350 × 200 px. */
  .services-page .service-block, .services-page .service-installations { padding: 32px 0; }
  .services-page .service-installations { padding-top: 34px; }
  .services-page-title { font-size: 30px; margin-bottom: 18px; }
  .services-page .service-block h2 { font-family: 'Roboto', Arial, sans-serif; font-size: 22px; gap: 7px; line-height: 1.08; margin-bottom: 12px; }
  .service-heading-icon { flex-basis: 18px; height: 18px; width: 18px; }
  .service-lead { font-size: 18px; line-height: 1.18; }
  .services-page picture { display: block; }
  .service-banner { aspect-ratio: 350 / 200; margin: 18px 0; object-fit: cover; width: 100%; }
  .service-columns { gap: 22px; }
  .service-columns h3 { font-size: 18px; gap: 6px; line-height: 1.1; margin-bottom: 8px; }
  .service-columns h3 img { flex-basis: 18px; height: 18px; width: 18px; }
  .service-columns p, .services-page .check-list li { font-size: 18px; line-height: 1.18; }
  .engineering-layout { gap: 20px; }
  .engineering-layout > picture { display: block; }
  .engineering-layout > picture img { aspect-ratio: 350 / 200; object-fit: cover; width: 100%; }
  .engineering-layout h3 { font-size: 18px; line-height: 1.15; margin: 0 0 12px; }
  .services-page .check-list li { gap: 7px; margin: 9px 0; }

  /* Podstrona O nas: tekst 18 px, certyfikaty oraz elementy jeden pod drugim. */
  .about-page { padding-top: 38px; }
  .about-intro { padding-bottom: 36px; }
  .about-page .eyebrow { font-size: 30px; margin-bottom: 15px; }
  .prose { font-size: 18px; line-height: 1.17; }
  .prose p { margin-bottom: 18px; }
  .certificates { padding: 22px 0 28px; }
  .certificate-row { display: grid; gap: 12px 6px; grid-template-columns: repeat(5, 1fr); }
  .certificate { height: 47px; min-width: 0; width: 100%; }
  .certificate img { height: 47px; max-width: 100%; }
  .certificate-actions { gap: 14px; margin-top: 22px; }
  .certificate-action { font-size: 10px; height: 33px; }
  .about-video { padding: 33px 0 38px; }
  .video-frame { aspect-ratio: 350 / 197; }
  .business-certificate-link { font-size: 10px; height: 33px; margin-top: 14px; width: 100%; }
  .business-certificate { margin-top: 14px; width: 100%; }

  /* Podstrona Kontakt: formularz i dane w jednej kolumnie. */
  .contact-page { padding-top: 38px; }
  .contact-top { gap: 38px; }
  .contact-page h1, .direct-contact h2 { font-size: 30px; line-height: 1.02; }
  .contact-intro > p { font-size: 18px; line-height: 1.18; margin: 16px 0 18px; }
  .form-grid { gap: 10px; }
  .form-grid input { font-size: 14px; height: 48px; }
  .form-grid textarea { font-size: 14px; min-height: 150px; }
  .consent { font-size: 11px; margin: 14px 0 18px; }
  .contact-submit { font-size: 12px; width: 235px; }
  .contact-card { border: 0; padding: 0; }
  .contact-card h2 { font-size: 30px; line-height: 1.06; margin: 0 0 22px; }
  .contact-details { gap: 0 14px; grid-template-columns: 20px 1fr; }
  .contact-details > img { height: 18px; width: 18px; }
  .contact-details address, .contact-details p { font-size: 18px; line-height: 1.18; margin-bottom: 22px; }
  .divider { margin: 20px 0 22px; }
  .contact-card .check-list li { font-size: 14px; gap: 8px; line-height: 1.17; margin: 13px 0; }
  .contact-card .check-list li::before { flex-basis: 16px; height: 16px; margin-top: 1px; width: 16px; }
  .direct-contact { padding-top: 44px; }
  .direct-contact h2 { margin-bottom: 26px; }
  .team-grid { gap: 23px; }
  .team-grid p { font-size: 14px; line-height: 1.18; }
  .contact-map { height: 246px; margin: 36px 0 32px; }
}

/* ========================================
   MOBILE — KOREKTY 21.07
   Ujednolicenie przycisków i większy kadr
   postaci w sekcji „O firmie Elektrin”.
   ======================================== */
@media (max-width: 480px) {
  /* Wszystkie przyciski telefonu: Roboto Regular 13 px. */
  .button,
  .hero .button,
  .company-action .button,
  .contact-submit,
  .service-preview .image-link span,
  .certificate-action,
  .business-certificate-link {
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 13px;
    font-weight: 400;
  }

  /* Wspólny rozmiar mobilnych opisów — Roboto Light 16 px.
     Nagłówki, etykiety oraz teksty pogrubione mają własne ustawienia. */
  body { font-size: 16px; }
  .about-copy .lead,
  .lead,
  .service-preview p,
  .company-teaser .lead,
  .service-lead,
  .service-columns p,
  .services-page .check-list li,
  .prose,
  .contact-intro > p,
  .contact-details address,
  .contact-details p {
    font-size: 16px;
  }

  /* Dłuższe opisy na przyciskach certyfikatów mogą złamać się czytelnie. */
  .certificate-action { height: auto; min-height: 38px; padding: 8px 14px; }
  .business-certificate-link { min-height: 38px; padding: 7px 12px; }

  /* Zachowujemy te same reakcje hover, co w wersji desktopowej. */
  .hero .button:hover,
  .service-preview .image-link:hover span { background: var(--ink); color: #fff; }
  .company-action .button:hover,
  .contact-submit:hover,
  .business-certificate-link:hover { background: var(--surface); color: #fff; }
  .certificate-action:hover { background: var(--red); color: #fff; }

  /* Certyfikaty: każdy rząd jest wyśrodkowany, także gdy liczba ikon
     nie wypełnia całego wiersza na węższym telefonie. */
  .certificate-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 6px;
    justify-content: center;
  }
  .certificate {
    flex: 0 0 64px;
    height: 47px;
    min-width: 0;
    width: 64px;
  }
  .certificate img { height: 47px; max-width: 64px; }

  /* Hero: blok tekstu i przycisk mają wspólny, 28-pikselowy
     oddech od dolnej oraz lewej krawędzi ekranu. */
  .home-page .hero-content {
    bottom: 28px;
    left: 50%;
    margin: 0;
    padding: 0;
    position: absolute;
    transform: translateX(-50%);
    width: min(calc(100% - 56px), 350px);
  }
  .home-page .hero .button { margin-top: 20px; }

  /* Hero zawsze mieści się w widocznym ekranie telefonu.
     svh uwzględnia także zmieniający się pasek przeglądarki mobilnej. */
  .home-page .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Nagłówek „Oferta” otrzymuje ten sam optyczny ciężar co główne tytuły. */
  .home-page .section.surface .eyebrow {
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 30px;
    font-weight: 700;
    margin-bottom: 20px;
  }

  /* PNG ma szerokie puste pole po lewej. Powiększamy jego widoczną część,
     kotwicząc obraz po prawej krawędzi kolumny. */
  /* Kadr pracowników skaluje się wraz z ekranem: tekst pozostaje węższy,
     a widoczna część PNG zajmuje całą prawą stronę sekcji. */
  .company-teaser { align-items: end; grid-template-columns: clamp(110px, 33vw, 124px) minmax(0, 1fr); }
  .company-photo { align-self: end; height: auto; overflow: visible; position: static; }
  .company-photo picture { display: block; position: static; width: 100%; }
  .company-photo img { display: block; height: auto; max-width: 100%; object-fit: contain; object-position: right bottom; width: 100%; }
}

/* ========================================
   TABLET — DOPASOWANIE KADRÓW IPADA
   iPad Mini (768 × 1024) oraz iPad Air / Pro 820 px w pionie
   otrzymują pełnoekranowy film, tak jak większy iPad Pro.
   Reguły nie dotyczą telefonów ani tabletu w poziomie.
   ======================================== */
@media (min-width: 481px) and (max-width: 899px) and (orientation: portrait) {
  .home-page .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Lżejsze powiększenie zachowuje pełny kadr w pionie,
     bez nadmiernego obcinania filmu po bokach. */
  .home-page .hero-video {
    /* Dodatkowy zapas kadru chowa czarną belkę występującą na dole
       samego materiału wideo w pionowych iPadach. */
    object-position: 56% center;
    transform: scale(1.30) translateY(2%);
  }
}

/* iPad Air (820 px): treść hero jest zakotwiczona po lewej, zamiast
   optycznie przesuwać się do środka szerokiego kadru filmu. */
@media (min-width: 800px) and (max-width: 899px) and (orientation: portrait) {
  .home-page .hero-content {
    margin-left: 62px;
    margin-right: 0;
    width: min(calc(100% - 124px), 545px);
  }
}

/* Tablety używają tych samych reakcji przycisków co desktop i telefon. */
@media (min-width: 481px) and (max-width: 1100px) {
  .hero .button:hover,
  .service-preview .image-link:hover span {
    background: var(--ink);
    color: #fff;
    filter: none;
  }

  .company-action .button:hover,
  .contact-submit:hover,
  .business-certificate-link:hover {
    background: var(--surface);
    color: #fff;
    filter: none;
  }

  .certificate-action:hover {
    background: var(--red);
    color: #fff;
    filter: none;
  }
}

/* Interakcje przycisków na tabletach i urządzeniach mobilnych.
   :active zapewnia widoczną reakcję również po dotknięciu ekranu. */
@media (max-width: 1100px) {
  .hero .button,
  .company-action .button,
  .contact-submit,
  .certificate-action,
  .business-certificate-link,
  .service-preview .image-link span {
    transition: background-color 0.2s ease, color 0.2s ease, filter 0.2s ease, transform 0.2s ease;
  }

  .hero .button:is(:hover, :focus-visible, :active),
  .service-preview .image-link:is(:hover, :focus-visible, :active) span {
    background-color: var(--ink) !important;
    color: #fff;
    filter: none;
    transform: translateY(-1px);
  }

  .image-link:is(:hover, :focus-visible, :active) img {
    transform: none;
  }

  .company-action .button:is(:hover, :focus-visible, :active),
  .contact-submit:is(:hover, :focus-visible, :active),
  .business-certificate-link:is(:hover, :focus-visible, :active) {
    background-color: var(--surface) !important;
    color: #fff;
    filter: none;
    transform: translateY(-1px);
  }

  .certificate-action:is(:hover, :focus-visible, :active) {
    background-color: var(--red) !important;
    color: #fff;
    filter: none;
    transform: translateY(-1px);
  }
}

/* =====================================================
   WYRAŹNE PODŚWIETLENIE PRZYCISKÓW
   Zapisane na końcu arkusza celowo: gwarantuje tę samą
   reakcję kursora niezależnie od szerokości ekranu.
   ===================================================== */
.hero .button:hover,
.hero .button:focus-visible,
.service-preview .image-link:hover span,
.service-preview .image-link:focus-visible span {
  background: var(--ink) !important;
  color: #fff !important;
  filter: none !important;
}

.company-action .button:hover,
.company-action .button:focus-visible,
.contact-submit:hover,
.contact-submit:focus-visible,
.business-certificate-link:hover,
.business-certificate-link:focus-visible {
  background: var(--surface) !important;
  color: #fff !important;
  filter: none !important;
}

.certificate-action:hover,
.certificate-action:focus-visible {
  background: var(--red) !important;
  color: #fff !important;
  filter: none !important;
}

/* =====================================================
   PODSTRONA: POLITYKA PRYWATNOŚCI / RODO
   ===================================================== */
.consent a,
.footer-meta a {
  color: var(--red);
  font-weight: 700;
  text-decoration: none;
}

.consent a:hover,
.consent a:focus-visible,
.footer-meta a:hover,
.footer-meta a:focus-visible {
  text-decoration: underline;
}

.footer-meta {
  text-align: right;
}

.footer-linkedin {
  display: inline-flex;
  align-items: center;
  margin-left: 12px;
  vertical-align: middle;
  line-height: 0;
}
.footer-linkedin svg {
  display: block;
}
.footer-meta a.footer-linkedin {
  color: inherit;
  font-weight: normal;
  text-decoration: none;
}
.footer-meta a.footer-linkedin:hover,
.footer-meta a.footer-linkedin:focus-visible {
  text-decoration: none;
  opacity: 0.85;
}


.privacy-page {
  padding: 96px 0 110px;
}

.privacy-page .container {
  max-width: 1210px;
}

.privacy-title {
  color: var(--red);
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 42px;
  text-transform: uppercase;
}

.privacy-content {
  color: var(--muted);
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 21px;
  font-weight: 300;
  line-height: 1.48;
  max-width: 1050px;
}

.privacy-content p {
  margin: 0 0 24px;
}

.privacy-content > ol {
  margin: 0;
  padding-left: 1.5em;
}

.privacy-content > ol > li {
  margin-bottom: 24px;
  padding-left: .35em;
}

.privacy-content ol[type="a"] {
  margin-top: 14px;
  padding-left: 1.4em;
}

.privacy-content ol[type="a"] li {
  margin-bottom: 10px;
  padding-left: .3em;
}

.privacy-content strong {
  color: #fff;
  font-weight: 700;
}

@media (max-width: 1100px) {
  .privacy-page {
    padding: 68px 0 82px;
  }

  .privacy-title {
    font-size: 32px;
    margin-bottom: 30px;
  }

  .privacy-content {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .privacy-page {
    padding: 42px 0 58px;
  }

  .privacy-title {
    font-size: 30px;
    margin-bottom: 26px;
  }

  .privacy-content {
    font-size: 16px;
    line-height: 1.5;
  }

  .privacy-content > ol {
    padding-left: 1.25em;
  }

  .footer-meta {
    text-align: left;
  }
}
