:root {
    --primary: #4361ee;
    --primary-dark: #3a0ca3;
    --accent: #f72585;
    --light: #f8f9fa;
    --dark: #212529;
    --gradient: linear-gradient(135deg, #4361ee 0%, #3a0ca3 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 🔥 Шапка */
header {
    background: white;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
}

.logo:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.1);
    transform: translateY(-2px);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient);
    color: white;
    border: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

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

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* 🌟 Главный экран */
.hero {
    position: relative;
    background-image: url("../images/index/unnamed.jpg");
    background-size: cover;          /* растягивает картинку на весь блок */
    background-position: center;     /* центрируем */
    background-repeat: no-repeat;    /* не повторяем */
}

/* затемняющий overlay, чтобы текст был читаемым */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45); /* подстрой под яркость картинки */
    z-index: 1;
}

/* контейнер текста поверх фона */
.hero .container {
    position: relative;
    z-index: 2;
}

/* делаем заголовок белым для контраста */
.hero-title {
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}
.hero-subtitle {
    color: #e5e7eb;
}

.hero-buttons .hero-btn {
    min-height: 50px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* После загрузки страницы */
.hero.show .hero-title,
.hero.show .hero-subtitle,
.hero.show .hero-btn {
    opacity: 1;
    transform: translateY(0);
}

/* Убираем фон для авторизованных пользователей */
.hero.hero-no-bg {
    background-image: none !important;
    background-color: #f5f7fa !important; /* Цвет как у остального body */
    min-height: auto !important;         /* Убираем лишнюю высоту */
    padding: 40px 0;                     /* Добавляем аккуратные отступы */
}

/* Скрываем затемняющий overlay (тот самый серый цвет) */
.hero.hero-no-bg::before {
    display: none !important;
}

/* Настраиваем заголовки, так как на светлом фоне белый текст не виден */
.hero.hero-no-bg .hero-title {
    color: var(--dark) !important;
    text-shadow: none !important;
}

.hero.hero-no-bg .hero-subtitle {
    color: #4b5563 !important; /* Тёмно-серый для подзаголовка */
}

/* 📊 Особенности */
.features {
    padding: 100px 0;
    background: white;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--primary);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--accent);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* 🦶 Подвал */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    color: var(--accent);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #aaa;
    font-size: 0.9rem;
}

/* ===============================
   Блок приветствия для авторизованных
   =============================== */
.dashboard-welcome {
    background-color: #ffffff;       /* белый фон */
    border-radius: 1rem;             /* скругление углов */
    padding: 2rem;                   /* внутренние отступы */
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); /* лёгкая тень */
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
}

.dashboard-welcome h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937; /* тёмно-серый */
    margin-bottom: 0.5rem;
}

.dashboard-welcome p {
    font-size: 1rem;
    color: #374151; /* серый текст */
    line-height: 1.5;
}

.dashboard-welcome .text-red-600 {
    color: #dc2626; /* красный акцент для предупреждения */
    font-weight: 600;
}

/* ===============================
   Краткий путеводитель
   =============================== */
.dashboard-guide {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f9ff;      /* светло-голубой фон */
    border: 1px solid #bfdbfe;       /* голубая граница */
    border-radius: 1rem;
    padding: 1.5rem 2rem;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.dashboard-guide h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e40af; /* насыщенный синий */
    margin-bottom: 1rem;
}

.dashboard-guide ul {
    list-style-type: disc;
    padding-left: 1.5rem;
}

.dashboard-guide li {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 0.5rem;
}

.dashboard-guide a {
    color: #3b82f6; /* синий для ссылок */
    text-decoration: underline;
}

.dashboard-guide p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #374151;
}

.progress-bar {
    background-color: #e5e7eb;
    height: 4px;
    border-radius: 9999px;
    overflow: hidden;
}
.progress {
    transition: width 0.3s ease-in-out;
}
.step.active {
    background-color: #e0f2fe;
    border: 1px solid #2563eb;
}
.step-content {
    transition: max-height 0.3s ease-in-out;
}

/* Улучшение иконок в футере */
.footer-column ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.footer-column ul li a i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.footer-column ul li a:hover i {
    transform: scale(1.2);
    color: var(--accent) !important; /* Иконка меняет цвет на розовый при наведении */
}

/* 📱 Адаптивность */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 280px;
    }
}