/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #1a1a2e;
    --bg-secondary: #16213e;
    --bg-dark: #1e1e1e;
    --bg-card: rgba(30, 30, 30, 0.6);
    --bg-glass: rgba(30, 30, 30, 0.3);
    --text-primary: #e4e4e4;
    --text-secondary: #b8b8b8;
    --accent: #6c7ae0;
    --accent-hover: #5a67d8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

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

.btn_text {
  text-align: center;
  margin-top: 90px;
}

.btn_position {
  margin: 0 auto;
  width: fit-content;
  margin-top: 60px;
}


/* Header и Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 20px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.logo-image {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
}

.logo:hover .logo-image {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(108, 122, 224, 0.3);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition);
}

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

.nav-menu-footer {
    display: none;
}

/* Бургер меню */
.burger-menu {
    display: none;
    flex-direction: column;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    gap: 5px;
    z-index: 1001;
    position: relative;
    width: 25px;
    height: 20px;
}

.burger-line {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
    transform-origin: center;
    position: absolute;
    left: 0;
}

.burger-line:nth-child(1) {
    top: 0;
}

.burger-line:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.burger-line:nth-child(3) {
    bottom: 0;
}

.burger-menu.active .burger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
    transform: translateY(-50%) scaleX(0);
}

.burger-menu.active .burger-line:nth-child(3) {
    bottom: auto;
    top: 50%;
    transform: translateY(-50%) rotate(-45deg);
}

/* Hero секция с текстурой */
.hero {
    text-align: center;
    position: relative;
    background: 
        radial-gradient(circle at 20% 50%, rgba(108, 122, 224, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(108, 122, 224, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    overflow: hidden;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, rgba(255, 255, 255, 0.02) 2px, rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.hero-banner {
    width: 100%;
    max-width: 1200px;
    max-height: 120px;
    border-radius: 12px;
    margin: 0 auto 2rem;
    display: block;
    object-fit: cover;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    position: relative;
    z-index: 1;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn-hero {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    box-shadow: 0 4px 20px rgba(108, 122, 224, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 30px rgba(108, 122, 224, 0.5);
    color: white;
}

.btn-hero-secondary {
    background: rgba(30, 30, 30, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero-secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 122, 224, 0.5);
    box-shadow: 0 6px 30px rgba(108, 122, 224, 0.3);
    color: var(--text-primary);
}

/* Секция О нас */
.about-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(22, 33, 62, 0.4) 100%);
    position: relative;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* Секции конкурсов */
.contests-section {
    padding: 4rem 0;
}

.contests-section-marketplace {
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.3) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.contests-section-seller {
    background: linear-gradient(180deg, rgba(26, 26, 46, 0.5) 0%, rgba(30, 30, 30, 0.4) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
    color: var(--text-primary);
}

.contests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    list-style: none;
}

/* Карточки конкурсов */
.contest-card {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 8px 32px var(--shadow);
    display: flex;
    flex-direction: column;
}

.contest-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(108, 122, 224, 0.2);
    border-color: rgba(108, 122, 224, 0.3);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--bg-secondary);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.contest-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.card-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    flex-grow: 1;
}

.btn-participate {
    width: 100%;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(108, 122, 224, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    margin-top: auto;
}

.btn-participate:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 122, 224, 0.4);
    color: white;
}

.btn-participate:active {
    transform: translateY(0);
}

/* Секция преимуществ */
.advantages-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.4) 0%, rgba(26, 26, 46, 0.3) 100%);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition);
}

.advantage-item:hover {
    transform: translateY(-5px);
    border-color: rgba(108, 122, 224, 0.3);
}

.advantage-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    font-weight: bold;
}

.advantage-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.advantage-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Секция призов */
.prizes-section {
    padding: 4rem 0;
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.5) 0%, rgba(22, 33, 62, 0.2) 100%);
}

.prizes-content {
    max-width: 800px;
    margin: 0 auto;
}

.prizes-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    text-align: center;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
}

.prize-item {
    background: rgba(30, 30, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.prize-item:hover {
    transform: translateY(-3px);
    border-color: rgba(108, 122, 224, 0.3);
}

.prize-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.prize-text {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0;
}

/* Footer */
.footer {
    padding: 2rem 0;
    text-align: center;
    background: rgba(30, 30, 30, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Адаптивность для планшетов */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        background: rgba(30, 30, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1000;
        justify-content: flex-start;
        display: flex;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        display: block;
        padding: 1rem 0;
        text-align: center;
    }

    .nav-menu-footer {
        display: block;
        margin-top: auto;
        padding-top: 2rem;
        width: 100%;
    }

    .btn-participate-menu {
        width: 100%;
        padding: 1rem 2rem;
        background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
        color: white;
        border: none;
        border-radius: 12px;
        font-size: 1.1rem;
        font-weight: 600;
        cursor: pointer;
        transition: var(--transition);
        box-shadow: 0 4px 15px rgba(108, 122, 224, 0.3);
        text-decoration: none;
        display: block;
        text-align: center;
    }

    .btn-participate-menu:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(108, 122, 224, 0.4);
        color: white;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-banner {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        gap: 1rem;
    }

    .btn-hero {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contests-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
    }
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .nav-container {
        padding: 1rem 15px;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-image {
        width: 32px;
        height: 32px;
    }

    .hero {
        min-height: 50vh;
    }

    .hero-banner {
        margin-bottom: 1.5rem;
        border-radius: 8px;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .btn-hero {
        width: 100%;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .contests-section,
    .about-section,
    .advantages-section,
    .prizes-section {
        padding: 3rem 0;
    }

    .contests-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card-content {
        padding: 1.25rem;
    }

    .advantage-item {
        padding: 1.5rem;
    }

    .about-text,
    .prizes-text {
        font-size: 1rem;
    }

    .prizes-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .prize-item {
        padding: 1.25rem;
    }
}

/* Плавная анимация появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contest-card,
.advantage-item,
.prize-item {
    animation: fadeInUp 0.2s ease-out;
}

/* Улучшение доступности */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Фокус для доступности */
button:focus,
a:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
