/* Plinko Site - Элегантный современный дизайн */

:root {
    --primary-pink: #FF1493;
    --secondary-pink: #FF69B4;
    --light-pink: #FFF0F8;
    --primary-blue: #0066FF;
    --secondary-blue: #4A9EFF;
    --light-blue: #F0F7FF;
    --white: #FFFFFF;
    --dark-text: #1a1a1a;
    --light-gray: #F8F9FA;
    --border-color: #E8E8E8;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-hover: rgba(0, 0, 0, 0.12);
}

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

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--dark-text);
    background: var(--white);
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Header */
header {
    background: var(--white);
    padding: 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 2rem;
    width: 100%;
    overflow-x: hidden;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    color: var(--primary-pink);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
}

.nav-links a {
    color: var(--dark-text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.5rem 0;
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-pink), var(--primary-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-pink);
}

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

/* Main Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    width: 100%;
    overflow-x: hidden;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--light-blue) 100%);
    padding: 5rem 3rem;
    border-radius: 24px;
    margin: 2rem auto 4rem;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-pink);
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto;
    font-weight: 400;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    background: var(--white);
    padding: 3.5rem;
    border-radius: 20px;
    margin: 0 0 2.5rem 0;
    box-shadow: 0 4px 24px var(--shadow);
    transition: box-shadow 0.3s ease;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.content-section:hover {
    box-shadow: 0 8px 32px var(--shadow-hover);
}

.content-section h2 {
    color: var(--primary-blue);
    font-size: 2.25rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--light-pink);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.content-section h3 {
    color: var(--primary-pink);
    font-size: 1.6rem;
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    font-weight: 600;
}

.content-section p {
    margin-bottom: 1.25rem;
    text-align: left;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333;
}

/* Tables */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 2rem 0;
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px var(--shadow);
}

/* Обертка для таблиц на мобильных */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
}

.table-wrapper table {
    margin: 0;
    min-width: 600px;
}

table th {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--white);
    transition: background 0.2s ease;
}

table tr:last-child td {
    border-bottom: none;
}

table tr:hover td {
    background: var(--light-pink);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    margin: 1.5rem 0;
    box-shadow: 0 4px 20px var(--shadow);
    border-left: 4px solid var(--primary-pink);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px var(--shadow-hover);
}

.card h4 {
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Stats Box */
.stats-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-card {
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(255, 20, 147, 0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(255, 20, 147, 0.35);
}

.stat-card h3 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1;
}

.stat-card p {
    font-size: 1rem;
    opacity: 0.95;
    font-weight: 500;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 100%);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    margin: 0.5rem;
    font-size: 1rem;
    box-shadow: 0 4px 16px rgba(255, 20, 147, 0.3);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 20, 147, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-pink);
    border: 2px solid var(--primary-pink);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
    background: var(--light-pink);
    box-shadow: 0 4px 16px rgba(255, 20, 147, 0.2);
}

/* Lists */
ul, ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

ul li, ol li {
    margin-bottom: 0.75rem;
    line-height: 1.8;
}

ul li::marker {
    color: var(--primary-pink);
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
    color: var(--white);
    padding: 3rem 0;
    margin-top: 5rem;
    text-align: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

footer p {
    margin: 0.75rem 0;
    font-weight: 500;
}

footer a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    margin: 0 1rem;
    transition: opacity 0.3s ease;
    opacity: 0.9;
}

footer a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Contact Form */
.contact-form {
    max-width: 650px;
    margin: 2.5rem auto;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 4px 24px var(--shadow);
}

.form-group {
    margin-bottom: 1.75rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-pink);
    box-shadow: 0 0 0 4px rgba(255, 20, 147, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

/* Rating Stars */
.rating {
    color: #FFD700;
    font-size: 1.3rem;
    margin: 0.75rem 0;
    letter-spacing: 2px;
}

/* Badge */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-blue) 100%);
    color: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0.25rem;
    box-shadow: 0 2px 8px rgba(255, 20, 147, 0.25);
}

.badge-blue {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-pink) 100%);
}

/* Highlight Box */
.highlight-box {
    background: linear-gradient(135deg, var(--light-pink) 0%, var(--light-blue) 100%);
    border-left: 4px solid var(--primary-pink);
    padding: 2rem;
    margin: 2rem 0;
    border-radius: 16px;
    box-shadow: 0 2px 16px var(--shadow);
}

.highlight-box h3 {
    color: var(--primary-pink);
    margin-bottom: 1rem;
}

.highlight-box p {
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

/* Comparison Table */
.comparison-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 2rem 0;
    width: 100%;
}

.comparison-table table {
    min-width: 600px;
    width: 100%;
}

@media (max-width: 768px) {
    .comparison-table {
        margin-left: -1.5rem;
        margin-right: -1.5rem;
        padding: 0 1.5rem;
        width: calc(100vw - 3rem);
        max-width: calc(100vw - 3rem);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        box-sizing: border-box;
    }
    
    .comparison-table table {
        min-width: 600px;
        width: max-content;
    }
}

/* Responsive */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        width: 100%;
    }

    .nav-links a {
        font-size: 0.9rem;
    }

    .hero {
        padding: 3rem 2rem;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .container {
        padding: 2rem 1.5rem;
    }

    .content-section {
        padding: 2rem 1.5rem;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
        position: relative;
    }

    .content-section h2 {
        font-size: 1.75rem;
    }

    .content-section h3 {
        font-size: 1.35rem;
    }

    /* Обертка для таблиц - ограничивает ширину и добавляет скролл */
    .table-wrapper {
        width: 100%;
        max-width: 100vw;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2rem -1.5rem;
        padding: 0 1.5rem;
    }

    /* Все таблицы на мобильных - строго ограничиваем шириной viewport */
    table {
        font-size: 0.9rem;
        display: table;
        width: max-content;
        min-width: 600px;
        max-width: none;
    }

    /* Таблицы внутри content-section - строго ограничиваем шириной родителя */
    .content-section > table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 2rem -1.5rem;
        padding: 0 1.5rem;
        box-sizing: border-box;
    }
    
    .content-section > table > * {
        display: table;
        width: max-content;
        min-width: 600px;
    }

    table th,
    table td {
        padding: 0.75rem 1rem;
        white-space: nowrap;
    }

    /* Allow last column to wrap if needed */
    table th:last-child,
    table td:last-child {
        white-space: normal;
        min-width: 150px;
    }

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

    .card {
        padding: 1.5rem;
    }

    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    .contact-form {
        padding: 2rem 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}
