/* ===============================
   1. РЕГИСТРАЦИЯ ЛОКАЛЬНЫХ ШРИФТОВ
   Добавлен font-display: swap для мгновенного появления текста
================================ */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Black.woff2') format('woff2');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

/* ===============================
   2. ГЛОБАЛЬНЫЕ СТИЛИ
================================ */
:root {
    --brand-orange: #FF8C00;
    --brand-dark: #1e293b;
    --brand-darker: #0f172a;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
}

html, body {
    font-family: var(--font-main) !important;
    font-style: normal !important; /* Глобально выпрямляем все шрифты */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    
    /* Жесткая защита от горизонтального скролла (Lighthouse Fix) */
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Принудительно ровные заголовки и жирный текст */
h1, h2, h3, h4, .font-black, .font-bold {
    font-family: var(--font-main) !important;
    font-weight: 900 !important;
    font-style: normal !important; 
    letter-spacing: -0.04em !important;
    overflow-wrap: break-word; /* Перенос длинных слов, чтобы не раздувать экран */
}

/* Полное удаление курсива даже из иконок и тегов */
italic, i, .italic, em {
    font-style: normal !important;
}

.text-brand { color: var(--brand-orange); }
.bg-brand { background-color: var(--brand-orange); }

/* ФОН HERO */
.hero-gradient { 
    background: radial-gradient(circle at top right, var(--brand-dark) 0%, var(--brand-darker) 100%); 
}

/* Класс для Google Accessibility (скрытые подписи для дикторов) */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ===============================
   3. СТИЛИ ВИДЖЕТА МАСТЕРОВ
================================ */
.master-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.master-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.status-pulse {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.4; }
    100% { transform: scale(1); opacity: 1; }
}

.hidden-card {
    display: none !important;
}

.filter-select {
    appearance: none;
    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/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
}

/* ===============================
   4. LIVE REVIEWS (Accessibility Fix)
================================ */
.live-reviews {
    background: #f8fafc;
    border-radius: 24px;
    padding: 24px;
    margin: 40px 0;
    border: 1px solid #e5e7eb;
}

.live-reviews h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #0f172a;
}

.review-item {
    background: #ffffff;
    border-radius: 18px;
    padding: 16px 18px;
    margin-bottom: 14px;
    border: 1px solid #e5e7eb;
}

.review-text {
    font-size: 14px;
    font-weight: 600;
    color: #020617; /* Глубокий черный для контрастности */
    line-height: 1.5;
}

.review-date {
    margin-top: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #475569; /* Затемненный серый для прохождения теста Lighthouse */
}

/* ===============================
   5. МОБИЛЬНАЯ АДАПТАЦИЯ
================================ */
@media (max-width: 640px) {
    .live-reviews {
        padding: 16px;
        border-radius: 18px;
    }
    .review-text {
        font-size: 13px;
    }
    /* Убираем лишние отступы, чтобы не провоцировать скролл */
    .max-w-7xl {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}