/* =====================================================
   STYROMAX — GŁÓWNY PLIK STYLE.CSS
===================================================== */

:root {
    --navy: #071a2f;
    --navy-light: #0d2b49;
    --cyan: #00dfc2;
    --blue: #087bea;
    --blue-dark: #0566c4;
    --gradient: linear-gradient(135deg, var(--cyan), var(--blue));

    --text: #122338;
    --muted: #647386;
    --light: #f4f7fa;
    --white: #ffffff;
    --line: #dfe6eb;

    --shadow-small: 0 10px 30px rgba(7, 26, 47, 0.08);
    --shadow-medium: 0 20px 55px rgba(7, 26, 47, 0.11);
    --shadow-large: 0 30px 80px rgba(7, 26, 47, 0.14);

    --radius-small: 3px;
    --radius-medium: 6px;

    --header-height: 86px;
    --max: 1180px;
}

/* =====================================================
   RESET
===================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--text);
    background: var(--white);
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
}

body.menu-open {
    overflow: hidden;
}

main,
section,
header,
footer,
nav,
div,
article,
figure {
    min-width: 0;
}

img,
svg {
    display: block;
    max-width: 100%;
}

figure {
    margin: 0;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
p {
    overflow-wrap: break-word;
}

h1,
h2,
h3 {
    text-wrap: balance;
}

p {
    text-wrap: pretty;
}

.container {
    width: min(var(--max), calc(100% - 48px));
    margin-inline: auto;
}

/* =====================================================
   HEADER
===================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 22px rgba(8, 33, 58, 0.08);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.logo{
    font-size:30px;
    font-weight:700;
    flex-shrink: 0;
}

.logo span{
    color:#2E8B57;
}

.logo img {
    width: 148px;
    height: 62px;
    object-fit: contain;
}

.desktop-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
}

.desktop-nav a {
    position: relative;
    padding-block: 10px;
    font-size: 0.86rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.desktop-nav a::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    background: var(--gradient);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
}

.desktop-nav a:hover {
    color: var(--blue);
}

.desktop-nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.header-button {
    flex-shrink: 0;
    padding: 12px 20px;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-small);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.header-button:hover {
    color: var(--navy);
    background: var(--cyan);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 223, 194, 0.2);
}

.menu-button,
.mobile-nav {
    display: none;
}

.brand-logo {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    color: var(--navy);
    line-height: 1;
    text-decoration: none;
}

.brand-logo__image {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-logo__name {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.brand-logo__name strong {
    color: var(--blue);
    font-weight: 700;
}

.brand-logo:hover .brand-logo__name strong {
    color: var(--cyan);
}

@media (max-width: 650px) {
    .brand-logo {
        gap: 9px;
    }

    .brand-logo__image {
        width: 43px;
        height: 43px;
    }

    .brand-logo__name {
        font-size: 1.05rem;
    }
}

/* =====================================================
   HERO
===================================================== */

.hero {
    height: min(780px, calc(100vh - 86px));
    min-height: 620px;
    background-image: linear-gradient(90deg, #06172fed 0%, #071a2fc8 36%, #071a2f35 70%, transparent),
        url("img/baner.png");
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: #fff;
    position: relative;
    justify-content:center;
}

.hero-content {
    width: min(690px, 100%);
    max-width:800px;
    margin-left: clamp(15px, 4vw, 25px);
    padding-bottom: 22px;
    position:relative;
    color:white;
}

.overline,
.section-label {
    display: block;
    margin-bottom: 18px;
    color: var(--blue);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    line-height: 1.5;
    text-transform: uppercase;
}

.hero .overline {
    color: var(--cyan);
}

.hero h1 {
    font-size: clamp(3rem, 6vw, 4.0rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.06;
    max-width: 780px;
    margin: 0 0 25px;
    margin-bottom:20px;
}

.hero p {
    max-width: 580px;
    margin: 0;
    color: #d3deea;
    font-size: 1.04rem;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 14px 24px;
    color: #031726;
    background: var(--gradient);
    border: 0;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 600;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(8, 123, 234, 0.25);
}

.btn-outline {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
    color: var(--navy);
    background: var(--white);
    box-shadow: none;
}

.btn-dark {
    color: var(--white);
    background: var(--navy);
}

.btn-dark:hover {
    background: var(--navy-light);
}

.scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 11px;
    color: #d7e2eb;
    font-size: 0.64rem;
    letter-spacing: 0.18em;
    transform: translateX(-50%);
}

.scroll-hint span {
    color: var(--cyan);
    font-size: 1rem;
}

/* =====================================================
   SEKCJE WSPÓLNE
===================================================== */

.section {
    position: relative;
    padding: clamp(80px, 9vw, 115px) 0;
}

.section h2,
.cta h2 {
    margin: 0 0 28px;
    font-size: clamp(2.2rem, 4.0vw, 2.8rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.13;
}

.section h2 span,
.cta h2 span {
    color: var(--blue);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
    gap: clamp(35px, 6vw, 75px);
    align-items: end;
    margin-bottom: 52px;
}

.section-head h2 {
    margin-bottom: 0;
}

.section-head > p {
    max-width: 470px;
    margin: 0 0 5px;
    color: var(--muted);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 17px;
    color: var(--navy);
    font-size: 0.84rem;
    font-weight: 600;
}

.text-link span {
    color: var(--blue);
    transition: transform 0.2s ease;
}

.text-link:hover span {
    transform: translateX(5px);
}

/* =====================================================
   O NAS
===================================================== */

.about {
    background: var(--white);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: clamp(45px, 7vw, 95px);
    align-items: center;
}

.about-copy > p {
    max-width: 650px;
    color: var(--muted);
}

.about-copy > p:last-of-type {
    margin-bottom: 0;
}

/* Wersja ze zdjęciem */

.about-photo {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    background: var(--navy);
    box-shadow: var(--shadow-large);
}

.about-photo > img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about-photo:hover > img {
    transform: scale(1.035);
}

.about-photo::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(
        to top,
        rgba(7, 26, 47, 0.8),
        transparent
    );
    pointer-events: none;
}

.about-photo figcaption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    color: var(--white);
}

.about-photo figcaption strong {
    color: var(--cyan);
    font-size: 2.2rem;
    line-height: 1;
}

.about-photo figcaption span {
    font-size: 0.76rem;
    font-weight: 500;
    line-height: 1.45;
}

/* Wersja ze starym logo */

.about-card {
    position: relative;
    display: flex;
    min-height: 430px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 50px;
    background: var(--navy);
    box-shadow: var(--shadow-large);
}

.about-card::before {
    content: "";
    position: absolute;
    width: 330px;
    height: 330px;
    background: var(--blue);
    filter: blur(120px);
    opacity: 0.3;
}

.about-card img {
    position: relative;
    width: min(330px, 90%);
}

/* =====================================================
   PRODUKTY
===================================================== */

.products {
    background: var(--light);
}

.cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 400px;
    flex-direction: column;
    overflow: hidden;
    padding: 30px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 12px 35px rgba(7, 26, 47, 0.05);
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.card:hover {
    z-index: 2;
    transform: translateY(-7px);
    border-color: rgba(8, 123, 234, 0.25);
    box-shadow: var(--shadow-medium);
}

.card-number {
    color: #909da8;
    font-size: 0.7rem;
}

.card-icon {
    display: flex;
    height: 105px;
    align-items: center;
    color: var(--blue);
    font-size: 2.5rem;
}

.card h3 {
    margin: 15px 0 10px;
    font-size: 1.12rem;
    line-height: 1.4;
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.card > a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 25px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 600;
}

/* Produkty ze zdjęciami */

.card:has(.card-image) {
    min-height: 440px;
    padding: 0;
}

.card-image {
    position: relative;
    height: 185px;
    flex-shrink: 0;
    overflow: hidden;
    background: #e7edf2;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.card:hover .card-image img {
    transform: scale(1.06);
}

.card-image .card-number {
    position: absolute;
    top: 15px;
    left: 15px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: var(--white);
    background: var(--navy);
    border-radius: 50%;
    font-weight: 600;
}

.card-content {
    display: flex;
    min-height: 250px;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.card-content h3 {
    margin-top: 0;
}

.card-content a {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 600;
}

.card-content a span {
    transition: transform 0.2s ease;
}

.card-content a:hover span {
    transform: translateX(4px);
}

/* =====================================================
   GALERIA PRODUKCJI
===================================================== */

.production-gallery {
    background: var(--white);
}

.gallery-heading {
    margin-bottom: 44px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    grid-template-rows: repeat(2, 255px);
    gap: 18px;
}

.gallery-item {
    position: relative;
    height: 100%;
    overflow: hidden;
    background: #e7edf2;
}

.gallery-item-large {
    grid-row: 1 / 3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition:
        transform 0.6s ease,
        filter 0.6s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 40% 0 0;
    background: linear-gradient(
        to top,
        rgba(7, 26, 47, 0.82),
        transparent
    );
    pointer-events: none;
}

.gallery-item:hover img {
    transform: scale(1.045);
    filter: saturate(1.05);
}

.gallery-item figcaption {
    position: absolute;
    right: 23px;
    bottom: 19px;
    left: 23px;
    z-index: 1;
    color: var(--white);
    font-size: 0.84rem;
    font-weight: 600;
}

/* =====================================================
   ZALETY
===================================================== */

.advantages {
    color: var(--white);
    background: var(--navy);
}

.advantages .section-label {
    color: var(--cyan);
}

.section-head.light > p {
    color: #9aacbc;
}

.section-head.light h2 span {
    color: var(--cyan);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.advantage {
    min-width: 0;
    padding: 38px 34px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.13);
}

.advantage:first-child {
    padding-left: 0;
}

.advantage:last-child {
    padding-right: 0;
    border-right: 0;
}

.advantage b {
    color: var(--cyan);
    font-size: 0.68rem;
}

.advantage h3 {
    margin: 32px 0 10px;
    font-size: 1.02rem;
    line-height: 1.45;
}

.advantage p {
    margin: 0;
    color: #9aabba;
    font-size: 0.83rem;
    line-height: 1.65;
}

/* =====================================================
   CTA
===================================================== */

.cta {
    padding: 72px 0;
    background: var(--gradient);
}

.cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.cta .section-label {
    color: #073756;
}

.cta h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.2vw, 3.1rem);
}

/* =====================================================
   KONTAKT
===================================================== */

.contact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(8, 123, 234, 0.08),
            transparent 35%
        ),
        var(--white);
}

.contact-box {
    display: grid;
    grid-template-columns: minmax(280px, 0.85fr) minmax(460px, 1.15fr);
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
    padding: clamp(36px, 6vw, 68px);
}

.contact-copy h2 {
    margin-bottom: 24px;
}

.contact-intro,
.contact-copy > p {
    max-width: 500px;
    margin: 0;
    color: var(--muted);
}

.contact-company {
    margin-top: 36px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
}

.contact-company h3 {
    margin: 0 0 7px;
    font-size: 1rem;
}

.contact-company p {
    margin: 0;
    color: var(--muted);
}

.contact-options {
    display: grid;
    gap: 16px;
}

.contact-option {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-small);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.contact-option:hover {
    transform: translateY(-4px);
    border-color: rgba(8, 123, 234, 0.3);
    box-shadow: var(--shadow-small);
}

.contact-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    color: var(--white);
    background: var(--gradient);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(8, 123, 234, 0.2);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-option-content {
    min-width: 0;
}

.contact-option-label {
    display: block;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-value {
    display: inline-block;
    max-width: 100%;
    color: var(--navy);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
}

.contact-value:hover {
    color: var(--blue);
}

.contact-option-content p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.5;
}

.contact-button {
    display: inline-flex;
    min-width: 138px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: var(--white);
    background: var(--navy);
    border-radius: var(--radius-small);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-button:hover {
    background: var(--blue);
    transform: translateX(2px);
    box-shadow: 0 9px 22px rgba(8, 123, 234, 0.2);
}

.contact-button:focus-visible,
.contact-value:focus-visible,
.btn:focus-visible,
.header-button:focus-visible,
.desktop-nav a:focus-visible,
.mobile-nav a:focus-visible {
    outline: 3px solid rgba(0, 223, 194, 0.45);
    outline-offset: 4px;
}

/* =====================================================
   MAPA
===================================================== */

.map-section {
    margin-top: clamp(65px, 9vw, 100px);
}

.map-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 24px;
}

.map-heading .section-label {
    margin-bottom: 8px;
}

.map-title {
    margin: 0 !important;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem) !important;
}

.map-heading address {
    max-width: 360px;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    font-style: normal;
    line-height: 1.7;
    text-align: right;
}

#map {
    width: 100%;
    height: 440px;
    overflow: hidden;
    background: #e6edf2;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-small);
}

.mapboxgl-popup-content {
    padding: 14px 18px;
    color: var(--text);
    font-family: Poppins, sans-serif;
    border-radius: var(--radius-small);
    box-shadow: var(--shadow-small);
}

/* =====================================================
   FOOTER
===================================================== */

/* =====================================================
   STOPKA
===================================================== */

.site-footer {
    width: 100%;
    padding: 70px 0 24px;
    color: #a8b6c3;
    background: #04111f;
}

.site-footer .footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(35px, 6vw, 80px);
    align-items: start;
    justify-items: center;
}

/* Wszystkie trzy kolumny */

.site-footer .footer-brand,
.site-footer .footer-company,
.site-footer .footer-social {
    display: flex;
    width: 100%;
    max-width: 280px;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* Logo */

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.site-footer .footer-logo img {
    display: block;
    width: 160px;
    height: auto;
    object-fit: contain;
}

/* Nagłówki kolumn */

.site-footer .footer-title {
    display: block;
    margin-bottom: 18px;
    color: var(--cyan);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-align: center;
    text-transform: uppercase;
}

/* Dane firmy */

.site-footer .footer-company h3 {
    margin: 0 0 16px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
}

.site-footer .company-numbers {
    display: grid;
    width: 100%;
    gap: 9px;
    margin: 0;
}

.site-footer .company-numbers div {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 12px;
}

.site-footer .company-numbers dt {
    min-width: 52px;
    color: #74899a;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: right;
}

.site-footer .company-numbers dd {
    min-width: 105px;
    margin: 0;
    color: #d4dde5;
    font-size: 0.78rem;
    text-align: left;
}

/* Social media */

.site-footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
}

.site-footer .social-link {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #d9e3eb;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 50%;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.site-footer .social-link:hover {
    color: #04111f;
    background: var(--cyan);
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.site-footer .social-link svg {
    display: block;
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.site-footer .social-link:nth-child(2) svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.site-footer .social-link:nth-child(2) .social-dot {
    fill: currentColor;
    stroke: none;
}

.site-footer .social-link:nth-child(3) .youtube-play {
    fill: #04111f;
}

/* Dolna część stopki */

.site-footer .footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 35px;
    margin-top: 55px;
    padding-top: 23px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer .footer-bottom p {
    margin: 0;
    color: #748695;
    font-size: 0.7rem;
}

.site-footer .back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #a8b6c3;
    font-size: 0.7rem;
    transition: color 0.2s ease;
}

.site-footer .back-to-top span {
    color: var(--cyan);
    font-size: 1rem;
    transition: transform 0.2s ease;
}

.site-footer .back-to-top:hover {
    color: #ffffff;
}

.site-footer .back-to-top:hover span {
    transform: translateY(-3px);
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
    .site-footer {
        padding-top: 60px;
    }

    .site-footer .footer-inner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 48px 35px;
    }

    .site-footer .footer-social {
        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 620px) {
    .site-footer {
        padding-top: 52px;
    }

    .site-footer .footer-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .site-footer .footer-brand,
    .site-footer .footer-company,
    .site-footer .footer-social {
        max-width: 100%;
    }

    .site-footer .footer-social {
        grid-column: auto;
    }

    .site-footer .footer-logo img {
        width: 145px;
    }

    .site-footer .footer-bottom {
        align-items: center;
        flex-direction: column;
        gap: 12px;
        margin-top: 45px;
    }
}

/* =====================================================
   MAŁE TELEFONY
===================================================== */

@media (max-width: 380px) {
    .site-footer .company-numbers div {
        align-items: center;
        flex-direction: column;
        gap: 2px;
    }

    .site-footer .company-numbers dt,
    .site-footer .company-numbers dd {
        min-width: 0;
        text-align: center;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-social {
    grid-column: 1 / -1;
  }
}

/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 600px) {
  .site-footer {
    padding-top: 55px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .footer-social {
    grid-column: auto;
  }

  .footer-logo img {
    width: 150px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    margin-top: 45px;
  }
}

/* =====================================================
   ANIMACJE
===================================================== */

.animate {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.65s ease,
        transform 0.65s ease;
}

.animate.visible {
    opacity: 1;
    transform: none;
}

/* =====================================================
   MNIEJSZY DESKTOP
===================================================== */

@media (max-width: 1100px) {
    .desktop-nav {
        gap: 22px;
    }

    .header-button {
        padding-inline: 15px;
    }

    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-box {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        max-width: 700px;
    }
}

/* =====================================================
   TABLET
===================================================== */

@media (max-width: 920px) {
    :root {
        --header-height: 80px;
    }

    .container {
        width: min(var(--max), calc(100% - 36px));
    }

    .desktop-nav,
    .header-button {
        display: none;
    }

    .menu-button {
        display: flex;
        width: 46px;
        height: 46px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 5px;
        padding: 10px;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .menu-button span {
        width: 25px;
        height: 2px;
        background: var(--navy);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .menu-open .menu-button span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-open .menu-button span:nth-child(2) {
        opacity: 0;
    }

    .menu-open .menu-button span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .mobile-nav {
        position: absolute;
        top: var(--header-height);
        right: 0;
        left: 0;
        display: flex;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
        flex-direction: column;
        padding: 14px 18px 24px;
        background: var(--white);
        box-shadow: 0 16px 30px rgba(7, 26, 47, 0.12);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-15px);
        transition:
            opacity 0.25s ease,
            transform 0.25s ease;
    }

    .mobile-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .mobile-nav a {
        padding: 13px 12px;
        border-bottom: 1px solid var(--line);
        font-size: 0.9rem;
    }

    .hero {
        height: auto;
        min-height: 680px;
        background-position: 62% center;
    }

    .about-grid,
    .section-head {
        grid-template-columns: 1fr;
    }

    .about-photo,
    .about-photo > img {
        min-height: 420px;
        height: 420px;
    }

    .about-card {
        min-height: 380px;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 380px 225px;
    }

    .gallery-item-large {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .advantage,
    .advantage:first-child,
    .advantage:last-child {
        padding: 30px;
        border-right: 1px solid rgba(255, 255, 255, 0.13);
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* =====================================================
   TELEFON
===================================================== */

@media (max-width: 650px) {
    :root {
        --header-height: 74px;
    }

    .container {
        width: min(var(--max), calc(100% - 32px));
    }

    .site-header {
        height: var(--header-height);
    }

    .logo img {
        width: 125px;
        height: 54px;
    }

    .hero {
        min-height: 650px;
        padding-block: 55px;
        background-position: 63% center;
    }

    .hero-content {
        padding: 28px 22px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero p {
        font-size: 15px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .scroll-hint {
        display: none;
    }

    .section {
        padding: 75px 0;
    }

    .section h2,
    .cta h2 {
        font-size: clamp(2rem, 9vw, 2.5rem);
    }

    .about-photo,
    .about-photo > img {
        min-height: 340px;
        height: 340px;
    }

    .about-photo figcaption {
        padding: 20px;
    }

    .about-card {
        min-height: 320px;
        padding: 30px;
    }

    .cards,
    .advantages-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .card {
        min-height: 360px;
    }

    .card:has(.card-image) {
        min-height: 420px;
    }

    .card-image {
        height: 190px;
    }

    .gallery-grid {
        grid-template-rows: none;
    }

    .gallery-item,
    .gallery-item-large {
        grid-column: auto;
        grid-row: auto;
        height: 275px;
    }

    .advantage,
    .advantage:first-child,
    .advantage:last-child {
        padding: 28px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    }

    .advantage:last-child {
        border-bottom: 0;
    }

    .cta {
        padding: 58px 0;
    }

    .contact-box {
        gap: 35px;
        padding: 30px 20px;
    }

    .contact-company {
        margin-top: 28px;
        padding-top: 22px;
    }

    .contact-option {
        grid-template-columns: 50px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 17px;
    }

    .contact-icon {
        width: 50px;
        height: 50px;
    }

    .contact-icon svg {
        width: 22px;
        height: 22px;
    }

    .contact-value {
        font-size: 0.92rem;
    }

    .contact-option-content p {
        display: none;
    }

    .contact-button {
        grid-column: 1 / -1;
        width: 100%;
        margin-top: 4px;
    }

    .map-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .map-heading address {
        text-align: left;
    }

    #map {
        height: 340px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .footer-inner nav {
        justify-content: flex-start;
    }

    .copyright {
        grid-column: auto;
    }
}

/* =====================================================
   BARDZO MAŁE TELEFONY
===================================================== */

@media (max-width: 380px) {
    .container {
        width: calc(100% - 24px);
    }

    .hero-content {
        padding: 25px 18px;
    }

    .hero h1 {
        font-size: 30px;
    }

    .contact-box {
        padding: 25px 15px;
    }

    .contact-option {
        padding: 17px 14px;
    }

    .contact-icon {
        width: 46px;
        height: 46px;
    }
}

/* =====================================================
   OGRANICZENIE ANIMACJI
===================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .animate {
        opacity: 1;
        transform: none;
    }
}