/* =============================
   HOME ROOT LAYOUT
============================= */

.home-root {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    overflow: hidden;
    transition: all .5s ease;
}

/* =============================
   LEFT BRAND SIDE
============================= */

.home-left {
    width: 42%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: clamp(16px, 2vw, 40px);
    padding-right: 0;
}

.brand-block {
    max-width: 520px;
	margin-left: 80px;
}

.brand-logo {
    width: clamp(110px, 14.5vw, 210px);
    margin-bottom: 30px;
}

.brand-title {
    font-size: clamp(29px, 4vw, 58px);
    font-weight: 600;
    line-height: 0.90;
    letter-spacing: 2px;
    margin-bottom: 20px;
    margin-left: clamp(6px, 1vw, 14px);
}

.brand-title span {
    display: block;
}

.brand-title .accent {
    color: #b6ff00;
}

.brand-title .accent-alt {
    color: #ff7a00;
}

.brand-desc {
    font-size: clamp(11px, 0.85vw, 15px);
    opacity: 0.7;
    color: #646270;
    line-height: 1.5;
    letter-spacing: 0.28px;
    margin-left: clamp(6px, 1vw, 14px);
}
/* Contact button */
.contact-btn {
    display: inline-block;
    margin-top: 28px;
	margin-left: 10px;
    padding: 12px 28px;
    background: #c6ff00;
    color: #000;
    font-weight: 600;
    text-decoration: none;
    border-radius: 30px;
    transition: 0.3s ease;
}

.contact-btn:hover {
    background: #e0ff5a;
    transform: translateY(-2px);
}

/* =============================
   RIGHT TILES SIDE
============================= */

.home-right {
    width: 58%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: clamp(16px, 2vw, 40px);
    padding-left: 0;
    position: relative;
}

/* =============================
   TILES LAYOUT
============================= */

.tiles-grid {
    position: relative;
    width: 100%;
    max-width: 760px;
    height: 96vh;
    display: flex;
    gap: clamp(6px, 0.8vw, 12px);
}

.tiles-col {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* =============================
   TILE BASE (IMAGE + TEXT = ONE UNIT)
============================= */

.tile {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 0.8vw, 12px);
    cursor: pointer;
    transition: transform .4s ease;
	position: relative;
    z-index: 1;
}

.tile:hover {
    transform: translateY(-6px);

    box-shadow:
        0 35px 80px rgba(0,0,0,0.75),
        0 0 60px rgba(182,255,0,0.08),
        0 0 120px rgba(182,255,0,0.04);
}

/* IMAGE */

.tile-image {
    flex: 1;
    border-radius: 36px;
    padding: 10px;
    background: linear-gradient(145deg, #0f0f12, #141418);
    border: 3px solid #232227;

    box-shadow:
        inset 0 0 120px rgba(0,0,0,0.6),
        inset 0 -60px 120px rgba(0,0,0,0.5),
        0 25px 60px rgba(0,0,0,0.75);

    overflow: hidden;
    position: relative;
}





/* =============================
   TILE BIG NUMBER OVERLAY
============================= */

.tile-image {
    position: relative;
    overflow: hidden;
}

.tile-zero {
    font-family: "Inter", sans-serif;

    position: absolute;
    top: 15%;
    left: 30%;
    transform: translate(-50%, -50%);

    font-size: 20vh;
    font-weight: 900;
    line-height: 1;

    color: rgba(182, 255, 0, 0.4);

    pointer-events: none;
    user-select: none;

    z-index: 5;

    /* KLUCZ */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 25%,
        black 25%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 25%,
        black 25%,
        black 100%
    );
}

.tile-zero-down {
    font-family: "Inter", sans-serif;

    position: absolute;
    bottom: -10%;
    left: 30%;
    transform: translate(-50%, -50%);

    font-size: 20vh;
    font-weight: 900;
    line-height: 1;

    color: rgba(182, 255, 0, 0.4);

    pointer-events: none;
    user-select: none;

    z-index: 5;

    /* KLUCZ */
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 25%,
        black 25%,
        black 100%
    );

    mask-image: linear-gradient(
        to right,
        transparent 0%,
        transparent 25%,
        black 25%,
        black 100%
    );
}




/* TEXT */

.tile-text {
    padding: 22px;
    border-radius: 24px;
    background: linear-gradient(145deg, #121212, #1a1a1a);
    border: 3px solid #232227;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: border-color .4s ease;
	color: #646270;
}

.tile-text h3 {
    color: #b6ff00;
    margin-bottom: 6px;
}

.tile-text p {
    opacity: 0.7;
    font-size: 14px;
}


/* =============================
   ARROW CONTROL
============================= */

.tiles-toggle {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 60;
}

.tiles-toggle-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(20,20,20,0.7);
    border: 1px solid rgba(255,255,255,0.1);
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: transform .35s ease, box-shadow .35s ease;
}

.tiles-toggle-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(182,255,0,0.12);
}

.arrow-icon {
    display: block;
    width: 18px;
    height: 18px;
    margin: auto;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) translate(3px, -2px);
    transition: transform .35s ease;
}

.home-root.expanded .arrow-icon {
    transform: rotate(225deg) translate(3px, -2px);
}

/* =============================
   EXPAND MODE
============================= */

.home-root.expanded .home-left {
    width: 0;
    opacity: 0;
    pointer-events: none;
}

.home-root.expanded .home-right {
    width: 100%;
    justify-content: center;
}

.home-root.expanded .tiles-grid {
    max-width: 1200px;
}

/* =============================
   DROP VIEW OVERLAY
============================= */

.drop-view {
    position: fixed;
    inset: 0;

    background: #000;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity 0.4s ease;

    z-index: 200;
}

.drop-view.active {
    opacity: 1;
    pointer-events: auto;
}


/* BACK BUTTON */

.drop-back {
    position: absolute;
    top: 40px;
    left: 40px;

    background: rgba(20,20,20,0.8);
    border: 1px solid rgba(255,255,255,0.15);

    color: white;
    padding: 12px 18px;

    border-radius: 999px;

    cursor: pointer;
}


/* TITLE (TEMPORARY) */

.drop-content h2 {
    font-size: 48px;
    letter-spacing: 4px;
    color: #b6ff00;
}


/* =============================
   DROP GALLERY — PREMIUM SLIDER
============================= */

.drop-gallery {

    margin-top: 40px;

    width: 92vw;
    height: 72vh;

    display: flex;
    gap: clamp(20px, 2vw, 40px);

    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding-inline: 6vw;
}


/* HIDE SCROLLBAR */

.drop-gallery::-webkit-scrollbar {
    display: none;
}
.drop-gallery {
    scrollbar-width: none;
}


/* SLIDE IMAGE */

.drop-gallery img {

    height: 100%;
    width: auto;

    border-radius: 22px;

    scroll-snap-align: center;
    flex-shrink: 0;

    opacity: 0;
    filter: blur(14px);
    transform: scale(1.02);

    box-shadow:
        0 30px 60px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.06);

    transition:
        opacity .5s ease,
        filter .6s ease,
        transform .6s ease;
}

/* IMAGE LOADED STATE */

.drop-gallery img.is-loaded {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}





/* HOVER = subtle premium lift */

.drop-gallery img:hover {
    transform: scale(1.02);
}
/* =============================
   GALLERY NAV BUTTONS
============================= */

.drop-gallery-wrap {
    position: relative;
    display: flex;
    align-items: center;
}


/* BUTTON BASE */

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 64px;
    height: 64px;

    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.12);

    background: rgba(15,15,15,0.65);
    backdrop-filter: blur(6px);

    color: white;
    font-size: 36px;
    line-height: 1;

    cursor: pointer;
    z-index: 50;

    transition: all .25s ease;
}


/* LEFT */

.gallery-prev {
    left: 2vw;
}

/* RIGHT */

.gallery-next {
    right: 2vw;
}


/* HOVER */

.gallery-nav:hover {
    background: rgba(30,30,30,0.9);
    transform: translateY(-50%) scale(1.05);
}

/* =============================
   GALLERY EDGE FADE
============================= */

.drop-gallery-wrap::before,
.drop-gallery-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 8vw;
    z-index: 40;
    pointer-events: none;
}


/* LEFT FADE */

.drop-gallery-wrap::before {
    left: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.95),
        rgba(0,0,0,0.6),
        transparent
    );
}


.drop-title-block p {
    font-size: 16px;
    opacity: 0.7;
    line-height: 1.5;
	letter-spacing: 1px;
	margin-left: clamp(80px, 8vw, 140px);
}

.drop-title-main {
    font-size: 42px;
    font-weight: 600;
    color: #c6ff00; /* ten sam neon co tile */
	letter-spacing: 1px;
	font-family: 'Inter', sans-serif;
}

.drop-title-sub {
    font-size: 16px;
    font-weight: 500;
	color: #646270;
    opacity: 0.7;
	letter-spacing: 1px;
}


/* RIGHT FADE */

.drop-gallery-wrap::after {
    right: 0;
    background: linear-gradient(
        to left,
        rgba(0,0,0,0.95),
        rgba(0,0,0,0.6),
        transparent
    );
}

/* =============================
   TILES EXPAND MODE
============================= */

.home-root {
    transition: all .5s ease;
}

/* LEFT BRAND COLLAPSE */

.home-root.expanded .home-left {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: all .5s ease;
}

/* RIGHT TAKES FULL WIDTH */

.home-root.expanded .home-right {
    width: 100%;
    justify-content: center;
    transition: all .5s ease;
}

/* TILES CENTERED */

.home-root.expanded .tiles-grid {
    max-width: 1200px;
}

/* =============================
   LIGHTBOX
============================= */

.lightbox {
    position: fixed;
    inset: 0;

    background: rgba(0,0,0,0.96);

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    pointer-events: none;

    transition: opacity .35s ease;

    z-index: 300;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {

    max-width: 94vw;
    max-height: 94vh;

    border-radius: 18px;

    transform: scale(.9);
    transition: transform .35s ease;

    box-shadow:
        0 40px 80px rgba(0,0,0,0.8);
}

.lightbox.active img {
    transform: scale(1);
}

/* CLOSE BUTTON */

.lightbox-close {

    position: absolute;
    top: 40px;
    left: 40px;

    padding: 12px 20px;

    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.15);

    background: rgba(20,20,20,0.75);
    backdrop-filter: blur(6px);

    color: white;
    font-size: 14px;
    letter-spacing: 1px;

    cursor: pointer;

    transition: all .25s ease;
}

.lightbox-close:hover {
    background: rgba(40,40,40,0.9);
    transform: scale(1.05);
}

body.lightbox-open {
    overflow: hidden;
}

/* fix overlap with BACK button */

.tiles-grid {

    padding-left: clamp(80px, 8vw, 140px);

}

/* FIX — przesunięcie tytułu dropa żeby nie wchodził pod BACK */

.drop-title-block {

    margin-left: 120px; /* dopasowane do pozycji BACK */
    margin-top: 40px;

}

/* =============================
   CONTACT PAGE — CLEAN VERSION
   does NOT modify layout alignment
============================= */

/* formularz wrapper */

.contact-form-wrap {

    width: 100%;
    max-width: 420px;

    margin-top: 30px;

}

/* formularz layout */

.contact-form {

    display: flex;
    flex-direction: column;
    gap: 14px;

}

/* pola */

.contact-form input,
.contact-form textarea {

    width: 100%;

    padding: 14px 16px;

    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 10px;

    color: #fff;

    font-family: 'Inter', sans-serif;
    font-size: 14px;

}

/* textarea */

.contact-form textarea {

    height: 160px;
    resize: vertical;

}

/* przycisk */

.contact-form .contact-btn {

    width: 100%;
    margin-top: 10px;

}

/* mapa */

.contact-map {

    margin-top: 30px;

    width: 100%;
    max-width: 420px;

}

.contact-map iframe {

    width: 100%;
    height: 260px;

    border-radius: 16px;
    display: block;

}

/* komunikaty */

.contact-success {

    color: #c6ff00;
    margin-bottom: 20px;

}

.contact-error {

    color: #ff4d4d;
    margin-bottom: 20px;

}

/* CONTACT PAGE — smaller logo and title */

.contact-layout .brand-logo {

    width: clamp(55px, 7.25vw, 105px);

}

.contact-layout .brand-title {

    font-size: clamp(14.5px, 2vw, 29px);
    line-height: 0.95;

}

/* BACK button as link — remove underline */

.drop-back {

    text-decoration: none;
    color: white;

}
.drop-back:hover {

    text-decoration: none;
    color: white;

}

/* CONTACT PAGE — align logo and map with text */

.contact-layout .brand-logo,
.contact-layout .contact-map {

    margin-left: clamp(6px, 1vw, 14px);

}

/* CONTACT PAGE — move form left (correct alignment) */

.contact-layout .home-right {

    justify-content: center;
    padding-left: 16px;
    padding-right: 16px;
}


/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1100px) {

	/* =============================
	   ROOT → 1 COLUMN MOBILE LAYOUT
	============================= */

	.home-root {
		flex-direction: column;
		height: auto;
		min-height: 100vh;
		overflow-x: hidden;
	}


	/* =============================
	   LEFT BLOCK (LOGO + TITLE + DESC)
	============================= */

	.home-left {
		width: 100%;
		height: auto;

		display: flex;
		justify-content: center;
		align-items: center;

		padding: 40px 20px 10px 20px;
	}


	.brand-block {

		margin-left: 0;
		max-width: 520px;
		width: 100%;

		display: flex;
		flex-direction: column;
		align-items: center;

		text-align: center;
	}


	/* LOGO */

	.brand-logo {

		width: clamp(90px, 28vw, 160px);
		margin-bottom: 22px;
	}


	/* TITLE */

	.brand-title {

		margin-left: 0;

		font-size: clamp(24px, 7.5vw, 42px);
		line-height: 0.95;

		margin-bottom: 16px;
	}


	/* DESCRIPTION */

	.brand-desc {

		margin-left: 0;

		font-size: clamp(13px, 3.6vw, 15px);

		max-width: 420px;
	}


	/* BUTTON */

	.contact-btn {

		margin-top: 22px;
	}



	/* =============================
	   RIGHT BLOCK (TILES / FORM / MAP)
	============================= */

	.home-right {

		width: 100%;
		height: auto;

		display: flex;
		justify-content: center;
		align-items: center;

		padding: 20px;
	}



	/* =============================
	   TILES GRID → STACKED MOBILE
	============================= */

	.tiles-grid {

		width: 100%;
		max-width: 520px;

		height: auto;

		flex-direction: column;

		padding-left: 0;
		gap: 18px;
	}


	/* remove side columns layout */

	.tiles-col {

		width: 100%;
	}


	/* tile sizing */

	.tile {

		width: 100%;
	}


	/* image height control */

	.tile-image {

		aspect-ratio: 4 / 5;
	}


	/* scale numbers properly */

	.tile-zero,
	.tile-zero-down {

		font-size: 18vw;
	}



	/* =============================
	   CONTACT PAGE FIXES
	============================= */

	.contact-form-wrap,
	.contact-map {

		width: 100%;
		max-width: 520px;
	}


	/* =============================
	   BACK BUTTON MOBILE POSITION
	============================= */

	.drop-back {

		top: 16px;
		left: 16px;
	}


	/* =============================
	   GALLERY MOBILE
	============================= */

	.drop-gallery {

		height: 60vh;
		padding-inline: 20px;
	}


	.gallery-nav {

		width: 48px;
		height: 48px;
		font-size: 26px;
	}



	/* =============================
	   SAFETY: PREVENT OVERFLOW
	============================= */

	body {
		overflow-x: hidden;
	}
	
	/* KLUCZOWY FIX SCROLLA */

	html, body {
		height: auto;
		min-height: 100%;
		overflow-x: hidden;
		overflow-y: auto;
	}


	.home-root {
		height: auto;
		min-height: 100vh;
		overflow: visible;
	}


	/* dodatkowy safety */

	.home-right,
	.tiles-grid {
		height: auto;
	}

	/* 1. tiles-grid jako 1 kolumna */

	.tiles-grid {
		display: flex;
		flex-direction: column;
		gap: 28px;
		padding-left: 0;
	}


	/* 2. usuń sztuczne kolumny */

	.tiles-col {
		display: contents;
	}


	/* 3. tile jako flex column */

	.tile {
		display: flex;
		flex-direction: column;
	}


	/* 4. KOLEJNOŚĆ: TEXT → IMAGE */

	.tile-text {
		order: 1;
	}

	.tile-image {
		order: 2;
	}


	/* 5. mobile sizing */

	.tile-image {
		width: 100%;
		aspect-ratio: 4 / 5;
	}

}

@media (max-width: 1100px), (max-height: 700px) {

/* pozwól stronie rosnąć */

.home-root {
    height: auto;
    min-height: 100vh;
    overflow: visible;
}


/* pozwól tiles się zmieścić */

.tiles-grid {
    height: auto;
}


/* pozwól scrollować */

html, body {
    height: auto;
    overflow-y: auto;
}

}

/* TABLET LANDSCAPE FIX */

@media (max-height: 700px) and (min-width: 900px) {

.home-root {

    height: auto;
    min-height: 100vh;

    align-items: flex-start;

    padding-top: 40px;
    padding-bottom: 40px;
}


.home-left {

    align-items: flex-start;
}


.home-right {

    align-items: flex-start;
}


.tiles-grid {

    height: auto;
    max-height: none;
}


.tile-image {

    aspect-ratio: 4 / 5;
}


}

/* =====================================================
   BASE — DESKTOP XL (default)
   > 1400px width, > 900px height
===================================================== */

.home-root {
    min-height: 100vh;
}


/* =====================================================
   LAPTOP
   1100–1400 width OR low height
===================================================== */

@media (max-width: 1400px), (max-height: 900px) {

.tiles-grid {
    max-width: 680px;
}

.brand-block {
    margin-left: 40px;
}

}


/* =====================================================
   TABLET LANDSCAPE
   width 900–1200, height < 800
   Xiaomi Pad, iPad landscape
===================================================== */

@media (min-width: 900px) and (max-width: 1200px),
       (min-width: 900px) and (max-height: 800px) {

.home-root {

    height: auto;
    min-height: 100vh;

    align-items: flex-start;

    padding-top: 40px;
    padding-bottom: 40px;
}


.home-left {

    width: 46%;
    align-items: flex-start;
}


.home-right {

    width: 54%;
    align-items: flex-start;
}


.tiles-grid {

    height: auto;
}


.tile-image {

    aspect-ratio: 4 / 5;
}


.brand-logo {

    width: clamp(90px, 12vw, 160px);
}


.brand-title {

    font-size: clamp(28px, 3.5vw, 46px);
}

}


/* =====================================================
   TABLET PORTRAIT
   width < 900
===================================================== */

@media (max-width: 900px) {

.home-root {

    flex-direction: column;

    height: auto;
    min-height: 100vh;
}


.home-left,
.home-right {

    width: 100%;
}


.home-left {

    justify-content: center;
}


.home-right {

    justify-content: center;
}


.tiles-grid {

    height: auto;
}

}


/* =====================================================
   MOBILE
   width < 600
===================================================== */

@media (max-width: 600px) {

.brand-block {

    margin-left: 0;
    text-align: center;
    align-items: center;
}


.brand-logo {

    width: clamp(90px, 28vw, 160px);
}


.brand-title {

    font-size: clamp(24px, 8vw, 38px);
}


.brand-desc {

    font-size: 14px;
}


.tiles-col {

    display: contents;
}


.tile {

    flex-direction: column;
}


.tile-text {
    order: 1;
}

.tile-image {
    order: 2;
}

}


/* =====================================================
   SMALL MOBILE
   width < 400
===================================================== */

@media (max-width: 400px) {

.brand-title {

    font-size: 22px;
}

.tile-text {

    padding: 16px;
}

}

/* TABLET LANDSCAPE — FULL HEIGHT FIX */

@media (min-width: 900px) and (max-width: 1200px) and (orientation: landscape),
       (min-height: 500px) and (max-height: 800px) and (orientation: landscape) {

.home-root {

    min-height: 100vh;
    height: 100vh;

    align-items: stretch;
}


/* obie kolumny wypełniają wysokość */

.home-left,
.home-right {

    height: 100%;

    display: flex;
}


/* logo block wycentrowany pionowo */

.home-left {

    align-items: center;
}


/* tiles wycentrowane pionowo */

.home-right {

    align-items: center;
}


/* tiles mogą się rozciągać */

.tiles-grid {

    height: auto;
    min-height: 70vh;
}

}

@media (max-width: 600px) {

.tile-text h3 {
    display: block;
    margin-bottom: 4px;
}

.tile-text p {
    display: block;
	white-space: normal;
}

}

.mobile-break {
    display: inline;
}

@media (max-width: 600px) {

.mobile-break {
    display: block;
    height: 0;
}

}

/* desktop: wszystko w jednej linii */

.drop-title-main,
.drop-title-sub {
    display: inline;
}

.drop-title-sub br {
    display: none;
}


/* mobile: każda część w nowej linii */

@media (max-width: 600px) {

.drop-title-main {
    display: block;
}

.drop-title-sub {
    display: block;
}

.drop-title-sub br {
    display: block;
}

}

/* ==========================================
   FINAL FIX — DROP TITLE RESPONSIVE
   (override all previous conflicting rules)
========================================== */

/* DESKTOP / TABLET — jedna linia */

.drop-title-block {

    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 12px;

}

.drop-title-main {

    display: inline;
    white-space: nowrap;
}

.drop-title-sub {

    display: inline;
    white-space: nowrap;
}

.drop-title-sub br {

    display: none;
}


/* MOBILE — podział na linie */

@media (max-width: 600px) {

.drop-title-block {

    display: block;
}

.drop-title-main {

    display: block;
    white-space: normal;
}

.drop-title-sub {

    display: block;
    white-space: normal;
}

.drop-title-sub br {

    display: block;
}

}


/* =====================================================
   CONTACT PAGE — MASTER LAYOUT FIX
   działa dla desktop, tablet, mobile
===================================================== */

.contact-layout .home-root {

    /* KLUCZOWE */
    width: 100%;
    max-width: 1200px;

    margin-left: auto;
    margin-right: auto;

    padding-left: clamp(16px, 4vw, 40px);
    padding-right: clamp(16px, 4vw, 40px);

}


/* lepsze proporcje kolumn */

.contact-layout .home-left {

    flex: 0 0 48%;
    max-width: 520px;

}


.contact-layout .home-right {

    flex: 1;
    max-width: 520px;

}


/* wycentrowanie formularza */

.contact-layout .contact-form-wrap {

    width: 100%;
    max-width: 520px;

}


/* wycentrowanie mapy */

.contact-layout .contact-map {

    width: 100%;
    max-width: 520px;

}


/* =====================================================
   TABLET PORTRAIT FIX
===================================================== */

@media (max-width: 900px) {

.contact-layout .home-root {

    max-width: 520px;

}

.contact-layout .home-left,
.contact-layout .home-right {

    max-width: 100%;
    flex: none;

}

}


/* =====================================================
   MOBILE — already stacked, just safety
===================================================== */

@media (max-width: 600px) {

.contact-layout .home-root {

    padding-left: 16px;
    padding-right: 16px;

}

}

/* =====================================================
   CONTACT PAGE — SMARTPHONE PERFECT CENTER FIX
===================================================== */

@media (max-width: 600px) {

.contact-layout .home-root {

    max-width: 520px;
    margin-left: auto;
    margin-right: auto;

}


/* wycentruj blok logo */

.contact-layout .home-left {

    align-items: center;
    justify-content: center;
    text-align: center;

}


/* usuń stare offsety desktop */

.contact-layout .brand-block {

    margin-left: 0;
}


/* wycentruj mapę */

.contact-layout .contact-map {

    margin-left: auto;
    margin-right: auto;
}


/* wycentruj formularz */

.contact-layout .home-right {

    justify-content: center;
}


.contact-layout .contact-form-wrap {

    margin-left: auto;
    margin-right: auto;
}

}

/* =====================================================
   CONTACT PAGE — FINAL SMARTPHONE FIX (OVERRIDE ALL)
===================================================== */

@media (max-width: 600px) {

body.contact-layout .home-root {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}


/* napraw LEFT block */

body.contact-layout .home-left {

    padding-left: 16px !important;
    padding-right: 16px !important;

    justify-content: center !important;
    align-items: center !important;

    text-align: center;
}


/* usuń desktop offset */

body.contact-layout .brand-block {
    margin-left: 0 !important;
    align-items: center;
}


/* usuń margin-left z logo */

body.contact-layout .brand-logo {
    margin-left: 0 !important;
}


/* wycentruj mapę */

body.contact-layout .contact-map {

    margin-left: auto !important;
    margin-right: auto !important;
}


/* wycentruj formularz */

body.contact-layout .home-right {

    justify-content: center !important;
}


body.contact-layout .contact-form-wrap {

    margin-left: auto !important;
    margin-right: auto !important;
}

}

/* ==========================================
   CONTACT PAGE — REAL FINAL SMARTPHONE FIX
========================================== */

@media (max-width: 600px) {

body.contact-layout .home-root {

    width: 100% !important;
    max-width: 520px;

    margin-left: auto !important;
    margin-right: auto !important;

    padding-left: 16px;
    padding-right: 16px;

}


/* kluczowe — usuwa flex stretch bug */

body.contact-layout {

    display: flex;
    justify-content: center;

}

}

/* CONTACT PAGE — SMARTPHONE OVERRIDE (REAL FIX) */

@media (max-width: 600px) {

body.contact-layout .home-root {

    flex-direction: column;

}

body.contact-layout .home-left {

    width: 100%;
    align-items: flex-start !important;
    justify-content: flex-start !important;

    text-align: left !important;

}

body.contact-layout .home-right {

    width: 100%;
    justify-content: flex-start !important;

}

body.contact-layout .contact-form-wrap,
body.contact-layout .contact-map {

    margin-left: 0 !important;
    margin-right: 0 !important;

    max-width: 100% !important;

}

}

/* ==========================================
   CONTACT PAGE — REAL MOBILE FIX
   usuwa flex-grow który psuje layout
========================================== */

@media (max-width: 600px) {

body.contact-layout .home-root {

    display: block !important;

}


body.contact-layout .home-left,
body.contact-layout .home-right {

    width: 100% !important;
    max-width: 520px !important;

    margin-left: auto;
    margin-right: auto;

    flex: none !important;     /* KLUCZOWE */
    height: auto !important;   /* KLUCZOWE */

}


body.contact-layout .home-right {

    margin-top: 20px;

}

}

/* ==========================================
   CONTACT PAGE — REAL FINAL MOBILE FIX
   usuwa max-width które psuje mobile
========================================== */

@media (max-width: 600px) {

    body.contact-layout .home-root {
        max-width: 100%;
        padding-left: 16px;
        padding-right: 16px;
    }

    body.contact-layout .home-left,
    body.contact-layout .home-right {

        max-width: 100%;
        width: 100%;
        flex: none;

    }

    body.contact-layout .contact-form-wrap,
    body.contact-layout .contact-map {

        max-width: 100%;
        width: 100%;

    }

}

/* ==========================================
CONTACT PAGE — ABSOLUTE FINAL MOBILE FIX
========================================== */

@media (max-width: 600px) {

body.contact-layout .home-root {

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: flex-start;

    width: 100%;
    max-width: 520px;

    margin-left: auto;
    margin-right: auto;

    padding-left: 16px;
    padding-right: 16px;

}

body.contact-layout .home-left,
body.contact-layout .home-right {

    width: 100%;
    max-width: 420px;

}

}

/* ==========================================
   CONTACT PAGE — ABSOLUTE FINAL MOBILE FIX
   (musi być na samym końcu pliku)
========================================== */

@media (max-width: 600px) {

    body.contact-layout .home-root {
        flex-direction: column !important;
        align-items: center !important;
    }

    body.contact-layout .home-left,
    body.contact-layout .home-right {

        flex: none !important;      /* KLUCZOWE — usuwa flex: 0 0 48% */
        width: 100% !important;
        max-width: 520px !important;

    }

}

/* ==========================================
   CONTACT PAGE — REAL FINAL FIX
========================================== */

body.contact-layout .home-root {
    width: 100% !important;
}

/* ==========================================
CONTACT PAGE — TRUE FINAL MOBILE FIX
========================================== */

@media (max-width: 600px) {

    body.contact-layout .home-right {
        flex: none !important;
    }

    body.contact-layout .home-left {
        flex: none !important;
    }

}

/* MOBILE — korekta pozycji numerów */

@media (max-width: 600px) {

    /* CURRENT DROP */
    .tile-current .tile-zero,
    .tile-current .tile-zero-down {
        left: 12%;
		top: 86%;
    }

    /* PREVIOUS DROP */
    .tile-previous .tile-zero,
    .tile-previous .tile-zero-down {
        left: 12%;
		top: 86%;
    }
	
	/* OLDEST DROP */
    .tile-oldest .tile-zero,
    .tile-oldest .tile-zero-down {
        left: 12%;
		top: 86%;
    }

}

@media (min-width: 601px) and (max-width: 900px) and (orientation: portrait) {

    /* tablet pion */
	    /* CURRENT DROP */
    .tile-current .tile-zero,
    .tile-current .tile-zero-down {
        left: 12%;
		top: 86%;
    }

    /* PREVIOUS DROP */
    .tile-previous .tile-zero,
    .tile-previous .tile-zero-down {
        left: 12%;
		top: 86%;
    }
	
	/* OLDEST DROP */
    .tile-oldest .tile-zero,
    .tile-oldest .tile-zero-down {
        left: 12%;
		top: 86%;
    }
	
	.brand-block {
		justify-content: center;
		margin-left: 0px;
	}

}

/* =============================
   FOOTER
============================= */

.site-footer {

    width: 100%;
    margin-top: 20px;
    padding: 10px;

    display: flex;
    justify-content: center;

    font-size: 13px;
    color: #646270;
    opacity: 0.7;

}

.footer-inner {

    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;

}

.footer-logo {

    height: 14px;
    width: auto;

    opacity: 0.9;

}

.footer-separator {

    margin-left: 8px;

}

/* =============================
   PAGE WRAP FIX — CONTACT MOBILE
============================= */

.page-wrap {

    display: flex;
    flex-direction: column;

    min-height: 100vh;

}


/* footer zawsze pod content */

.site-footer {

    margin-top: auto;

}


/* MOBILE FIX — usuwa flex konflikt */

@media (max-width: 600px) {

    .page-wrap {

        display: block;

    }

}

/* CONTACT PAGE — FOOTER FIX (tablet landscape + wszystkie inne) */

body.contact-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.contact-layout .home-root {
    flex: 1;
}

.site-footer {
    margin-top: auto;
}

/* ==========================================
   CONTACT PAGE — FOOTER INSIDE FLEX ROOT FIX
========================================== */

body.contact-layout .home-root {
    display: flex;
    flex-wrap: wrap;       /* KLUCZOWE */
}

/* footer ma zajmować całą szerokość i iść pod sekcjami */

body.contact-layout .site-footer {

    flex: 0 0 100%;        /* KLUCZOWE */
    width: 100%;

    margin-top: auto;

    display: flex;
    justify-content: center;

}





