/* ============================================
   Pe&Den Плочкар — Professional Styles
   Color: Slate #1a2332 / Orange #e8611a / White
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

@keyframes typing {
    0%, 60%, 100% { opacity: 0.3; }
    30% { opacity: 1; }
}

@keyframes toastIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes toastOut {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(26, 35, 50, 0.97);
    padding: 10px 0;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
    font-weight: 700;
    font-size: 1.4rem;
    color: #fff;
}

.logo-pe { color: #e8611a; }
.logo-amp { color: rgba(255,255,255,0.5); font-weight: 400; margin: 0 1px; }
.logo-den { color: #fff; }
.logo-sub {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.7);
    margin-left: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.nav-links a:hover { color: #e8611a; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #e8611a;
    transition: width 0.2s;
}

.nav-links a:hover::after { width: 100%; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Language Switcher */
.language-switcher {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 3px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.lang-btn:hover { color: #fff; background: rgba(255,255,255,0.1); }
.lang-btn.active { background: #e8611a; color: #fff; }

/* Mobile Nav Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s;
}

.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a2332 0%, #2c3e50 50%, #1a2332 100%);
    overflow: hidden;
    padding: 120px 20px 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(232,97,26,0.03) 40px,
            rgba(232,97,26,0.03) 80px
        ),
        repeating-linear-gradient(
            -45deg,
            transparent,
            transparent 40px,
            rgba(255,255,255,0.02) 40px,
            rgba(255,255,255,0.02) 80px
        );
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(ellipse at 70% 50%, rgba(232,97,26,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.hero-badge {
    display: inline-block;
    background: rgba(232,97,26,0.15);
    color: #e8611a;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid rgba(232,97,26,0.3);
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 36px;
    line-height: 1.7;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

.trust-item svg { color: #4ade80; flex-shrink: 0; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: #e8611a;
    color: #fff;
    border-color: #e8611a;
}

.btn-primary:hover {
    background: #d4550f;
    border-color: #d4550f;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,97,26,0.35);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; padding: 14px; font-size: 1rem; }

.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(232,97,26,0.35);
}

/* --- Stats Bar --- */
.stats-bar {
    background: #e8611a;
    padding: 32px 0;
    position: relative;
}

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

.stat-item { color: #fff; }

.stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    display: inline;
}

.stat-plus {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255,255,255,0.8);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 4px;
    font-weight: 400;
}

/* --- Sections --- */
.section {
    padding: 80px 0;
}

.section-alt {
    background: #f8f9fb;
}

.section-label {
    display: inline-block;
    color: #e8611a;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.section-label.center { display: block; text-align: center; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
    text-align: center;
    margin-bottom: 16px;
}

.section-desc {
    text-align: center;
    color: #666;
    max-width: 560px;
    margin: 0 auto 40px;
    font-size: 1.05rem;
}

/* --- About --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
}

.about-placeholder {
    background: linear-gradient(135deg, #f0f2f5, #e4e7ec);
    border-radius: 16px;
    height: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #999;
}

.about-placeholder svg { stroke: #bbb; }

.about-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1a2332;
    text-align: left;
    margin-bottom: 16px;
}

.about-content p {
    color: #555;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 28px;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
}

.about-feature svg { color: #4ade80; flex-shrink: 0; }

/* --- Services --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.service-card {
    background: #fff;
    padding: 32px 28px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: #e8611a;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.08);
    border-color: transparent;
}

.service-icon {
    width: 56px;
    height: 56px;
    background: rgba(232,97,26,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #e8611a;
}

.service-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 10px;
}

.service-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.service-link {
    color: #e8611a;
    font-weight: 600;
    font-size: 0.9rem;
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-link:hover { gap: 8px; }

/* --- Process / How it works --- */
.process-grid {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    margin-top: 48px;
    flex-wrap: wrap;
}

.process-step {
    text-align: center;
    flex: 1;
    max-width: 220px;
    padding: 0 16px;
}

.process-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8611a;
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.process-step h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 0.88rem;
    color: #666;
    line-height: 1.5;
}

.process-connector {
    width: 60px;
    height: 2px;
    background: #ddd;
    margin-top: 24px;
    flex-shrink: 0;
}

/* --- Gallery --- */
.gallery-filters {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #666;
    transition: all 0.2s;
}

.filter-btn:hover { border-color: #e8611a; color: #e8611a; }
.filter-btn.active { background: #e8611a; color: #fff; border-color: #e8611a; }

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

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
}

.gallery-item.hidden {
    display: none;
}

.gallery-placeholder {
    height: 220px;
    background: linear-gradient(135deg, #e8e9ec, #d4d6dc);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 0.85rem;
}

.gallery-placeholder svg { stroke: #bbb; }

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(26,35,50,0.85));
    color: #fff;
    font-size: 0.85rem;
    font-weight: 500;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay { transform: translateY(0); }
.gallery-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }

/* --- Forms --- */
.form-card {
    max-width: 680px;
    margin: 0 auto;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid #eee;
}

.section-alt .form-card {
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.9rem;
    color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
    color: #333;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #e8611a;
    box-shadow: 0 0 0 3px rgba(232,97,26,0.1);
}

.form-group input.error,
.form-group select.error {
    border-color: #ef4444;
}

.form-group .error-msg {
    color: #ef4444;
    font-size: 0.8rem;
    margin-top: 4px;
    display: none;
}

.form-group input.error + .error-msg,
.form-group select.error + .error-msg {
    display: block;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Time slots */
.time-slots {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.time-slot {
    flex: 1;
    min-width: 120px;
    position: relative;
    cursor: pointer;
}

.time-slot input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.time-slot span {
    display: block;
    text-align: center;
    padding: 10px 12px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s;
    color: #555;
}

.time-slot input:checked + span {
    border-color: #e8611a;
    background: rgba(232,97,26,0.06);
    color: #e8611a;
}

.time-slot:hover span {
    border-color: #e8611a;
}

/* File upload */
.file-upload-label {
    margin-bottom: 6px;
}

.file-upload-area {
    border: 2px dashed #ddd;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #999;
    position: relative;
}

.file-upload-area:hover {
    border-color: #e8611a;
    background: rgba(232,97,26,0.02);
}

.file-upload-area svg { margin: 0 auto 8px; color: #bbb; }

.file-input {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.photo-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.photo-thumb {
    width: 72px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    border: 2px solid #eee;
}

.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-thumb .remove-photo {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    color: #fff;
    border: none;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Form success */
.form-success {
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.5s ease;
}

.form-success svg { color: #4ade80; margin: 0 auto 16px; }

.form-success h3 {
    font-size: 1.4rem;
    color: #1a2332;
    margin-bottom: 8px;
}

.form-success p {
    color: #666;
    font-size: 1.05rem;
}

/* --- Contact --- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.contact-card {
    background: #fff;
    padding: 28px 24px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.contact-card svg {
    color: #e8611a;
    margin: 0 auto 12px;
}

.contact-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 6px;
}

.contact-card p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.contact-link {
    color: #e8611a;
    font-weight: 600;
    font-size: 0.85rem;
}

/* --- Footer --- */
.footer {
    background: #1a2332;
    padding: 40px 0;
    text-align: center;
}

.footer-content { color: rgba(255,255,255,0.7); }

.footer-brand {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 2px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.footer-copy {
    font-size: 0.8rem;
    opacity: 0.6;
}

/* ============================================
   CHAT WIDGET
   ============================================ */

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-size: 14px;
}

.chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e8611a;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(232,97,26,0.4);
    transition: all 0.3s;
    position: relative;
}

.chat-toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(232,97,26,0.5);
}

.chat-icon-close { display: none; }
.chat-widget.active .chat-icon-open { display: none; }
.chat-widget.active .chat-icon-close { display: block; }

.chat-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.chat-badge.hidden { display: none; }

/* Chat Window */
.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 370px;
    height: 520px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    display: none;
    flex-direction: column;
    overflow: hidden;
    animation: fadeInUp 0.3s ease;
}

.chat-widget.active .chat-window { display: flex; }

.chat-header {
    background: #1a2332;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #e8611a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.chat-header-name {
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
}

.chat-header-status {
    font-size: 0.72rem;
    color: #4ade80;
    display: block;
}

.chat-minimize {
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    transition: color 0.2s;
    padding: 4px;
}

.chat-minimize:hover { color: #fff; }

/* Chat Messages */
.chat-messages {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
    background: #f5f6f8;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-message {
    max-width: 82%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: fadeIn 0.3s ease;
}

.chat-message.bot {
    align-self: flex-start;
    background: #fff;
    color: #333;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.chat-message.user {
    align-self: flex-end;
    background: #e8611a;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    align-self: flex-start;
    background: #fff;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.typing-indicator span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #bbb;
    animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

/* Quick Replies */
.chat-quick-replies {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 8px 16px;
    background: #f5f6f8;
    border-top: 1px solid #eee;
    max-height: 120px;
    overflow-y: auto;
}

.chat-quick-replies:empty {
    display: none;
    padding: 0;
}

.quick-reply-btn {
    background: #fff;
    border: 1.5px solid #e8611a;
    color: #e8611a;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.quick-reply-btn:hover {
    background: #e8611a;
    color: #fff;
}

/* Chat Input */
.chat-input-area {
    display: flex;
    padding: 12px 12px;
    background: #fff;
    border-top: 1px solid #eee;
    gap: 8px;
}

.chat-input-area input {
    flex: 1;
    border: 1.5px solid #e0e0e0;
    border-radius: 20px;
    padding: 9px 16px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input-area input:focus { border-color: #e8611a; }

#chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #e8611a;
    color: #fff;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#chat-send:hover { background: #d4550f; }

/* --- Notification Toast --- */
.notification-toast {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: #1a2332;
    color: #fff;
    padding: 14px 20px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    animation: toastIn 0.4s ease;
    min-width: 280px;
}

.toast.success { border-left: 4px solid #4ade80; }
.toast.removing { animation: toastOut 0.3s ease forwards; }

.toast svg { flex-shrink: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { gap: 40px; }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-toggle { display: flex; }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(26,35,50,0.98);
        padding: 20px;
        gap: 0;
        backdrop-filter: blur(10px);
    }

    .nav-links.active a {
        padding: 12px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .hero { padding: 100px 20px 60px; min-height: auto; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-trust { flex-direction: column; align-items: center; gap: 8px; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .stat-number { font-size: 1.8rem; }

    .about-grid { grid-template-columns: 1fr; }
    .about-placeholder { height: 240px; }
    .about-content h2 { text-align: center; }
    .about-features { grid-template-columns: 1fr; }

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

    .process-grid { flex-direction: column; align-items: center; }
    .process-connector {
        width: 2px;
        height: 30px;
        margin: 0;
    }
    .process-step { max-width: none; }

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

    .form-row { grid-template-columns: 1fr; }
    .form-card { padding: 24px; }

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

    .chat-window {
        width: calc(100vw - 24px);
        height: calc(100vh - 100px);
        bottom: 68px;
        right: -8px;
        border-radius: 16px 16px 0 0;
    }

    .section { padding: 60px 0; }
    .section-title { font-size: 1.6rem; }

    .toast { min-width: auto; margin-left: 24px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .hero-buttons { flex-direction: column; align-items: center; }
    .hero-buttons .btn { width: 100%; max-width: 280px; justify-content: center; }
    .gallery-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
    .language-switcher { gap: 2px; }
    .lang-btn { padding: 4px 8px; font-size: 0.7rem; }
}

/* ============================================
   TILE COST CALCULATOR
   ============================================ */

.calculator-card {
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    border: 1px solid #eee;
}

.calc-step {
    display: none;
    animation: fadeInUp 0.4s ease;
}

.calc-step.active { display: block; }

.calc-step h3 {
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a2332;
    margin-bottom: 24px;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.calc-option {
    background: #f8f9fb;
    border: 2px solid #e8e9ec;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #333;
}

.calc-option:hover {
    border-color: #e8611a;
    background: rgba(232,97,26,0.04);
}

.calc-option.selected {
    border-color: #e8611a;
    background: rgba(232,97,26,0.08);
    color: #e8611a;
}

.calc-option svg { color: #999; transition: color 0.2s; }
.calc-option:hover svg,
.calc-option.selected svg { color: #e8611a; }

.calc-slider-group {
    text-align: center;
    padding: 16px 0;
}

.calc-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e8e9ec;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin-bottom: 16px;
}

.calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8611a;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(232,97,26,0.3);
}

.calc-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e8611a;
    cursor: pointer;
    border: none;
}

.calc-sqm-display {
    font-size: 2rem;
    font-weight: 700;
    color: #1a2332;
}

.calc-sqm-display span { color: #e8611a; }

.calc-result {
    text-align: center;
    animation: fadeInUp 0.5s ease;
    padding: 20px 0;
}

.calc-result-icon { color: #e8611a; margin-bottom: 12px; }

.calc-result-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
}

.calc-result-price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #1a2332;
    margin-bottom: 12px;
}

.calc-currency {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
}

.calc-result-note {
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 24px;
    line-height: 1.5;
}

.calc-result-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-ghost {
    background: transparent;
    color: #666;
    border: 1.5px solid #ddd;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.btn-ghost:hover { border-color: #e8611a; color: #e8611a; }

/* ============================================
   BEFORE / AFTER SLIDER
   ============================================ */

.before-after-container {
    margin-bottom: 40px;
}

.ba-title {
    text-align: center;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.before-after-slider {
    position: relative;
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    cursor: ew-resize;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    user-select: none;
}

.ba-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ba-before { z-index: 1; clip-path: inset(0 50% 0 0); }
.ba-after { z-index: 0; }

.ba-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.ba-placeholder-before {
    background: linear-gradient(135deg, #8b7355, #a08060);
    color: rgba(255,255,255,0.6);
}

.ba-placeholder-after {
    background: linear-gradient(135deg, #4a90d9, #5ba3ec);
    color: rgba(255,255,255,0.6);
}

.ba-label {
    position: absolute;
    bottom: 12px;
    padding: 4px 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ba-before .ba-label { left: 12px; }
.ba-after .ba-label { right: 12px; }

.ba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: #fff;
    z-index: 10;
    transform: translateX(-50%);
    cursor: ew-resize;
}

.ba-handle-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: #fff;
    box-shadow: 0 0 8px rgba(0,0,0,0.3);
}

.ba-handle-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    color: #1a2332;
}

/* ============================================
   TESTIMONIALS
   ============================================ */

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

.testimonial-card {
    background: #fff;
    padding: 28px;
    border-radius: 12px;
    border: 1px solid #eee;
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-text {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e8611a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: #1a2332;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: #999;
}

/* ============================================
   MOBILE STICKY CONTACT BAR
   ============================================ */

.mobile-contact-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: #1a2332;
    padding: 8px 12px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
}

.mobile-contact-bar {
    display: none;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
}

.mcb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 8px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s;
}

.mcb-call { background: #e8611a; }
.mcb-whatsapp { background: #25d366; }
.mcb-quote { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); }

.mcb-btn:hover { transform: translateY(-1px); opacity: 0.9; }

/* ============================================
   VOICE RECORDING IN CHAT
   ============================================ */

.chat-voice-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: transparent;
    color: #999;
    border: 1.5px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.chat-voice-btn:hover { color: #e8611a; border-color: #e8611a; }

.chat-voice-btn.recording {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
    animation: pulse 1.5s infinite;
}

.chat-voice-recording {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a2332;
    color: #fff;
    padding: 24px;
    text-align: center;
    z-index: 10;
    border-radius: 0 0 16px 16px;
}

.voice-recording-pulse {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ef4444;
    margin: 0 auto 12px;
    animation: pulse 1.5s infinite;
}

.chat-voice-recording p {
    font-size: 0.9rem;
    margin-bottom: 4px;
    opacity: 0.8;
}

.voice-timer {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    font-variant-numeric: tabular-nums;
}

.voice-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.voice-cancel {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 20px;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
}

.voice-send {
    background: #4ade80;
    color: #1a2332;
    border: none;
    padding: 8px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Voice message bubble */
.chat-message.voice-message {
    display: flex;
    align-items: center;
    gap: 8px;
}

.voice-play-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: none;
    color: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.voice-waveform {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    gap: 2px;
}

.voice-waveform span {
    width: 3px;
    background: currentColor;
    border-radius: 2px;
    opacity: 0.5;
}

.voice-duration {
    font-size: 0.75rem;
    opacity: 0.7;
    flex-shrink: 0;
}

/* ============================================
   FOOTER LINKS
   ============================================ */

.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: rgba(255,255,255,0.5);
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover { color: #e8611a; }

/* Contact card as link */
.contact-card-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-card:hover { border-color: #25d366; }
.whatsapp-card:hover svg { color: #25d366; }

/* ============================================
   RESPONSIVE ADDITIONS
   ============================================ */

@media (max-width: 768px) {
    .testimonials-grid { grid-template-columns: 1fr; }
    .before-after-slider { height: 240px; }
    .calc-options { grid-template-columns: 1fr 1fr; }
    .calculator-card { padding: 24px; }
    .mobile-contact-bar { display: grid; }
    .chat-widget { bottom: 70px; }
    body { padding-bottom: 60px; }
    .footer { padding-bottom: 70px; }
}

@media (max-width: 480px) {
    .before-after-slider { height: 200px; }
    .calc-result-price { font-size: 1.8rem; }
    .calc-options { grid-template-columns: 1fr; }
}
