/* =========================================================
   MODERN FONT SET
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Serif+Display&display=swap');

/* =========================================================
   GLOBAL
   ========================================================= */
:root {
    --bg: #f2f2f2;
    --text: #111111;
    --muted: #444444;
    --card: #ffffff;
    --accent: #E00000;
    --accent-dark: #b70000;

    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.10);
    --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --container: 1200px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

section {
    margin-bottom: 70px;
}

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

.page-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 40px 20px;
}

/* =========================================================
   HEADER
   ========================================================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background: var(--card);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    height: 55px;
    transition: 0.3s ease;
}

.logo:hover {
    transform: scale(1.03);
}

.header nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.header nav a {
    margin-left: 32px;
    text-decoration: none;
    color: var(--text);
    font-weight: 600;
    font-size: 16px;
    transition: 0.3s;
}

.header nav a:hover,
.header nav a.active {
    color: var(--accent);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    height: 100vh;
    background: url('images/hero.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-left: 60px;
    position: relative;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.22);
    z-index: 1;
}

.hero-content {
    position: relative;
    max-width: 600px;
    color: #ffffff;
    z-index: 2;
}

.hero h1 {
    font-size: 52px;
    margin: 0 0 15px 0;
    font-weight: 800;
    color: #fdfdfd;
    line-height: 1.12;
}

.hero p {
    font-size: 20px;
    margin: 0 0 30px 0;
    color: #e8e8e8;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn-primary {
    display: inline-block;
    padding: 15px 34px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-3px);
}

/* =========================================================
   PAGE HEADERS
   ========================================================= */
.page-header h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--accent);
}

.page-header p {
    font-size: 19px;
    color: var(--muted);
    margin: 0;
}

/* =========================================================
   SERVICES DETAIL
   ========================================================= */
.services-detail h2 {
    color: var(--accent);
    font-size: 28px;
    margin: 0 0 20px 0;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    font-size: 18px;
    margin: 10px 0;
}

/* =========================================================
   GALLERY
   ========================================================= */
.gallery-section {
    margin-top: 100px;
    background: var(--bg);
    padding: 40px 0;
}

.gallery-section h2 {
    color: var(--accent);
    margin: 0 0 20px 0;
    font-size: 30px;
    font-weight: 700;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.gallery-grid img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
}

.gallery-grid img:hover {
    transform: scale(1.04);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   MASONRY
   ========================================================= */
.masonry {
    column-count: 3;
    column-gap: 20px;
    padding-top: 20px;
}

.masonry img {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 12px;
    display: block;
    break-inside: avoid;
    box-shadow: var(--shadow-md);
    transition: transform .3s ease, box-shadow .3s ease;
    cursor: pointer;
}

.masonry img:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   PREMIUM / LONG TEXT SECTION
   ========================================================= */
.premium-services {
    margin-top: -30px;
    padding: 20px;
    background: var(--bg);
}

.premium-services h2 {
    color: var(--accent);
    font-size: 30px;
    font-weight: 800;
    margin: 40px 0 0 0;
}

.premium-services h3 {
    font-size: 22px;
    margin: 25px 0 0 0;
    font-weight: 700;
}

.premium-services .lead-text {
    text-align: justify;
    text-justify: inter-word;
    font-size: 18px;
    max-width: 1200px;
    color: var(--muted);
    margin: 0 0 25px 0;
}

.premium-services p {
    max-width: 900px;
    color: #333;
    font-size: 17px;
    margin: 0 0 15px 0;
}

.premium-services ul {
    max-width: 900px;
    padding-left: 20px;
    margin: 0;
}

.premium-services ul li {
    margin: 8px 0;
    font-size: 16px;
}

/* more button */
.more-btn {
    margin-top: 25px;
    cursor: pointer;
}

/* hidden long version */
.details-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .5s ease;
    margin-top: 0;
}

.details-content.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 30px;
}

/* detail: allow full width inside premium */
.premium-services .details-box,
.premium-services .details-box ul,
.premium-services .details-box p {
    max-width: none;
    width: 98%;
}

/* =========================================================
   TWO COLUMNS / BOXES
   ========================================================= */
.two-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 60px;
}

.column-box {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    align-items: stretch;
    position: relative;
    z-index: 2;
    padding: 30px;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-lg);
}

.box-content {
    width: 60%;
}

.box-content h2 {
    color: var(--accent);
    font-size: 28px;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.box-content h3 {
    font-size: 22px;
    margin: 18px 0 10px 0;
    line-height: 1.25;
}

.box-content p {
    font-size: 17px;
    color: #555;
    margin: 0 0 18px 0;
}

.box-content ul {
    margin: 8px 0 0 0;
    padding-left: 20px;
}

.box-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.box-photo {
    width: 40%;
    height: auto;
    min-height: 350px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* special photo sizing you used */
.box-photo-okna {
    width: 40%;
    height: auto;
    min-height: 420px;
    object-fit: cover;
}

/* hidden details (inside box) */
.details-box {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all .45s ease;
    padding: 0 5px;
    margin-top: 10px;
}

.details-box.open {
    max-height: 2000px;
    opacity: 1;
    margin-top: 25px;
}

.details-box ul {
    margin: 10px 0 0 15px;
    padding: 0;
}

.details-box ul li {
    margin-bottom: 8px;
    font-size: 15px;
    line-height: 1.55;
}

/* full width details card */
.full-width-details {
    width: 100%;
    margin-top: 30px;
    grid-column: 1 / -1;
    overflow: hidden;
}

.full-details-box {
    width: 100%;
    background: var(--card);
    padding: 35px;
    margin-top: 1px;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all .45s ease;
}

.full-details-box.open {
    max-height: 2000px;
    opacity: 1;
    width: 100%;
}

/* positioning helpers */
.higher-box {
    position: relative;
    z-index: 0;
    top: -200px;
}

.botton-box {
    top: -200px;
}

.higher_2-box {
    position: relative;
    z-index: 0;
    top: -300px;
}

.box-okna {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    top: 50px;
}

.box-okna-details {
    margin-top: -100px;
    position: relative;
    z-index: 0;
    top: -10px;
}

.box-zaluzie {
    margin-top: -50px;
    position: relative;
    z-index: 2;
    top: 110px;
}

.box-zaluzie-details {
    margin-top: -100px;
    position: relative;
    z-index: 0;
    top: 50px;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */
.contact-section {
    max-width: 1120px;
    margin: 80px auto 0;
    padding: 35px;
    border-radius: var(--radius-lg);
    background: var(--card);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-section h2 {
    color: var(--accent);
    font-size: 30px;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.contact-section p {
    font-size: 17px;
    color: var(--muted);
    margin: 0 0 30px 0;
}

/* form */
#contactForm,
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(224, 0, 0, 0.15);
}

.contact-submit {
    width: fit-content;
    padding: 16px 34px;
    font-size: 17px;
}

/* =========================================================
   CONTACT HEADING
   ========================================================= */
.contact-heading {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.contact-inline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(224, 0, 0, 0.08);
}

.contact-inline svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
}

.contact-inline a {
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    color: var(--accent);
    white-space: nowrap;
}

/* =========================================================
   TOAST
   ========================================================= */
#toast {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast-message {
    background: #111;
    color: #fff;
    padding: 16px 22px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
    animation: toastIn 0.4s forwards, toastOut 0.4s forwards 3s;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

/* =========================================================
   SERVICE CHOICE
   ========================================================= */
.service-choice {
    margin-top: 80px;
    text-align: center;
}

.service-choice h2 {
    font-size: 34px;
    font-weight: 800;
    margin: 0 0 50px 0;
    color: var(--text);
}

.choice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.choice-card {
    background: var(--card);
    padding: 40px 35px;
    border-radius: var(--radius-xl);
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    transition: transform .35s ease, box-shadow .35s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.choice-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.18);
}

.choice-icon {
    font-size: 64px;
    margin-bottom: 10px;
}

.choice-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: var(--accent);
}

.choice-card p {
    font-size: 16px;
    color: var(--muted);
    max-width: 420px;
    margin: 0 0 25px 0;
}

.choice-link {
    font-weight: 600;
    color: var(--accent);
    font-size: 16px;
}

/* =========================================================
   UCTOVNICTVO
   ========================================================= */
.ucto-page .page-header.ucto-header p {
    text-align: justify;
    text-justify: inter-word;
    max-width: 1200px;
}

.ucto-page .box-content p {
    text-align: justify;
    text-justify: inter-word;
}

.ucto-page .full-width-details {
    margin-top: -135px;
}

.ucto-page .box-content ul {
    text-align: left;
}

.ucto-page .two-columns {
    margin-top: -50px;
}

.ucto-page .column-box {
    align-items: flex-start !important;
}

.ucto-page .box-content h2,
.ucto-page .box-content h3,
.ucto-page .box-content p,
.ucto-page .box-content ul {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ucto-page .btn-primary {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.ucto-page .box-content h2,
.ucto-page .box-content p {
    margin-left: auto;
    margin-right: auto;
}

.ucto-page .btn-primary {
    margin-left: auto;
    margin-right: auto;
    display: inline-block;
}

/* =========================================================
   O NAS
   ========================================================= */
.about-hero {
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, #f3f3f3 100%);
    box-shadow: var(--shadow-sm);
}

.about-hero::before {
    content: none;
}

.about-hero-content {
    max-width: var(--container);
    width: 100%;
    padding: 0 20px;
    color: var(--text);
}

.about-hero-content h1 {
    font-size: clamp(28px, 3vw, 44px);
    font-weight: 800;
    margin: 0 0 8px 0;
    color: var(--accent);
}

.about-hero-content p {
    font-size: clamp(14px, 1.2vw, 18px);
    color: var(--muted);
    margin: 0;
}

.about-section {
    padding: 0 20px 55px;
}

.about-container {
    max-width: 980px;
    margin: 22px auto 0;
    display: flex;
    gap: 26px;
    align-items: flex-start;
    background: var(--card);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 28px;
}

.about-text {
    width: 58%;
}

.about-text h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--accent);
    margin: 0 0 12px 0;
}

.about-text p {
    font-size: 16px;
    color: #555;
    margin: 0 0 12px 0;
}

.about-text ul {
    list-style: none;
    padding: 0;
    margin: 14px 0 0 0;
}

.about-text ul li {
    background: #fff;
    border-radius: 12px;
    padding: 9px 12px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    font-size: 15px;
    color: var(--text);
}

.about-image {
    width: 42%;
}

.about-image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: #f1f1f1;
}

/* =========================================================
   PAGE CONTENT
   ========================================================= */
.page-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 20px;
}

.page-content h1 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--accent);
}

.page-content p {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--muted);
}

.page-content ul {
    padding-left: 20px;
}

.page-content li {
    margin-bottom: 10px;
    font-size: 17px;
}

.page-content a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.page-content a:hover {
    text-decoration: underline;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
    .column-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .box-content,
    .box-photo,
    .box-photo-okna {
        width: 100%;
    }

    .box-photo {
        min-height: unset;
        height: 260px;
    }

    .box-photo-okna {
        min-height: unset;
        height: 320px;
    }

    .about-hero {
        min-height: 160px;
        padding: 36px 16px;
    }

    .about-container {
        flex-direction: column;
        margin: 18px auto 0;
        padding: 22px;
        gap: 18px;
        max-width: 980px;
    }

    .about-text,
    .about-image {
        width: 100%;
    }

    .about-image img {
        height: 240px;
    }

    .masonry {
        column-count: 1;
    }
}

@media (max-width: 768px) {
    .page-container {
        padding: 24px 16px;
    }

    .page-content {
        padding: 30px 16px;
    }

    .page-content h1 {
        font-size: 28px;
    }

    .page-content p,
    .page-content li {
        font-size: 16px;
    }

    .header {
        padding: 12px 16px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .logo {
        height: 44px;
        flex-shrink: 0;
    }

    .header nav {
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 8px 14px;
    }

    .header nav a {
        margin-left: 0;
        font-size: 18px;
    }

    .premium-services {
        padding: 10px 0;
        margin-top: 0;
    }

    .premium-services h2 {
        font-size: 24px;
        line-height: 1.25;
    }

    .premium-services .lead-text,
    .premium-services p,
    .ucto-page .page-header.ucto-header p,
    .ucto-page .box-content p {
        text-align: left;
        text-justify: auto;
        font-size: 16px;
        line-height: 1.7;
    }

    .two-columns {
        gap: 24px;
        margin-top: 30px;
    }

    .column-box {
        gap: 18px;
        padding: 20px;
        margin-top: 20px;
    }

    .box-content {
        width: 100%;
    }

    .box-photo,
    .box-photo-okna {
        width: 100%;
        height: auto;
        max-height: 340px;
        object-fit: cover;
    }

    .box-content h2 {
        font-size: 24px;
        line-height: 1.25;
    }

    .box-content h3 {
        font-size: 20px;
    }

    .box-content p,
    .box-content li {
        font-size: 16px;
    }

    .details-box ul li {
        font-size: 15px;
        line-height: 1.6;
    }

    .contact-section {
        margin: 50px auto 0;
        padding: 22px 18px;
    }

    .contact-section h2 {
        font-size: 24px;
    }

    .contact-inline a {
        font-size: 14px;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-submit {
        width: 100%;
        text-align: center;
    }

    .gallery-section {
        margin-top: 60px;
        padding: 20px 0;
    }

    .gallery-section h2 {
        font-size: 24px;
    }

    .masonry {
        column-count: 1;
        column-gap: 0;
    }

    .masonry img {
        margin-bottom: 16px;
    }

    #toast {
        right: 16px;
        left: 16px;
        bottom: 16px;
    }

    .toast-message {
        width: 100%;
        font-size: 15px;
    }

    .hero {
        padding-left: 20px;
        padding-right: 20px;
        justify-content: center;
        text-align: left;
    }

    .hero-content {
        max-width: 320px;
    }

    .hero h1 {
        font-size: 30px;
        line-height: 1.15;
        margin: 0 0 12px 0;
    }

    .hero p {
        font-size: 15px;
        line-height: 1.5;
        margin: 0 0 22px 0;
    }

    .btn-primary {
        padding: 12px 22px;
        font-size: 14px;
    }

    .box-okna-details {
        margin-top: 0 !important;
        top: 0 !important;
    }

    .box-zaluzie-details {
        margin-top: 0 !important;
        top: 40px !important;
    }
}

@media (max-width: 520px) {
    .contact-heading {
        align-items: flex-start;
    }

    .contact-inline {
        margin-top: 6px;
    }

    .logo {
        height: 38px;
    }

    .header {
        padding: 10px 12px;
    }

    .header nav a {
        font-size: 18px;
    }
}