
/* NAGŁÓWEK OFERTY */

.offer-hero {
    text-align: center;
    padding: 35px 20px 25px;
    background: radial-gradient(
        ellipse at top,
        rgba(56, 189, 248, 0.09),
        transparent 70%
    );
}

.offer-hero .subtitle {
    color: #38bdf8;
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.offer-hero h1 {
    color: #ffffff;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.2;
    margin: 0 0 12px;
}

.offer-hero h1 span {
    color: #38bdf8;
}

.offer-hero > p:last-child {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}


/* UKŁAD OFERTY */

.offer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 1150px;
    margin: 0 auto;
    padding: 10px 25px 35px;
}


/* KAFELKI */

.offer-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #111c2d;
    border: 1px solid #243449;
    border-radius: 14px;
    padding: 22px;
    transition: border-color 0.3s,
                box-shadow 0.3s;
}

.offer-card:hover {
    border-color: #38bdf8;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.08);
}


/* IKONY */

.offer-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.08);
    border-radius: 10px;
    margin-bottom: 12px;
}

.offer-icon svg {
    width: 26px;
    height: 26px;
}


/* TEKST */

.offer-card h2 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 10px;
}

.offer-card p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 15px;
}


/* CENA I PRZYCISK */

.offer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #243449;
}

.offer-price {
    color: #38bdf8;
    font-size: 25px;
    font-weight: 700;
}

.order-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    padding: 9px 18px;
    background: #38bdf8;
    color: #0b101b;
    border: none;
    border-radius: 7px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.25s,
                box-shadow 0.25s,
                transform 0.25s;
}

.order-btn:hover {
    background: #7dd3fc;
    box-shadow: 0 0 18px rgba(56, 189, 248, 0.3);
    transform: translateY(-2px);
}


/* BLOKADA PRZEWIJANIA STRONY */

body.modal-open {
    overflow: hidden;
}


/* OKNO ZAMÓWIENIA */

.order-modal {
    position: fixed;
    inset: 0;
    width: calc(100% - 30px);
    max-width: 500px;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto;
    padding: 0;
    box-sizing: border-box;
    background: #111c2d;
    color: #ffffff;
    border: 1px solid #30465c;
    border-radius: 18px;
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.6);
    overflow-y: auto;
    color-scheme: dark;
}

.order-modal[open] {
    animation: modalAppear 0.25s ease;
}

.order-modal::backdrop {
    background: rgba(3, 7, 15, 0.8);
    backdrop-filter: blur(5px);
}


/* ANIMACJA OKNA */

@keyframes modalAppear {

    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* ZAWARTOŚĆ OKNA */

.modal-content {
    position: relative;
    padding: 25px;
}

.modal-close {
    position: absolute;
    top: 12px;
    right: 15px;
    width: 35px;
    height: 35px;
    background: transparent;
    color: #94a3b8;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s;
}

.modal-close:hover {
    color: #38bdf8;
}

.modal-subtitle {
    color: #38bdf8;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 3px;
    margin: 0 0 8px;
}

.modal-content h2 {
    color: #ffffff;
    font-size: 27px;
    margin: 0 35px 8px 0;
}

.modal-description {
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.5;
    margin: 0 0 18px;
}


/* WYBRANA USŁUGA */

.selected-offer {
    background: #0b101b;
    border: 1px solid #243449;
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.selected-offer span {
    color: #94a3b8;
    font-size: 12px;
}

.selected-offer h3 {
    color: #ffffff;
    font-size: 16px;
    margin: 6px 0;
}

.selected-offer strong {
    color: #38bdf8;
    font-size: 26px;
}


/* FORMULARZ */

#order-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.order-form-group label {
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
}

.order-form-group input,
.order-form-group textarea {
    width: 100%;
    box-sizing: border-box;
    background: #0b101b;
    border: 1px solid #2b3d52;
    border-radius: 8px;
    padding: 11px 13px;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s,
                box-shadow 0.3s;
}

.order-form-group input::placeholder,
.order-form-group textarea::placeholder {
    color: #94a3b8;
}

.order-form-group input:focus,
.order-form-group textarea:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.1);
}

.order-form-group textarea {
    min-height: 85px;
    resize: vertical;
}


/* PRZYCISK WYSYŁANIA */

.submit-order {
    width: 100%;
    padding: 13px;
    background: #38bdf8;
    color: #0b101b;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s,
                box-shadow 0.3s;
}

.submit-order:hover {
    background: #7dd3fc;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

.order-note {
    color: #94a3b8;
    font-size: 11px;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

#order-status {
    color: #38bdf8;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
    margin: 0;
}

#order-status:empty {
    display: none;
}

.order-btn:focus-visible,
.modal-close:focus-visible,
.submit-order:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 4px;
}


/* TELEFONY */

@media (max-width: 700px) {

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 10px 15px 25px;
    }

    .offer-hero {
        padding: 25px 15px 20px;
    }

    .offer-card {
        padding: 18px;
    }

    .offer-card h2 {
        font-size: 18px;
    }

    .offer-price {
        font-size: 23px;
    }

    .modal-content {
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 24px;
    }

    .order-form-group input,
    .order-form-group textarea {
        font-size: 16px;
    }

}


/* OGRANICZENIE ANIMACJI */

@media (prefers-reduced-motion: reduce) {

    .order-modal[open] {
        animation: none;
    }

    .order-btn,
    .offer-card,
    .submit-order {
        transition: none;
    }

}
