/* =================================================================
   COMMON STYLES - VELTECHLAB
   ================================================================= */

/* NOTE: CSS Variables са преместени в variables.css за по-добра организация */

/* =================================================================
   BASE STYLES
   ================================================================= */

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

html {
    scroll-behavior: smooth;
    /* 16px root: по-добра четимост и избягване на auto-zoom в iOS при фокус в полета */
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(96, 165, 250, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 58, 237, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(56, 189, 248, 0.05) 0%, transparent 50%),
        linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(96, 165, 250, 0.03) 2px, rgba(96, 165, 250, 0.03) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(124, 58, 237, 0.02) 2px, rgba(124, 58, 237, 0.02) 4px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

body > * {
    position: relative;
    z-index: 1;
}

/* =================================================================
   SCROLL ANIMATIONS
   ================================================================= */

[data-animate] {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
        transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: opacity, transform;
}

[data-animate].is-animate-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* =================================================================
   TYPOGRAPHY
   ================================================================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-secondary);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    color: rgba(226, 232, 240, 0.98);
    margin: 0 0 var(--space-4) 0;
}

h1 {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
}

h2 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h3 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-medium);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

p {
    margin: 0 0 var(--space-4) 0;
    line-height: 1.5;
    color: rgba(203, 213, 225, 0.9);
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: var(--transition-colors);
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

strong,
b {
    font-weight: var(--font-semibold);
    color: rgba(226, 232, 240, 0.98);
}

em,
i {
    font-style: italic;
}

small {
    font-size: var(--text-sm);
    color: rgba(203, 213, 225, 0.85);
}

code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background-color: rgba(15, 23, 42, 0.6);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--rounded-md);
    color: var(--error);
}

pre {
    font-family: var(--font-mono);
    background-color: rgba(15, 23, 42, 0.8);
    color: rgba(226, 232, 240, 0.95);
    padding: var(--space-4);
    border-radius: var(--rounded-lg);
    overflow-x: auto;
    margin: var(--space-4) 0;
}

pre code {
    background: none;
    padding: 0;
    color: inherit;
}

blockquote {
    border-left: 4px solid var(--color-accent);
    padding-left: var(--space-4);
    margin: var(--space-4) 0;
    font-style: italic;
    color: rgba(203, 213, 225, 0.9);
}

/* =================================================================
   LAYOUT COMPONENTS
   ================================================================= */

/* Общи правила за адаптивност */
* {
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-4);
    box-sizing: border-box;
}

/* Осигурява адаптивност на контейнерите на всички устройства */
@media (max-width: 640px) {
    .container {
        padding: 0 clamp(1rem, 4vw, 1.5rem);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--space-6);
    }
}

/* Осигурява адаптивност на всички секции */
.section {
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.hero-section {
    position: relative;
    /* Място за индикатора + въздух над него, за да не се „лепи“ за картите/текста */
    padding-bottom: calc(
        var(--hero-scroll-strip) + var(--hero-scroll-clearance) + env(safe-area-inset-bottom, 0px)
    );
}

.hero-scroll-indicator {
    position: absolute;
    left: 50%;
    right: auto;
    bottom: calc(var(--hero-scroll-bottom-inset) + env(safe-area-inset-bottom, 0px));
    transform: translate(-50%, 0);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    margin: 0;
    padding: 0.4rem 0.9rem 0.7rem;
    border-radius: 999px;
    box-sizing: border-box;
    width: max-content;
    max-width: calc(100vw - 2 * clamp(1rem, 4vw, 1.75rem));
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    cursor: pointer;
    transition:
        color 0.3s ease,
        transform 0.3s ease;
    z-index: 5;
    animation: heroScrollBounce 2.4s ease-in-out infinite;
    pointer-events: auto;
}

@media (min-width: 768px) {
    .hero-scroll-indicator {
        font-size: 0.82rem;
    }
}

.hero-scroll-indicator span {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
}

.hero-scroll-indicator .scroll-arrow {
    width: 22px;
    height: 22px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.hero-scroll-indicator:hover,
.hero-scroll-indicator:focus-visible {
    color: #fff;
}

.hero-scroll-indicator:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.65);
    outline-offset: 6px;
}

@keyframes heroScrollBounce {
    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -10px);
    }
    60% {
        transform: translate(-50%, -4px);
    }
}

/* Avoid header overlap when scrolling to sections */
.section {
    scroll-margin-top: 120px;
}

.container-sm {
    max-width: 640px;
}

.container-md {
    max-width: 768px;
}

.container-lg {
    max-width: 1024px;
}

.container-xl {
    max-width: 1280px;
}

.container-2xl {
    max-width: 1536px;
}

.section {
    padding: var(--space-12) 0;
}

.section-sm {
    padding: var(--space-8) 0;
}

.section-lg {
    padding: var(--space-16) 0;
}

.grid {
    display: grid;
    gap: var(--space-6);
    width: 100%;
    box-sizing: border-box;
}

/* Осигурява адаптивност на grid системите */
@media (max-width: 640px) {
    .grid {
        gap: var(--space-4);
    }
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}
.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-cols-5 {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}
.grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}
.grid-cols-12 {
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-row {
    flex-direction: row;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-start {
    justify-content: flex-start;
}

.justify-end {
    justify-content: flex-end;
}

.gap-1 {
    gap: var(--space-1);
}
.gap-2 {
    gap: var(--space-2);
}
.gap-3 {
    gap: var(--space-3);
}
.gap-4 {
    gap: var(--space-4);
}
.gap-5 {
    gap: var(--space-5);
}
.gap-6 {
    gap: var(--space-6);
}
.gap-8 {
    gap: var(--space-8);
}

/* =================================================================
   BUTTONS
   ================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    font-family: var(--font-primary);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    text-decoration: none;
    border: none;
    border-radius: var(--rounded-lg);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease,
        border-color 0.25s ease, color 0.25s ease;
    user-select: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target-min);
}

.btn:focus-visible {
    outline: var(--focus-ring-width) solid var(--focus-ring-color);
    outline-offset: var(--focus-ring-offset);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Button Variants - ClientPortal Production Style */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: var(--bg-primary);
    box-shadow: 0 12px 26px -14px rgba(59, 130, 246, 0.55);
    font-weight: 600;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(96, 165, 250, 0.5);
    background: linear-gradient(135deg, #93c5fd, #818cf8);
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: var(--bg-hover);
    border-color: var(--accent-primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -16px rgba(59, 130, 246, 0.42);
}

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

.btn-outline:hover:not(:disabled) {
    background: rgba(96, 165, 250, 0.14);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px -16px rgba(59, 130, 246, 0.42);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover:not(:disabled) {
    background: var(--bg-hover);
    color: var(--text-primary);
}

/* Button Sizes */
.btn-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    border-radius: var(--rounded-md);
    min-height: 36px;
}

.btn-lg {
    padding: var(--space-4) var(--space-6);
    font-size: var(--text-base);
    border-radius: var(--rounded-xl);
    min-height: 52px;
}

.btn-xl {
    padding: var(--space-5) var(--space-8);
    font-size: var(--text-lg);
    border-radius: var(--rounded-2xl);
}

/* Button States */
.btn-loading {
    color: transparent;
}

.btn-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* =================================================================
   CARDS
   ================================================================= */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--rounded-xl);
    padding: var(--space-5);
    box-shadow: 0 18px 42px -32px rgba(2, 8, 23, 0.95);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 26px 60px -34px rgba(59, 130, 246, 0.55);
    border-color: rgba(96, 165, 250, 0.65);
}

.card-header {
    margin-bottom: var(--space-4);
}

.card-title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin: 0 0 var(--space-2) 0;
}

.card-subtitle {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin: 0;
}

.card-body {
    color: var(--text-secondary);
    line-height: var(--leading-relaxed);
}

.card-footer {
    margin-top: var(--space-4);
    padding-top: var(--space-4);
    border-top: 1px solid var(--border-color);
}

/* =================================================================
   FORMS
   ================================================================= */

.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    color: var(--neutral-700);
    margin-bottom: var(--space-2);
}

.form-input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    font-family: inherit;
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--text-primary);
    background-color: var(--bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--rounded-lg);
    transition: var(--transition-all);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input.error {
    border-color: var(--error);
    box-shadow: 0 0 0 3px rgba(125, 211, 252, 0.22);
}

.form-input.success {
    border-color: var(--success);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22);
}

.form-error {
    color: var(--error);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

.form-help {
    color: var(--neutral-600);
    font-size: var(--text-sm);
    margin-top: var(--space-2);
}

/* =================================================================
   ALERTS
   ================================================================= */

.alert {
    padding: var(--space-4);
    border-radius: var(--rounded-lg);
    border: 1px solid;
    margin-bottom: var(--space-4);
}

.alert-success {
    background-color: rgba(34, 211, 238, 0.12);
    border-color: var(--success);
    color: var(--success);
}

.alert-error {
    background-color: rgba(125, 211, 252, 0.12);
    border-color: var(--error);
    color: var(--error);
}

.alert-warning {
    background-color: rgba(255, 184, 48, 0.15);
    border-color: var(--warning);
    color: var(--warning);
}

.alert-info {
    background-color: rgba(59, 130, 246, 0.15);
    border-color: var(--info);
    color: var(--info);
}

/* =================================================================
   BADGES
   ================================================================= */

.badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    line-height: var(--leading-tight);
    border-radius: var(--rounded-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: var(--color-accent);
    color: var(--color-text-inverse);
}

.badge-secondary {
    background-color: var(--secondary-500);
    color: var(--color-text-inverse);
}

.badge-success {
    background-color: var(--success);
    color: var(--color-text-inverse);
}

.badge-warning {
    background-color: var(--warning);
    color: var(--color-text-inverse);
}

.badge-error {
    background-color: var(--error);
    color: var(--color-text-inverse);
}

.badge-outline {
    background-color: transparent;
    border: 1px solid currentColor;
}

/* =================================================================
   LOADING INDICATORS
   ================================================================= */

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--neutral-300);
    border-top: 2px solid var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-sm {
    width: 16px;
    height: 16px;
    border-width: 1.5px;
}

.loading-lg {
    width: 32px;
    height: 32px;
    border-width: 3px;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-modal);
}

/* =================================================================
   UTILITY CLASSES
   ================================================================= */

/* Text Alignment */
.text-left {
    text-align: left;
}
.text-center {
    text-align: center;
}
.text-right {
    text-align: right;
}
.text-justify {
    text-align: justify;
}

/* Text Colors */
.text-primary {
    color: var(--color-accent);
}
.text-secondary {
    color: var(--secondary-500);
}
.text-success {
    color: var(--success);
}
.text-warning {
    color: var(--warning);
}
.text-error {
    color: var(--error);
}
.text-info {
    color: var(--info);
}
.text-gray-500 {
    color: rgba(148, 163, 184, 0.8);
}
.text-gray-600 {
    color: rgba(148, 163, 184, 0.9);
}
.text-gray-700 {
    color: rgba(203, 213, 225, 0.85);
}
.text-gray-800 {
    color: rgba(226, 232, 240, 0.9);
}
.text-gray-900 {
    color: rgba(226, 232, 240, 0.98);
}

/* Background Colors */
.bg-primary {
    background-color: var(--color-accent);
}
.bg-secondary {
    background-color: var(--secondary-500);
}
.bg-success {
    background-color: var(--success);
}
.bg-warning {
    background-color: var(--warning);
}
.bg-error {
    background-color: var(--error);
}
.bg-info {
    background-color: var(--info);
}
.bg-gray-50 {
    background-color: var(--neutral-50);
}
.bg-gray-100 {
    background-color: var(--neutral-100);
}
.bg-gray-200 {
    background-color: var(--neutral-200);
}
.bg-white {
    background-color: var(--color-surface-elevated);
}

/* Spacing */
.m-0 {
    margin: 0;
}
.m-1 {
    margin: var(--space-1);
}
.m-2 {
    margin: var(--space-2);
}
.m-3 {
    margin: var(--space-3);
}
.m-4 {
    margin: var(--space-4);
}
.m-5 {
    margin: var(--space-5);
}
.m-6 {
    margin: var(--space-6);
}
.m-8 {
    margin: var(--space-8);
}

.mt-0 {
    margin-top: 0;
}
.mt-1 {
    margin-top: var(--space-1);
}
.mt-2 {
    margin-top: var(--space-2);
}
.mt-3 {
    margin-top: var(--space-3);
}
.mt-4 {
    margin-top: var(--space-4);
}
.mt-5 {
    margin-top: var(--space-5);
}
.mt-6 {
    margin-top: var(--space-6);
}
.mt-8 {
    margin-top: var(--space-8);
}

.mb-0 {
    margin-bottom: 0;
}
.mb-1 {
    margin-bottom: var(--space-1);
}
.mb-2 {
    margin-bottom: var(--space-2);
}
.mb-3 {
    margin-bottom: var(--space-3);
}
.mb-4 {
    margin-bottom: var(--space-4);
}
.mb-5 {
    margin-bottom: var(--space-5);
}
.mb-6 {
    margin-bottom: var(--space-6);
}
.mb-8 {
    margin-bottom: var(--space-8);
}

.p-0 {
    padding: 0;
}
.p-1 {
    padding: var(--space-1);
}
.p-2 {
    padding: var(--space-2);
}
.p-3 {
    padding: var(--space-3);
}
.p-4 {
    padding: var(--space-4);
}
.p-5 {
    padding: var(--space-5);
}
.p-6 {
    padding: var(--space-6);
}
.p-8 {
    padding: var(--space-8);
}

.pt-0 {
    padding-top: 0;
}
.pt-1 {
    padding-top: var(--space-1);
}
.pt-2 {
    padding-top: var(--space-2);
}
.pt-3 {
    padding-top: var(--space-3);
}
.pt-4 {
    padding-top: var(--space-4);
}
.pt-5 {
    padding-top: var(--space-5);
}
.pt-6 {
    padding-top: var(--space-6);
}
.pt-8 {
    padding-top: var(--space-8);
}

.pb-0 {
    padding-bottom: 0;
}
.pb-1 {
    padding-bottom: var(--space-1);
}
.pb-2 {
    padding-bottom: var(--space-2);
}
.pb-3 {
    padding-bottom: var(--space-3);
}
.pb-4 {
    padding-bottom: var(--space-4);
}
.pb-5 {
    padding-bottom: var(--space-5);
}
.pb-6 {
    padding-bottom: var(--space-6);
}
.pb-8 {
    padding-bottom: var(--space-8);
}

/* Display */
.block {
    display: block;
}
.inline-block {
    display: inline-block;
}
.inline {
    display: inline;
}
.flex {
    display: flex;
}
.inline-flex {
    display: inline-flex;
}
.grid {
    display: grid;
}
.hidden {
    display: none;
}

/* Position */
.relative {
    position: relative;
}
.absolute {
    position: absolute;
}
.fixed {
    position: fixed;
}
.sticky {
    position: sticky;
}

/* Width & Height */
.w-full {
    width: 100%;
}
.w-auto {
    width: auto;
}
.h-full {
    height: 100%;
}
.h-auto {
    height: auto;
}

/* Border Radius */
.rounded-none {
    border-radius: 0;
}
.rounded-sm {
    border-radius: var(--rounded-sm);
}
.rounded {
    border-radius: var(--rounded-md);
}
.rounded-md {
    border-radius: var(--rounded-md);
}
.rounded-lg {
    border-radius: var(--rounded-lg);
}
.rounded-xl {
    border-radius: var(--rounded-xl);
}
.rounded-2xl {
    border-radius: var(--rounded-2xl);
}
.rounded-3xl {
    border-radius: var(--rounded-3xl);
}
.rounded-full {
    border-radius: var(--rounded-full);
}

/* Shadows */
.shadow-none {
    box-shadow: none;
}
.shadow-sm {
    box-shadow: var(--shadow-sm);
}
.shadow {
    box-shadow: var(--shadow-md);
}
.shadow-md {
    box-shadow: var(--shadow-md);
}
.shadow-lg {
    box-shadow: var(--shadow-lg);
}
.shadow-xl {
    box-shadow: var(--shadow-xl);
}
.shadow-2xl {
    box-shadow: var(--shadow-2xl);
}

/* =================================================================
   RESPONSIVE UTILITIES
   ================================================================= */

@media (min-width: 640px) {
    .sm\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .sm\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .sm\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .sm\:hidden {
        display: none;
    }
    .sm\:block {
        display: block;
    }
    .sm\:flex {
        display: flex;
    }
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .md\:hidden {
        display: none;
    }
    .md\:block {
        display: block;
    }
    .md\:flex {
        display: flex;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .lg\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lg\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .lg\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
    .lg\:hidden {
        display: none;
    }
    .lg\:block {
        display: block;
    }
    .lg\:flex {
        display: flex;
    }
}

@media (min-width: 1280px) {
    .xl\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .xl\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .xl\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .xl\:grid-cols-6 {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
    .xl\:grid-cols-12 {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.focus\:outline-none:focus {
    outline: none;
}

.focus\:ring:focus {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.focus\:ring-2:focus {
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.focus\:ring-4:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.3);
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

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

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out;
}
.animate-fade-in-down {
    animation: fadeInDown 0.5s ease-out;
}
.animate-slide-in-left {
    animation: slideInLeft 0.5s ease-out;
}
.animate-slide-in-right {
    animation: slideInRight 0.5s ease-out;
}
.animate-scale-in {
    animation: scaleIn 0.3s ease-out;
}

/* =================================================================
   REDUCED MOTION
   ================================================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .card {
        border: 1px solid #ccc !important;
        box-shadow: none !important;
    }
}

/* =================================================================
   GLOBAL COMPACT PROFESSIONAL SCALE (ALL PAGES)
   ================================================================= */

body[class$="-page"] .section-title {
    font-size: clamp(1.2rem, 2.2vw, 1.7rem) !important;
    margin-bottom: 0.6rem !important;
}

body[class$="-page"] .section-subtitle {
    font-size: clamp(0.78rem, 1.45vw, 0.9rem) !important;
    line-height: 1.45 !important;
}

body[class$="-page"] .hero-title {
    font-size: clamp(1.35rem, 3vw, 2rem) !important;
    line-height: 1.15 !important;
}

body[class$="-page"] .hero-subtitle {
    font-size: clamp(0.8rem, 1.5vw, 0.92rem) !important;
    line-height: 1.5 !important;
}

/* Единна hero скала: под 1024px без задължителен цял екран; на монитори — точно един визуален екран */
body[class$="-page"] .hero-section {
    min-height: clamp(520px, 78vh, 820px) !important;
    padding-top: clamp(96px, 10vw, 132px) !important;
}

@media (min-width: 1024px) {
    body[class$="-page"] .hero-section {
        min-height: 100vh !important;
        min-height: 100dvh !important;
    }
}

body[class$="-page"] .hero-content {
    padding-top: clamp(1.2rem, 3vw, 2.2rem) !important;
    padding-bottom: clamp(1.2rem, 3vw, 2.2rem) !important;
}

body[class$="-page"] p,
body[class$="-page"] li,
body[class$="-page"] .card p,
body[class$="-page"] .feature-card p,
body[class$="-page"] .industry-card p,
body[class$="-page"] .policy-card p {
    font-size: clamp(0.76rem, 1.35vw, 0.86rem) !important;
    line-height: 1.45 !important;
}

body[class$="-page"] h3,
body[class$="-page"] .card h3,
body[class$="-page"] .feature-card h3,
body[class$="-page"] .industry-card h3 {
    font-size: clamp(0.92rem, 1.7vw, 1.08rem) !important;
}

body[class$="-page"] .stat-number {
    font-size: clamp(1rem, 2vw, 1.35rem) !important;
}

body[class$="-page"] .stat-label,
body[class$="-page"] .pricing-note,
body[class$="-page"] small {
    font-size: clamp(0.68rem, 1.2vw, 0.78rem) !important;
}

body[class$="-page"] .btn,
body[class$="-page"] .btn-primary,
body[class$="-page"] .btn-secondary,
body[class$="-page"] .btn-outline {
    font-size: clamp(0.74rem, 1.25vw, 0.84rem) !important;
    padding: clamp(0.58rem, 1vw, 0.75rem) clamp(0.9rem, 1.8vw, 1.2rem) !important;
}

body[class$="-page"] .card,
body[class$="-page"] .feature-card,
body[class$="-page"] .industry-card,
body[class$="-page"] .policy-card,
body[class$="-page"] .pricing-card {
    padding: clamp(0.9rem, 1.8vw, 1.2rem) !important;
}

body[class$="-page"] .section {
    padding: clamp(2.5rem, 5.5vw, 4rem) 0 !important;
}

body[class$="-page"] .section-lg {
    padding: clamp(3rem, 6.5vw, 4.8rem) 0 !important;
}

body[class$="-page"] .section-sm {
    padding: clamp(1.8rem, 4vw, 3rem) 0 !important;
}

body[class$="-page"] .section-header {
    margin-bottom: clamp(1.2rem, 3vw, 2rem) !important;
}

body[class$="-page"] .section-subtitle {
    max-width: 72ch;
    margin-left: auto;
    margin-right: auto;
}

body[class$="-page"] .hero-container {
    gap: clamp(1.5rem, 4vw, 2.6rem) !important;
}

body[class$="-page"] .hero-subtitle,
body[class$="-page"] .hero-highlights {
    margin-bottom: clamp(0.9rem, 2.4vw, 1.6rem) !important;
}

body[class$="-page"] .hero-buttons {
    margin-bottom: clamp(1rem, 2.5vw, 1.7rem) !important;
}

/* Global interaction consistency */
body[class$="-page"] a,
body[class$="-page"] button,
body[class$="-page"] .btn,
body[class$="-page"] .card,
body[class$="-page"] .industry-card,
body[class$="-page"] .feature-card,
body[class$="-page"] .pricing-card {
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease,
        background-color 0.24s ease, color 0.24s ease;
}

body[class$="-page"] a:focus-visible,
body[class$="-page"] button:focus-visible,
body[class$="-page"] .btn:focus-visible {
    outline: 2px solid rgba(96, 165, 250, 0.9);
    outline-offset: 3px;
}

body[class$="-page"] .btn:hover:not(:disabled),
body[class$="-page"] .card:hover,
body[class$="-page"] .industry-card:hover,
body[class$="-page"] .feature-card:hover,
body[class$="-page"] .pricing-card:hover {
    transform: translateY(-2px);
}

/* Rhythm tuning by device class */
@media (min-width: 1440px) {
    body[class$="-page"] .section {
        padding: clamp(3rem, 5vw, 4.5rem) 0 !important;
    }

    body[class$="-page"] .section-header {
        margin-bottom: clamp(1.4rem, 2.4vw, 2.1rem) !important;
    }
}

@media (min-width: 992px) and (max-width: 1439px) {
    body[class$="-page"] .section {
        padding: clamp(2.6rem, 4.4vw, 3.8rem) 0 !important;
    }
}

@media (max-width: 767px) {
    body[class$="-page"] .section {
        padding: clamp(2.2rem, 8vw, 3rem) 0 !important;
    }

    body[class$="-page"] .section-header {
        margin-bottom: clamp(1rem, 4vw, 1.4rem) !important;
    }

    body[class$="-page"] .section-subtitle {
        max-width: 58ch;
    }
}

@media (prefers-reduced-motion: reduce) {
    body[class$="-page"] a,
    body[class$="-page"] button,
    body[class$="-page"] .btn,
    body[class$="-page"] .card,
    body[class$="-page"] .industry-card,
    body[class$="-page"] .feature-card,
    body[class$="-page"] .pricing-card {
        transition: none !important;
    }
}

/* =================================================================
   PROFESSIONAL BLOCK SEPARATORS (ALL PAGES)
   ================================================================= */

body[class$="-page"] main > section + section,
body[class$="-page"] > section + section {
    position: relative;
}

body[class$="-page"] main > section + section::after,
body[class$="-page"] > section + section::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--section-divider-max-width, min(94%, 1080px));
    height: var(--section-divider-height, 5px);
    border-radius: var(--section-divider-radius, 999px);
    transform: translate(-50%, -50%);
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(59, 130, 246, 0.15) 6%,
        rgba(96, 165, 250, 0.55) 22%,
        rgba(147, 197, 253, 0.98) 50%,
        rgba(45, 212, 191, 0.65) 78%,
        rgba(96, 165, 250, 0.55) 94%,
        transparent 100%
    );
    box-shadow:
        0 0 1px rgba(255, 255, 255, 0.12),
        0 0 28px rgba(59, 130, 246, 0.42),
        0 0 48px rgba(59, 130, 246, 0.18);
    pointer-events: none;
    z-index: 2;
}

body[class$="-page"] main > section + section::before,
body[class$="-page"] > section + section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: var(--section-divider-max-width, min(94%, 1080px));
    height: 28px;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        ellipse 85% 55% at 50% 0%,
        rgba(96, 165, 250, 0.28) 0%,
        rgba(59, 130, 246, 0.12) 42%,
        transparent 78%
    );
    pointer-events: none;
    z-index: 1;
}

/* Shared section header accent for cleaner visual hierarchy */
body[class$="-page"] .section-header {
    position: relative;
}

body[class$="-page"] .section-header::after {
    content: "";
    display: block;
    width: clamp(72px, 10vw, 128px);
    height: 5px;
    margin: 0.75rem auto 0;
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(96, 165, 250, 0.35) 15%,
        rgba(147, 197, 253, 1) 50%,
        rgba(45, 212, 191, 0.75) 85%,
        transparent
    );
    box-shadow:
        0 0 18px rgba(59, 130, 246, 0.4),
        0 0 36px rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
    body[class$="-page"] main > section + section::before,
    body[class$="-page"] > section + section::before {
        height: 24px;
    }

    body[class$="-page"] .section-header::after {
        width: clamp(64px, 18vw, 100px);
        height: 4px;
        margin-top: 0.6rem;
    }
}

/* (умишлено няма универсални линии между div-и) */

/* =================================================================
   CTA SECTION (same as index.html)
   ================================================================= */

.cta-section {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(11, 17, 32, 0.9), rgba(15, 118, 110, 0.7)),
        url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1600&q=70")
            center/cover no-repeat;
    color: rgba(226, 232, 240, 0.9);
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(11, 17, 32, 0.72);
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
}

.cta-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: clamp(1.5rem, 4vw, 2.5rem);
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1.35rem;
    padding: clamp(2.2rem, 5vw, 3.2rem);
    backdrop-filter: blur(20px);
    box-shadow: 0 40px 120px -55px rgba(15, 23, 42, 0.85);
}

.cta-content {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.cta-content .section-title {
    -webkit-text-fill-color: #f8fafc;
    background: none;
    color: #f8fafc;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(0.75rem, 3vw, 1rem);
    margin-block: clamp(1.5rem, 4vw, 2rem);
    justify-content: center;
    align-items: center;
}

.cta-buttons .btn {
    min-width: 210px;
    border-radius: 999px;
    font-size: 0.95rem;
    padding: 0.9rem 1.4rem;
}

.cta-buttons .btn-outline {
    border: 1.5px solid rgba(226, 232, 240, 0.55);
    color: rgba(226, 232, 240, 0.9);
}

.cta-buttons .btn-outline:hover {
    border-color: rgba(226, 232, 240, 0.75);
}

.cta-guarantee {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(226, 232, 240, 0.76);
    font-size: 0.9rem;
}

.cta-visual ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.6rem;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.85rem;
}

.cta-visual li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: center;
}

.cta-visual i {
    color: var(--success);
}

/* =================================================================
   BUTTONS ON DARK BACKGROUND
   ================================================================= */

.positioning-section .btn,
.packages-section .btn-outline,
.packages-section .btn-primary,
.resources-section .btn,
.cta-section .btn,
.calendly-section .btn {
    box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.6);
}

.packages-section .btn-outline {
    border: 1.5px solid rgba(226, 232, 240, 0.45);
    color: rgba(226, 232, 240, 0.9);
}

.packages-section .btn-outline:hover {
    border-color: rgba(226, 232, 240, 0.7);
    color: #fff;
}

.packages-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border: none;
}

.packages-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.resources-section .btn-secondary {
    background: rgba(59, 130, 246, 0.18);
    border: 1.5px solid rgba(148, 163, 184, 0.35);
    color: #e0f2fe;
    font-size: 0.95rem;
}

.resources-section .btn-secondary:hover {
    background: rgba(59, 130, 246, 0.28);
    border-color: rgba(148, 163, 184, 0.55);
}

.calendly-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border: none;
}

.calendly-section .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 30px var(--accent-glow);
}

.cta-section .btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    border: none;
}

.cta-section .btn-secondary {
    background: rgba(15, 23, 42, 0.35);
    border: 1.5px solid rgba(148, 163, 184, 0.45);
    color: rgba(226, 232, 240, 0.9);
}

.cta-section .btn-secondary:hover {
    border-color: rgba(226, 232, 240, 0.7);
    color: #fff;
}

.cta-section .btn-outline {
    border: 1.5px solid rgba(226, 232, 240, 0.55);
    color: rgba(226, 232, 240, 0.9);
}

.cta-section .btn-outline:hover {
    border-color: rgba(226, 232, 240, 0.75);
    color: #fff;
}

/* =================================================================
   MOBILE-FRIENDLY (Google / PageSpeed мобилни насоки)
   ================================================================= */

/* По-бърз отговор на докосване; без двоен тап за zoom на контроли */
button,
[role="button"],
input[type="button"],
input[type="submit"],
input[type="reset"],
a.btn,
a[class*="btn-"] {
    touch-action: manipulation;
}

@media (max-width: 767px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
    textarea,
    select {
        font-size: 1rem;
        line-height: 1.5;
    }
}
