/* ——— Design tokens (TelecomSoft-inspired) ——— */
:root,
.theme-dark {
    --bg: #000000;
    --bg-elevated: #0a0a0f;
    --surface: rgba(10, 10, 15, 0.65);
    --surface-solid: rgba(14, 14, 20, 0.88);
    --border: rgba(255, 255, 255, 0.08);
    --accent: #22d3ee;
    --accent-2: #926aff;
    --logo-gradient: linear-gradient(135deg, #22d3ee 0%, #4f9cf9 45%, #926aff 100%);
    --tsoft-purple: #6b30ff;
    --tsoft-green: #189b81;
    --tsoft-gold: #ffb829;
    --text: #ffffff;
    --muted: #94a3b8;
    --glow-purple: rgba(107, 48, 255, 0.35);
    --glow-cyan: rgba(34, 211, 238, 0.22);
    --vignette: rgba(0, 0, 0, 0.82);
}

.theme-light {
    --bg: #f8fafc;
    --bg-elevated: #ffffff;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --border: rgba(15, 23, 42, 0.08);
    --accent: #0891b2;
    --accent-2: #7c3aed;
    --logo-gradient: linear-gradient(135deg, #06b6d4 0%, #0891b2 42%, #7c3aed 100%);
    --text: #0f172a;
    --text-secondary: #334155;
    --muted: #64748b;
    --glow-purple: rgba(124, 58, 237, 0.12);
    --glow-cyan: rgba(8, 145, 178, 0.1);
    --vignette: transparent;
}

[x-cloak] { display: none !important; }

::selection {
    background: rgba(34, 211, 238, 0.3);
    color: #fff;
}

.theme-light ::selection {
    background: rgba(8, 145, 178, 0.25);
    color: #0f172a;
}

/* ——— Site background (IT immersive) ——— */
.site-body {
    background: var(--bg);
    color: var(--text);
}

.site-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    background: var(--bg);
    transition: filter 0.45s ease, opacity 0.45s ease, transform 0.45s ease;
}

/* Detail sahifalar: asl IT-fon blur orqali ko‘rinadi (qattiq rang emas) */
.page-detail .site-bg {
    filter: none;
    opacity: 1;
    transform: none;
}

.page-detail .site-bg__canvas {
    opacity: 1;
}

.page-detail main {
    background: transparent;
}

.page-detail main::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    backdrop-filter: blur(22px) saturate(1.15);
    -webkit-backdrop-filter: blur(22px) saturate(1.15);
    background: rgba(0, 0, 0, 0.18);
}

.theme-light.page-detail main::before {
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    background: rgba(248, 250, 252, 0.28);
}

.page-detail main > * {
    position: relative;
    z-index: 1;
}

.page-detail .site-footer {
    display: none;
}

.page-detail-dismissible main {
    cursor: pointer;
}

.page-detail-dismissible .page-detail-panel {
    cursor: auto;
}

.page-detail-panel.glass-card:hover {
    transform: none;
    box-shadow: inherit;
    border-color: var(--border);
}

.theme-light .page-detail-panel.glass-card:hover {
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.site-bg__aurora {
    position: absolute;
    inset: -30% -20%;
    background:
        radial-gradient(ellipse 50% 40% at 20% 20%, rgba(34, 211, 238, 0.14), transparent 55%),
        radial-gradient(ellipse 45% 35% at 85% 15%, rgba(146, 106, 255, 0.16), transparent 50%),
        radial-gradient(ellipse 40% 30% at 50% 90%, rgba(24, 155, 129, 0.1), transparent 45%);
    animation: aurora-drift 24s ease-in-out infinite alternate;
}

/* Dark-only animated background */
.site-bg-dark {
    position: absolute;
    inset: 0;
}

.theme-light .site-bg-dark {
    display: none;
}

.site-bg-light {
    display: none;
    position: absolute;
    inset: 0;
}

.theme-light .site-bg-light {
    display: block;
}

.site-bg__canvas {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: block;
}

.site-bg-dark,
.site-bg-light {
    z-index: 1;
}

/* ——— Light mode: CSS atmosphere (canvas draws network on top) ——— */
.site-bg-light__base {
    position: absolute;
    inset: 0;
    background: linear-gradient(165deg, #f8fbff 0%, #eef4fb 45%, #e4ecf6 100%);
}

.site-bg-light__aurora {
    position: absolute;
    inset: -25% -15%;
    background:
        radial-gradient(ellipse 55% 45% at 12% 8%, rgba(34, 211, 238, 0.18), transparent 52%),
        radial-gradient(ellipse 50% 40% at 88% 12%, rgba(124, 58, 237, 0.14), transparent 48%),
        radial-gradient(ellipse 45% 35% at 50% 95%, rgba(13, 148, 136, 0.1), transparent 45%);
    animation: aurora-drift 26s ease-in-out infinite alternate;
}

.site-bg-light__hex {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z M28 36l28 16v32L28 100 0 84V52z' fill='none' stroke='rgba(8,145,178,0.09)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    mask-image: radial-gradient(ellipse 85% 75% at 50% 35%, black 15%, transparent 72%);
}

.site-bg-light__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    animation: glow-drift 20s ease-in-out infinite alternate;
}

.site-bg-light__glow--cyan {
    width: min(55vw, 480px);
    height: min(55vw, 480px);
    top: -10%;
    right: 0;
    background: rgba(34, 211, 238, 0.2);
}

.site-bg-light__glow--violet {
    width: min(50vw, 420px);
    height: min(50vw, 420px);
    bottom: 5%;
    left: -8%;
    background: rgba(124, 58, 237, 0.14);
    animation-delay: -9s;
}

.site-bg-light__scan {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.35;
}

.site-bg-light__scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(8, 145, 178, 0.4), transparent);
    animation: scan-line 9s linear infinite;
}

.site-bg__hex {
    position: absolute;
    inset: 0;
    opacity: 0.35;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100' viewBox='0 0 56 100'%3E%3Cpath d='M28 0L56 16v32L28 64 0 48V16z M28 36l28 16v32L28 100 0 84V52z' fill='none' stroke='rgba(34,211,238,0.06)' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 56px 100px;
    mask-image: linear-gradient(180deg, transparent 0%, black 25%, black 75%, transparent 100%);
}

.site-bg__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.45;
    animation: glow-drift 22s ease-in-out infinite alternate;
}

.site-bg__glow--cyan {
    width: min(55vw, 500px);
    height: min(55vw, 500px);
    top: 5%;
    left: -8%;
    background: rgba(34, 211, 238, 0.2);
}

.site-bg__glow--purple {
    width: min(65vw, 580px);
    height: min(65vw, 580px);
    bottom: -5%;
    right: -12%;
    background: var(--glow-purple);
    animation-delay: -10s;
}

.site-bg__scan {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.4;
}

.site-bg__scan::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.35), transparent);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.25);
    animation: scan-line 8s linear infinite;
}

.site-bg__grain {
    position: absolute;
    inset: 0;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

.site-bg__vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 40%, transparent 20%, var(--vignette) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, transparent 18%, transparent 82%, rgba(0, 0, 0, 0.5) 100%);
}

.theme-light .theme-dark-only {
    display: none !important;
}

/* ——— Light theme: typography & Tailwind overrides ——— */
.theme-light .text-white {
    color: var(--text) !important;
}

.theme-light .text-slate-300 {
    color: var(--text-secondary) !important;
}

.theme-light .text-slate-400 {
    color: var(--muted) !important;
}

.theme-light .text-slate-500,
.theme-light .text-slate-600 {
    color: #64748b !important;
}

.theme-light .border-white\/5,
.theme-light .border-white\/10 {
    border-color: var(--border) !important;
}

.theme-light .bg-white\/5 {
    background-color: rgba(15, 23, 42, 0.04) !important;
}

.theme-light .bg-white\/10 {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

.theme-light .hover\:bg-white\/5:hover {
    background-color: rgba(15, 23, 42, 0.06) !important;
}

.theme-light .section-tag {
    color: #0891b2;
    background: rgba(8, 145, 178, 0.1);
    border-color: rgba(8, 145, 178, 0.25);
}

.theme-light .btn-ghost {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--border);
    color: var(--text);
}

.theme-light .btn-ghost:hover {
    background: #fff;
    border-color: rgba(8, 145, 178, 0.35);
}

.theme-light .form-input {
    background: #fff;
    color: var(--text);
    border-color: var(--border);
}

.theme-light .form-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.95));
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.theme-light .stat-card {
    background: #ffffff;
    border-color: var(--border);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 4px 16px -4px rgba(15, 23, 42, 0.06);
}

.theme-light .stat-value {
    background: linear-gradient(135deg, #0f172a 0%, #0891b2 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.theme-light .testimonial-card {
    background: linear-gradient(160deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.theme-light .icon-glow {
    background: linear-gradient(135deg, rgba(8, 145, 178, 0.12), rgba(124, 58, 237, 0.1));
    border-color: rgba(8, 145, 178, 0.2);
}

.theme-light .glass {
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.theme-light .prose-invert {
    --tw-prose-body: var(--text-secondary);
    --tw-prose-headings: var(--text);
    --tw-prose-links: var(--accent);
}

@keyframes aurora-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, 2%) scale(1.06); }
}

@keyframes glow-drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(2%, 4%) scale(1.1); }
}

@keyframes scan-line {
    0% { top: -2%; }
    100% { top: 102%; }
}

@media (prefers-reduced-motion: reduce) {
    .site-bg__aurora,
    .site-bg__glow,
    .site-bg__scan::after {
        animation: none;
    }
}

/* ——— 3D Hero section ——— */
.hero-3d-section {
    position: relative;
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(6, 5, 7, 0.7), var(--bg));
}

.hero-3d-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-3d-canvas canvas {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.hero-3d-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(34, 211, 238, 0.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 40%, rgba(146, 106, 255, 0.05), transparent 55%),
        linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.theme-light .hero-3d-section {
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(248, 250, 252, 0.5), var(--bg));
}

.theme-light .hero-3d-overlay {
    background:
        radial-gradient(ellipse 60% 50% at 20% 50%, rgba(8, 145, 178, 0.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 80% 40%, rgba(124, 58, 237, 0.04), transparent 55%),
        linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}

.hero-subtitle {
    color: var(--muted);
}

/* Scroll indicator */
.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(148, 163, 184, 0.3);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 6px;
}

.scroll-indicator__dot {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

.delay-300 { animation-delay: 0.3s; }

/* Typing cursor */
.typing-cursor {
    display: inline-block;
    color: var(--accent);
    font-weight: 300;
    animation: blink-cursor 0.8s step-end infinite;
    margin-left: 1px;
}

@keyframes blink-cursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ——— Typography ——— */
.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #22d3ee 45%, #926aff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-text-muted {
    color: var(--muted);
    font-weight: 600;
    opacity: 0.92;
}

/* J logotipidagi cyan → binafsha gradient — har bir urg‘u so‘zda to‘liq */
.hero-title .hero-accent {
    display: inline;
    font-weight: 900;
    font-size: 1.08em;
    letter-spacing: -0.02em;
    background: var(--logo-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero-title .hero-accent {
        background: none;
        -webkit-text-fill-color: unset;
        color: var(--accent);
    }
}

.text-gradient-subtle {
    background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ——— Components ——— */
.glass {
    background: var(--surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
}

.glass-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(15, 23, 42, 0.4) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.theme-light .glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.75) 100%);
    box-shadow: 0 4px 24px -8px rgba(15, 23, 42, 0.08);
}

.glass-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -20px rgba(34, 211, 238, 0.2);
}

.theme-light .glass-card:hover {
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 20px 40px -20px rgba(8, 145, 178, 0.12);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 9999px;
}

.section-tag--hero {
    text-transform: none;
    letter-spacing: 0.01em;
    font-size: 0.8125rem;
    line-height: 1.45;
    max-width: 34rem;
    padding: 0.5rem 1rem;
}

/* Bosh sahifa — bo'limlar orasida bir xil masofa */
:root {
    --home-section-space: 4rem;
}

@media (min-width: 640px) {
    :root {
        --home-section-space: 5rem;
    }
}

.home-section {
    padding-top: var(--home-section-space);
    padding-bottom: var(--home-section-space);
}

.home-section__head {
    margin-bottom: 2.25rem;
}

@media (min-width: 640px) {
    .home-section__head {
        margin-bottom: 2.75rem;
    }
}

.theme-light .text-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #0891b2 50%, #7c3aed 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: #050816;
    text-decoration: none;
    background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 100%);
    border-radius: 0.875rem;
    box-shadow: 0 0 30px -5px rgba(34, 211, 238, 0.5);
    transition: transform 0.2s, box-shadow 0.2s;
}

a.btn-primary:visited {
    color: #050816;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 40px -5px rgba(34, 211, 238, 0.65);
}

/* Header: Aloqa / Contact — matn aniq markazda */
.btn-primary--header {
    min-width: 7.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    line-height: 1.25;
    text-align: center;
    justify-content: center;
}

.btn-primary--header .btn-primary__label {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-primary--header.w-full {
    min-width: 0;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 0.875rem;
    transition: background 0.2s, border-color 0.2s;
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(148, 163, 184, 0.3);
}

.btn-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 0.875rem;
    transition: background 0.2s;
}

.btn-telegram:hover {
    background: rgba(56, 189, 248, 0.18);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    transition: gap 0.2s;
}

.link-arrow:hover { gap: 0.6rem; }

/* ——— Nav ——— */
.nav-link {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 1px;
    transition: width 0.3s;
}

.nav-link:hover::after { width: 100%; }

/* ——— Forms ——— */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.form-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border-radius: 0.875rem;
    border: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    color: var(--text);
    font-size: 0.9375rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input::placeholder { color: #64748b; }

.form-input:focus {
    outline: none;
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

select.form-input,
.form-select {
    appearance: none;
    cursor: pointer;
    padding-right: 2.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 1.125rem;
}

.theme-light select.form-input,
.theme-light .form-select {
    background-color: rgba(255, 255, 255, 0.95);
}

/* ——— Custom select (contact category) ——— */
.custom-select {
    position: relative;
}

.custom-select__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    text-align: left;
    background-image: none;
    padding-right: 1rem;
}

.custom-select__value {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text);
}

.custom-select__value--placeholder {
    color: var(--muted);
}

.custom-select__chevron {
    flex-shrink: 0;
    width: 1.125rem;
    height: 1.125rem;
    color: var(--muted);
    transition: transform 0.2s ease, color 0.2s ease;
}

.custom-select__chevron.is-open {
    transform: rotate(180deg);
    color: var(--accent);
}

.custom-select__menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 0.4rem);
    left: 0;
    right: 0;
    max-height: 15rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.4rem;
    border-radius: 0.875rem;
    border: 1px solid rgba(34, 211, 238, 0.28);
    background: rgba(15, 23, 42, 0.98);
    box-shadow:
        0 18px 40px -16px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(148, 163, 184, 0.08);
    backdrop-filter: blur(16px);
}

.theme-light .custom-select__menu {
    background: rgba(255, 255, 255, 0.98);
    border-color: rgba(8, 145, 178, 0.22);
    box-shadow:
        0 18px 40px -16px rgba(15, 23, 42, 0.14),
        0 0 0 1px rgba(15, 23, 42, 0.04);
}

.custom-select__option {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: none;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.custom-select__option:hover {
    background: rgba(34, 211, 238, 0.1);
    color: var(--accent);
}

.custom-select__option.is-selected {
    background: rgba(34, 211, 238, 0.16);
    color: var(--accent);
}

.theme-light .custom-select__option:hover {
    background: rgba(8, 145, 178, 0.08);
}

.theme-light .custom-select__option.is-selected {
    background: rgba(8, 145, 178, 0.12);
}

.form-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.5));
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
}

/* ——— Animations ——— */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.7; }
}

.animate-fade-up {
    animation: fade-up 0.7s ease-out forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ——— Stat card ——— */
.stat-card {
    padding: 1.5rem;
    text-align: center;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border);
}

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ——— Service icon glow ——— */
.icon-glow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    font-size: 1.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.2);
}

/* ——— Testimonials carousel ——— */
.testimonials-carousel {
    width: 100%;
}

.testimonials-carousel__viewport {
    overflow: hidden;
    width: 100%;
    margin: 0;
    touch-action: pan-y pinch-zoom;
}

.testimonials-carousel__track {
    display: flex;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.testimonials-carousel__slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    padding: 0 0.375rem;
    box-sizing: border-box;
}

@media (min-width: 640px) {
    .testimonials-carousel__slide {
        flex: 0 0 50%;
        width: 50%;
        min-width: 50%;
        max-width: 50%;
        padding: 0 0.5rem;
    }
}

@media (min-width: 1024px) {
    .testimonials-carousel__slide {
        flex: 0 0 33.333%;
        width: 33.333%;
        min-width: 33.333%;
        max-width: 33.333%;
    }
}

.testimonial-card-v2 {
    display: flex;
    flex-direction: column;
    min-height: 17rem;
    padding: 1.5rem 1.5rem 1.25rem;
    border-radius: 1rem;
    background: var(--surface-solid);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
}

.theme-dark .testimonial-card-v2 {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
    color: #0f172a;
}

.testimonial-card-v2__quote {
    color: #22d3ee;
    opacity: 0.85;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.testimonial-card-v2__stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1;
}

.testimonial-card-v2__stars span {
    color: #e2e8f0;
}

.testimonial-card-v2__stars span.is-filled {
    color: #fbbf24;
}

.testimonial-card-v2__text {
    flex: 1;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #475569;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.testimonial-card-v2__footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.testimonial-card-v2__avatar {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.testimonial-card-v2__avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #22d3ee, #926aff);
    color: #0f172a;
    font-weight: 700;
    font-size: 1rem;
}

.testimonial-card-v2__meta {
    min-width: 0;
}

.testimonial-card-v2__name {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0f172a;
    line-height: 1.3;
}

.testimonial-card-v2__role {
    margin-top: 0.15rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #0891b2;
    line-height: 1.35;
}

.testimonial-card-v2__company {
    margin-top: 0.1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
    line-height: 1.35;
}

.testimonials-carousel__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.75rem;
}

.testimonials-carousel__arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.testimonials-carousel__arrow:hover {
    border-color: rgba(34, 211, 238, 0.45);
    color: var(--accent);
}

.testimonials-carousel__dots {
    display: flex;
    gap: 0.5rem;
}

.testimonials-carousel__dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.45);
    transition: width 0.25s, background 0.25s;
}

.testimonials-carousel__dot.is-active {
    width: 1.5rem;
    background: var(--accent);
}

.theme-light .testimonial-card-v2 {
    background: #ffffff;
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.06);
}

/* ——— Testimonial (legacy) ——— */
.testimonial-card {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: linear-gradient(160deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.4));
    border: 1px solid var(--border);
    height: 100%;
}

/* ——— Page hero (inner pages) ——— */
.page-hero {
    padding: 4rem 0 3rem;
    text-align: center;
}

/* ——— Blog article (CKEditor HTML) ——— */
/* CKEditor / Word dan kelgan inline style larni bekor qilish */
.article-content :is(h2, h3, h4) {
    color: var(--text) !important;
    font-family: inherit !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    margin-top: 1.75em !important;
    margin-bottom: 0.65em !important;
    letter-spacing: -0.02em;
}

.article-content h2 {
    font-size: clamp(1.35rem, 2.5vw, 1.625rem) !important;
}

.article-content h3 {
    font-size: clamp(1.125rem, 2vw, 1.35rem) !important;
}

.article-content h4 {
    font-size: 1.0625rem !important;
}

.article-content p { margin-bottom: 1em; color: var(--muted); }
.article-content a { color: var(--accent); text-decoration: underline; }
.article-content ul,
.article-content ol { margin: 1em 0; padding-left: 1.5em; color: var(--muted); }
.article-content img { border-radius: 1rem; margin: 1.5em 0; max-width: 100%; }
.article-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 1rem;
    color: var(--muted);
    font-style: italic;
}

/* ——— Brand logo ——— */
.site-logo {
    display: block;
    width: 2.25rem;
    height: 2.25rem;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 50%;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.site-logo--lg {
    width: 2.5rem;
    height: 2.5rem;
}

.site-brand:hover .site-logo,
.footer-brand:hover .site-logo {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(34, 211, 238, 0.45));
}

.theme-light .site-logo {
    filter: drop-shadow(0 2px 8px rgba(15, 23, 42, 0.12));
}

.theme-light .site-brand:hover .site-logo,
.theme-light .footer-brand:hover .site-logo {
    filter: drop-shadow(0 0 12px rgba(8, 145, 178, 0.35));
}

/* ——— Footer ——— */
.site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.04) 50%, rgba(146, 106, 255, 0.05) 100%);
}

.theme-light .site-footer {
    background: linear-gradient(180deg, transparent 0%, rgba(8, 145, 178, 0.05) 55%, rgba(124, 58, 237, 0.04) 100%);
}

.footer-heading {
    display: block;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0;
    color: var(--accent);
    background: none;
    -webkit-text-fill-color: unset;
}

.footer-heading::after {
    content: "";
    display: block;
    width: 2.25rem;
    height: 2px;
    margin-top: 0.5rem;
    border-radius: 999px;
    background: var(--logo-gradient);
}

.footer-nav__link {
    display: inline-block;
    padding: 0.35rem 0;
    font-size: 0.9375rem;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav__link:hover {
    color: var(--accent);
    transform: translateX(3px);
}

.link-gradient {
    display: inline-block;
    font-weight: 600;
    background: var(--logo-gradient);
    background-size: 100% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.link-gradient:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .link-gradient {
        background: none;
        -webkit-text-fill-color: unset;
        color: var(--accent);
    }

    .link-gradient:hover {
        opacity: 1;
        color: var(--violet-glow, #926aff);
    }
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.65rem;
    margin-left: -0.65rem;
    border-radius: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary, var(--muted));
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social:hover {
    transform: translateX(2px);
}

.footer-social__icon {
    flex-shrink: 0;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.625rem;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.footer-social--contact .footer-social__icon {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.12);
    border-color: rgba(34, 211, 238, 0.25);
}

.footer-social--contact:hover {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.08);
}

.footer-social--email .footer-social__icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.28);
}

.footer-social--email:hover {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.footer-social--phone .footer-social__icon {
    color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.28);
}

.footer-social--phone:hover {
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.footer-social--telegram .footer-social__icon {
    color: #229ed9;
    background: rgba(34, 158, 217, 0.14);
    border-color: rgba(34, 158, 217, 0.3);
}

.footer-social--telegram:hover {
    color: #229ed9;
    background: rgba(34, 158, 217, 0.08);
}

.footer-social--github .footer-social__icon {
    color: var(--text);
    background: rgba(148, 163, 184, 0.15);
}

.theme-light .footer-social--github .footer-social__icon {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.06);
}

.footer-social--github:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
}

.theme-light .footer-social--github:hover {
    color: #0f172a;
    background: rgba(15, 23, 42, 0.08);
}

.footer-social--linkedin .footer-social__icon {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.12);
    border-color: rgba(10, 102, 194, 0.25);
}

.footer-social--linkedin:hover {
    color: #0a66c2;
    background: rgba(10, 102, 194, 0.08);
}

.theme-light .footer-heading {
    color: #0891b2;
}

/* ——— Service pricing ——— */
.service-price {
    margin-top: 1.25rem;
}

.service-price__note {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--muted);
}

.service-price__from {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--muted);
    margin-right: 0.3rem;
    text-transform: lowercase;
}

.service-price__from--sm {
    font-size: 0.6875rem;
    margin-right: 0.2rem;
}

.service-price--lg {
    margin-top: 1.5rem;
}

.service-price--lg .service-price__current {
    font-size: 1.75rem;
}

.service-price__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.service-price__old {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.service-price__old-amount {
    color: #f87171;
    text-decoration: line-through;
    text-decoration-color: rgba(248, 113, 113, 0.85);
}

.service-price__currency-sm {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
}

.service-price__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fecaca;
    background: rgba(239, 68, 68, 0.18);
    border: 1px solid rgba(248, 113, 113, 0.35);
    border-radius: 999px;
}

.service-price__current {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1.3;
}

.service-price__currency {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
}

.theme-light .service-price__old-amount {
    color: #dc2626;
    text-decoration-color: rgba(220, 38, 38, 0.7);
}

.theme-light .service-price__badge {
    color: #b91c1c;
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(248, 113, 113, 0.45);
}

.theme-light .service-price__current {
    color: #0e7490;
}

/* ——— Project cards ——— */
.project-card__badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    pointer-events: none;
}

.project-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.7rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    line-height: 1.2;
    white-space: nowrap;
}

.project-badge--category {
    color: #67e8f9;
    background: rgba(15, 23, 42, 0.82);
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow: 0 2px 12px rgba(34, 211, 238, 0.15);
}

.project-badge--completed {
    color: #6ee7b7;
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.45);
}

.project-badge--in_progress {
    color: #fcd34d;
    background: rgba(120, 53, 15, 0.88);
    border: 1px solid rgba(251, 191, 36, 0.45);
}

.project-badge--archived {
    color: #cbd5e1;
    background: rgba(30, 41, 59, 0.88);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.project-tech-tag {
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    border-radius: 0.375rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
}

.theme-light .project-badge--category {
    color: #0e7490;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(8, 145, 178, 0.35);
    box-shadow: 0 2px 10px rgba(8, 145, 178, 0.12);
}

.theme-light .project-badge--completed {
    color: #047857;
    background: rgba(236, 253, 245, 0.95);
    border-color: rgba(16, 185, 129, 0.35);
}

.theme-light .project-badge--in_progress {
    color: #b45309;
    background: rgba(255, 251, 235, 0.95);
    border-color: rgba(245, 158, 11, 0.4);
}

.theme-light .project-badge--archived {
    color: #475569;
    background: rgba(248, 250, 252, 0.95);
    border-color: rgba(148, 163, 184, 0.4);
}

.theme-light .project-tech-tag {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
}

.project-card__live-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 100%);
    border-radius: 0.5rem;
    box-shadow: 0 4px 16px rgba(34, 211, 238, 0.45);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}

.project-card:hover .project-card__live-btn,
.project-card__live-btn:focus-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .project-card__live-btn {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.project-card__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    font-size: 0.8125rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.project-card__action--primary {
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 100%);
    box-shadow: 0 2px 12px rgba(34, 211, 238, 0.35);
}

.project-card__action--primary:hover {
    box-shadow: 0 4px 18px rgba(34, 211, 238, 0.5);
}

.project-card__action--ghost {
    color: var(--muted);
    border: 1px solid var(--border);
    background: transparent;
}

.project-card__action--ghost:hover {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.35);
    background: rgba(34, 211, 238, 0.06);
}

.theme-light .project-card__live-btn,
.theme-light .project-card__action--primary {
    color: #0f172a;
}

.theme-light .project-card__action--ghost:hover {
    background: rgba(8, 145, 178, 0.08);
}

/* ——— Blog cards ——— */
.blog-card {
    position: relative;
    height: 100%;
    border-radius: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    border-color: rgba(34, 211, 238, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px -24px rgba(34, 211, 238, 0.25);
}

.theme-light .blog-card:hover {
    box-shadow: 0 24px 48px -24px rgba(8, 145, 178, 0.15);
}

.blog-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.blog-card__media {
    position: relative;
    height: 11rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, rgba(146, 106, 255, 0.12) 100%);
}

.blog-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card__image {
    transform: scale(1.06);
}

.blog-card__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--accent);
}

.blog-card__media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(5, 8, 22, 0.5) 0%, transparent 55%);
    pointer-events: none;
}

.theme-light .blog-card__media-overlay {
    background: linear-gradient(to top, rgba(255, 255, 255, 0.4) 0%, transparent 55%);
}

.blog-card__featured {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.25rem 0.65rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0f172a;
    background: linear-gradient(135deg, #22d3ee 0%, #67e8f9 100%);
    border-radius: 999px;
}

.blog-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 1.35rem 1.35rem;
}

.blog-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.65rem;
    margin-bottom: 0.75rem;
}

.blog-card__datetime {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.blog-card__meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 999px;
    background: var(--muted);
    opacity: 0.5;
}

.blog-card__reading {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
}

.blog-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.65rem;
}

.blog-card__tag {
    padding: 0.2rem 0.55rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: 999px;
}

.blog-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text);
    transition: color 0.2s;
}

.blog-card:hover .blog-card__title {
    color: var(--accent);
}

.blog-card__excerpt {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--accent);
}

.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.blog-pagination__btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    transition: border-color 0.2s, color 0.2s;
}

.blog-pagination__btn:hover {
    color: var(--accent);
    border-color: rgba(34, 211, 238, 0.35);
}

.blog-pagination__info {
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    color: var(--muted);
}

.blog-article__header {
    margin-bottom: 2rem;
}

.blog-article__tags {
    margin-bottom: 1rem;
}

.blog-article__title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text);
}

.blog-article__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
}

.blog-article__updated {
    font-size: 0.8125rem;
    color: var(--muted);
}

.blog-article__figure {
    margin: 0 0 2rem;
    border-radius: 1.25rem;
    overflow: hidden;
    border: 1px solid var(--border);
}

.blog-article__image {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.blog-article__content {
    font-size: 1.0625rem;
    line-height: 1.75;
    color: var(--text);
}

.blog-article__footer {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ——— Legal (Privacy Policy) ——— */
.legal-page {
    color: var(--muted);
    font-size: 0.9375rem;
    line-height: 1.75;
}

.legal-page__lead {
    font-size: 1.0625rem;
    color: var(--text);
    margin-bottom: 2rem;
}

.legal-page__heading {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
}

.legal-page__list {
    list-style: disc;
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-page__list li::marker {
    color: var(--accent);
}

.legal-page p + p {
    margin-top: 0.75rem;
}

/* ——— Bento grid ——— */
.bento-item-lg { grid-column: span 2; }
@media (max-width: 768px) {
    .bento-item-lg { grid-column: span 1; }
}

/* ——— Mobile adaptatsiya ——— */
@media (max-width: 768px) {
    .site-bg__canvas {
        width: 100%;
        height: 100%;
        height: 100dvh;
        max-width: 100vw;
    }
}

.mobile-nav-link {
    display: block;
    padding: 0.625rem 0.75rem;
    border-radius: 0.625rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-secondary, var(--muted));
    transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav-link:hover {
    color: var(--text);
    background: rgba(148, 163, 184, 0.12);
}

.theme-light .mobile-nav-link:hover {
    background: rgba(8, 145, 178, 0.08);
}

@media (max-width: 639px) {
    :root {
        --home-section-space: 2.75rem;
    }

    header.fixed {
        padding-left: max(0.75rem, env(safe-area-inset-left));
        padding-right: max(0.75rem, env(safe-area-inset-right));
    }

    .site-footer {
        padding-bottom: max(2rem, env(safe-area-inset-bottom));
    }

    .hero-title .hero-accent {
        font-size: 1em;
    }

    .section-tag--hero {
        font-size: 0.75rem;
        max-width: 100%;
    }

    .stat-card {
        padding: 1rem 0.75rem;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .service-price__current {
        font-size: 1rem;
        flex-wrap: wrap;
    }

    .service-price__amount {
        word-break: break-word;
    }

    .service-price__note {
        font-size: 0.625rem;
        line-height: 1.35;
    }

    .form-card {
        padding: 1.25rem;
    }

    .page-hero {
        padding: 2.5rem 0 2rem;
    }

    .page-detail-panel.glass-card {
        padding: 1.25rem !important;
    }

    .page-detail main::before {
        backdrop-filter: blur(16px) saturate(1.1);
        -webkit-backdrop-filter: blur(16px) saturate(1.1);
    }

    .blog-article {
        padding-top: 2rem;
        padding-bottom: 3rem;
    }

    .blog-article__title {
        font-size: 1.5rem;
    }

    .blog-card__body {
        padding: 1rem 1.1rem 1.15rem;
    }

    .blog-card__title {
        font-size: 1rem;
    }

    .blog-card__meta {
        gap: 0.35rem 0.5rem;
    }

    .testimonial-card-v2 {
        min-height: 14rem;
        padding: 1.15rem;
    }

    .testimonials-carousel__controls {
        gap: 0.5rem;
    }

    .glass-card:hover {
        transform: none;
    }

    .article-content {
        overflow-wrap: anywhere;
    }

    .article-content :is(table, pre, iframe) {
        display: block;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .blog-pagination {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .blog-pagination__btn {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .header-tools,
    .theme-switcher,
    form[action*="set_language"] {
        width: 100%;
        justify-content: center;
    }
}

/* ——— About Page — Cinematic Split ——— */
.about-section {
    position: relative;
}

/* Ambient glow orbs */
.about-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}
.about-orb--cyan {
    top: 5rem;
    left: -8rem;
    width: 18rem;
    height: 18rem;
    background: var(--accent);
    opacity: 0.04;
    animation: about-float 15s ease-in-out infinite;
}
.about-orb--purple {
    bottom: 8rem;
    right: -8rem;
    width: 24rem;
    height: 24rem;
    background: var(--accent-2);
    opacity: 0.04;
    animation: about-float 20s ease-in-out infinite reverse;
}
@keyframes about-float {
    0%, 100% { transform: translateY(0) translateX(0); }
    33% { transform: translateY(-20px) translateX(12px); }
    66% { transform: translateY(12px) translateX(-16px); }
}

/* Split layout */
.about-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}
@media (min-width: 768px) {
    .about-split {
        grid-template-columns: 1fr 1fr;
        gap: 3.5rem;
        align-items: start;
    }
}

/* Photo column */
.about-photo-col {
    position: relative;
}
@media (min-width: 768px) {
    .about-photo-col {
        position: sticky;
        top: 6rem;
    }
}

.about-photo-wrap {
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border: 1px solid var(--border);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}
.about-photo-wrap:hover .about-photo-img {
    transform: scale(1.04);
}

.about-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(146, 106, 255, 0.08) 100%);
}

.about-photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0.15) 30%,
        transparent 60%
    );
    pointer-events: none;
}
.theme-light .about-photo-overlay {
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 40%
    );
}

/* Content column */
.about-content-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 0.5rem;
}
@media (min-width: 768px) {
    .about-content-col {
        padding-top: 1rem;
        gap: 2.5rem;
    }
}

/* Headline */
.about-headline {
    font-size: clamp(1.5rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text);
}
.about-headline-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Bio text */
.about-bio {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.75;
}
.about-bio p {
    margin: 0;
}
@media (max-width: 639px) {
    .about-bio {
        font-size: 0.95rem;
    }
}

/* Stats */
.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 0.5rem;
}
.about-stat {
    text-align: center;
    padding: 1.25rem 0.5rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    border: 1px solid var(--border);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.about-stat:hover {
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 24px rgba(34, 211, 238, 0.08);
}
.theme-light .about-stat {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.8) 100%);
}

.about-stat-value {
    display: block;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
    line-height: 1;
}
.about-stat-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Tech section */
.about-tech-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.5rem;
}
.about-tech-line {
    width: 2rem;
    height: 2px;
    background: var(--accent);
    flex-shrink: 0;
}

.about-tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.625rem;
}
@media (min-width: 640px) {
    .about-tech-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.75rem;
    }
}
@media (min-width: 1024px) {
    .about-tech-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

.about-tech-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 0.5rem;
    border-radius: 0.875rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0.3) 100%);
    border: 1px solid var(--border);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--muted);
    transition: all 0.3s;
    text-align: center;
}
.about-tech-item:hover {
    border-color: rgba(34, 211, 238, 0.35);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.08);
    transform: translateY(-2px);
}
.theme-light .about-tech-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.8) 100%);
}
.theme-light .about-tech-item:hover {
    border-color: rgba(8, 145, 178, 0.35);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(8, 145, 178, 0.08);
}

/* Scroll reveal */
.about-reveal {
    opacity: 0;
    transform: translateY(28px);
    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);
}
.about-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
