:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --dark: #0f172a;
    --dark-light: #1e293b;
    --text: #334155;
    --text-muted: #64748b;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --hover-shadow: 0 10px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    --radius: 12px;
    --container: 1200px;
}

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

html {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

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

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

/* Update / Maintenance Notice Bar */
.site-notice-bar {
    background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    font-size: 13.5px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 101;
}

.site-notice-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-notice-text {
    flex: 1;
    line-height: 1.45;
}

.site-notice-text strong {
    color: #38bdf8;
    font-weight: 700;
}

.site-notice-badge {
    display: inline-block;
    background: #2563eb;
    color: #ffffff;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.site-notice-close {
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 0 6px;
    transition: color 0.15s ease;
}

.site-notice-close:hover {
    color: #ffffff;
}

/* Consent Checkbox */
.consent-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
    cursor: pointer;
    user-select: none;
    margin: 12px 0 14px 0;
}

.consent-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-top: 1px;
    accent-color: var(--primary);
    cursor: pointer;
    flex-shrink: 0;
}

.consent-checkbox a {
    color: var(--primary);
    text-decoration: underline;
}

.consent-checkbox a:hover {
    color: var(--primary-hover);
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 24px;
    right: 24px;
    max-width: 420px;
    background: #ffffff;
    padding: 18px 22px;
    border-radius: var(--radius);
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.06);
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: cookieSlideUp 0.3s ease;
}

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

.cookie-banner-text {
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
}

.cookie-banner-text strong {
    color: var(--dark);
}

.cookie-banner-text a {
    color: var(--primary);
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 520px) {
    .site-notice-text {
        font-size: 12px;
    }
    .cookie-banner {
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: none;
    }
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo-img {
    height: 38px;
    width: auto;
    max-width: 185px;
    display: block;
}

.footer-logo-img {
    height: 34px;
    width: auto;
    max-width: 170px;
    display: block;
    filter: brightness(0) invert(1);
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 0 16px;
}

.main-nav a {
    color: var(--dark);
    font-weight: 600;
    font-size: 14.5px;
    padding: 6px 0;
    white-space: nowrap;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.tg-btn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #229ed9;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.tg-btn-link:hover {
    background: #1e8dc3;
    color: white;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13.5px;
    white-space: nowrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    text-align: center;
}

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

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    transform: translateY(-1px);
}

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

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

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

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

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--dark);
}

/* Hero Section */
.hero {
    padding: 70px 0 60px;
    background: radial-gradient(circle at top right, #e0f2fe, #f8fafc 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid #bfdbfe;
}

.hero h1 {
    font-size: 44px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.stat-item h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary);
}

.stat-item p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Hero Card */
.hero-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--hover-shadow);
    border: 1px solid var(--border);
}

.hero-card h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.hero-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--dark);
}

.form-control {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
    background: #fdfdfd;
}

.form-control:focus {
    border-color: var(--primary);
    background: white;
}

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

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
}

.section-tag {
    color: var(--primary);
    font-weight: 800;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
}

.section-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 14px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-muted);
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: var(--radius);
    padding: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.service-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
}

/* Ready Solutions */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.solution-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}

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

.solution-image-wrap {
    height: 200px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-bottom: 1px solid #edf2f7;
    overflow: hidden;
}

.solution-image-wrap img {
    max-width: 94%;
    max-height: 94%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    margin: auto;
    transition: transform 0.25s ease;
}

.solution-card:hover .solution-image-wrap img {
    transform: scale(1.04);
}

.solution-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.solution-body h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.35;
}

.solution-body p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 18px;
    flex: 1;
}

.solution-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.solution-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 17px;
}

/* Calculator Widget */
.calc-box {
    background: white;
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--hover-shadow);
    border: 1px solid var(--border);
    max-width: 800px;
    margin: 0 auto;
}

.calc-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.calc-item {
    border: 2px solid var(--border);
    border-radius: 10px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
}

.calc-item.active {
    border-color: var(--primary);
    background: var(--primary-light);
}

.calc-total {
    background: var(--bg);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.calc-total h4 {
    font-size: 18px;
    color: var(--dark);
}

.calc-total .price-val {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}

/* Blog Cards */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 30px;
}

.blog-card {
    background: white;
    border-radius: var(--radius);
    padding: 26px;
    border: 1px solid var(--border);
    box-shadow: var(--card-shadow);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--hover-shadow);
    border-color: #cbd5e1;
}

.blog-badge {
    align-self: flex-start;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 19px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--dark);
}

.blog-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-read-more {
    font-size: 14px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Article Longform */
.article-container {
    max-width: 860px;
    margin: 40px auto 70px;
    background: white;
    padding: 45px 50px;
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border);
}

.breadcrumbs {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.article-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 25px;
    line-height: 1.25;
}

.article-body {
    font-size: 17px;
    line-height: 1.8;
    color: #1e293b;
}

.article-body h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--dark);
    margin: 35px 0 16px;
}

.article-body h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark);
    margin: 28px 0 14px;
}

.article-body p {
    margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
    margin: 0 0 20px 25px;
}

.article-body li {
    margin-bottom: 8px;
}

.article-body pre,
.article-body code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.article-body pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 18px 22px;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 14px;
    margin: 20px 0;
    line-height: 1.5;
}

.article-body p code {
    background: #f1f5f9;
    color: #0f172a;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.article-cta-box {
    background: radial-gradient(circle at top right, #e0f2fe, #f8fafc);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius);
    padding: 30px;
    margin-top: 45px;
    text-align: center;
}

.article-cta-box h3 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 10px;
    color: var(--dark);
}

/* Footer */
.site-footer {
    background: var(--dark);
    color: #94a3b8;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #94a3b8;
    font-size: 14px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

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

.modal-content {
    background: white;
    border-radius: var(--radius);
    padding: 35px;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-muted);
}

/* Article Enhancements */
.article-content {
    font-size: 16px;
    line-height: 1.75;
    color: #334155;
    word-break: break-word;
}

.article-content p {
    margin-bottom: 16px;
}

.article-content h2, 
.article-content h3 {
    margin-top: 30px;
    margin-bottom: 14px;
    color: var(--dark);
}

.article-body img,
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px auto;
    display: block;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05);
}

img:not([src]), img[src=""] {
    display: none !important;
}

/* Responsive Breakpoints */
.desktop-only {
    display: inline-flex !important;
}

.mobile-menu-cta {
    display: none;
}

@media (max-width: 1040px) {
    .desktop-only {
        display: none !important;
    }

    .mobile-menu-cta {
        display: block !important;
        width: 100%;
        margin-top: 10px;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px 20px 24px;
        box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.15);
        border-bottom: 1px solid var(--border);
        margin: 0;
        z-index: 99;
    }

    .main-nav.active {
        display: flex;
    }

    .main-nav a {
        width: 100%;
        padding: 12px 0;
        border-bottom: 1px solid #f1f5f9;
        font-size: 15px;
    }

    .main-nav a:last-child {
        border-bottom: none;
    }

    .mobile-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 38px;
        height: 38px;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: white;
        font-size: 20px;
        cursor: pointer;
    }
}

@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 14px;
    }
    .header-inner {
        height: 58px;
    }
    .main-nav {
        top: 58px;
    }
    .header-logo-img {
        height: 28px;
        max-width: 135px;
    }
    .tg-btn-link {
        padding: 6px 11px;
        font-size: 12px;
    }
    .hero {
        padding: 24px 0 40px 0;
    }
    .hero h1 {
        font-size: 26px;
        line-height: 1.25;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 14px;
    }
    .stat-item {
        flex: 1 1 45%;
    }
    .article-container {
        padding: 20px 14px;
        margin: 12px 0 30px;
        border-radius: 8px;
        box-shadow: none;
        border: none;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
    .article-title {
        font-size: 24px;
        line-height: 1.25;
        margin-bottom: 14px;
        word-break: break-word;
    }
    .article-body, 
    .info-content {
        font-size: 15px;
        line-height: 1.65;
        word-break: break-word;
        overflow-wrap: break-word;
    }
    .article-body p,
    .info-content p {
        margin-bottom: 14px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .header-inner {
        height: 54px;
    }
    .main-nav {
        top: 54px;
    }
    .header-logo-img {
        height: 25px;
        max-width: 110px;
    }
    .header-actions {
        gap: 8px;
    }
    .tg-btn-link {
        padding: 5px 8px;
        font-size: 11px;
    }
    .mobile-toggle {
        width: 34px;
        height: 34px;
        font-size: 18px;
    }
    .hero h1 {
        font-size: 22px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-card {
        padding: 20px 14px;
    }
    .solutions-grid {
        grid-template-columns: 1fr;
    }
    .solution-image-wrap {
        height: 170px;
    }
}
