/* Local Nekst Font for Headings */
@font-face {
    font-family: 'Nekst';
    src: local('Nekst SemiBold'), local('Nekst-SemiBold'),
        url('https://bloxy.school/fonts/Nekst-SemiBold-Web.woff2') format('woff2'),
        url('https://bloxy.school/fonts/Nekst-SemiBold-Web.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #F9FBFD;
}

/* Custom Colors */
:root {
    --bloxy-yellow: #FFC73A;
    --bloxy-orange: #FC7557;
    --bloxy-blue: #2D65F2;
    --bloxy-bg: #F9FBFD;
    --bloxy-black: #000000;
    --bloxy-gray: #6b7280;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Nekst', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
    line-height: 1.2;
}

/* Nekst Font Class */
.font-nekst {
    font-family: 'Nekst', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    font-weight: 600 !important;
}

/* Ensure body text uses Manrope */
p, span, div, a, li, td, th {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
}

/* Custom Components */
.bloxy-card {
    background: white;
    border-radius: 24px;
    padding: 2rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.bloxy-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Universal Button Styles */
.bloxy-button {
    display: inline-block;
   padding: 1rem 2rem;
   border-radius: 0.5rem;
    font-family: 'Nekst', 'Manrope', sans-serif !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    text-align: center;
    line-height: 1.2;
}

/* Primary Button (Yellow) */
.bloxy-button-primary {
    background-color: var(--bloxy-yellow);
    color: var(--bloxy-black);
}

.bloxy-button-primary:hover {
    background-color: #e6b333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 199, 58, 0.3);
}

/* Secondary Button (Black) */
.bloxy-button-secondary {
    background-color: var(--bloxy-black);
    color: white;
}

.bloxy-button-secondary:hover {
    background-color: #374151;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Orange Button */
.bloxy-button-orange {
    background-color: var(--bloxy-orange);
    color: white;
}

.bloxy-button-orange:hover {
    background-color: #e55a3c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(252, 117, 87, 0.3);
}

/* Blue Button */
.bloxy-button-blue {
    background-color: var(--bloxy-blue);
    color: white;
}

.bloxy-button-blue:hover {
    background-color: #1e40af;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(45, 101, 242, 0.3);
}

/* Green Button */
.bloxy-button-green {
    background-color: #10b981;
    color: white;
}

.bloxy-button-green:hover {
    background-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
}

/* Large Button */
.bloxy-button-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
}

/* Gradient Backgrounds */
.bloxy-gradient-yellow {
    background: linear-gradient(135deg, var(--bloxy-yellow) 0%, var(--bloxy-orange) 100%);
}

.bloxy-gradient-blue {
    background: linear-gradient(135deg, var(--bloxy-blue) 0%, #1e40af 100%);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bloxy-card {
        padding: 1.5rem;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* Уменьшение вертикальных отступов на мобильных */
    .py-20 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .py-16 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Focus States */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--bloxy-yellow);
    outline-offset: 2px;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: var(--bloxy-yellow);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #e6b333;
}

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