/*== Layout variables ==*/
:root {
    --primary: #ff7a18;
    --primary-dark: #c62828;
    --primary-light: #ff6b6b;
    --accent: #ff7a18;
    --accent-light: #ff9c5a;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-light: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);

    --text: #1f2937;
    --text-light: #6b7280;
    --muted: #6b7280;
    --bg: #ffffff;
    --bg-soft: #f8f6f2;
    --bg-dark: #0f172a;
    --card: #ffffff;
    --border: rgba(17, 24, 39, 0.08);
    --border-light: rgba(229, 57, 53, 0.12);
    --shadow: 0 18px 50px rgba(17, 24, 39, 0.10);
    --shadow-lg: 0 25px 70px rgba(229, 57, 53, 0.15);
    --radius: 24px;
    --radius-sm: 16px;
    --radius-lg: 32px;
    --navbar-height: 64px;
}

/*== Reset ==*/
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: clip;
}

@supports not (overflow-x: clip) {
    html,
    body {
        overflow-x: hidden;
    }
}

html {
    scroll-behavior: smooth;
    background-color: #ffffff;
}

html[data-theme="dark"] {
    background-color: #0f172a;
}

body {
    min-height: 100vh;
    margin: 0;
    background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

img,
svg {
    max-width: 100%;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

/*== Container ==*/
.pp-container {
    width: min(100% - 32px, 1320px);
    margin-inline: auto;
}

/*== Sections ==*/
.section-pad {
    padding-top: 3.0rem;
    padding-bottom: 3rem;
}

.request-submit-btn.processing {
    opacity: 0.7;
    cursor: not-allowed;
}

.dots::after {
    content: '';
    animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}

.section-title {
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -0.04em;
    font-size: 2rem;
}

.section-subtitle {
    max-width: 680px;
    color: var(--muted);
}

/*== Project buttons ==*/
.pp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    appearance: none;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
            background 0.3s ease,
            color 0.3s ease,
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            transform 0.3s ease;
}

.pp-btn-primary,
.pp-btn-accent {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 10px 24px rgba(229, 57, 53, 0.22);
}

.pp-btn-primary:hover,
.pp-btn-accent:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #e86d10 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(229, 57, 53, 0.3);
}

.pp-btn-secondary {
    background: #1f2937;
    border-color: #1f2937;
    color: #fff;
}

.pp-btn-secondary:hover {
    background: #111827;
    border-color: #111827;
    color: #fff;
}

.pp-btn-outline {
    background: transparent;
    border-color: var(--accent);
    color: var(--accent);
    font-weight: 600;
}

.pp-btn-outline:hover {
    background: rgba(17, 24, 39, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

.pp-btn-danger {
    background: var(--primary-dark);
    border-color: #dc3545;
    color: #fff;
    font-weight: 600;
}

.pp-btn-danger:hover {
    background: #dc3545;
    color: #fff;
}

.pp-btn:disabled {
    opacity: 0.6;
    pointer-events: none;
}

/*== Forms ==*/
input,
textarea,
select,
.custom-input {
    width: 100%;
    min-height: 48px;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    outline: 0;
    transition:
            border-color 0.3s ease,
            box-shadow 0.3s ease,
            transform 0.3s ease,
            background 0.3s ease,
            color 0.3s ease;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

input:focus,
textarea:focus,
select:focus,
.custom-input:focus {
    border-color: rgba(229, 57, 53, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(229, 57, 53, 0.12);
    transform: translateY(-2px);
}

.form-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row > * {
    flex: 1;
}

.custom-input {
    background: rgba(255, 255, 255, 0.05);
    color: #000;
}

.custom-input:focus {
    background: rgba(255, 255, 255, 0.08);
    color: #000;
    border-color: rgba(124, 58, 237, 0.6);
    box-shadow: 0 0 0 0.2rem rgba(124, 58, 237, 0.15);
}

/*== Cards / States ==*/
.content-card,
.info-card,
.form-card {
    padding: 1.5rem;
}

.empty-state {
    padding: 3rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.detail-info {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: var(--text);
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 12px;
    background: rgba(229, 57, 53, 0.08);
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
}

.text-muted {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*== Alerts ==*/
.pp-alert-container {
    position: fixed;
    top: 80px;
    right: 20px;
    width: min(320px, calc(100% - 40px));
    z-index: 1050;
}

.pp-alert {
    position: relative;
    width: 100%;
    margin-bottom: 12px;
    padding: 14px 44px 14px 16px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: #fff;
    color: var(--text);
    box-shadow: 0 16px 36px rgba(17, 24, 39, 0.12);
    transition:
            opacity 0.3s ease,
            transform 0.3s ease;
}

.pp-alert.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

.pp-alert-success {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.pp-alert-danger,
.pp-alert-error {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.pp-alert-warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.pp-alert-info {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.pp-alert-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: currentColor;
    opacity: .65;
    cursor: pointer;
    transition: opacity .2s ease, background .2s ease;
}

.pp-alert-close::before,
.pp-alert-close::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.pp-alert-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.pp-alert-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.pp-alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.06);
}

/*== Animations ==*/
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.7;
    }
}

/*== Cookies ==*/
.cookie-consent {
    position: fixed;
    inset: auto 20px 20px 20px;
    z-index: 3000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent-card {
    width: min(980px, 100%);
    padding: 26px;
    border: 1px solid rgba(255, 122, 24, 0.18);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    box-shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
    backdrop-filter: blur(18px);
    pointer-events: auto;
}

.cookie-consent-header {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    align-items: flex-start;
}

.cookie-consent-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 122, 24, 0.18), rgba(255, 156, 90, 0.12));
    color: var(--primary);
    box-shadow: inset 0 0 0 1px rgba(255, 122, 24, 0.12);
}

.cookie-consent-card h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cookie-consent-card p {
    max-width: 760px;
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
    font-size: 0.95rem;
}

.cookie-consent-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0;
}

.cookie-option-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 78px;
    padding: 16px;
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 20px;
    background: linear-gradient(180deg, #ffffff, #fff8f2);
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.cookie-option-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 24, 0.35);
    box-shadow: 0 14px 32px rgba(255, 122, 24, 0.12);
}

.cookie-option-card input {
    appearance: none;
    -webkit-appearance: none;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    min-height: 24px;
    padding: 0;
    border: 2px solid rgba(255, 122, 24, 0.45);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
    transform: none;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cookie-option-card input:checked {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(255, 122, 24, 0.14);
}

.cookie-option-card input:checked::after {
    content: "";
    display: block;
    width: 7px;
    height: 12px;
    margin: 3px auto 0;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.cookie-option-card input:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.cookie-option-card span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cookie-option-card strong {
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 850;
}

.cookie-option-card small {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    padding-top: 4px;
}

.cookie-consent-actions .pp-btn {
    min-height: 46px;
    padding-inline: 20px;
}

/*== Dark cookies ==*/
html[data-theme="dark"] .cookie-consent-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .cookie-option-card {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92));
    border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .cookie-option-card:hover {
    border-color: rgba(255, 122, 24, 0.42);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .cookie-option-card input {
    background: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 122, 24, 0.55);
}

html[data-theme="dark"] .cookie-option-card strong {
    color: #f8fafc;
}

/*== Responsive cookies ==*/
@media (max-width: 768px) {
    .cookie-consent {
        inset: auto 12px 12px 12px;
    }

    .cookie-consent-card {
        padding: 18px;
        border-radius: 22px;
    }

    .cookie-consent-header {
        grid-template-columns: 1fr;
    }

    .cookie-consent-options {
        grid-template-columns: 1fr;
    }

    .cookie-consent-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cookie-consent-actions .pp-btn {
        width: 100%;
    }
}