:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --text: #333;
    --text-light: #666;
    --bg: #f8f9fa;
    --white: #fff;
    --border: #e1e5eb;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --radius: 12px;
    --success: #28a745;
    --danger: #dc3545;
}

.alert {
    padding: 12px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    color: var(--danger);
    border: 1px solid rgba(220, 53, 69, 0.2);
}

.error-message {
    display: none;
    color: var(--danger);
    font-size: 12px;
    margin-top: 5px;
    padding: 6px 10px;
    background: rgba(220, 53, 69, 0.08);
    border-radius: 6px;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-overlay.show {
    display: flex;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.modal-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: rgba(40, 167, 69, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-icon i {
    font-size: 30px;
    color: var(--success);
}

.modal h3 {
    margin-bottom: 10px;
    color: var(--text);
}

.modal p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.modal button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 10px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.modal button:hover {
    background: var(--primary-dark);
}

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

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

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

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

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-block {
    width: 100%;
}

.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.logo i {
    font-size: 28px;
}

.nav {
    display: flex;
    gap: 35px;
}

.nav a {
    font-size: 15px;
    color: var(--text);
    padding: 8px 0;
    position: relative;
}

.nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.nav a:hover::after,
.nav a.active::after {
    width: 100%;
}

.nav a.active {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text);
}

.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 100px 0 120px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 70%;
    height: 200%;
    background: rgba(255,255,255,0.1);
    transform: rotate(-20deg);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
}

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 35px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 36px;
    color: var(--text);
    margin-bottom: 10px;
}

.section-header p {
    color: var(--text-light);
    font-size: 16px;
}

.section-footer {
    text-align: center;
    margin-top: 50px;
}

.services-preview {
    padding: 80px 0;
    background: var(--white);
}

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

.service-card {
    background: var(--bg);
    padding: 40px 30px;
    border-radius: var(--radius);
    text-align: center;
    transition: all 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon i {
    font-size: 30px;
    color: var(--white);
}

.service-image {
    width: 100%;
    height: 160px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-light);
    font-size: 14px;
}

.gallery-preview {
    padding: 80px 0;
    background: var(--bg);
}

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

.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    display: flex;
    align-items: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: var(--white);
    font-size: 14px;
}

.news-preview {
    padding: 80px 0;
    background: var(--white);
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.news-item {
    display: flex;
    gap: 25px;
    padding: 25px;
    background: var(--bg);
    border-radius: var(--radius);
    transition: all 0.3s;
}

.news-item:hover {
    box-shadow: var(--shadow);
}

.news-date {
    flex-shrink: 0;
    text-align: center;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 8px;
    color: var(--white);
}

.news-date .day {
    display: block;
    font-size: 28px;
    font-weight: 700;
}

.news-date .month {
    font-size: 12px;
    opacity: 0.9;
}

.news-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-content p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 12px;
}

.read-more {
    color: var(--primary);
    font-size: 14px;
}

.read-more i {
    transition: transform 0.3s;
}

.read-more:hover i {
    transform: translateX(5px);
}

.contact-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    text-align: center;
}

.contact-cta.dark {
    background: linear-gradient(135deg, #2c3e50, #34495e);
}

.cta-content h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.cta-content p {
    opacity: 0.9;
    margin-bottom: 30px;
}

.cta-contact {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.cta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
}

.cta-item:hover {
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer {
    background: #2c3e50;
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 40px;
    justify-items: stretch;
}

.footer-about {
    padding-right: 20px;
}

.footer-links,
.footer-contact {
    padding-left: 20px;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.footer h3,
.footer h4 {
    margin-bottom: 20px;
}

.footer-about p {
    opacity: 0.7;
    font-size: 14px;
}

.footer-links ul,
.footer-contact ul {
    list-style: none;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
    opacity: 0.7;
}

.footer-links a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.05);
}

.footer-contact li:last-child {
    border-bottom: none;
}

.footer-contact li i {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    opacity: 0.6;
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

.footer-bottom a {
    color: inherit;
    text-decoration: underline;
}

.footer-bottom a:hover {
    opacity: 1;
    color: var(--primary);
}

.page-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.services-section {
    padding: 80px 0;
    background: var(--white);
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.service-detail-card {
    display: flex;
    gap: 40px;
    padding: 40px;
    background: var(--bg);
    border-radius: var(--radius);
    border-left: 4px solid var(--accent);
}

.service-detail-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon i {
    font-size: 40px;
    color: var(--white);
}

.service-detail-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

.service-detail-content p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    gap: 30px;
    margin-bottom: 20px;
}

.service-features li {
    font-size: 14px;
    color: var(--text-light);
}

.service-features i {
    color: #43e97b;
    margin-right: 5px;
}

.process-section {
    padding: 80px 0;
    background: var(--bg);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    text-align: center;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 30px;
    right: -15px;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.process-step:last-child::after {
    display: none;
}

.step-number {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
}

.process-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 14px;
    color: var(--text-light);
}

.gallery-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-filter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 1px solid var(--border);
    border-radius: 25px;
    background: var(--white);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 14px;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

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

.gallery-masonry-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-masonry-item:hover img {
    transform: scale(1.1);
}

.gallery-masonry-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s;
}

.gallery-masonry-item:hover .gallery-masonry-overlay {
    opacity: 1;
}

.gallery-masonry-overlay h4 {
    color: var(--white);
    font-size: 16px;
    margin-bottom: 5px;
}

.gallery-category {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}

.empty-state {
    text-align: center;
    padding: 80px 0;
}

.empty-state i {
    font-size: 60px;
    color: var(--border);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.empty-state p {
    color: var(--text-light);
}

.contact-section {
    padding: 80px 0;
    background: var(--bg);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info h2,
.contact-form-wrapper h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info > p,
.contact-form-wrapper > p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 20px;
    color: var(--white);
}

.contact-detail h4 {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 5px;
}

.contact-detail p {
    font-size: 16px;
}

.contact-detail a:hover {
    color: var(--primary);
}

.contact-form-wrapper {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form textarea {
    resize: vertical;
}

.qrcode-section {
    padding: 80px 0;
    background: var(--white);
}

.qrcode-cards {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.qrcode-card {
    text-align: center;
}

.qrcode-image {
    width: 120px;
    height: 120px;
    margin-bottom: 15px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
}

.qrcode-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.qrcode-placeholder i {
    font-size: 60px;
    color: var(--primary);
}

.qrcode-card h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.qrcode-card p {
    color: var(--text-light);
    font-size: 14px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: var(--radius);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--white);
    font-size: 30px;
    cursor: pointer;
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

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

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

    .process-step::after {
        display: none;
    }
}

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: var(--shadow);
    }

    .nav.active {
        display: flex;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        padding: 60px 0 80px;
    }

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

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

    .hero-buttons {
        flex-direction: column;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .news-item {
        flex-direction: column;
    }

    .news-date {
        flex-direction: row;
        display: inline-flex;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .service-detail-card {
        flex-direction: column;
        text-align: center;
    }

    .service-detail-icon {
        margin: 0 auto;
    }

    .service-features {
        flex-direction: column;
        gap: 10px;
    }

    .cta-contact {
        flex-direction: column;
        gap: 15px;
    }

    .cta-buttons {
        flex-direction: column;
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .qrcode-cards {
        flex-direction: column;
    }

    .gallery-filter {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .gallery-grid,
    .gallery-masonry {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 0 15px;
    }

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

    .page-header h1 {
        font-size: 28px;
    }

    .section-header h2 {
        font-size: 24px;
    }

    .contact-form-wrapper {
        padding: 25px;
    }
}