/*
Theme Name: APOSTLES GROUP
Description: Современная тема для консалтингового агентства полного цикла
Version: 1.0
Author: Your Name
*/

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color-scheme: dark;
}

body {
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Grid система */
.grid {
    display: grid;
}

.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));
}

.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-16 { gap: 4rem; }

/* Flexbox */
.flex {
    display: flex;
}

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

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

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

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

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

.flex-shrink-0 {
    flex-shrink: 0;
}

.space-x-2 > * + * { margin-left: 0.5rem; }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: 1rem; }
.space-x-6 > * + * { margin-left: 1.5rem; }
.space-x-8 > * + * { margin-left: 2rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }

/* Позиционирование */
.relative {
    position: relative;
}

.absolute {
    position: absolute;
}

.fixed {
    position: fixed;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.top-0 { top: 0; }
.right-0 { right: 0; }
.left-0 { left: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Размеры */
.w-full { width: 100%; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-16 { width: 4rem; }
.w-24 { width: 6rem; }
.w-32 { width: 8rem; }

.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-48 { height: 12rem; }
.h-64 { height: 16rem; }
.h-full { height: 100%; }

.min-h-screen {
    min-height: 100vh;
}

.max-w-md { max-width: 28rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-none { max-width: none; }

/* Отступы */
.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mr-2 { margin-right: 0.5rem; }
.mr-3 { margin-right: 0.75rem; }
.-mt-1 { margin-top: -0.25rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.pt-8 { padding-top: 2rem; }
.pt-16 { padding-top: 4rem; }
.pt-32 { padding-top: 8rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-4 { padding-left: 1rem; }

/* Типографика */
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.text-6xl { font-size: 3.75rem; }
.text-7xl { font-size: 4.5rem; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

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

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Цвета - Используем CSS переменные */
.text-foreground { color: hsl(var(--foreground)); }
.text-muted-foreground { color: hsl(var(--muted-foreground)); }
.text-primary { color: hsl(var(--primary)); }
.text-primary-foreground { color: hsl(var(--primary-foreground)); }
.text-secondary-foreground { color: hsl(var(--secondary-foreground)); }

.bg-background { background-color: hsl(var(--background)); }
.bg-secondary { background-color: hsl(var(--secondary)); }
.bg-primary { background-color: hsl(var(--primary)); }
.bg-primary\/20 { background-color: hsl(var(--primary) / 0.2); }

/* Границы */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-b { border-bottom-width: 1px; }
.border-border { border-color: hsl(var(--border)); }
.border-primary\/50 { border-color: hsl(var(--primary) / 0.5); }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Эффекты - Используем CSS переменные */
.shadow-card {
    box-shadow: var(--shadow-card);
}

.shadow-glow {
    box-shadow: var(--shadow-glow);
}

.backdrop-blur-md {
    backdrop-filter: blur(12px);
}

.overflow-hidden {
    overflow: hidden;
}

/* Переходы - Используем CSS переменные */
.transition-smooth {
    transition: var(--transition-smooth);
}

/* Градиенты - ИСПРАВЛЕНО: Используем CSS переменные */
.gradient-primary {
    background: var(--gradient-primary);
}

.gradient-hero {
    background: var(--gradient-hero);
}

.bg-gradient-hero {
    background: var(--gradient-hero);
}

.gradient-card {
    background: var(--gradient-card);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

.text-transparent {
    color: transparent;
}

/* Кнопки с правильными вариантами */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: hsl(var(--primary) / 0.9);
}

.btn-hero {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: var(--transition-bounce);
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    color: hsl(var(--primary-foreground));
    text-decoration: none;
    border: 1px solid hsl(var(--primary) / 0.2);
    cursor: pointer;
    box-shadow: var(--shadow-glow);
}

.btn-hero:hover {
    box-shadow: var(--shadow-elegant);
    transform: scale(1.05);
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    height: 2.5rem;
    padding: 0.5rem 1rem;
    background: var(--gradient-card);
    color: hsl(var(--foreground));
    border: 1px solid hsl(var(--border));
    text-decoration: none;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.btn-premium:hover {
    background-color: hsl(var(--secondary) / 0.5);
    border-color: hsl(var(--primary) / 0.5);
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    height: 2.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
    color: hsl(var(--foreground));
    text-decoration: none;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: hsl(var(--muted));
}

/* Размеры кнопок */
.btn-sm {
    height: 2.25rem;
    border-radius: 0.375rem;
    padding: 0 0.75rem;
}

.btn-lg {
    height: 2.75rem;
    border-radius: 0.375rem;
    padding: 0 2rem;
}

.btn-xl {
    height: 3.5rem;
    border-radius: 0.5rem;
    padding: 0 3rem;
    font-size: 1rem;
}

/* Формы с правильными стилями */
.form-input, .form-textarea, .form-select {
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    border: 1px solid hsl(var(--border));
    background-color: hsl(var(--background));
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    color: hsl(var(--foreground));
    transition: var(--transition-smooth);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: hsl(var(--muted-foreground));
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: hsl(var(--ring));
    box-shadow: 0 0 0 2px hsl(var(--ring) / 0.2);
}

.form-textarea {
    min-height: 5rem;
    resize: none;
}

@media (min-width: 768px) {
    .form-input, .form-textarea, .form-select {
        font-size: 0.875rem;
    }
}

/* Скрытие элементов */
.hidden {
    display: none;
}

/* Адаптивность - ИСПРАВЛЕННЫЕ МЕДИА-ЗАПРОСЫ */
@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\\:flex {
        display: flex;
    }
    
    .md\\:hidden {
        display: none;
    }
    
    .md\\:flex-row {
        flex-direction: row;
    }
    
    .md\\:text-5xl {
        font-size: 3rem;
    }
    
    .md\\:text-6xl {
        font-size: 3.75rem;
    }
    
    .md\\:text-7xl {
        font-size: 4.5rem;
    }
    
    .md\\:text-2xl {
        font-size: 1.5rem;
    }
    
    .md\\:col-span-2 {
        grid-column: span 2 / span 2;
    }
    
    .md\\:mt-0 {
        margin-top: 0;
    }
}

@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));
    }
}

@media (max-width: 767px) {
    .md\\:hidden {
        display: none;
    }
}

/* Дополнительные классы */
.font-display {
    font-family: var(--font-display);
}

.no-underline {
    text-decoration: none;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.inline-flex {
    display: inline-flex;
}

/* Анимации */
.blur-xl {
    filter: blur(24px);
}

.blur-2xl {
    filter: blur(40px);
}

.opacity-10 {
    opacity: 0.1;
}

.opacity-20 {
    opacity: 0.2;
}

.opacity-50 {
    opacity: 0.5;
}

/* WordPress специфичные стили */
a {
    color: inherit;
    text-decoration: none;
}

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

input, textarea, select, button {
    font-family: inherit;
}

button {
    cursor: pointer;
    border: none;
    background: none;
}

/* Группы для hover эффектов */
.group:hover .group-hover\\:text-primary {
    color: hsl(var(--primary));
}

.group:hover .group-hover\\:shadow-glow {
    box-shadow: var(--shadow-glow);
}

/* Дополнительные утилиты */
.justify-start {
    justify-content: flex-start;
}

.flex-1 {
    flex: 1 1 0%;
}

.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

.ml-2 { margin-left: 0.5rem; }

.resize-none {
    resize: none;
}

@media (max-width: 767px) {
    /* Hero заголовок на мобильных */
    .hero-title {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    /* Подзаголовок на мобильных */
    .hero-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.4 !important;
        margin-bottom: 2rem !important;
    }
    
    /* Контейнер hero на мобильных */
    .hero-container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    /* Статистика на мобильных */
    .hero-stats {
        gap: 1rem !important;
        margin-top: 2rem !important;
        padding-top: 1rem !important;
    }
    
    .hero-stats .text-3xl,
    .hero-stats .md\\:text-4xl {
        font-size: 1.875rem !important;
    }
    
    /* Кнопка на мобильных */
    .btn-hero {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important;
    }
}