* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f766e;
    --primary-dark: #0b3b2f;
    --primary-light: #14b8a6;
    --secondary: #ff8c42;
    --secondary-dark: #e67e22;
    --accent: #2dd4bf;
    --dark: #1e293b;
    --light: #f8fafc;
    --gray: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --gradient: linear-gradient(135deg, #0f766e 0%, #0b3b2f 100%);
    --gradient-secondary: linear-gradient(135deg, #ff8c42 0%, #e67e22 100%);
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    overflow-x: hidden;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(45, 212, 191, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(45, 212, 191, 0.6);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header - Стеклянный эффект */
header {
    background: rgba(11, 59, 47, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(11, 59, 47, 0.98);
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    background: linear-gradient(135deg, #fff 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: float 3s ease-in-out infinite;
}

.logo span {
    font-size: 12px;
    opacity: 0.9;
    display: block;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 32px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

nav a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--secondary);
    transition: width 0.3s ease;
}

nav a:hover::before {
    width: 100%;
}

nav a:hover {
    color: var(--secondary);
}

/* Hero секция с параллаксом */
.hero {
    background: linear-gradient(135deg, rgba(15, 118, 110, 0.95) 0%, rgba(11, 59, 47, 0.95) 100%), url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" opacity="0.1"><path fill="white" d="M20,20 L80,20 L80,80 L20,80 Z"/><circle cx="50" cy="50" r="10"/></svg>');
    background-size: cover;
    background-attachment: fixed;
    color: white;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.hero h2 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    animation: fadeInUp 1s ease;
    background: linear-gradient(135deg, #fff, var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 20px;
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Кнопки с 3D эффектом */
.btn {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 140, 66, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-secondary:hover {
    background: white;
    color: var(--primary-dark);
    transform: translateY(-2px);
}

/* Статистика с карточками */
.stats {
    padding: 80px 0;
    background: white;
}

.stats .container {
    display: flex;
    justify-content: space-between;
    gap: 30px;
}

.stat-card {
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    padding: 40px 30px;
    border-radius: 20px;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stat-card h3 {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.stat-card p {
    color: var(--gray);
    font-size: 16px;
}

/* Преимущества с анимацией */
.advantages {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 80px 0;
}

.advantages h2 {
    text-align: center;
    font-size: 36px;
    margin-bottom: 48px;
    color: var(--dark);
}

.advantages-grid {
    display: flex;
    gap: 30px;
    margin-top: 20px;
}

.advantage {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    flex: 1;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.advantage::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.advantage:hover::after {
    width: 100%;
}

.advantage:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.advantage h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary);
}

.advantage p {
    color: var(--gray);
    line-height: 1.8;
}

/* Формы с современным дизайном */
.form-container {
    max-width: 500px;
    margin: 80px auto;
    padding: 40px;
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.6s ease;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.form-container input,
.form-container select,
.form-container textarea {
    width: 100%;
    padding: 14px 16px;
    margin: 12px 0;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.form-container input:focus,
.form-container select:focus,
.form-container textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.1);
    transform: translateY(-1px);
}

.form-container input:hover,
.form-container select:hover {
    border-color: var(--primary-light);
}

.form-container button {
    width: 100%;
    margin-top: 20px;
}

/* Личный кабинет */
.dashboard {
    padding: 60px 0;
    background: var(--light);
}

.dashboard h2 {
    font-size: 36px;
    margin-bottom: 30px;
    color: var(--dark);
}

.user-info {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.user-info p {
    padding: 10px;
    background: var(--light);
    border-radius: 10px;
}

/* Карточки объявлений */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.listing-card {
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.listing-card h3 {
    font-size: 22px;
    color: var(--primary);
    margin-bottom: 15px;
}

.listing-card p {
    margin: 8px 0;
    color: var(--gray);
}

.status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
}

.status.active {
    background: #d1fae5;
    color: var(--success);
}

.status.sold {
    background: #fee2e2;
    color: var(--danger);
}

/* Footer с градиентом */
footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--gray);
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .stats .container,
    .advantages-grid {
        flex-direction: column;
    }
    
    nav ul {
        flex-direction: column;
        gap: 15px;
        margin-top: 20px;
    }
    
    .logo {
        text-align: center;
        width: 100%;
    }
    
    header .container {
        flex-direction: column;
    }
    
    .form-container {
        margin: 40px 20px;
        padding: 30px 20px;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Анимация загрузки страницы */
body {
    animation: fadeInUp 0.6s ease;
}

/* Скроллбар */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Скелетон загрузки для изображений */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
    border-radius: 10px;
}

/* Добавьте этот JavaScript для эффекта скролла */

/* Дополнительные стили для новых страниц */
.page-content {
    min-height: calc(100vh - 300px);
    padding: 60px 0;
}

.page-header {
    text-align: center;
    margin-bottom: 50px;
}

.page-header h1 {
    font-size: 42px;
    color: var(--dark);
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    color: var(--gray);
}

/* About page styles */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.values-grid, .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.value-item, .stat-item {
    text-align: center;
    padding: 30px;
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.value-icon {
    font-size: 40px;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
}

.contact-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
}

.contact-card a {
    color: white;
}

/* Auth pages */
.auth-container {
    max-width: 550px;
    margin: 0 auto;
}

.auth-card {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-xl);
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-icon {
    font-size: 60px;
    margin-bottom: 15px;
}

.auth-header h2 {
    color: var(--dark);
    margin-bottom: 10px;
}

.auth-header p {
    color: var(--gray);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
    border-color: var(--primary);
    outline: none;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-block {
    width: 100%;
}

.alert {
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.alert-error {
    background: #fee2e2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.demo-info, .benefits {
    margin-top: 30px;
    padding: 20px;
    background: var(--light);
    border-radius: 12px;
}

.benefits ul {
    margin-top: 10px;
    list-style: none;
}

.benefits li {
    margin: 8px 0;
}

/* Filters */
.filters-section {
    background: white;
    padding: 25px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: var(--shadow);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.filter-select {
    padding: 10px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    animation: fadeInUp 0.3s ease;
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border-radius: 20px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .about-grid, .form-row {
        grid-template-columns: 1fr;
    }
    
    .auth-card {
        padding: 25px;
    }
}