html { 
    font-size: 90%; 
    scroll-behavior: smooth; 
}

:root {
    --bg-body: #ffffff;
    --bg-surface: #F9FAFB;
    --text-main: #111827;
    --text-muted: #6B7280;
    --accent: #333333;
    --accent-hover: #2b2c2f;
    --dark-bg: #0F172A;
    --border: #E5E7EB;
    --border-dark: #1E293B;
    --radius-lg: 24px;
    --radius-md: 12px;
    --radius-full: 9999px;
    --container: 1250px;
    --header-height: 70px; 
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility; 
    padding-top: var(--header-height); 
}

h1, h2, h3, .btn, .logo, .badge, .project-meta, .price-tag { 
    font-family: 'Poppins', sans-serif; 
}

a { 
    text-decoration: none; 
    color: inherit; 
    transition: all 0.2s ease; 
}


a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container { 
    max-width: var(--container); 
    margin: 0 auto; 
    padding: 0 24px; 
}


header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05); height: var(--header-height);
    display: flex; align-items: center;
}

.nav-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; }

.logo { 
    display: flex; align-items: center; gap: 12px; 
    font-weight: 700; font-size: 1.1rem; color: var(--text-main); 
    letter-spacing: -0.5px; z-index: 1001; 
}
.logo img { width: 42px; height: 42px; object-fit: cover; border: 1px solid var(--border); border-radius: 4px; }

.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links > a, .dropbtn { font-size: 0.95rem; font-weight: 500; color: var(--text-muted); cursor: pointer; }
.nav-links > a:hover, .dropdown:hover .dropbtn { color: var(--accent); }

.dropdown { position: relative; display: inline-block; padding-bottom: 10px; margin-bottom: -10px;}
.dropdown-content {
    display: none; position: absolute; top: 100%; left: 0;
    background-color: #ffffff; min-width: 260px;
    box-shadow: 0px 10px 30px rgba(0,0,0,0.1); border-radius: var(--radius-md);
    border: 1px solid var(--border); overflow: hidden; z-index: 100;
}
.dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.3s ease; }
.dropdown-content a { color: var(--text-main); padding: 14px 20px; display: block; font-size: 0.9rem; border-bottom: 1px solid #F3F4F6; }
.dropdown-content a:last-child { border-bottom: none; }
.dropdown-content a:hover { background-color: #EFF6FF; color: var(--accent); padding-left: 24px; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }


.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 28px; border-radius: var(--radius-full);
    font-weight: 600; font-size: 0.95rem; transition: all 0.2s ease;
    cursor: pointer; border: none; letter-spacing: 0.5px;
}
.btn-primary { background-color: var(--accent); color: #fff; }
.btn-primary:hover { 
    background-color: var(--accent-hover); 
    transform: translateY(-2px); 
    box-shadow: 0 10px 20px -5px rgba(48, 48, 48, 0.05); 
}
.btn-hero-outline { 
    background: rgba(255,255,255,0.1); 
    border: 1px solid rgba(255,255,255,0.3); 
    color: #fff; backdrop-filter: blur(4px); 
}
.btn-hero-outline:hover { background: #fff; color: var(--text-main); }

.btn-toggle { 
    background: #fff; color: var(--text-main); border: 1px solid var(--border); 
    margin: 40px auto 0; display: flex; width: fit-content; 
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05); 
}
.btn-toggle:hover { background: #F9FAFB; border-color: #D1D5DB; transform: translateY(-2px); }

.badge {
    display: inline-block; background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px); color: #fff; padding: 6px 16px;
    border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 600;
    margin-bottom: 24px; border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase; letter-spacing: 1px;
}
.badge-highlight { background: rgba(255,255,255,0.2); border:none; margin-bottom:10px; }


.hero {
    position: relative; 
    background-image: url('https://images.unsplash.com/photo-1551703599-6b3e8379aa8c?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover; background-position: center; 
    padding: 140px 0 100px; text-align: center; color: #ffffff; margin-bottom: 60px;
}
.hero-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(15, 23, 42, 0.75); z-index: 1; }
.hero-content { position: relative; z-index: 2; }
.hero h1 { 
    font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.1; letter-spacing: -0.03em; 
    margin-bottom: 24px; text-shadow: 0 4px 20px rgba(0,0,0,0.3); font-weight: 700; 
}
.hero p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.9); max-width: 650px; margin: 0 auto 40px; font-weight: 300; }

.hero-inner {
    position: relative; background-color: var(--dark-bg);
    background-size: cover; background-position: center;
    padding: 120px 0 80px; text-align: center; color: #ffffff; margin-bottom: 60px;
}
.hero-inner::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.85));
    z-index: 0;
}
.hero-inner > .container { position: relative; z-index: 1; }
.hero-inner h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; margin-bottom: 16px; font-weight: 700; }
.hero-inner p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.8); max-width: 700px; margin: 0 auto; font-weight: 300; }

.content-section, .bento-section { padding: 40px 0 80px; }
.section-header { margin-bottom: 48px; text-align: left; }
.section-header h2 { font-size: 2.5rem; letter-spacing: -0.03em; color: var(--text-main); font-weight: 700; }
.section-header span { color:var(--accent); font-weight:700; text-transform:uppercase; letter-spacing:1px; font-size:0.85rem; font-family: 'Poppins', sans-serif; }

.text-center-block { max-width: 800px; margin: 0 auto 60px; text-align: center; }
.text-center-block h2 { font-size: 2.2rem; margin-bottom: 24px; color: var(--text-main); font-weight: 700; letter-spacing: -0.03em;}
.text-center-block p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 16px; }

.bento-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; transition: all 0.3s ease; }
.card { 
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); 
    padding: 32px; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); 
    position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start;
    text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1); border-color: var(--accent); cursor: pointer; }
.card-lg { grid-column: span 8; }
.card-md { grid-column: span 6; }
.card-sm { grid-column: span 4; }
.card-icon { 
    width: 50px; height: 50px; background: #EFF6FF; color: var(--accent); 
    border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 24px; 
}
.card h3 { font-size: 1.4rem; margin-bottom: 12px; font-weight: 700; letter-spacing: -0.5px;}
.card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; font-weight: 400;}
.extra-service { display: none; opacity: 0; animation: fadeUp 0.4s forwards; }
.bento-grid.expanded .extra-service { display: flex; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }


.focus-block { 
    max-width: 800px; margin: 0 auto; background: #fff; padding: 60px; 
    border-radius: var(--radius-lg); border: 1px solid var(--border); text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
}
.focus-block .focus-icon { margin: 0 auto 32px; width: 80px; height: 80px; border-radius: 20px; }

.offer-card { background: var(--text-main); color: #fff; border: none; }
.offer-card h3, .offer-card p { color: #fff; }
.pricing-card { text-align: center; align-items: center; }
.price-tag { margin: 24px 0; font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; letter-spacing: -1px; }
.offer-card .price-tag { color: #fff; margin-top: auto; }
.price-tag span { font-size: 1rem; color: #9CA3AF; font-weight: 500; }
.offer-card .price-tag span { color: #E2E8F0; }

.cases-section { padding: 80px 0 120px; background-color: var(--bg-surface); }
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; margin-top: 40px; }
.project-item { background: #fff; border-radius: var(--radius-lg); padding: 16px; border: 1px solid var(--border); transition: 0.3s; cursor: pointer; }
.project-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px rgba(0,0,0,0.05); }
.project-img-wrapper { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 16/10; margin-bottom: 16px; background-color: #F1F5F9; display: flex; align-items: center; justify-content: center; border: 1px solid #F3F4F6; }
.project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.project-img-wrapper.contain-img img { object-fit: contain; padding: 20px; }
.project-info { padding: 0 8px 8px; }
.project-meta { font-size: 0.75rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: block; }
.project-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 6px; letter-spacing: -0.5px;}


footer { background-color: var(--dark-bg); color: #fff; padding: 100px 0 40px; border-top: none; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.footer-contact h2 { font-size: 2.8rem; margin-bottom: 30px; letter-spacing: -0.03em; font-weight: 700; }
.contact-data p { margin-bottom: 20px; font-size: 1.15rem; display: flex; align-items: center; gap: 16px; color: #E2E8F0; font-weight: 400; }
.contact-data svg { color: var(--accent); }
.footer-form input, .footer-form textarea { 
    width: 100%; padding: 18px; margin-bottom: 16px; 
    background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: var(--radius-md); font-family: inherit; color: #fff; outline: none; transition: 0.2s; 
}
.footer-form input::placeholder, .footer-form textarea::placeholder { color: rgba(255,255,255,0.4); }
.footer-form input:focus, .footer-form textarea:focus { border-color: var(--accent); background: rgba(255, 255, 255, 0.1); }
.copyright { text-align: center; font-size: 0.9rem; color: rgba(255,255,255,0.4); padding-top: 60px; margin-top: 60px; border-top: 1px solid rgba(255,255,255,0.1); }


.mobile-toggle { 
    display: none; background: none; border: none; font-size: 1.8rem; 
    color: var(--text-main); cursor: pointer; z-index: 1001; 
}

.mobile-menu {
    position: absolute; 
    top: 100%; left: 0; width: 100%; 
    max-height: calc(100vh - var(--header-height)); 
    max-height: calc(100dvh - var(--header-height)); 
    overflow-y: auto; -webkit-overflow-scrolling: touch; 
    overscroll-behavior: contain; background: #fff; 
    border-bottom: 1px solid var(--border);
    padding: 24px 24px 40px 24px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(-15px); 
    transition: all 0.3s ease-in-out; z-index: 999; 
    display: flex; flex-direction: column; gap: 16px;
}

.mobile-menu.active { 
    opacity: 1; visibility: visible; transform: translateY(0); 
}

body.no-scroll { overflow: hidden; }

.mobile-menu a { font-size: 1.1rem; font-weight: 500; color: var(--text-main); padding: 8px 0; border-bottom: 1px solid #F3F4F6; }
.mobile-menu .sub-title { font-size: 0.85rem; text-transform: uppercase; color: var(--text-muted); margin-top: 12px; font-weight: 700; letter-spacing: 1px; }
.mobile-menu .btn { width: 100%; margin-top: 12px; justify-content: center; }

@media (max-width: 900px) {
    .nav-links, .btn-primary.desktop-only { display: none !important; }
    .mobile-toggle { display: block; }
    .hero h1, .hero-inner h1 { font-size: 2.5rem; }
    .bento-grid { display: flex; flex-direction: column; }
    .card-lg, .card-md, .card-sm { grid-column: span 12; }
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .extra-service { display: flex; opacity: 1; }
    .btn-toggle { display: none; }
    .focus-block { padding: 40px 24px; }
}


.card-3cx {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.08);
}

.card-3cx h3,
.card-3cx p {
    color: #ffffff;
}

.card-3cx p {
    opacity: 0.92;
}

.card-3cx .card-icon {
    background: rgba(255,255,255,0.10);
    color: #ffffff;
}

.card-3cx .badge {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.16);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 26px;
    border-radius: 999px;
    background: #2f2f31;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.support-btn:hover {
    background: #1f1f21;
    transform: translateY(-1px);
}

.support-btn.is-active {
    background: #2f2f31;
    color: #ffffff;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.08);
}
