/* ==========================================================================
   ВАЖНАЯ КЛЯКSA — Custom Ghost Theme
   Цветовая палитра: #3182CE (brand blue), #2B6CB0 (dark blue), #1A202C (dark)
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    --brand-blue: #3182CE;
    --brand-blue-dark: #2B6CB0;
    --brand-blue-light: #4299E1;
    --brand-blue-glow: rgba(49, 130, 206, 0.35);
    --dark: #1A202C;
    --dark-light: #2D3748;
    --gray: #4A5568;
    --gray-light: #718096;
    --gray-lighter: #CBD5E0;
    --bg-light: #F7FAFC;
    --bg-white: #ffffff;
    --bg-dark: #090C10;
    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-blue: 0 8px 30px rgba(49, 130, 206, 0.25);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --container-width: 1200px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-main);
    color: var(--text-primary);
    background: var(--bg-white);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
    cursor: none; /* custom cursor */
}

a {
    color: var(--brand-blue);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--brand-blue-dark);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
    line-height: 1.8;
}

::selection {
    background: var(--brand-blue);
    color: white;
}

::placeholder {
    color: var(--gray-lighter);
}

/* ---------- Custom Cursor ---------- */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    box-shadow: 0 0 20px var(--brand-blue), 0 0 60px var(--brand-blue-glow);
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 2px solid rgba(49, 130, 206, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease;
}

.cursor-ring.hover {
    width: 60px;
    height: 60px;
    border-color: var(--brand-blue);
    background: rgba(49, 130, 206, 0.05);
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    pointer-events: none;
    z-index: 99997;
}

@media (max-width: 768px), (pointer: coarse) {
    .cursor-dot, .cursor-ring, .cursor-trail {
        display: none !important;
    }
    body { cursor: auto; }
}

/* ---------- Preloader ---------- */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-ink {
    position: relative;
    width: 120px;
    height: 120px;
}

.ink-blob {
    position: absolute;
    border-radius: 50%;
    background: var(--brand-blue);
    opacity: 0.6;
    animation: inkMorph 3s ease-in-out infinite;
}

.ink-blob:nth-child(1) {
    width: 40px;
    height: 40px;
    top: 10px;
    left: 10px;
    animation-delay: 0s;
}

.ink-blob:nth-child(2) {
    width: 50px;
    height: 50px;
    top: 30px;
    left: 35px;
    animation-delay: 0.3s;
}

.ink-blob:nth-child(3) {
    width: 45px;
    height: 45px;
    top: 50px;
    left: 55px;
    animation-delay: 0.6s;
}

@keyframes inkMorph {
    0%, 100% { transform: scale(1) translate(0, 0); border-radius: 50%; }
    25% { transform: scale(1.1) translate(5px, -5px); border-radius: 40% 60% 55% 45%; }
    50% { transform: scale(0.95) translate(-5px, 5px); border-radius: 55% 45% 40% 60%; }
    75% { transform: scale(1.05) translate(3px, 3px); border-radius: 45% 55% 60% 40%; }
}

.preloader-text {
    margin-top: 30px;
    font-family: var(--font-main);
    font-weight: 800;
    font-size: 1.25rem;
    color: white;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

/* ---------- Navigation ---------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: background var(--transition-smooth), box-shadow var(--transition-smooth), transform 0.4s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-sm);
}

.site-header.hidden-header {
    transform: translateY(-100%);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

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

.nav-logo:hover .logo-icon .blob-path {
    filter: brightness(1.2);
}

.logo-icon {
    height: 36px;
    width: auto;
}

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

.nav-links a {
    color: var(--dark-light);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
    transition: color var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    border-radius: 1px;
    transition: width var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--brand-blue);
}

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

.nav-phone {
    background: var(--brand-blue) !important;
    color: white !important;
    padding: 8px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-weight: 600 !important;
    transition: all var(--transition-fast) !important;
    box-shadow: var(--shadow-blue);
}

.nav-phone::after {
    display: none !important;
}

.nav-phone:hover {
    background: var(--brand-blue-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(49, 130, 206, 0.35);
}

/* Mobile Toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: all var(--transition-smooth);
    transform-origin: center;
}

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

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

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

/* ---------- Mobile Drawer ---------- */
.mobile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.mobile-drawer.active {
    display: block;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.mobile-drawer.active .drawer-overlay {
    opacity: 1;
}

.drawer-inner {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--bg-white);
    transform: translateX(100%);
    transition: transform var(--transition-smooth);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0,0,0,0.1);
}

.mobile-drawer.active .drawer-inner {
    transform: translateX(0);
}

.drawer-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.drawer-close:hover {
    background: var(--bg-light);
}

.drawer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 3rem;
}

.drawer-links li a {
    display: block;
    padding: 12px 16px;
    color: var(--dark);
    font-weight: 500;
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.drawer-links li a:hover {
    background: var(--bg-light);
    color: var(--brand-blue);
}

.drawer-phone a {
    background: var(--brand-blue) !important;
    color: white !important;
    text-align: center;
    border-radius: var(--radius-sm);
    font-weight: 600 !important;
}

.drawer-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.drawer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-light);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--gray);
    transition: all var(--transition-fast);
}

.drawer-social a:hover {
    background: var(--brand-blue);
    color: white;
}

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

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + 2rem) 2rem 6rem;
    overflow: hidden;
    background: linear-gradient(180deg, #EBF4FF 0%, var(--bg-white) 100%);
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(49, 130, 206, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(49, 130, 206, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 20%, transparent 70%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--brand-blue);
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 6s ease-in-out infinite;
}

@keyframes particleFloat {
    0% { opacity: 0; transform: translateY(100vh) scale(0); }
    20% { opacity: 0.6; }
    80% { opacity: 0.3; }
    100% { opacity: 0; transform: translateY(-20vh) scale(1); }
}

.hero-waves {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 120px;
    overflow: hidden;
}

.hero-wave-svg {
    width: 100%;
    height: 100%;
}

.hero-wave-path {
    fill: var(--bg-white);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(49, 130, 206, 0.08);
    border: 1px solid rgba(49, 130, 206, 0.15);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-blue);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--brand-blue);
    border-radius: 50%;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
    margin-bottom: 1.5rem;
    color: var(--dark);
    font-weight: 900;
}

.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-light) 50%, #63B3ED 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255,255,255,0.15) 100%);
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-dark) 100%);
    color: white;
    box-shadow: var(--shadow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(49, 130, 206, 0.4);
    color: white;
}

.btn-glow {
    animation: btnGlow 3s ease-in-out infinite;
}

@keyframes btnGlow {
    0%, 100% { box-shadow: 0 8px 30px rgba(49, 130, 206, 0.25); }
    50% { box-shadow: 0 8px 50px rgba(49, 130, 206, 0.45); }
}

.btn-outline {
    background: transparent;
    color: var(--brand-blue);
    border: 2px solid rgba(49, 130, 206, 0.3);
}

.btn-outline:hover {
    background: rgba(49, 130, 206, 0.05);
    border-color: var(--brand-blue);
    transform: translateY(-2px);
    color: var(--brand-blue);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.15rem;
    border-radius: var(--radius-lg);
}

/* ---------- Hero Stats ---------- */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--brand-blue);
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand-blue);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--gray-lighter), transparent);
}

/* ---------- Floating Icons ---------- */
.hero-floaters {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.floater {
    position: absolute;
    font-size: 2rem;
    opacity: 0.15;
    filter: grayscale(0.3);
}

@keyframes floatSlow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.floater-1 { top: 15%; left: 8%; animation: floatSlow 6s ease-in-out infinite; }
.floater-2 { top: 25%; right: 10%; animation: floatSlow 7s ease-in-out 1s infinite; }
.floater-3 { bottom: 20%; left: 12%; animation: floatSlow 5s ease-in-out 2s infinite; }
.floater-4 { bottom: 30%; right: 8%; animation: floatSlow 8s ease-in-out 0.5s infinite; }
.floater-5 { top: 50%; left: 5%; animation: floatSlow 6.5s ease-in-out 1.5s infinite; }
.floater-6 { top: 40%; right: 15%; animation: floatSlow 7.5s ease-in-out 3s infinite; }

/* ---------- Section Common ---------- */
.services-section,
.posts-section,
.cta-section {
    padding: 6rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-blue);
    background: rgba(49, 130, 206, 0.08);
    padding: 6px 16px;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
    border-radius: 2px;
    margin: 1rem auto 0;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--bg-white);
    border: 1px solid rgba(49, 130, 206, 0.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-blue), var(--brand-blue-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-smooth);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(49, 130, 206, 0.15);
}

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

.service-icon {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    display: inline-block;
    transition: transform var(--transition-bounce);
}

.service-card:hover .service-icon {
    transform: scale(1.15) rotate(-5deg);
}

.service-card h3 {
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.service-card p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---------- Posts Grid (Cards) ---------- */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.post-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-white);
    border: 1px solid rgba(49, 130, 206, 0.06);
    transition: all var(--transition-smooth);
    box-shadow: var(--shadow-sm);
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(49, 130, 206, 0.15);
}

.post-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.post-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-smooth);
}

.post-card:hover .post-card-image img {
    transform: scale(1.08);
}

.post-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.post-card:hover .post-card-overlay {
    opacity: 1;
}

.read-more-text {
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.post-card-placeholder {
    background: linear-gradient(135deg, #EBF4FF 0%, #E2E8F0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    font-size: 4rem;
    opacity: 0.3;
}

.post-card-body {
    padding: 1.75rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.post-card-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-blue);
    background: rgba(49, 130, 206, 0.08);
    padding: 3px 10px;
    border-radius: 50px;
}

.post-card-date {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.post-card-title {
    margin-bottom: 0.75rem;
    font-size: 1.2rem;
    line-height: 1.4;
    transition: color var(--transition-fast);
}

.post-card-link:hover .post-card-title {
    color: var(--brand-blue);
}

.post-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(49, 130, 206, 0.06);
}

.post-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 500;
}

.post-card-author img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.post-card-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ---------- Pagination ---------- */
.gh-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.gh-pagination a,
.gh-pagination .page-number,
.gh-pagination .page-number a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--gray);
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.gh-pagination a:hover {
    background: var(--bg-light);
    color: var(--brand-blue);
    border-color: rgba(49, 130, 206, 0.15);
}

.gh-pagination .current {
    background: var(--brand-blue);
    color: white;
    border-color: var(--brand-blue);
}

/* ---------- CTA Section ---------- */
.cta-section {
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
}

.cta-bg-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.06) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: ctaBlobPulse 6s ease-in-out infinite;
}

@keyframes ctaBlobPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.2); opacity: 0.8; }
}

.cta-inner {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 2.75rem);
}

.cta-subtitle {
    font-size: 1.15rem;
    margin-bottom: 2.5rem;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--bg-dark);
    color: #CBD5E0;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    height: 80px;
    margin-bottom: -80px;
}

.wave-path {
    transition: d var(--transition-smooth);
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
}

.footer-brand .footer-logo {
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 0.95rem;
    color: #A0AEC0;
    line-height: 1.7;
    max-width: 320px;
}

.footer-links h4,
.footer-services h4,
.footer-contact h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
}

.footer-links ul,
.footer-services ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-links li a,
.footer-services li {
    color: #A0AEC0;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.footer-links li a:hover,
.footer-services li:hover {
    color: var(--brand-blue-light);
    padding-left: 4px;
}

.contact-phone a {
    color: var(--brand-blue-light);
    font-weight: 600;
    font-size: 1.05rem;
}

.contact-city {
    color: #A0AEC0;
    margin-top: 0.5rem;
}

.footer-social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-sm);
    color: #CBD5E0;
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--brand-blue);
    color: white;
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #718096;
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ---------- Post Styles ---------- */
.post-main {
    padding: 4rem 2rem;
    max-width: var(--container-width);
    margin: 0 auto;
}

.post-container {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
}

@media (max-width: 900px) {
    .post-container {
        grid-template-columns: 1fr;
    }
}

.post-article {
    max-width: 780px;
}

.post-header-full {
    margin-bottom: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.post-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--brand-blue);
    background: rgba(49, 130, 206, 0.08);
    padding: 4px 12px;
    border-radius: 50px;
}

.post-date, .post-read-time {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.post-title-full {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

.post-feature {
    margin: 0 0 2.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.post-feature img {
    width: 100%;
    height: auto;
}

.full-markdown {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-secondary);
}

.full-markdown h1,
.full-markdown h2,
.full-markdown h3,
.full-markdown h4 {
    color: var(--dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.full-markdown h2 {
    font-size: 1.75rem;
    border-bottom: 2px solid rgba(49, 130, 206, 0.1);
    padding-bottom: 0.5rem;
}

.full-markdown h3 {
    font-size: 1.4rem;
}

.full-markdown p {
    margin-bottom: 1.5rem;
}

.full-markdown ul,
.full-markdown ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.full-markdown li {
    margin-bottom: 0.5rem;
}

.full-markdown blockquote {
    border-left: 4px solid var(--brand-blue);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(49, 130, 206, 0.03);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--gray);
}

.full-markdown pre {
    background: var(--bg-dark);
    color: #E2E8F0;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.full-markdown code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: rgba(49, 130, 206, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
}

.full-markdown pre code {
    background: none;
    padding: 0;
}

.full-markdown img {
    border-radius: var(--radius-md);
    margin: 2rem 0;
}

.full-markdown a {
    color: var(--brand-blue);
    text-decoration: underline;
    text-decoration-color: rgba(49, 130, 206, 0.3);
    text-underline-offset: 2px;
}

.full-markdown a:hover {
    text-decoration-color: var(--brand-blue);
}

.full-markdown hr {
    border: none;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gray-lighter), transparent);
    margin: 3rem 0;
}

/* Post Footer / Tags */
.post-footer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(49, 130, 206, 0.08);
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tag-pill {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(49, 130, 206, 0.06);
    color: var(--brand-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all var(--transition-fast);
}

.tag-pill:hover {
    background: var(--brand-blue);
    color: white;
}

.post-sharing {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sharing-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.share-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--gray);
    transition: all var(--transition-fast);
}

.share-btn:hover {
    background: var(--brand-blue);
    color: white;
}

/* Post Author */
.post-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem;
    margin-top: 2.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
}

.author-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(49, 130, 206, 0.15);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info .author-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 600;
}

.author-info .author-name {
    font-size: 1.15rem;
    color: var(--dark);
    margin: 2px 0;
}

.author-info .author-bio {
    font-size: 0.9rem;
    color: var(--gray);
}

/* Post Sidebar */
.post-sidebar {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
    align-self: start;
}

.sidebar-widget {
    background: var(--bg-white);
    border: 1px solid rgba(49, 130, 206, 0.06);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.sidebar-widget h4 {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    color: var(--dark);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--brand-blue);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-blue);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-smooth);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(49, 130, 206, 0.4);
}

/* ---------- Animation Classes ---------- */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

[data-animate="fade-up"].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-animate="fade-left"] {
    transform: translateX(-30px);
}

[data-animate="fade-left"].is-visible {
    transform: translateX(0);
}

[data-animate="fade-right"] {
    transform: translateX(30px);
}

[data-animate="fade-right"].is-visible {
    transform: translateX(0);
}

[data-animate="scale-up"] {
    transform: scale(0.95);
}

[data-animate="scale-up"].is-visible {
    transform: scale(1);
}

[data-animate="float-slow"] {
    animation: floatSlow 6s ease-in-out infinite;
    opacity: 0.15;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    .hero-section {
        padding-top: calc(var(--header-height) + 1rem);
        min-height: auto;
        padding-bottom: 4rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    .hero-floaters {
        display: none;
    }

    .services-section,
    .posts-section,
    .cta-section {
        padding: 4rem 1.5rem;
    }

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

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

    .post-main {
        padding: 2rem 1.5rem;
    }

    .post-sidebar {
        position: static;
    }

    .post-author {
        flex-direction: column;
        text-align: center;
    }
}

/* ---------- Transition between pages ---------- */
.page-transition {
    position: fixed;
    inset: 0;
    background: var(--brand-blue);
    z-index: 99998;
    transform: scaleY(0);
    transform-origin: bottom;
    pointer-events: none;
}

.page-transition.active {
    animation: pageTransitionIn 0.4s ease forwards;
}

.page-transition.active.exit {
    animation: pageTransitionOut 0.4s ease forwards;
    transform-origin: top;
}

@keyframes pageTransitionIn {
    from { transform: scaleY(0); transform-origin: bottom; }
    to { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes pageTransitionOut {
    from { transform: scaleY(1); transform-origin: top; }
    to { transform: scaleY(0); transform-origin: top; }
}


/* ========== Hero Stats (standalone on index) ========== */
#hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    padding: 4rem 2rem;
    background: linear-gradient(180deg, var(--bg-white) 0%, #EBF4FF 100%);
    border-radius: var(--radius-xl);
    margin: -2rem auto 3rem;
    max-width: var(--container-width);
    position: relative;
    z-index: 2;
}

@media (max-width: 600px) {
    #hero-stats {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        border-radius: var(--radius-lg);
    }
}
