﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.navbar-custom {
    padding: 1rem 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: -0.5px;
}

.logo-accent {
    background: linear-gradient(135deg, #e94560 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link-custom {
    color: #1a1a2e;
    font-weight: 500;
    margin: 0 0.5rem;
    transition: all 0.3s;
    position: relative;
}

    .nav-link-custom:hover {
        color: #e94560;
    }

    .nav-link-custom::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #e94560, #ff6b6b);
        transition: width 0.3s;
    }

    .nav-link-custom:hover::after {
        width: 100%;
    }

.btn-outline-custom {
    border: 2px solid #e94560;
    background: transparent;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: #e94560;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

    .btn-outline-custom:hover {
        background: linear-gradient(135deg, #e94560, #ff6b6b);
        border-color: transparent;
        color: white;
        transform: translateY(-2px);
    }

.btn-primary-custom {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    color: white;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
}

    .btn-primary-custom:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(233, 69, 96, 0.3);
        color: white;
    }

.hero-section {
    margin-top: 80px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, rgba(233,69,96,0.1) 0%, rgba(255,107,107,0.1) 100%);
    clip-path: polygon(25% 0%, 100% 0%, 100% 100%, 0% 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
}

.search-container {
    background: white;
    border-radius: 60px;
    padding: 0.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.search-input {
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 60px;
}

    .search-input:focus {
        outline: none;
        box-shadow: none;
    }

.search-btn {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 60px;
    color: white;
    font-weight: 600;
    width: 100%;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    text-align: center;
    margin: 3rem 0 2rem 0;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.category-item {
    background: white;
    padding: 1rem;
    text-align: center;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
}

    .category-item:hover {
        transform: translateY(-5px);
        border-color: #e94560;
        box-shadow: 0 10px 20px rgba(233,69,96,0.1);
    }

.category-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.category-name {
    font-weight: 600;
    color: #1a1a2e;
    font-size: 0.9rem;
    word-break: break-word;
}

.tutor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.tutor-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    position: relative;
    display: flex;
    flex-direction: column;
}

    .tutor-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.1);
        border-color: transparent;
    }

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 2;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .card-badge {
        white-space: normal;
        font-size: 0.6rem;
        top: 10px;
        right: 10px;
    }
}

.card-image {
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
    flex-shrink: 0;
}

    .card-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.3s;
    }

.tutor-card:hover .card-image img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tutor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 0.25rem;
    word-break: break-word;
}

.tutor-subject {
    color: #e94560;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    word-break: break-word;
}

.rating-stars {
    color: #ffc107;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.rating-value {
    color: #6c757d;
    margin-left: 0.5rem;
}

.price {
    font-size: 1.3rem;
    font-weight: 800;
    color: #e94560;
    margin: 0.75rem 0;
    flex-shrink: 0;
}

    .price span {
        font-size: 0.8rem;
        font-weight: normal;
        color: #6c757d;
    }

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 0.75rem;
    flex-shrink: 0;
}

.reviews-count {
    color: #6c757d;
    font-size: 0.8rem;
}

.btn-card {
    background: transparent;
    border: 2px solid #e94560;
    padding: 0.4rem 1.2rem;
    border-radius: 30px;
    color: #e94560;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s;
    cursor: pointer;
}

    .btn-card:hover {
        background: linear-gradient(135deg, #e94560, #ff6b6b);
        border-color: transparent;
        color: white;
    }

.footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0 1.5rem 0;
    margin-top: 3rem;
}

    .footer a {
        color: rgba(255,255,255,0.7);
        text-decoration: none;
        transition: color 0.3s;
    }

        .footer a:hover {
            color: #ff6b6b;
        }

    .footer ul {
        padding-left: 0;
    }

    .footer li {
        list-style: none;
        margin-bottom: 0.5rem;
    }

/* Мобильная адаптация */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .header .navbar-custom {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-section {
        margin-top: 120px;
        padding: 2rem 0;
    }

    .hero-title {
        font-size: 1.8rem;
        text-align: center;
    }

    .hero-subtitle {
        text-align: center;
    }

    .search-container {
        margin: 0 1rem;
    }

    .search-input {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin: 2rem 0 1.5rem 0;
    }

    .category-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }

    .category-item {
        padding: 0.75rem;
    }

    .category-icon {
        font-size: 1.5rem;
    }

    .category-name {
        font-size: 0.75rem;
    }

    .tutor-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }

    .tutor-card {
        max-width: 100%;
    }

    .card-image {
        height: 200px;
    }

    .tutor-name {
        font-size: 1.1rem;
    }

    .price {
        font-size: 1.2rem;
    }

    .footer {
        text-align: center;
    }

        .footer .row > div {
            margin-bottom: 1.5rem;
        }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 1rem;
    }

    .tutor-name {
        font-size: 1rem;
    }

    .price {
        font-size: 1.1rem;
    }

    .btn-card {
        padding: 0.3rem 1rem;
        font-size: 0.75rem;
    }

    .reviews-count {
        font-size: 0.7rem;
    }
}
.auth-buttons {
    display: flex;
    align-items: center;
}

.btn-user-dropdown {
    background: linear-gradient(135deg, #e94560, #ff6b6b);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    color: white;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

    .btn-user-dropdown:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(233,69,96,0.3);
    }

    .btn-user-dropdown::after {
        display: none;
    }

.user-avatar {
    background: rgba(255,255,255,0.2);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-name {
    font-size: 0.9rem;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 15px;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.2s;
}

    .dropdown-item:hover {
        background: #f8f9fa;
        color: #e94560;
    }

@media (max-width: 768px) {
    .user-name {
        display: none;
    }

    .btn-user-dropdown {
        padding: 0.5rem;
    }
}