/* ============================================
   TREST - MOBILE FIRST CSS
   Base = mobile, min-width media queries = larger
   ============================================ */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "IBM Plex Sans", sans-serif;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    background: #0f1f2b;
    color: #fff;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

body.preload {
    opacity: 0;
}

body.loaded {
    opacity: 1;
    transition: opacity 3s ease;
}

/* === HEADER (mobile base) === */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(5, 15, 25, 0.05);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    flex-wrap: wrap;
    transition: background 0.3s ease, backdrop-filter 0.3s ease;
    z-index: 1000;
}

header.scrolled {
    background: rgba(5, 15, 25, 0.45);
    backdrop-filter: blur(10px);
}

header .cta {
    display: none;
}

.logo {
    text-decoration: none;
    color: white;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow:
        0 0 6px rgba(27,182,201,0.35),
        0 0 12px rgba(27,182,201,0.15);
}

/* === NAV (mobile base - hidden) === */
nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    background: rgba(5, 15, 25, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    display: none;
    z-index: 999;
}

nav.open {
    display: flex;
}

nav a {
    position: relative;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1.5px;
    opacity: 0.85;
    font-weight: 500;
    padding: 15px 30px;
    width: 100%;
    text-align: center;
    transition: opacity 0.2s ease;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 1px;
    background: rgba(255,255,255,0.9);
    transition: width 0.25s ease;
    opacity: 0.4;
}

nav a:hover {
    opacity: 1;
    color: white;
    text-shadow:
        0 0 8px rgba(27,182,201,0.6),
        0 0 18px rgba(27,182,201,0.35);
}

nav a:hover::after {
    width: 100%;
}

/* Hamburger */
.mobile-menu-toggle {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
}

/* === CTA BUTTON === */
.cta {
    display: inline-block;
    margin-top: 25px;
    background: rgba(27, 182, 201, 0.85);
    padding: 12px 26px;
    border-radius: 24px;
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 0.5px;
    box-shadow: 0 6px 20px rgba(27,182,201,0.25);
    backdrop-filter: blur(2px);
    transition: background 0.3s ease, transform 0.2s ease;
}

.cta:hover {
    background: rgba(27, 182, 201, 1);
    transform: translateY(-1px);
}

/* === HERO (mobile base) === */
.hero {
    min-height: 100vh;
    background: url("test.png") center bottom / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: visible;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 30px 25px;
    background: rgba(5, 15, 25, 0.45);
    backdrop-filter: blur(2px);
    border-radius: 14px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.35);
    border: 1px solid rgba(255,255,255,0.12);
    transform: translateY(-20px);
    margin: 0 15px;
}

.hero-content .cta {
    margin-top: 28px;
    display: inline-block;
}

.hero h1 {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.hero p {
    font-size: 16px;
    color: #ffffff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

/* === HERO SCROLL ARROW === */
.hero-scroll-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 45px;
    height: 45px;
    border: 2px solid rgba(255,255,255,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    animation: bounceArrow 2s ease-in-out infinite;
    transition: all 0.3s ease;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(4px);
}

.hero-scroll-arrow:hover {
    color: #1bb6c9;
    border-color: #1bb6c9;
    background: rgba(27,182,201,0.15);
}

@keyframes bounceArrow {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(10px); }
}

/* === SECTIONS (mobile base) === */
section {
    padding: 60px 5%;
    background: #f5f8fb;
    color: #0f1f2b;
}

.section-dark {
    background: #0f1f2b;
    color: white;
}

.section-light {
    background: #f5f8fb;
    color: #0f1f2b;
}

h2 {
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

/* === ABOUT / TIMELINE (mobile base) === */
.about-section {
    background: #f5f8fb;
    color: #0f1f2b;
    text-align: center;
}

.about-intro {
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 16px;
    line-height: 1.6;
    color: #2b3e50;
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding-left: 50px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 25px;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(#1bb6c9, rgba(27,182,201,0.2));
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
    text-align: left;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    display: flex;
    align-items: center;
}

.timeline-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.timeline-year {
    font-weight: 700;
    color: #1bb6c9;
    font-size: 13px;
    white-space: nowrap;
}

.timeline-content {
    margin-left: 35px;
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.timeline-content h3 {
    margin-bottom: 10px;
    font-size: 16px;
}

.timeline-content p {
    font-size: 13px;
    line-height: 1.6;
    color: #3b4f63;
}

/* === TECH CARDS / OFERTA (mobile base) === */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 60px;
}

.tech-card {
    position: relative;
    background: rgba(20, 42, 58, 0.9);
    border-radius: 14px;
    padding: 30px 25px;
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(6px);
    cursor: pointer;
    overflow: hidden;
    text-decoration: none;
    display: block;
    color: inherit;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-4px);
}

.tech-card::before {
    content: "";
    position: absolute;
    top: -100%;
    left: -100%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(27,182,201,0.4), transparent 70%);
    backdrop-filter: blur(4px);
    transition: top 0.2s ease, left 0.2s ease;
    pointer-events: none;
}

.tech-card:hover::before {
    top: 0;
    left: 0;
}

.tech-card h3,
.tech-card p,
.tech-line {
    position: relative;
    z-index: 1;
}

.tech-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #e8fcff;
}

.tech-card p {
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255,255,255,0.85);
}

.tech-line {
    display: block;
    margin-top: 25px;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1bb6c9, rgba(27,182,201,0.2));
}

/* Card backgrounds */
.tech-blow {
    background:
        linear-gradient(rgba(10,20,30,0.65), rgba(10,20,30,0.65)),
        url("dmuchawy.jpg") center / cover no-repeat;
}

.tech-blow h3,
.tech-blow p {
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.tech-press {
    background:
        linear-gradient(rgba(10,20,30,0.70), rgba(10,20,30,0.70)),
        url("prasa.png") center / cover no-repeat;
}

.tech-press h3,
.tech-press p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.tech-mechanical {
    background:
        linear-gradient(rgba(10,20,30,0.70), rgba(10,20,30,0.70)),
        url("mechanical.png") center / cover no-repeat;
}

.tech-mechanical h3,
.tech-mechanical p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

.tech-automatyka {
    background:
        linear-gradient(rgba(10,20,30,0.70), rgba(10,20,30,0.70)),
        url('szafa.jpg') center / cover no-repeat;
}

.tech-automatyka h3,
.tech-automatyka p {
    text-shadow: 0 2px 10px rgba(0,0,0,0.7);
}

/* === PROCESS FLOW (mobile base) === */
.tech-intro {
    text-align: center;
    font-size: 16px;
    color: #3b4f63;
    margin-bottom: 40px;
    opacity: 0.9;
}

.process-flow {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    max-width: 400px;
    margin: 0 auto;
    padding: 40px 20px;
    position: relative;
    padding-left: 50px;
}

.flow-line {
    display: none;
}

@keyframes flowLineVertical {
    0% { background-position: 0 200%; }
    100% { background-position: 0 0%; }
}

@keyframes flowLine {
    0% { background-position: 200% 0; }
    100% { background-position: 0% 0; }
}

.flow-node {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    z-index: 2;
    text-decoration: none;
    padding: 12px 0;
}

.node-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #0f1f2b;
    border: 3px solid #1bb6c9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1bb6c9;
    transition: all 0.4s ease;
    box-shadow: 0 0 20px rgba(27,182,201,0.2);
    flex-shrink: 0;
}

.node-label {
    font-size: 13px;
    font-weight: 600;
    color: #0f1f2b;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    text-align: left;
}

.node-start .node-icon,
.node-end .node-icon {
    width: 50px;
    height: 50px;
    font-size: 18px;
    background: linear-gradient(135deg, #1bb6c9, #0f8a9a);
    border: none;
    color: #fff;
}

.node-end .node-icon {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    box-shadow: 0 0 25px rgba(46,204,113,0.3);
}

.node-clickable {
    cursor: pointer;
}

.node-clickable:hover .node-icon {
    transform: scale(1.15);
    background: #1bb6c9;
    color: #fff;
    box-shadow: 0 0 35px rgba(27,182,201,0.5);
}

.node-clickable:hover .node-label {
    color: #1bb6c9;
}

/* Popup - hidden on mobile, shown on tap/click via JS or on desktop hover */
.node-popup {
    position: fixed;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) scale(0.9);
    width: 280px;
    padding: 25px;
    background: #0f1f2b;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    border: 1px solid rgba(27,182,201,0.2);
}

.node-popup::before {
    display: none;
}

.node-clickable:hover .node-popup {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.node-popup h4 {
    font-size: 16px;
    color: #fff;
    margin-bottom: 10px;
}

.node-popup p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-bottom: 15px;
}

.popup-link {
    font-size: 13px;
    color: #1bb6c9;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tech-legend {
    text-align: center;
    margin-top: 50px;
    font-size: 14px;
    color: #3b4f63;
    opacity: 0.7;
}

.tech-legend i {
    margin-right: 8px;
    color: #1bb6c9;
}

/* === SERWIS BOX === */
.services-box {
    max-width: 650px;
    margin: 60px auto;
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: left;
}

.services-box h3 {
    font-size: 22px;
    color: #0f1f2b;
    margin-bottom: 25px;
    text-align: center;
}

.services-box .checklist li {
    padding: 10px 0 10px 35px;
    font-size: 15px;
    color: #3b4f63;
    border-bottom: 1px solid #f0f2f5;
}

.services-box .checklist li:last-child {
    border-bottom: none;
}

/* === SLIDER REALIZACJI (mobile base) === */
.projects-slider {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.slide {
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}

.slide.active {
    display: grid;
}

.slide-image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
}

.slide-hover-label {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(27,182,201,0.5), rgba(10,20,30,0.7) 70%);
    color: white;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 1px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 3;
}

.slide-image a:hover .slide-hover-label {
    opacity: 1;
}

.slide-image a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    position: relative;
}

.slide-image::after {
    display: none;
}

.slide-content {
    padding: 30px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.slide-category {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1bb6c9;
    margin-bottom: 15px;
    font-weight: 600;
}

.slide-content h3 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #fff;
    line-height: 1.2;
}

.slide-content p {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255,255,255,0.8);
    margin-bottom: 25px;
}

.slide-stats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
}

.slide-stats li {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    background: rgba(27,182,201,0.1);
    border-radius: 8px;
    border: 1px solid rgba(27,182,201,0.2);
}

.slide-stats li strong {
    color: #1bb6c9;
    margin-right: 5px;
}

.slider-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.05);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.slider-btn:hover {
    background: #1bb6c9;
    border-color: #1bb6c9;
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot:hover {
    background: rgba(255,255,255,0.4);
}

.slider-dot.active {
    background: #1bb6c9;
    transform: scale(1.2);
}

/* === CONTACT (mobile base) === */
#contact {
    min-height: auto;
    padding: 60px 5% 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

.contact-section h2 {
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    background: white;
    padding: 35px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    max-width: 100%;
    width: 100%;
}

.contact-line {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 1.6;
    color: #3b4f63;
    flex-direction: column;
    text-align: center;
}

.contact-line.company {
    font-weight: 700;
    font-size: 17px;
    color: #0f1f2b;
    margin-bottom: 0;
}

.contact-line.subtitle {
    font-size: 14px;
    color: #6c8195;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e6ed;
    width: 100%;
    text-align: center;
}

.contact-line i {
    color: #1bb6c9;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* === FOOTER (mobile base) === */
.footer-water {
    position: relative;
    width: 100%;
    height: 220px;
    min-height: 200px;
    background: url("footer.png") center bottom / cover no-repeat;
    overflow: hidden;
}

.footer-water::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(245,248,251,1) 0%,
        rgba(245,248,251,0.9) 15%,
        rgba(245,248,251,0.7) 30%,
        rgba(245,248,251,0.4) 50%,
        rgba(245,248,251,0) 80%
    );
}

.footer-content {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px 20px;
    background: rgba(5,15,25,0.6);
    color: #fff;
    border-radius: 14px;
    backdrop-filter: blur(6px);
    font-size: 10px;
    letter-spacing: 1px;
    white-space: normal;
    text-align: center;
    max-width: 90%;
}

/* === PRODUCT PAGES SHARED (mobile base) === */
.breadcrumb {
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 20px;
    display: block;
}

/* Dmuchawy cover */
.dmuchawy-cover {
    position: relative;
    width: 100vw;
    height: 70vh;
    min-height: 500px;
    margin-left: calc(-50vw + 50%);
    padding-top: 60px;
    background: url("dmuchawy.jpg") center center / cover no-repeat;
    display: flex;
}

.dmuchawy-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(8,18,28,0.95) 0%,
        rgba(8,18,28,0.6) 35%,
        rgba(8,18,28,0.25) 65%,
        rgba(8,18,28,0.95) 100%
    );
}

.dmuchawy-text {
    position: relative;
    z-index: 2;
    max-width: 100%;
    padding: 80px 5% 40px 5%;
    color: #fff;
}

.dmuchawy-text h1 {
    font-size: 32px;
    margin: 10px 0 20px;
}

.dmuchawy-text p {
    font-size: 16px;
    opacity: 0.9;
    max-width: 100%;
}

/* Product shared styles */
.product-description {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 60px 5%;
    align-items: start;
    background: #f5f8fb;
}

.product-text h2 {
    font-size: 28px;
    margin-bottom: 25px;
    color: #0f1f2b;
    text-align: left;
}

.product-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #3b4f63;
    margin-bottom: 25px;
}

.product-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.checklist {
    list-style: none;
    margin-top: 25px;
    padding: 0;
}

.checklist li {
    padding: 12px 0 12px 35px;
    position: relative;
    font-size: 15px;
    color: #3b4f63;
    line-height: 1.6;
}

.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #1bb6c9;
    font-weight: bold;
    font-size: 20px;
}

/* Product parameters */
.product-parameters {
    padding: 60px 5%;
    text-align: center;
    background: #0f1f2b;
    color: white;
}

.product-parameters h2 {
    font-size: 28px;
    margin-bottom: 40px;
    color: white;
}

.params-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.param {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.param .value {
    font-size: 28px;
    font-weight: 600;
    color: #1bb6c9;
    transition: transform 0.3s ease;
}

.param .value.counted {
    animation: pulse 0.5s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Product CTA section */
.product-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f5f8fb;
    min-height: auto;
    padding: 50px 5%;
}

.product-cta h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f1f2b;
    margin-bottom: 18px;
}

.product-cta p {
    font-size: 20px;
    opacity: 0.8;
    letter-spacing: 0.5px;
    margin: 30px auto 35px auto;
    max-width: 520px;
    font-weight: 300;
    text-align: center;
    line-height: 1.6;
}

.cta-stats {
    display: flex;
    gap: 30px;
    margin: 20px 0 15px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #1bb6c9;
}

.stat-label {
    font-size: 14px;
    opacity: 0.8;
    letter-spacing: 0.5px;
    max-width: 200px;
    font-weight: 300;
}

/* === ANIMATION === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   TABLET (min 769px)
   ============================================ */
@media (min-width: 769px) {
    header {
        height: 70px;
        padding: 0 30px;
        flex-wrap: nowrap;
    }

    header .cta {
        display: inline-block;
        margin-top: 0;
        padding: 10px 22px;
    }

    .logo {
        font-size: 20px;
        letter-spacing: 2.5px;
    }

    .mobile-menu-toggle {
        display: none;
    }

    nav {
        position: static;
        display: flex;
        flex-direction: row;
        width: auto;
        background: none;
        backdrop-filter: none;
        padding: 0;
        gap: 18px;
    }

    nav a {
        padding-bottom: 4px;
        width: auto;
        font-size: 12px;
    }

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

    .hero-content {
        padding: 40px 50px;
        transform: translateY(-30px);
        margin: 0;
    }

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

    section {
        padding: 90px 8%;
    }

    h2 {
        font-size: 36px;
        margin-bottom: 35px;
    }

    .about-intro {
        font-size: 17px;
        margin-bottom: 60px;
    }

    .timeline {
        padding-left: 70px;
    }

    .timeline::before {
        left: 35px;
    }

    .timeline-year {
        font-size: 14px;
    }

    .timeline-content {
        margin-left: 50px;
        padding: 22px 28px;
    }

    .timeline-content h3 {
        font-size: 17px;
    }

    .timeline-content p {
        font-size: 14px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .tech-card {
        padding: 35px 30px;
    }

    /* Slider tablet */
    .slider-container {
        height: 450px;
    }

    .slide {
        display: grid;
        grid-template-columns: 1fr 1fr;
        position: absolute;
        inset: 0;
        opacity: 0;
        transition: opacity 0.8s ease;
        pointer-events: none;
    }

    .slide.active {
        opacity: 1;
        pointer-events: auto;
    }

    .slide-image {
        height: 450px;
    }

    .slide-content {
        padding: 50px;
    }

    .slide-content h3 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .slide-stats {
        flex-direction: row;
        gap: 20px;
    }

    .slider-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    /* Contact tablet */
    #contact {
        padding: 80px 8% 100px;
    }

    .contact-info {
        padding: 45px 50px;
        max-width: 500px;
    }

    .contact-line {
        flex-direction: row;
        font-size: 15px;
        text-align: left;
    }

    .contact-line.company {
        font-size: 20px;
    }

    /* Footer tablet */
    .footer-water {
        height: 30vh;
        min-height: 250px;
    }

    .footer-content {
        font-size: 11px;
        padding: 12px 24px;
        white-space: nowrap;
        max-width: none;
    }

    /* Product pages tablet */
    .dmuchawy-cover {
        height: 85vh;
        min-height: 600px;
        padding-top: 70px;
    }

    .dmuchawy-text {
        padding: 90px 0 0 8%;
        max-width: 600px;
    }

    .dmuchawy-text h1 {
        font-size: 44px;
    }

    .dmuchawy-text p {
        font-size: 17px;
        max-width: 480px;
    }

    .product-description {
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        padding: 100px 8%;
    }

    .product-text h2,
    .product-parameters h2 {
        font-size: 34px;
    }

    .product-parameters {
        padding: 80px 8%;
    }

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

    .product-cta {
        min-height: 50vh;
        padding: 60px 8%;
    }

    .product-cta h2 {
        font-size: 26px;
    }

    .product-cta p {
        font-size: 24px;
    }

    .cta-stats {
        gap: 50px;
    }

    .stat-value {
        font-size: 38px;
    }

    /* Process flow tablet */
    .tech-intro {
        font-size: 17px;
        margin-bottom: 50px;
    }

    .process-flow {
        max-width: 500px;
        padding-left: 60px;
        gap: 0;
    }

    .flow-line {
        display: block;
        position: absolute;
        top: 70px;
        bottom: 70px;
        left: 87px;
        width: 3px;
        height: auto;
        background: linear-gradient(to bottom, #1bb6c9, #14a3b5, #1bb6c9);
        background-size: 100% 200%;
        animation: flowLineVertical 3s linear infinite;
        border-radius: 2px;
        z-index: 0;
    }

    .flow-node {
        gap: 20px;
        padding: 14px 0;
    }

    .node-icon {
        width: 55px;
        height: 55px;
        font-size: 20px;
    }

    .node-start .node-icon,
    .node-end .node-icon {
        width: 55px;
        height: 55px;
    }

    .node-label {
        font-size: 14px;
    }

    .node-popup {
        position: absolute;
        top: 50%;
        left: calc(100% + 20px);
        transform: translateX(0) translateY(-50%);
        width: 240px;
    }

    .node-popup::before {
        display: block;
        content: "";
        position: absolute;
        top: 50%;
        left: -8px;
        transform: translateY(-50%);
        border-left: none;
        border-top: 8px solid transparent;
        border-bottom: 8px solid transparent;
        border-right: 8px solid #0f1f2b;
    }

    .node-clickable:hover .node-popup {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) translateY(-50%);
    }

    .services-box {
        padding: 40px;
    }
}

/* ============================================
   DESKTOP (min 1025px)
   ============================================ */
@media (min-width: 1025px) {
    header {
        padding: 0 40px;
    }

    .logo {
        font-size: 22px;
        letter-spacing: 3px;
    }

    nav {
        gap: 24px;
    }

    nav a {
        font-size: 13px;
    }

    .hero {
        background-attachment: fixed;
    }

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

    .hero-content {
        padding: 45px 55px;
        transform: translateY(-40px);
    }

    section {
        padding: 120px 10%;
    }

    h2 {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .about-intro {
        font-size: 18px;
        margin-bottom: 70px;
    }

    .timeline {
        padding-left: 80px;
    }

    .timeline::before {
        left: 40px;
    }

    .timeline-year {
        font-size: 15px;
    }

    .timeline-content {
        margin-left: 60px;
        padding: 25px 30px;
    }

    .timeline-content h3 {
        font-size: 18px;
    }

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

    .tech-card {
        padding: 40px 35px;
    }

    /* Slider desktop */
    .slide-content h3 {
        font-size: 32px;
    }

    /* Contact desktop */
    #contact {
        padding: 80px 10% 120px;
    }

    .contact-info {
        padding: 50px 60px;
    }

    /* Footer desktop */
    .footer-water {
        height: 35vh;
        min-height: 260px;
    }

    .footer-content {
        font-size: 12px;
        padding: 12px 28px;
    }

    /* Product pages desktop */
    .dmuchawy-cover {
        height: 100vh;
        min-height: 700px;
    }

    .dmuchawy-text {
        padding-left: 10%;
        max-width: 650px;
    }

    .dmuchawy-text h1 {
        font-size: 54px;
    }

    .dmuchawy-text p {
        font-size: 18px;
        max-width: 520px;
    }

    .product-description {
        gap: 60px;
        padding: 120px 10%;
    }

    .product-text h2,
    .product-parameters h2 {
        font-size: 38px;
    }

    .product-parameters {
        padding: 100px 10%;
    }

    .product-parameters h2 {
        margin-bottom: 60px;
    }

    .params-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 50px;
    }

    .product-cta {
        min-height: 60vh;
        padding: 70px 20px 90px;
    }

    .product-cta h2 {
        font-size: 28px;
    }

    .product-cta p {
        font-size: 28px;
    }

    .cta-stats {
        gap: 60px;
    }

    .stat-value {
        font-size: 42px;
    }

    /* Process flow desktop */
    .process-flow {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 60px 20px;
        padding-left: 20px;
        max-width: 1100px;
        gap: 0;
    }

    .flow-line {
        top: 50%;
        left: 80px;
        right: 80px;
        bottom: auto;
        width: auto;
        height: 4px;
        background: linear-gradient(to right, #1bb6c9, #14a3b5, #0f8a9a, #1bb6c9);
        background-size: 200% 100%;
        animation: flowLine 3s linear infinite;
    }

    .flow-node {
        flex-direction: column;
        gap: 15px;
        width: auto;
        max-width: none;
        padding: 0;
    }

    .node-icon {
        width: 70px;
        height: 70px;
        font-size: 24px;
    }

    .node-start .node-icon,
    .node-end .node-icon {
        width: 60px;
        height: 60px;
        font-size: 20px;
    }

    .node-label {
        text-align: center;
        font-size: 14px;
    }

    .node-popup {
        position: absolute;
        top: calc(100% + 20px);
        left: 50%;
        transform: translateX(-50%) translateY(10px);
        width: 260px;
    }

    .node-popup::before {
        display: block;
        content: "";
        position: absolute;
        top: -8px;
        left: 50%;
        transform: translateX(-50%);
        border-left: 8px solid transparent;
        border-right: 8px solid transparent;
        border-bottom: 8px solid #0f1f2b;
        border-top: none;
    }

    .node-clickable:hover .node-popup {
        transform: translateX(-50%) translateY(0);
    }

    .tech-intro {
        font-size: 18px;
        margin-bottom: 60px;
    }

    .services-box {
        padding: 50px;
    }
}
/* Polityka prywatności */
.policy-page {
    padding: 120px 20px 60px;
    max-width: 860px;
    margin: 0 auto;
    color: #ccd6f6;
    background: #0a192f;
}

.policy-page h1 {
    font-size: 2.2rem;
    color: #e6f1ff;
    margin-bottom: 5px;
}

.policy-date {
    color: #64ffda;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.policy-page h2 {
    font-size: 1.3rem;
    color: #e6f1ff;
    margin-top: 35px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(100, 255, 218, 0.15);
}

.policy-page h3 {
    font-size: 1.05rem;
    color: #ccd6f6;
    margin-top: 20px;
    margin-bottom: 8px;
}

.policy-page p {
    color: #8892b0;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.policy-page ul {
    color: #8892b0;
    padding-left: 20px;
    margin-bottom: 15px;
}

.policy-page ul li {
    margin-bottom: 6px;
    line-height: 1.7;
    font-size: 0.95rem;
}

.policy-page a {
    color: #64ffda;
    text-decoration: none;
}

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

.policy-page strong {
    color: #ccd6f6;
}
