/* Raleway - Regular 400 */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-italic.woff2') format('woff2');
}

/* Raleway - SemiBold 600 */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-600italic.woff2') format('woff2');
}

/* Raleway - Bold 700 */
@font-face {
    font-family: 'Raleway';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Raleway';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/raleway-v37-latin-ext-700italic.woff2') format('woff2');
}
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-italic.woff2') format('woff2');
}

/* Montserrat - Medium 500 */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-500.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-500italic.woff2') format('woff2');
}

/* Montserrat - SemiBold 600 */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-600.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-600italic.woff2') format('woff2');
}

/* Montserrat - Bold 700 */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-700.woff2') format('woff2');
}

@font-face {
    font-family: 'Montserrat';
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/montserrat-v31-latin-ext-700italic.woff2') format('woff2');
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial;
}

html,
body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    height: 100%;
    text-align: center;
}

/* ===== BACKGROUND ===== */
.bg-fixed {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: url('img/background_nologo.webp');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    z-index: -1;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

@media (min-width: 769px) {
    .bg-fixed {
        background-attachment: fixed;
    }
}

/* ===== LOGO ===== */
.logo-wrapper {
    position: fixed;
    top: 8vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    pointer-events: none;
    width: auto;
    z-index: 50;
}

.logo-wrapper img {
    max-width: min(31.25vw, 600px);
    width: 80vw;
    height: auto;
    display: block;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 30px;
    width: 100%;
    text-align: center;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

nav.hidden {
    opacity: 0;
    pointer-events: none;
}

.nav-content {
    width: 60%;
    margin: 0 auto;
    display: inline-flex;
    justify-content: space-between;
    pointer-events: auto;
    min-width: fit-content;
    flex-wrap: nowrap;
}

nav a {
    margin: 0 clamp(8px, 1.3vw, 25px);
    font-size: clamp(12px, 0.94vw, 18px);
    text-decoration: none;
    color: #093C6A;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
    white-space: nowrap;
}

nav a:hover {
    color: orange;
}

nav a.active {
    color: white;
}

/* ===== STAGE & PANEL ===== */
.stage {
    position: relative;
    min-height: calc(100vh - 12vh);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 28vh;
    isolation: isolate;
    z-index: 100;
    padding-bottom: 5vh;
}

.panel {
    position: absolute;
    width: min(57.29vw, 95%);
    height: auto;
    min-height: 61vh;
    margin: auto;
    background: white;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.25);
    transition: transform 0.35s ease, opacity 0.35s ease;
    z-index: 100;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    /* panel jako flex container */
    display: flex;
    flex-direction: column;
}

/* ===== PANEL HEADER ===== */
.panel-header {
    width: 100%;
    padding: clamp(18px, 1.5vw, 28px) clamp(40px, 4.17vw, 80px) clamp(22px, 2.2vw, 42px);
    text-align: left;
    flex-shrink: 0;
}

.panel-header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    margin: 0;
}

.panel-header h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

/* ===== HOME PAGE GRID ===== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    grid-template-rows: auto 1fr 1fr;
    grid-template-areas:
        "title title"
        "box1 box2"
        "box3 box4";
    height: 100%;
    min-height: 61vh;
    flex: 1;
}

.home-title {
    grid-area: title;
    grid-column: 1 / 3;
    text-align: center;
    font-size: clamp(24px, 1.98vw, 38px);
    font-weight: bold;
    color: #6b7c8c;
    font-family: 'Raleway', sans-serif;
    padding: clamp(12px, 1.04vw, 20px) 0 clamp(24px, 2vw, 32px);
    position: relative;
}

.home-title::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 10px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

/* ===== BOXES ===== */
.box {
    background: white;
    padding: clamp(15px, 1.3vw, 25px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.box h1 {
    text-align: center;
    font-size: clamp(20px, 1.46vw, 28px);
    color: white;
    margin-bottom: 0;
    position: relative;
    font-family: 'Raleway', sans-serif;
}

.box h2 {
    text-align: center;
    font-size: clamp(20px, 1.46vw, 28px);
    color: white;
    margin-bottom: clamp(6px, 0.52vw, 10px);
    position: relative;
    font-family: 'Raleway', sans-serif;
}

.home-grid .box h2:nth-child(2) {
    position: relative;
    margin-bottom: clamp(12px, 1.04vw, 20px);
}

.home-grid .box h2:nth-child(2)::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(-18px, -1.56vw, -30px);
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.pricing-row div {
    border-right: 1px solid #eee;
}

.pricing-row div:last-child {
    border-right: none;
}

.box p {
    font-size: clamp(13px, 0.89vw, 17px);
    color: #88898A;
    line-height: 1.5;
    text-align: center;
    font-family: 'Raleway', sans-serif;
    padding: clamp(15px, 1.3vw, 25px);
}

.home-grid .box p {
    font-size: clamp(10px, 2vw, 17px);
}

.box:nth-child(2) {
    background: #6AA3A2;
}

.box:nth-child(3) {
    background-image: url('img/main_foto.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.box:nth-child(4) {
    background-image: url('img/main_map.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.box:nth-child(5) {
    grid-area: box4;
}

/* ===== APARTMENT BOX ===== */
.box-apartment {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 61vh;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.apt-headers,
.apt-body {
    display: grid;
    grid-template-columns: 9fr 11fr;
    gap: 0 clamp(65px, 6.51vw, 125px);
    width: 100%;
    padding-left: clamp(40px, 4.17vw, 80px);
    padding-right: clamp(40px, 4.17vw, 80px);
}

.apt-headers {
    padding-bottom: 0;
}

.apt-body {
    padding-bottom: clamp(20px, 1.82vw, 20px);
}

.apt-col-header {
    padding-left: 0;
    padding-right: 0;
}

.apt-col-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    margin: 0;
}

.apt-col-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.apt-text p,
.apt-amenities p {
    margin: 0;
    padding: 0;
    color: #6b7c8c;
    font-family: 'Raleway', sans-serif;
    text-align: justify;
    text-justify: inter-word;
    font-size: clamp(13px, 0.83vw, 16px);
    line-height: 1.6;
}

.apt-amenities ul {
    padding-left: clamp(12px, 1.04vw, 20px);
    margin: 0;
    list-style: disc;
    text-align: left;
}

.apt-amenities li {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(12px, 0.78vw, 15px);
    color: #6b7c8c;
    line-height: 1.35;
}

.apt-amenities li::marker {
    color: orange;
    font-size: clamp(14px, 0.94vw, 18px);
}

.apt-h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    position: relative;
    display: inline-block;
    margin: 0;
    padding-top: clamp(18px, 1.5vw, 28px);
    padding-bottom: clamp(22px, 2.2vw, 42px);
}

.apt-h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: clamp(10px, 1vw, 20px);
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.apt-h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    position: relative;
    display: inline-block;
    margin: 0;
    padding-top: clamp(18px, 1.5vw, 28px);
    padding-bottom: clamp(22px, 2.2vw, 42px);
}

.apt-h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: clamp(10px, 1vw, 20px);
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.orange-list li {
    text-indent: 10px;
}

/* Mobile-only apartment header — hidden on desktop */
.apt-mobile-header {
    display: none;
}

.highlight {
    font-weight: 700;
    color: orange;
}

/* ===== LISTS ===== */
.orange-list {
    padding-left: clamp(12px, 1.04vw, 20px);
    text-align: left;
}

.orange-list li::marker {
    color: orange;
    font-size: clamp(15px, 0.99vw, 19px);
}

.apartment-description ul {
    padding-left: clamp(12px, 1.04vw, 20px);
    margin: 0;
    list-style: disc;
}

.apartment-description li {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(12px, 0.78vw, 15px);
    color: #6b7c8c;
    line-height: 1.35;
}

.apartment-description li::marker {
    color: orange;
    font-size: clamp(14px, 0.94vw, 18px);
}

/* ===== APARTMENT HEADERS ROW ===== */
.apartment-headers {
    display: grid;
    grid-template-columns: 9fr 2fr 11fr;
    gap: 0;
    width: 100%;
    padding: 0 clamp(40px, 4.17vw, 80px);
}

.apartment-main-header {
    padding-left: 0;
    padding-right: 0;
}

.apartment-spacer {
    /* środkowa pusta kolumna */
}

.apartment-col-header {
    padding-left: 0;
    padding-right: 0;
    padding-top: clamp(18px, 1.5vw, 28px);
    padding-bottom: clamp(22px, 2.2vw, 42px);
    text-align: left;
}

.apartment-col-header h2 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    margin: 0;
}

.apartment-col-header h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.apartment-subtitle {
    display: none;
}

/* ===== ICONS ROW ===== */
.icons-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 2%;
    width: 100%;
    padding-top: clamp(3%, 3.5%, 4%);
}

.icons-row img {
    width: 82%;
    max-width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* ===== GALLERY ===== */
.gallery-wrapper {
    width: 100%;
    height: auto;
    min-height: 61vh;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.gallery {
    flex: 1;
    width: 95%;
    max-width: 57.29vw;
    margin: 0 auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 50vh;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0vh 6%;
}

.gallery-images {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 45vh;
    bottom: 4px;
}

.gallery-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

.gallery-images img.active {
    opacity: 1;
    z-index: 2;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(28px, 2.08vw, 40px);
    color: white;
    cursor: pointer;
    z-index: 3;
    background-color: transparent;
    padding: clamp(6px, 0.52vw, 10px);
    border-radius: 50%;
    user-select: none;
}

.gallery-arrow.left {
    left: clamp(12px, 1.04vw, 20px);
}

.gallery-arrow.right {
    right: clamp(12px, 1.04vw, 20px);
}

.gallery-caption-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: clamp(8px, 0.63vw, 12px) clamp(12px, 1.04vw, 20px);
    background: rgba(255, 255, 255, 0.65);
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 0.83vw, 16px);
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    z-index: 5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-images:hover .gallery-caption-bar {
    opacity: 1;
}

/* ===== OVERLAY ===== */
#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}

#overlay img {
    width: 90vw;
    height: 90vh;
    object-fit: contain;
    border-radius: 5px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
    transition: transform 0.3s ease;
}

#overlay img:hover {
    transform: scale(1.03);
    cursor: zoom-in;
}

/* ===== PRICING BOX ===== */
.pricing-section-mobile-title {
    display: none;
}

.box-pricing {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 61vh;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.pricing-headers,
.pricing-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 clamp(65px, 6.51vw, 125px);
    width: 100%;
    padding-left: clamp(40px, 4.17vw, 80px);
    padding-right: clamp(40px, 4.17vw, 80px);
}

.pricing-headers {
    padding-bottom: 0;
}

.pricing-container {
    padding-bottom: clamp(20px, 1.82vw, 35px);
}

.pricing-col-header {
    padding-left: 0;
    padding-right: 0;
}

.pricing-section {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pricing-content p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 0.83vw, 16px);
    color: #6b7c8c;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.6;
    margin-top: 0;
    padding: 0;
}

.pricing-content p strong {
    font-weight: 700;
}

.pricing-content {
    text-align: left;
    margin-top: 0;
}

.pricing-section-title {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(15px, 1.04vw, 20px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    margin-bottom: clamp(20px, 2vw, 38px);
    position: relative;
    display: inline-block;
}

.pricing-section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.pricing-table {
    display: flex;
    flex-direction: column;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #6AA3A2;
}

.pricing-table-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: linear-gradient(135deg, #f5a623 0%, #f7b955 100%);
    border-bottom: 2px solid #6AA3A2;
}

.pricing-table-header .pricing-cell {
    padding: clamp(10px, 0.78vw, 15px) clamp(12px, 1.04vw, 20px);
    font-family: 'Raleway', sans-serif;
    font-size: clamp(14px, 0.94vw, 18px);
    font-weight: 700;
    color: black;
    text-align: center;
    border-right: 2px solid #6AA3A2;
}

.pricing-table-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: white;
    border-bottom: 1px solid #6AA3A2;
}

.pricing-table-row:last-child {
    border-bottom: none;
}

.pricing-table-row:hover {
    background: #f9f9f9;
}

.pricing-cell {
    text-align: center;
    overflow-wrap: anywhere;
}

.pricing-table-row .pricing-cell {
    padding: clamp(10px, 0.78vw, 15px) clamp(12px, 1.04vw, 20px);
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(13px, 0.83vw, 16px);
    color: #6b7c8c;
    text-align: center;
    border-right: 2px solid #6AA3A2;
}

.pricing-table-row .pricing-cell:last-child {
    border-right: none;
}

/* ===== CONTACT BOX ===== */
.box-contact {
    position: relative;
    width: 100%;
    height: auto;
    min-height: 61vh;
    background: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    flex: 1;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: clamp(35px, 14vw, 100px);
    width: 100%;
    padding: clamp(18px, 1.5vw, 28px) clamp(40px, 4.17vw, 80px) clamp(20px, 1.82vw, 35px);
}

.contact-section {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: clamp(35px, 3.13vw, 60px);
    align-items: start;
    text-align: left;
}

.contact-left {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-section-header {
    padding: 0;
    margin-bottom: clamp(16px, 1.5vw, 28px);
}

.contact-section-header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(18px, 1.46vw, 28px);
    font-weight: 600;
    color: #6b7c8c;
    text-align: left;
    line-height: 1.2;
    position: relative;
    display: inline-block;
    margin: 0;
}

.contact-section-header h1::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -12px;
    width: clamp(35px, 2.6vw, 50px);
    height: clamp(2px, 0.16vw, 3px);
    background: orange;
}

.contact-right {
    align-self: start;
}

.contact-section+.contact-section {
    margin-top: 0px;
}

.contact-description,
.map-description {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 0.83vw, 16px);
    color: #6b7c8c;
    text-align: justify;
    text-justify: inter-word;
    line-height: 1.65;
    margin: 0;
    padding: 0;
}

.box-contact p {
    margin: 0;
    padding: 0;
    text-align: justify;
    text-justify: inter-word;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: clamp(12px, 1.04vw, 20px);
    padding: clamp(6px, 0.52vw, 10px);
    border: 2px solid rgba(106, 163, 162, 0.5);
    border-radius: 5px;
    background: white;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(12px, 1.04vw, 20px);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: clamp(10px, 0.78vw, 15px);
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(12px, 0.78vw, 15px);
    color: #6b7c8c;
    background: #f9f9f9;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: orange;
    background: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #a0a0a0;
}

.contact-form textarea {
    resize: none;
    min-height: clamp(80px, 8.33vh, 100px);
    height: clamp(80px, 8.33vh, 100px);
}

.submit-btn {
    align-self: flex-end;
    padding: clamp(8px, 0.63vw, 12px) clamp(24px, 2.08vw, 40px);
    background: white;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    font-family: 'Raleway', sans-serif;
    font-size: clamp(13px, 0.83vw, 16px);
    color: #6b7c8c;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: orange;
    border-color: orange;
    color: white;
}

.apartment-name {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: #6b7c8c;
    margin: 0 0 clamp(3px, 0.26vw, 5px) 0;
    text-align: left;
    font-weight: 600;
}

.map-container {
    width: 100%;
    height: clamp(180px, 20.83vh, 250px);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== MEDIA QUERIES ===== */

/* Tablety poziomo i małe laptopy (768px - 1200px) */
@media (max-width: 1200px) {
    .panel {
        width: min(70vw, 95%);
    }

    .logo-wrapper img {
        max-width: min(40vw, 500px);
    }

    .nav-content {
        width: 75%;
    }

    nav a {
        font-size: clamp(13px, 1.2vw, 16px);
    }
}

/* Tablety pionowo (481px - 768px) */
@media (max-width: 768px) {
    .home-title::after {
        bottom: 8px;
    }

    .pricing-content p {
        padding-bottom: 15px;
    }

    .panel {
        width: 95%;
        height: auto !important;
    }

    .stage {
        padding-top: 25vh;
    }

    .logo-wrapper {
        top: 6vh;
    }

    .logo-wrapper img {
        max-width: 60vw;
    }

    nav {
        top: 15px;
    }

    .nav-content {
        width: 95%;
        flex-wrap: nowrap;
        gap: 5px;
    }

    nav a:hover {
        color: #093C6A;
    }

    nav a.active,
    nav a.active:hover {
        color: white;
    }

    nav a {
        margin: 0 5px;
        font-size: 13px;
    }

    .home-grid {
        display: flex;
        flex-direction: column;
        height: auto !important;
    }

    .home-grid .box:nth-child(2) {
        min-height: 140px;
        padding: 15px 10px;
    }

    .home-grid .box:nth-child(5) {
        min-height: 180px;
        padding: 10px;
    }

    .home-grid .box:nth-child(5) p {
        font-size: clamp(13px, 1.5vw, 15px);
        padding: 8px;
    }

    .home-grid .box {
        min-height: 250px;
    }

    .home-title {
        padding: 20px 10px 15px;
        order: 1;
    }

    .home-grid .box:nth-child(2) {
        min-height: 150px;
        padding: 20px 15px;
    }

    .box:nth-child(2) {
        order: 2;
    }

    .box:nth-child(3) {
        order: 3;
    }

    .box:nth-child(4) {
        order: 5;
    }

    .box:nth-child(5) {
        order: 4;
    }

    .box-apartment {
        height: auto !important;
        min-height: 70vh;
    }

    .apt-headers,
    .apt-body {
        gap: 0 30px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .icons-row {
        grid-template-columns: repeat(6, 1fr);
        gap: 3%;
    }

    .gallery-wrapper {
        height: auto !important;
        min-height: 60vh;
    }

    .gallery {
        min-height: 45vh;
        max-width: 100%;
        width: 95%;
    }

    .gallery-container {
        padding: 2vh 5%;
    }

    .gallery-images {
        min-height: 40vh;
    }

    .box-pricing {
        height: auto !important;
    }

    .pricing-headers,
    .pricing-container {
        gap: 0 30px;
        padding-left: 30px;
        padding-right: 30px;
    }

    .box:nth-child(4) {
        background-size: cover;
        background-position: 0% 70%;
    }

    .box-contact {
        height: auto !important;
        min-height: 70vh;
    }

    .contact-container {
        padding: 20px 30px clamp(16px, 2vw, 28px);
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Telefony (do 480px) */
@media (max-width: 480px) {
    .home-title::after {
        bottom: 5px;
    }

    .panel {
        width: 98%;
        height: auto !important;
        min-height: 55vh;
    }

    .stage {
        padding-top: 22vh;
    }

    .logo-wrapper {
        top: 8vh;
        z-index: 10;
    }

    .logo-wrapper img {
        max-width: 65vw;
    }

    nav {
        top: 8px;
        padding: 0;
    }

    .nav-content {
        width: auto;
        max-width: calc(100vw - 20px);
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 0;
        flex-direction: row;
        background: rgba(255, 255, 255, 0.9);
        padding: 6px;
        border-radius: 12px;
        backdrop-filter: blur(5px);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
        box-sizing: border-box;
        overflow: hidden;
    }

    nav a {
        margin: 0;
        padding: 5px 10px;
        font-size: 11px;
        white-space: nowrap;
        background: transparent;
        color: #093C6A;
        font-weight: bold;
        border-radius: 8px;
        transition: none;
        flex-shrink: 0;
    }

    nav a:hover {
        color: #093C6A;
        background: transparent;
    }

    nav a.active,
    nav a.active:hover {
        color: white;
        background: linear-gradient(135deg, #f5a623 0%, #f7b955 100%);
    }

    .panel-header {
        padding: 18px 20px 22px;
    }

    .panel-header h1 {
        font-size: 19px;
    }

    .home-title {
        font-size: 22px;
        padding: 15px 10px 10px;
    }

    .home-grid .box:nth-child(2) {
        min-height: 120px;
        padding: 12px 8px;
    }

    .home-grid .box:nth-child(5) {
        min-height: 170px;
        padding: 8px;
    }

    .home-grid .box:nth-child(5) p {
        font-size: 12px;
        padding: 6px;
    }

    .box {
        padding: 15px;
        min-height: 190px;
    }

    .box h1,
    .box h2 {
        font-size: 18px;
    }

    .box p {
        font-size: 13px;
        padding: 8px 0 0 0;
    }

    .box-apartment {
        min-height: 75vh;
        height: auto !important;
        overflow: visible;
    }

    .apt-headers {
        display: none;
    }

    .apt-mobile-header {
        display: block;
    }

    .apt-body {
        display: flex;
        flex-direction: column;
        padding: 4px 20px 24px;
    }

    .apt-amenities {
        text-align: left;
    }

    .apt-amenities::before {
        content: "Udogodnienia";
        display: inline-block;
        font-family: 'Raleway', sans-serif;
        font-size: 19px;
        font-weight: 600;
        color: #6b7c8c;
        position: relative;
        margin: 18px 20px 22px 0;
    }

    .apt-amenities::before {
        background-image: linear-gradient(orange, orange);
        background-size: clamp(35px, 2.6vw, 50px) 2px;
        background-repeat: no-repeat;
        background-position: left bottom;
        padding-bottom: 14px;
    }

    .apt-text p,
    .apt-amenities p {
        font-size: 13px;
        padding-bottom: 5px;
    }

    .apt-amenities li {
        font-size: 13px;
        line-height: 1.5;
    }

    .icons-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 4%;
        padding-top: 8%;
    }

    .icons-row img {
        max-width: 40px;
        width: 100%;
        margin: 0 auto;
    }

    .gallery {
        min-height: 40vh;
        max-width: 100%;
        width: 95%;
    }

    .gallery-container {
        padding: 2vh 3%;
    }

    .gallery-wrapper {
        min-height: 55vh;
    }

    .gallery-images {
        min-height: 35vh;
    }

    .gallery-arrow {
        font-size: 24px;
    }

    .box-pricing {
        min-height: 75vh;
    }

    .pricing-headers {
        display: none;
    }

    .pricing-container {
        display: flex;
        flex-direction: column;
        gap: 10px;
        padding: 16px 20px 24px;
    }

    .pricing-section-mobile-title {
        display: block;
        font-family: 'Raleway', sans-serif;
        font-size: 20px;
        font-weight: 600;
        color: #6b7c8c;
        text-align: left;
        position: relative;
        margin-bottom: 28px;
        padding-bottom: 2px;
    }

    .pricing-section-mobile-title::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -10px;
        width: 40px;
        height: 2px;
        background: orange;
    }

    .pricing-table-header .pricing-cell,
    .pricing-table-row .pricing-cell {
        padding: 10px;
        font-size: 13px;
    }

    .box-contact {
        min-height: 75vh;
    }

    .contact-container {
        padding: 0 20px 24px;
        gap: 20px;
    }

    .contact-section-header {
        padding-top: 18px;
        margin-bottom: 28px;
    }

    .contact-section {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .contact-section-header h1 {
        font-size: 20px;
    }

    .contact-description,
    .map-description {
        font-size: 13px;
    }

    .contact-form input,
    .contact-form textarea {
        font-size: 13px;
        padding: 10px;
    }

    .submit-btn {
        padding: 10px 25px;
        font-size: 14px;
    }

    .map-container {
        height: clamp(150px, 25vh, 200px);
    }
}

/* Bardzo małe telefony (do 360px) */
@media (max-width: 360px) {
    .stage {
        padding-top: 20vh;
    }

    .logo-wrapper {
        top: 9vh;
        z-index: 10;
    }

    .logo-wrapper img {
        max-width: 60vw;
    }

    .home-grid .box:nth-child(2) {
        min-height: 100px;
        padding: 15px 10px;
    }

    .home-grid .box:nth-child(5) {
        min-height: 130px;
        padding: 10px;
    }

    .home-grid .box:nth-child(5) p {
        font-size: 11px;
    }

    nav {
        top: 6px;
        padding: 0;
    }

    .nav-content {
        gap: 0;
        padding: 5px 0;
        max-width: calc(100vw - 15px);
        box-sizing: border-box;
    }

    nav a {
        font-size: 10px;
        padding: 4px 8px;
        color: #093C6A;
        font-weight: bold;
        border-radius: 6px;
        transition: none;
        flex-shrink: 0;
    }

    nav a:hover {
        color: #093C6A;
        background: transparent;
    }

    nav a.active,
    nav a.active:hover {
        color: white;
        background: linear-gradient(135deg, #f5a623 0%, #f7b955 100%);
    }

    .home-title {
        font-size: 20px;
    }

    .box h1,
    .box h2 {
        font-size: 16px;
    }

    .box p {
        font-size: 12px;
        padding: 12px 0 0 0;
    }

    .icons-row {
        grid-template-columns: repeat(3, 1fr);
    }

    .icons-row img {
        max-width: 32px;
    }
}

/* Landscape mode dla telefonów */
@media (max-height: 500px) and (orientation: landscape) {
    .stage {
        padding-top: 15vh;
    }

    .logo-wrapper {
        top: 3vh;
    }

    .logo-wrapper img {
        max-width: 30vw;
    }

    .panel {
        height: auto !important;
        min-height: 80vh;
    }

    .gallery {
        min-height: 60vh;
    }
}