:root {
    --black: #000000;
    --white: #ffffff;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-300: #cccccc;
    --gray-400: #999999;
    --gray-500: #666666;
    --gray-600: #333333;
    --accent: #4A90E2;
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--gray-600);
    background-color: var(--white);
}

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

/* Header */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--black);
    letter-spacing: 2px;
    text-decoration: none;
}

.logo:hover {
    color: var(--black);
}

.logo svg {
    transition: transform 0.3s ease;
}

.logo:hover svg {
    transform: rotate(45deg);
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--gray-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--black);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    text-decoration: none !important;
}

/* Hero Section */
.hero {
    padding: 150px 0 100px;
    background-color: var(--gray-100);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, var(--gray-100) 25%, transparent 25%),
                linear-gradient(-45deg, var(--gray-100) 25%, transparent 25%),
                linear-gradient(45deg, transparent 75%, var(--gray-200) 75%),
                linear-gradient(-45deg, transparent 75%, var(--gray-200) 75%);
    background-size: 20px 20px;
    opacity: 0.1;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 20px;
}

.hero-text {
    font-size: 18px;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--black);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    background-color: var(--gray-600);
    transform: translateY(-2px);
}

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

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

/* Sections */
.section-title {
    font-size: 36px;
    color: var(--black);
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 2px;
    background-color: var(--black);
    margin: 10px auto;
}

.catalog {
    padding: 150px 0 100px;
}

.contact {
    padding: 100px 0;
    background-color: var(--gray-100);
    text-align: center;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 30px 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav .nav-link:not(.profile-link) {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-text {
        font-size: 16px;
    }

    .container {
        margin-left: auto;
        margin-right: auto;
        padding-left: 8px;
        padding-right: 8px;
        box-sizing: border-box;
    }
}

/* Profile Link */
.profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--gray-100);
    transition: all 0.3s ease;
}

.profile-link:hover {
    background-color: var(--gray-200);
}

.profile-link svg {
    width: 24px;
    height: 24px;
    color: var(--gray-600);
}

/* Profile Page */
.profile {
    padding: 150px 0 100px;
    min-height: calc(100vh - 200px);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 50px;
    padding: 30px;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--gray-200);
}

.avatar-initials {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
}

.profile-info {
    flex: 1;
    padding-right: 20px;
}

.profile-name {
    font-size: 24px;
    color: var(--black);
    margin-bottom: 10px;
    line-height: 1.2;
}

.profile-email {
    font-size: 16px;
    color: var(--gray-500);
    line-height: 1.4;
}

.profile-sections {
    display: grid;
    gap: 30px;
}

.profile-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
}

.library-grid, .orders-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    flex: 1;
    min-height: 200px;
    position: relative;
}

.empty-state {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--gray-500);
    width: 100%;
}

.empty-state p {
    margin: 0;
    font-size: 18px;
    color: var(--gray-500);
}

.auth-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-buttons .btn {
    background-color: var(--white);
    color: var(--black);
    border: 2px solid var(--black);
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.auth-buttons .btn:hover {
    background-color: var(--black);
    color: var(--white);
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .profile-info {
        padding-right: 0;
        margin-bottom: 20px;
    }

    .auth-buttons {
        flex-direction: column;
        width: 100%;
    }

    .auth-buttons .btn {
        width: 100%;
    }

    .profile-avatar {
        margin: 0 auto;
    }

    .library-grid, .orders-list {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* NFT Grid */
.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.nft-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.nft-card:hover {
    transform: translateY(-5px);
}

.nft-image {
    position: relative;
    width: 100%;
    min-height: 400px;
    background: transparent;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.nft-iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
    border-radius: 8px;
    background: transparent;
    overflow: hidden;
}

.nft-info {
    padding: 20px;
}

.nft-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 15px;
}

.nft-details {
    margin-bottom: 20px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 14px;
}

.detail-label {
    color: var(--gray-500);
}

.detail-value {
    color: var(--black);
    font-weight: 500;
}

.nft-gift-info {
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--gray-500);
}

.gift-link {
    color: var(--accent);
    text-decoration: none;
}

.gift-link:hover {
    text-decoration: underline;
}

.gift-date {
    margin-top: 5px;
}

.nft-card .btn {
    width: 100%;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nft-grid {
        grid-template-columns: 1fr;
    }
}

.nft-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    background: #000;
}

.nft-image:hover .nft-video {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}

.nft-image iframe {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    border-radius: 8px;
    background: transparent;
}

.nft-image .telegram-post {
    width: 100%;
    height: 100%;
    min-height: 300px;
    border: none;
    border-radius: 8px;
    background: transparent;
}

/* Стили для страницы заказа */
.product-preview {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    margin: 0 auto 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.product-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-preview lottie-player {
    width: 100%;
    height: 100%;
}

.order-form {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: black;
    outline: none;
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: black;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #333;
}

.product-info {
    text-align: center;
    margin-bottom: 30px;
}

.product-title {
    font-size: 24px;
    margin-bottom: 10px;
}

.product-price {
    font-size: 20px;
    color: #666;
}

@media (max-width: 768px) {
    .product-section {
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding-top: 60px;
        padding-bottom: 20px;
        box-sizing: border-box;
    }
    .product-container {
        margin: 0;
    }
} 