/**
 * Main Stylesheet - Purple Gradient Theme
 * Design inspired by prof.sferum.ru
 */

/* CSS Variables */
:root {
    --primary-purple: #8742ee;
    --dark-purple: #712dd4;
    --light-purple: #dac2ff;
    --purple-card: #a26bf5;
    --text-dark: #3a3643;
    --text-medium: #5f5973;
    --bg-light: #f9f7fc;
    --bg-white: #ffffff;
    --gradient-primary: linear-gradient(0.75turn, rgba(221,66,238,1) 0%, rgba(53,73,255,1) 100%);
    --border-radius-card: 32px;
    --border-radius-button: 30px;
    --shadow-card: 6px 6px 10px rgba(67,61,136,0.1);
    --transition-speed: 0.2s;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vksand', Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-dark);
}

h1 {
    font-size: 48px;
    margin-bottom: 24px;
}

h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

p {
    margin-bottom: 16px;
    font-size: 17px;
    color: var(--text-medium);
}

a {
    color: var(--primary-purple);
    text-decoration: none;
    transition: opacity var(--transition-speed) ease-in-out;
}

a:hover {
    opacity: 0.7;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 9999;
    padding: 20px 0;
}

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

.logo {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-purple);
    text-decoration: none;
}

.logo:hover {
    opacity: 1;
}

.main-nav {
    display: flex;
    gap: 32px;
    align-items: center;
}

.main-nav a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: 500;
    transition: color var(--transition-speed) ease-in-out;
}

.main-nav a:hover {
    color: var(--primary-purple);
    opacity: 1;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 12px 28px;
    border-radius: var(--border-radius-button);
    font-weight: 600;
    transition: transform var(--transition-speed) ease-in-out;
}

.nav-cta:hover {
    transform: translateY(-2px);
    opacity: 1;
}

/* Cart Button */
.cart-button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: var(--bg-light);
    border: 2px solid var(--light-purple);
    border-radius: var(--border-radius-button);
    color: var(--primary-purple);
    font-weight: 600;
    font-size: 15px;
    transition: all var(--transition-speed) ease-in-out;
    position: relative;
    line-height: 1;
}

.cart-button:hover {
    background: var(--light-purple);
    transform: translateY(-2px);
    opacity: 1;
}

.cart-button svg {
    flex-shrink: 0;
    display: block;
}

.cart-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    background: var(--primary-purple);
    color: white;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.cart-total {
    white-space: nowrap;
    line-height: 1;
}

/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 2px;
    transition: all var(--transition-speed) ease-in-out;
}

/* Main Content Offset */
main {
    margin-top: 80px;
    min-height: calc(100vh - 80px - 200px);
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    margin-bottom: 60px;
    border-radius: 0 0 80px 80px;
    position: relative;
}

.hero h1 {
    color: white;
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    color: rgba(255,255,255,0.9);
    font-size: 19px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-hero {
    background: white;
    color: var(--primary-purple);
    font-size: 17px;
    padding: 16px 40px;
    margin-top: 20px;
    margin-bottom: 40px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* New Landing Hero Section */
.hero-landing {
    padding: 100px 0 80px;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-landing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1320px;
    height: 100%;
    background: linear-gradient(135deg, rgba(77, 61, 214, 1) 0%, rgba(124, 78, 228, 1) 25%, rgba(184, 78, 235, 1) 50%, rgba(79, 180, 232, 1) 75%, rgba(61, 217, 214, 1) 100%);
    border-radius: 0 0 60px 60px;
    z-index: 0;
}

.hero-landing .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1;
    padding: 0 80px;
}

.hero-content {
    flex: 0 0 50%;
    color: white;
}

.hero-logos {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.logo-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    font-weight: 700;
    color: white;
    margin-bottom: 30px;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    min-height: 160px;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.2);
}

.feature-icon {
    margin-bottom: 15px;
    flex-shrink: 0;
}

.feature-text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.feature-text h3 {
    font-size: 14px;
    font-weight: 600;
    color: white;
    line-height: 1.5;
    margin: 0;
}

.hero-images {
    flex: 0 0 45%;
    position: relative;
    height: 600px;
    overflow: visible;
}

.hero-image-circle {
    position: absolute;
    border-radius: 50%;
    overflow: hidden;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.hero-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-img-1 {
    width: 200px;
    height: 200px;
    top: 80px;
    left: -50px;
    background: linear-gradient(135deg, #6B4EFF, #8B6EFF);
    z-index: 2;
}

.hero-img-2 {
    width: 300px;
    height: 300px;
    top: 280px;
    left: 20px;
    background: linear-gradient(135deg, #4DCCFF, #6DDCFF);
    z-index: 1;
}

.hero-img-3 {
    width: 260px;
    height: 260px;
    top: 10px;
    right: -20px;
    background: linear-gradient(135deg, #FF8A4D, #FFAA6D);
    z-index: 4;
}

.hero-img-4 {
    width: 240px;
    height: 240px;
    top: 320px;
    right: 60px;
    background: linear-gradient(135deg, #B84DFF, #D86DFF);
    z-index: 3;
}

.hero-icon {
    position: absolute;
    font-size: 40px;
    z-index: 5;
    animation: float 3s ease-in-out infinite;
}

.hero-icon-star {
    top: 30px;
    right: 250px;
}

.hero-icon-message {
    top: 180px;
    right: 500px;
}

.hero-icon-phone {
    top: 400px;
    right: 600px;
}

.hero-icon-game {
    top: 300px;
    right: 100px;
}

.hero-icon-chat {
    top: 500px;
    right: 380px;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    opacity: 1;
}

/* Category Filter */
.category-filter {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    margin-top: 100px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 12px 24px;
    border: 2px solid var(--light-purple);
    background: white;
    color: var(--primary-purple);
    border-radius: var(--border-radius-button);
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-speed) ease-in-out;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
}

/* Competition Grid */
.competitions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
    margin-bottom: 60px;
}

.competition-card {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition-speed) ease-in-out;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.competition-card:hover {
    transform: translateY(-8px);
    box-shadow: 8px 8px 20px rgba(67,61,136,0.15);
}

.competition-category {
    display: inline-block;
    background: var(--light-purple);
    color: var(--primary-purple);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.competition-card h3 {
    color: var(--text-dark);
    margin-bottom: 12px;
    font-size: 22px;
}

.competition-card p {
    color: var(--text-medium);
    font-size: 15px;
    margin-bottom: 20px;
    flex-grow: 1;
}

.competition-price {
    font-size: 28px;
    font-weight: 600;
    color: var(--primary-purple);
    margin-bottom: 20px;
}

.competition-price span {
    font-size: 18px;
    color: var(--text-medium);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--border-radius-button);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
    border: none;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(135,66,238,0.3);
    opacity: 1;
}

.btn-secondary {
    background: #ebebf0;
    color: var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--light-purple);
    opacity: 1;
}

.btn-danger {
    background: #EE3F58;
    color: white;
}

.btn-danger:hover {
    background: #d63850;
    opacity: 1;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0 20px;
    margin-top: 80px;
}

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

.footer h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 18px;
}

.footer p,
.footer a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.footer a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.5);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 960px) {
    h1 {
        font-size: 40px;
    }

    .hero h1 {
        font-size: 40px;
    }

    .main-nav {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        gap: 16px;
    }

    .main-nav.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .cart-button {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 9998;
        box-shadow: 0 4px 12px rgba(135, 66, 238, 0.3);
    }

    .competitions-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .hero-landing {
        padding: 80px 0 60px;
        min-height: auto;
    }

    .hero-landing .container {
        flex-direction: column;
        padding: 0 40px;
    }

    .hero-content {
        flex: 1;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-features {
        flex-direction: column;
        gap: 12px;
    }

    .feature-card {
        flex-direction: row;
        padding: 16px 18px;
        min-height: auto;
        gap: 12px;
        align-items: center;
        text-align: left;
    }

    .feature-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .feature-text {
        justify-content: flex-start;
    }

    .feature-text h3 {
        font-size: 12px;
        line-height: 1.4;
    }

    .hero-images {
        flex: 1;
        height: 350px;
        width: 100%;
        max-width: 100%;
    }

    .hero-img-1 {
        width: 110px;
        height: 110px;
        top: 40px;
        left: 0;
    }

    .hero-img-2 {
        width: 160px;
        height: 160px;
        top: 170px;
        left: 20px;
    }

    .hero-img-3 {
        width: 130px;
        height: 130px;
        top: 5px;
        right: 0;
    }

    .hero-img-4 {
        width: 120px;
        height: 120px;
        top: 180px;
        right: 20px;
    }

    .hero-icon {
        font-size: 25px;
    }

    .hero-icon-star {
        top: 25px;
        right: 100px;
    }

    .hero-icon-message {
        top: 120px;
        left: 80px;
    }

    .hero-icon-phone {
        top: 280px;
        left: 30px;
    }

    .hero-icon-game {
        top: 220px;
        right: 70px;
    }

    .hero-icon-chat {
        top: 300px;
        right: 120px;
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 36px;
    }

    .hero {
        padding: 60px 0;
        border-radius: 0 0 40px 40px;
    }

    .hero h1 {
        font-size: 36px;
    }

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

    .competition-card {
        padding: 24px;
    }

    .category-filter {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .cart-button {
        padding: 8px 16px;
        gap: 6px;
        font-size: 14px;
    }

    .cart-total {
        display: none;
    }

    .hero-landing {
        padding: 60px 0 40px;
    }

    .hero-landing .container {
        flex-direction: row;
        padding: 0 24px;
    }

    .hero-content {
        flex: 0 0 60% !important;
        margin-bottom: 0;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-logos {
        gap: 20px;
    }

    .logo-item {
        font-size: 16px;
    }

    .hero-features {
        gap: 10px;
    }

    .feature-card {
        flex-direction: row;
        padding: 14px 16px;
        min-height: auto;
        gap: 10px;
        border-radius: 16px;
    }

    .feature-icon {
        margin-bottom: 0;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-text {
        text-align: left;
    }

    .feature-text h3 {
        font-size: 11px;
        line-height: 1.3;
    }

    .hero-images {
        flex: 0 0 40% !important;
        height: 250px;
        max-width: 40%;
    }

    .hero-img-1 {
        width: 75px;
        height: 75px;
        top: 25px;
        left: 5px;
    }

    .hero-img-2 {
        width: 110px;
        height: 110px;
        top: 120px;
        left: 10px;
    }

    .hero-img-3 {
        width: 90px;
        height: 90px;
        top: 5px;
        right: 10px;
    }

    .hero-img-4 {
        width: 90px;
        height: 90px;
        top: 130px;
        right: 15px;
    }

    .hero-icon {
        font-size: 20px;
    }

    .hero-icon-star {
        top: 15px;
        right: 75px;
    }

    .hero-icon-message {
        top: 80px;
        left: 60px;
    }

    .hero-icon-phone {
        top: 200px;
        left: 0;
    }

    .hero-icon-game {
        top: 150px;
        right: 50px;
    }

    .hero-icon-chat {
        top: 220px;
        right: 80px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 32px;
    }

    .hero h1 {
        font-size: 32px;
    }

    h2 {
        font-size: 28px;
    }

    .hero {
        padding: 40px 0;
    }
}

/* Steps Grid - For "How to participate" section */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.steps-grid .competition-card {
    min-height: 200px;
}

@media (max-width: 960px) {
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* Criteria Section */
.criteria-section {
    background: white;
    border-radius: var(--border-radius-card);
    padding: 40px;
    box-shadow: var(--shadow-card);
    margin-bottom: 60px;
}

.criteria-section h2 {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 30px;
}

.criteria-list {
    max-width: 800px;
    margin: 0 auto;
}

.criteria-list ul {
    list-style: none;
    padding: 0;
}

.criteria-list li {
    padding: 12px 0 12px 40px;
    position: relative;
    font-size: 17px;
    color: var(--text-medium);
    line-height: 1.6;
}

.criteria-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-purple);
    font-size: 24px;
    font-weight: bold;
}

/* FAQ Section */
.faq-section {
    background: #E8E4F3;
    border-radius: 40px;
    padding: 60px 80px;
    margin-bottom: 60px;
}

.faq-section h2 {
    text-align: left;
    margin-bottom: 40px;
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.faq-item {
    background: #F5F3F9;
    border-radius: 24px;
    padding: 28px 32px;
    cursor: pointer;
    transition: all var(--transition-speed) ease-in-out;
}

.faq-item:hover {
    background: #EFEDF5;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.faq-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-weight: 300;
    font-size: 32px;
    line-height: 1;
    transition: transform var(--transition-speed) ease-in-out;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-question h3 {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
    flex: 1;
}

.faq-answer {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.6;
    display: none;
    padding-top: 16px;
    margin-top: 16px;
    border-top: 1px solid rgba(135, 66, 238, 0.1);
}

.faq-item.active .faq-answer {
    display: block;
}

@media (max-width: 960px) {
    .faq-section {
        padding: 50px 40px;
    }

    .faq-section h2 {
        font-size: 36px;
    }
}

@media (max-width: 640px) {
    .faq-section {
        padding: 40px 24px;
        border-radius: 30px;
    }

    .faq-section h2 {
        font-size: 28px;
    }

    .faq-item {
        padding: 24px 20px;
    }

    .faq-question h3 {
        font-size: 16px;
    }

    .faq-answer {
        font-size: 14px;
    }

    .criteria-section {
        padding: 28px 20px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mt-40 {
    margin-top: 40px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Regulations Button */
.btn-outline {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

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

.btn-regulations {
    margin-top: 12px;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-white);
    border-radius: var(--border-radius-card);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    border-bottom: 1px solid rgba(135, 66, 238, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    margin: 0;
    color: var(--text-dark);
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-medium);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all var(--transition-speed) ease-in-out;
}

.modal-close:hover {
    background: rgba(135, 66, 238, 0.1);
    color: var(--primary-purple);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.modal-body h3 {
    font-size: 20px;
    margin-top: 24px;
    margin-bottom: 16px;
    color: var(--primary-purple);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.modal-body ul,
.modal-body ol {
    margin: 16px 0;
    padding-left: 24px;
}

.modal-body li {
    margin-bottom: 12px;
    line-height: 1.8;
    color: var(--text-medium);
}

.modal-body strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* Modal Responsive */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-content {
        max-height: 95vh;
        border-radius: 24px;
    }

    .modal-header {
        padding: 20px 24px;
    }

    .modal-header h2 {
        font-size: 20px;
    }

    .modal-body {
        padding: 24px;
    }

    .modal-body h3 {
        font-size: 18px;
    }
}

/* ==============================================
   AUDIENCE SEGMENTATION STYLES
   ============================================== */

/* Audience Dropdown в header */
.audience-dropdown {
    position: relative;
    margin-right: 20px;
}

.audience-dropdown-btn {
    background: var(--primary-purple);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-speed);
    box-shadow: 0 4px 12px rgba(135, 66, 238, 0.3);
}

.audience-dropdown-btn:hover {
    background: var(--dark-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(135, 66, 238, 0.4);
}

.audience-dropdown-btn svg {
    transition: transform var(--transition-speed);
}

.audience-dropdown-btn:hover svg {
    transform: translateY(2px);
}

.audience-dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 320px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    overflow: hidden;
}

.audience-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.audience-dropdown-menu .dropdown-item {
    display: block;
    padding: 14px 20px;
    color: var(--text-dark);
    text-decoration: none;
    transition: background 0.2s;
    font-size: 15px;
}

.audience-dropdown-menu .dropdown-item:hover {
    background: var(--bg-light);
    color: var(--primary-purple);
}

.audience-dropdown-menu .dropdown-divider {
    height: 1px;
    background: #e0e0e0;
    margin: 4px 0;
}

/* Audience Cards Grid (главная страница) */
.audience-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.audience-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-card);
    padding: 32px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.audience-card:hover::before {
    transform: scaleX(1);
}

.audience-card:hover {
    border-color: var(--primary-purple);
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(135, 66, 238, 0.2);
}

.audience-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.audience-card p {
    font-size: 14px;
    color: var(--text-medium);
    margin-bottom: 16px;
    line-height: 1.6;
}

.audience-card-arrow {
    position: absolute;
    bottom: 24px;
    right: 32px;
    font-size: 28px;
    color: var(--primary-purple);
    transition: transform 0.3s;
}

.audience-card:hover .audience-card-arrow {
    transform: translateX(8px);
}

/* Audience Hero на посадочной странице */
.audience-hero {
    background: var(--gradient-primary);
    color: white;
    padding: 80px 0;
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.audience-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.audience-hero::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.audience-hero h1 {
    font-size: 42px;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
    color: white;
}

.audience-hero p {
    font-size: 18px;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

/* Specialization Tabs */
.specialization-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
    padding: 24px;
    background: var(--bg-light);
    border-radius: 16px;
}

.tab-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
}

.tab-btn:hover {
    border-color: var(--primary-purple);
    color: var(--primary-purple);
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-purple);
    border-color: var(--primary-purple);
    color: white;
    box-shadow: 0 4px 12px rgba(135, 66, 238, 0.3);
}

/* Filters Panel (расширенная фильтрация) */
.filters-panel {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    padding: 28px;
    margin-bottom: 40px;
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
}

.filter-group {
    flex: 1;
    min-width: 220px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 14px;
    background: white;
    color: var(--text-dark);
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:hover {
    border-color: var(--primary-purple);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(135, 66, 238, 0.1);
}

/* Audience & Specialization Tags */
.competition-audience,
.competition-specializations {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.competition-audience h3,
.competition-specializations h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.audience-tags,
.specialization-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 12px;
}

.audience-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 24px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(135, 66, 238, 0.2);
}

.audience-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(135, 66, 238, 0.3);
}

.specialization-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
    border: 2px solid #e0e0e0;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .audience-dropdown {
        margin-right: 0;
        margin-bottom: 16px;
    }

    .audience-dropdown-menu {
        min-width: 280px;
    }

    .audience-cards-grid {
        grid-template-columns: 1fr;
    }

    .audience-hero {
        padding: 60px 0;
    }

    .audience-hero h1 {
        font-size: 32px;
    }

    .audience-hero p {
        font-size: 16px;
    }

    .filters-panel {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .specialization-tabs {
        flex-direction: column;
    }

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