*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f2b46;
    --primary-mid: #163d64;
    --primary-light: #1e5f8a;
    --accent: #e8a838;
    --accent-hover: #d4952e;
    --green: #27ae60;
    --bg: #f4f6f8;
    --bg-white: #ffffff;
    --text: #1a2a3a;
    --text-muted: #5a6b7d;
    --border: #dde3ea;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    background: var(--primary);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 6px 10px;
    border-radius: 6px;
    letter-spacing: -0.5px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a:hover { color: var(--primary-light); }

.nav-links a.active-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* ===== HERO ===== */
.hero {
    position: relative;
    padding: 160px 0 100px;
    background: var(--primary);
    color: white;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(30,95,138,0.6) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(232,168,56,0.15) 0%, transparent 50%),
        linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
    background: white;
}

.hero-shape-1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    animation: heroFloat 20s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: 10%;
    animation: heroFloat 15s ease-in-out infinite reverse;
}

.hero-shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 20%;
    background: var(--accent);
    opacity: 0.12;
    animation: heroFloat 12s ease-in-out infinite 2s;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

@keyframes heroFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -30px) scale(1.05); }
    66% { transform: translate(-15px, 15px) scale(0.95); }
}

.hero-content {
    position: relative;
    max-width: 750px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    text-transform: uppercase;
    animation: fadeInUp 0.6s ease both;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero h1 span { color: var(--accent); }

.hero p {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 32px;
    line-height: 1.7;
    max-width: 600px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-highlights {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    opacity: 0.85;
}

.highlight i { color: var(--accent); flex-shrink: 0; }

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    font-family: inherit;
}

.btn i { transition: transform 0.3s ease; }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }

.btn-primary {
    background: var(--accent);
    color: var(--primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232,168,56,0.35);
}

.btn-outline {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-outline:hover {
    border-color: white;
    background: rgba(255,255,255,0.08);
}

/* ===== FEATURES STRIP ===== */
.features-strip {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border);
    padding: 40px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.feature-item:hover {
    background: var(--bg);
}

.feature-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.feature-item:hover .feature-icon {
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 4px 15px rgba(15,43,70,0.3);
}

.feature-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 52px;
}

.section-tag {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 10px;
}

.section-title-left {
    font-size: 2.3rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
    margin-bottom: 16px;
    text-align: left;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 550px;
    margin: 0 auto;
}

/* ===== SERVICES ===== */
.uslugi {
    padding: 100px 0;
}

.service-category {
    margin-bottom: 48px;
    background: var(--bg-white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.service-category:hover {
    box-shadow: var(--shadow);
}

.cat-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 32px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.cat-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.4rem;
    transition: var(--transition);
}

.service-category:hover .cat-icon {
    transform: scale(1.08) rotate(-5deg);
}

.cat-icon-energy { background: linear-gradient(135deg, #e67e22, #f39c12); }
.cat-icon-geo    { background: linear-gradient(135deg, var(--green), #2ecc71); }
.cat-icon-proj   { background: linear-gradient(135deg, var(--primary-light), #3498db); }
.cat-icon-cad    { background: linear-gradient(135deg, #8e44ad, #9b59b6); }

.cat-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
}

.cat-services {
    padding: 8px 0;
}

.service-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 32px;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
    position: relative;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: var(--transition);
}

.service-item:last-child { border-bottom: none; }

.service-item:hover {
    background: var(--bg);
    padding-left: 36px;
}

.service-item:hover::before {
    opacity: 1;
}

.service-item-content { flex: 1; }

.service-item h4 {
    font-size: 1.02rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-item-icon {
    color: var(--primary-light);
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.service-item p {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 700px;
}

.service-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #e8f8f0;
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex-shrink: 0;
    white-space: nowrap;
}

.service-badge i { font-size: 0.65rem; }

/* ===== ONLINE BANNER ===== */
.online-banner {
    padding: 0;
}

.online-content {
    display: flex;
    align-items: center;
    gap: 32px;
    background: linear-gradient(135deg, var(--primary), var(--primary-mid));
    color: white;
    padding: 48px;
    border-radius: var(--radius);
    margin-bottom: -40px;
    position: relative;
    overflow: hidden;
}

.online-content::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(232,168,56,0.1);
    border-radius: 50%;
    top: -60px;
    right: -40px;
}

.online-icon {
    width: 80px;
    height: 80px;
    min-width: 80px;
    background: rgba(255,255,255,0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 1.8rem;
    transition: var(--transition);
}

.online-content:hover .online-icon {
    transform: rotate(-5deg) scale(1.05);
}

.online-text {
    position: relative;
}

.online-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.online-text p {
    opacity: 0.85;
    font-size: 0.95rem;
    line-height: 1.6;
}

.online-content .btn {
    white-space: nowrap;
    margin-left: auto;
    position: relative;
}

/* ===== ABOUT ===== */
.o-nas {
    padding: 120px 0 100px;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 32px 0;
}

.about-stat {
    text-align: center;
    padding: 16px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.about-stat:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.about-stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.about-stat-pct {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.about-stat p {
    font-size: 0.78rem !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

.about-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 6px 0;
}

.value-item i { color: var(--green); flex-shrink: 0; font-size: 0.8rem; }

.about-visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.visual-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.visual-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.visual-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.8rem;
    transition: var(--transition);
}

.visual-card:hover .visual-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.visual-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.visual-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== PROJECTS ===== */
.realizacje {
    padding: 100px 0;
    background: var(--bg-white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.project-preview {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.project-preview::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 50%, rgba(0,0,0,0.2));
    z-index: 1;
}

.project-card:hover .project-preview {
    transform: scale(1.03);
}

.project-preview i {
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.2));
    transition: var(--transition);
}

.project-card:hover .project-preview i {
    transform: scale(1.15) rotate(-5deg);
}

.project-1 { background: linear-gradient(135deg, #e67e22, #f39c12); }
.project-2 { background: linear-gradient(135deg, var(--green), #2ecc71); }
.project-3 { background: linear-gradient(135deg, var(--primary-light), #3498db); }
.project-4 { background: linear-gradient(135deg, #8e44ad, #9b59b6); }
.project-5 { background: linear-gradient(135deg, #c0392b, #e74c3c); }
.project-6 { background: linear-gradient(135deg, #16a085, #1abc9c); }

.project-info {
    padding: 20px;
}

.project-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-light);
    background: rgba(30,95,138,0.08);
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.project-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== REGIONS ===== */
.obszar {
    padding: 100px 0;
}

.regions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.region-card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    cursor: default;
}

.region-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.region-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 14px;
    background: var(--bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    font-size: 1.5rem;
    transition: var(--transition);
}

.region-card:hover .region-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1);
}

.region-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.region-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.online-nationwide {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
    padding: 20px 28px;
    background: var(--bg-white);
    border: 1px dashed var(--accent);
    border-radius: var(--radius);
    text-align: center;
    justify-content: center;
}

.online-nationwide i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.online-nationwide p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
}

.online-nationwide strong {
    color: var(--text);
}

/* ===== ORDER FORM ===== */
.zamow {
    padding: 100px 0;
    background: var(--bg-white);
}

.order-form {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg);
    padding: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
}

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

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-group label i {
    color: var(--primary-light);
    font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg-white);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30,95,138,0.12);
    transform: translateY(-1px);
}

.form-group textarea { resize: vertical; }

.btn-submit {
    width: 100%;
    margin-top: 24px;
    padding: 15px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    font-size: 1.05rem;
    font-weight: 700;
}

/* ===== CONTACT ===== */
.kontakt {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.contact-link {
    text-decoration: none;
    color: inherit;
}

.contact-item {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: block;
}

.contact-link:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-light);
}

.contact-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-link:hover .contact-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 4px 15px rgba(15,43,70,0.3);
}

.contact-item h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--primary);
    color: white;
    padding-top: 56px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
}

.footer-brand p {
    margin-top: 12px;
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-logo {
    display: inline-flex;
}

.footer-logo .logo-icon {
    background: rgba(255,255,255,0.15);
    color: var(--accent);
}

.footer-logo .logo-text { color: white; }

.footer-links h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.footer-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    padding: 4px 0;
    transition: var(--transition);
}

.footer-links a:hover { opacity: 1; transform: translateX(4px); }

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.82rem;
    opacity: 0.5;
    text-align: center;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    z-index: 5500;
    transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    cursor: pointer;
    max-width: calc(100vw - 32px);
    text-align: center;
    justify-content: center;
}

.toast.show { bottom: 100px; }

.toast:hover {
    background: #1e8449;
}

.toast.show { bottom: 30px; }

.toast:hover {
    background: #1e8449;
}

/* ===== ORDER BUTTON ===== */
.service-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-order {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--accent);
    color: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-order:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(232,168,56,0.35);
}

.btn-order i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.btn-order:hover i {
    transform: translateX(3px);
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-white);
    border-radius: 16px;
    width: 100%;
    max-width: 700px;
    position: relative;
    transform: translateY(30px) scale(0.97);
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.25);
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg);
    color: var(--text-muted);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    background: #fee;
    color: #e74c3c;
}

.modal-header {
    text-align: center;
    padding: 40px 40px 24px;
    border-bottom: 1px solid var(--border);
}

.modal-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--accent), #f39c12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.6rem;
    box-shadow: 0 8px 24px rgba(232,168,56,0.3);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}

.modal-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Process Steps */
.modal-process {
    padding: 24px 40px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.modal-process h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-process h3 i {
    color: var(--accent);
}

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

.process-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 12px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.step-num {
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.process-step strong {
    font-size: 0.9rem;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.process-step p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

/* Modal Form */
.modal-form {
    padding: 32px 40px 40px;
}

.modal-form-section {
    margin-bottom: 28px;
}

.modal-form-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.modal-form-section h4 i {
    color: var(--primary-light);
    font-size: 0.85rem;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

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

.modal-form-group.full-width {
    grid-column: 1 / -1;
}

.modal-form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 5px;
}

.modal-form-group input,
.modal-form-group select,
.modal-form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
    transition: var(--transition);
    outline: none;
}

.modal-form-group input:focus,
.modal-form-group select:focus,
.modal-form-group textarea:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(30,95,138,0.1);
    background: var(--bg-white);
}

.modal-form-group textarea {
    resize: vertical;
}

.modal-submit {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    border: none;
    cursor: pointer;
}

/* Modal Success */
.modal-success {
    display: none;
    text-align: center;
    padding: 48px 40px;
}

.modal-success.show {
    display: block;
}

.success-icon {
    font-size: 3.5rem;
    color: var(--green);
    margin-bottom: 20px;
}

.modal-success h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 12px;
}

.modal-success p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.success-note {
    background: var(--bg);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 0.88rem !important;
    color: var(--text) !important;
    font-style: italic;
}

.modal-success .btn {
    margin-top: 20px;
}

/* ===== SECTION HINT ===== */
.section-hint {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: -4px 0 16px 0;
    line-height: 1.5;
}

/* ===== FILE UPLOAD ===== */
.file-upload-area {
    border: 2px dashed var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    background: var(--bg);
}

.file-upload-area:hover,
.file-upload-area.dragover {
    border-color: var(--accent);
    background: var(--primary-5);
}

.file-input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}

.file-label i {
    font-size: 2.2rem;
    color: var(--accent);
}

.file-label span {
    font-size: 0.95rem;
    color: var(--text);
}

.file-hint {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
}

.file-list {
    margin-top: 12px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 8px;
    font-size: 0.88rem;
}

.file-item-name {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow: hidden;
}

.file-item-name i {
    color: var(--accent);
    flex-shrink: 0;
}

.file-item-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-item-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
    flex-shrink: 0;
}

.file-item-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* ===== FLOOR DETAILS ===== */
.btn-add-floor {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: transparent;
    border: 1px dashed var(--accent);
    color: var(--accent);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    transition: var(--transition);
    margin-top: 8px;
}

.btn-add-floor:hover {
    background: var(--primary-5);
    border-style: solid;
}

.floor-detail-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-top: 12px;
    position: relative;
}

.floor-detail-card .floor-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.floor-detail-card .floor-card-header h5 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.floor-card-remove {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    transition: var(--transition);
}

.floor-card-remove:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.08);
}

/* ===== FIELD HINTS ===== */
.field-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
    line-height: 1.4;
    padding-left: 2px;
}

.field-hint::before {
    content: '\f059';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 5px;
    font-size: 0.72rem;
    opacity: 0.6;
}

.optional-marker {
    font-weight: 400;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.78rem;
}

.modal-form-group[data-visible="false"] {
    display: none !important;
}

.modal-form-section[data-visible="false"] {
    display: none !important;
}

/* ===== DRAW FLOORPLAN BUTTON ===== */
.btn-draw-floorplan {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    margin-top: 12px;
}

.btn-draw-floorplan:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 135, 0.3);
}

/* ===== FLOOR PLAN EDITOR ===== */
.fp-editor-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 6000;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(4px);
}

.fp-editor-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
    overscroll-behavior: none;
}

.fp-editor {
    width: 95vw;
    height: 92vh;
    max-width: 1400px;
    background: var(--bg-white);
    border-radius: var(--radius);
    box-shadow: 0 8px 40px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    overscroll-behavior: none;
}

.fp-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}

.fp-editor-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-editor-header h3 i {
    color: var(--accent);
}

.fp-editor-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-scale-select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    background: var(--bg-white);
    color: var(--text);
    cursor: pointer;
}

.fp-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    background: var(--primary);
    color: white;
}

.fp-btn:hover {
    background: var(--primary-dark);
}

.fp-btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
}

.fp-btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.fp-btn-ghost:hover {
    background: var(--bg);
    color: var(--text);
}

.fp-editor-body {
    display: flex;
    flex: 1;
    overflow: hidden;
}

.fp-toolbar {
    display: flex;
    flex-direction: column;
    padding: 8px;
    gap: 2px;
    border-right: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
    overflow-y: auto;
}

.fp-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.7rem;
    transition: var(--transition);
    min-width: 64px;
}

.fp-tool i {
    font-size: 1.1rem;
}

.fp-tool:hover {
    background: var(--bg-white);
    color: var(--text);
    border-color: var(--border);
}

.fp-tool.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.fp-tool-danger:hover,
.fp-tool-danger.active {
    background: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.fp-tool-separator {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

#fpCanvas {
    touch-action: none;
}

.fp-canvas-wrapper {
    flex: 1;
    overflow: hidden;
    background: #f8f9fa;
    position: relative;
    touch-action: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.fp-canvas-wrapper canvas {
    display: block;
}

.fp-editor-footer {
    padding: 8px 20px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    flex-shrink: 0;
}

.fp-hint {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* ===== DIMENSION INPUT OVERLAY ===== */
.fp-dim-overlay {
    position: absolute;
    z-index: 100;
    background: var(--bg-white);
    border: 2px solid var(--accent);
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
    white-space: nowrap;
}

.fp-dim-overlay label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 4px;
}

.fp-dim-overlay input {
    width: 64px;
    padding: 4px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    text-align: center;
    color: var(--text);
    background: var(--bg);
}

.fp-dim-overlay input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-5);
}

.fp-dim-overlay .fp-dim-unit {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.fp-dim-overlay .fp-dim-btn {
    padding: 4px 10px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.fp-dim-overlay .fp-dim-ok {
    background: var(--primary);
    color: white;
}

.fp-dim-overlay .fp-dim-ok:hover {
    background: var(--primary-dark);
}

.fp-dim-overlay .fp-dim-skip {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.fp-dim-overlay .fp-dim-skip:hover {
    background: var(--bg);
    color: var(--text);
}

/* ===== SNAP INDICATOR ===== */
.fp-snap-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border: 2px solid white;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99;
    box-shadow: 0 0 6px rgba(46, 134, 189, 0.6);
    transition: opacity 0.15s;
}

/* ===== TOOL TOGGLE ===== */
.fp-tool-toggle {
    position: relative;
}

.fp-tool-toggle.fp-toggle-on {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.fp-tool-toggle.fp-toggle-on:hover {
    background: #219a52;
}

.fp-zoom-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    padding: 6px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg);
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.85rem;
    min-width: auto;
    transition: var(--transition);
}

.fp-zoom-btn:hover {
    background: var(--bg-white);
    color: var(--text);
    border-color: var(--border);
}

.fp-zoom-btn i {
    font-size: 0.75rem;
}

.fp-zoom-level {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
    min-width: 40px;
    text-align: center;
    user-select: none;
    padding: 0 2px;
}

/* Smart drawing modal */
.fp-smart-modal {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 200;
    background: var(--bg-white);
    border: 2px solid var(--primary);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    min-width: 300px;
    max-width: 90%;
}

.fp-smart-modal.show {
    display: block;
}

.fp-smart-modal h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.fp-smart-modal h4 i {
    color: var(--primary);
}

.fp-smart-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.4;
}

.fp-smart-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.fp-smart-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fp-smart-row label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    min-width: 90px;
}

.fp-smart-row input {
    flex: 1;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text);
    background: var(--bg);
}

.fp-smart-row input:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px var(--primary-5);
}

.fp-smart-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

/* Door/window dimension prompt */
.fp-dim-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    min-width: 220px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    z-index: 10;
    display: none;
}

.fp-dim-prompt.show {
    display: block;
    animation: fpFadeIn 0.15s ease;
}

.fp-dim-prompt h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
}

.fp-dim-prompt .fp-smart-form {
    margin-bottom: 12px;
}

.fp-dim-prompt .fp-smart-row {
    margin-bottom: 8px;
}

/* Help panel */
.fp-help-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
}

.fp-help-toggle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fp-help-toggle:hover {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
}

.fp-help-content {
    display: none;
    position: absolute;
    top: 44px;
    right: 0;
    width: 300px;
    max-height: 450px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.fp-help-content.show {
    display: block;
    animation: fpFadeIn 0.2s ease;
}

.fp-help-content h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.fp-help-section {
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.fp-help-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.fp-help-section h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.fp-help-section p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}

.fp-help-kbd {
    display: inline-block;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 3px;
    padding: 0 4px;
    font-size: 10px;
    font-family: monospace;
    color: var(--text);
    line-height: 1.4;
}

.fp-help-visual {
    margin-top: 6px;
    padding: 6px;
    background: rgba(96,165,250,0.05);
    border-radius: 6px;
    text-align: center;
}

.fp-help-visual svg {
    max-width: 100%;
    height: auto;
}

/* Audit extra sections in order modal */
.audit-photo-requirements {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

@media (max-width: 600px) {
    .audit-photo-requirements {
        grid-template-columns: 1fr;
    }
}

.audit-photo-category {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 14px;
    border: 1px solid var(--border);
}

.audit-photo-category h5 {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-photo-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audit-photo-category li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.4;
}

.audit-photo-category li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.audit-photo-category li strong {
    color: var(--text);
}

.audit-photo-tips {
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.25);
    border-radius: 10px;
    padding: 14px;
    margin: 16px 0;
}

.audit-photo-tips h5 {
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.audit-photo-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.audit-photo-tips li {
    font-size: 12px;
    color: var(--text-muted);
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.5;
}

.audit-photo-tips li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
}

.audit-photo-tips li strong {
    color: var(--text);
}

.audit-photo-upload {
    margin-top: 12px;
}

.audit-photo-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
    padding: 8px 12px;
    background: rgba(96,165,250,0.08);
    border-radius: 6px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.audit-photo-note i {
    margin-top: 2px;
    flex-shrink: 0;
    color: var(--accent);
}

/* Audit documents checklist */
.audit-docs-checklist {
    margin: 16px 0;
    display: grid;
    gap: 10px;
}

.audit-doc-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: border-color 0.2s;
}

.audit-doc-item:hover {
    border-color: var(--accent);
}

.audit-doc-check {
    flex-shrink: 0;
    color: var(--accent);
    font-size: 18px;
    margin-top: 1px;
    opacity: 0.6;
}

.audit-doc-text strong {
    font-size: 13px;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

.audit-doc-text p {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.audit-docs-upload {
    margin-top: 16px;
}

/* Example floor plan in help panel */
.fp-help-example {
    margin-top: 12px;
    padding: 10px;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.fp-help-example h5 {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Floor plan editor responsive */
.fp-mobile-hint {
    display: none;
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    z-index: 50;
    transition: opacity 0.2s;
}

@media (max-width: 768px) {
    .fp-mobile-hint {
        display: block;
    }

    .fp-editor-overlay.active {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
    }

    .fp-editor {
        width: 100vw;
        height: auto;
        flex: 1;
        border-radius: 0;
        max-width: none;
        min-height: 0;
    }

    .fp-editor-header {
        padding: 6px 10px;
        min-height: 44px;
    }

    .fp-editor-header h3 {
        font-size: 0.82rem;
        white-space: nowrap;
        overflow: hidden;
    }

    .fp-editor-header h3 span {
        display: none;
    }

    .fp-editor-header-actions .fp-btn-sm {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .fp-editor-body {
        flex-direction: column-reverse;
    }

    .fp-canvas-wrapper {
        flex: 1;
        width: 100%;
        min-height: 0;
    }

    .fp-toolbar {
        flex-direction: row;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-top: 1px solid var(--border);
        border-bottom: none;
        padding: 4px 6px;
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
        gap: 2px;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
        flex-shrink: 0;
        touch-action: pan-x;
    }

    .fp-toolbar::-webkit-scrollbar {
        display: none;
    }

    .fp-tool {
        min-width: 42px;
        min-height: 42px;
        padding: 4px 6px;
        font-size: 1rem;
    }

    .fp-tool i {
        font-size: 1rem;
    }

    .fp-tool span {
        display: none;
    }

    .fp-tool-separator {
        width: 1px;
        height: 24px;
        margin: auto 2px;
    }

    .fp-editor-footer {
        display: none;
    }

    .fp-hint {
        display: none;
    }

    .fp-zoom-level {
        font-size: 0.8rem;
        min-width: 36px;
    }

    .fp-zoom-btn {
        min-width: 38px;
        min-height: 38px;
    }

    .fp-dim-overlay {
        padding: 6px 8px;
        gap: 4px;
        flex-wrap: wrap;
    }

    .fp-dim-overlay label {
        font-size: 0.72rem;
    }

    .fp-dim-overlay input {
        width: 44px;
        font-size: 0.75rem;
    }

    .fp-smart-modal {
        width: calc(100% - 32px);
        max-width: calc(100% - 32px);
        min-width: 0;
        left: 50%;
    }
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5000;
    background: var(--primary);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 -4px 24px rgba(0,0,0,0.2);
}

.cookie-banner.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cookie-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 0.9rem;
    line-height: 1.5;
}

.cookie-text i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cookie-text p {
    margin: 0;
    opacity: 0.9;
}

.cookie-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.btn-cookie {
    padding: 10px 22px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-cookie-accept {
    background: var(--accent);
    color: var(--primary);
    border-color: var(--accent);
}

.btn-cookie-accept:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-cookie-reject {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-cookie-reject:hover {
    border-color: white;
    background: rgba(255,255,255,0.08);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-visual { flex-direction: row; }
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .regions-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 28px; }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .cookie-text {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        flex-direction: column;
        padding: 20px 24px;
        gap: 14px;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow);
        transform: translateY(-130%);
        transition: var(--transition);
    }
    .nav-links.active { transform: translateY(0); }

    .hero { padding: 130px 0 70px; }
    .hero h1 { font-size: 2.2rem; }

    .features-grid { grid-template-columns: 1fr; }

    .services-categories { gap: 32px; }

    .cat-header { padding: 20px; }
    .service-item { padding: 16px 20px; }
    .service-item:hover { padding-left: 20px; }

    .online-content {
        flex-direction: column;
        text-align: center;
        padding: 32px 24px;
    }

    .about-grid { gap: 32px; }
    .about-visual { flex-direction: column; }
    .about-stats { grid-template-columns: repeat(3, 1fr); }
    .about-values { grid-template-columns: 1fr; }

    .projects-grid { grid-template-columns: 1fr; }
    .regions-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }

    .order-form { padding: 28px; }
    .form-grid { grid-template-columns: 1fr; }

    .section-title, .section-title-left { font-size: 1.8rem; }

    .service-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-top: 10px;
    }

    .modal {
        margin: 10px;
        border-radius: 12px;
    }

    .modal-header {
        padding: 28px 20px 20px;
    }

    .modal-process {
        padding: 20px;
    }

    .modal-form {
        padding: 24px 20px 32px;
    }

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

    .process-step {
        flex-direction: column;
        gap: 8px;
    }
}
