/* CSS Reset & Base Styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    line-height: 1.15;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #ffffff;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul, ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 600;
    line-height: 1.2;
}

p {
    margin: 0 0 1rem;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4);
}

.btn-outline {
    background: transparent;
    color: #00d4aa;
    border: 2px solid #00d4aa;
}

.btn-outline:hover {
    background: #00d4aa;
    color: white;
}

.btn-download {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    padding: 1rem 2.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.4);
}

/* Bonus Bar */
.bonus-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 1rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.bonus-bar.show {
    transform: translateY(0);
}

.bonus-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.bonus-icon {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

.bonus-text {
    font-weight: 600;
    color: #ffd700;
}

.bonus-claim {
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.bonus-claim:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.bonus-close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #a0aec0;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bonus-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Чтобы события наведения/кликов попадали в бар только когда он видим */
.bonus-bar {
    pointer-events: none;
}

.bonus-bar.show {
    pointer-events: auto;
}


@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Header & Navigation */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(26, 35, 50, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

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

.nav-logo {
    display: flex;
    align-items: center;
}

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

.logo-icon {
    font-size: 2rem;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: lowercase;
}

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

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
    color: #00d4aa;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    transition: width 0.3s ease;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.nav-toggle .bar {
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(231, 76, 60, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd700 0%, #f39c12 100%);
    color: #2c3e50;
    padding: 0.5rem 1.5rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.highlight {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    color: #a0aec0;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    margin-bottom: 2rem;
}

.download-icon {
    font-size: 1.5rem;
}

.app-info {
    margin-top: 1rem;
}

.app-size {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* App Screenshots */
.app-screenshots {
    margin-top: 4rem;
    overflow: hidden;
}

.screenshot-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.screenshot-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.screenshot {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
}

.phone-frame {
    width: 280px;
    height: 500px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    border-radius: 2rem;
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: #7f8c8d;
    border-radius: 2px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
}

.app-header.dark {
    background: rgba(0, 0, 0, 0.6);
}

.app-logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: #00d4aa;
}

.app-buttons {
    display: flex;
    gap: 0.5rem;
}

.app-btn {
    padding: 0.4rem 0.8rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

.app-btn.register {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.app-btn.login {
    background: transparent;
    color: #00d4aa;
    border: 1px solid #00d4aa;
}

/* Promo Banners */
.promo-banner {
    margin: 1rem;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.promo-banner.sport {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.promo-banner.casino {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
}

.promo-content h3 {
    font-size: 1.1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.bonus-amount {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffd700;
    margin-bottom: 1rem;
}

.promo-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.promo-image {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    opacity: 0.3;
}

.sport-girl,
.casino-girl {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

/* Games Screen */
.phone-screen.games {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

.welcome-bonus {
    text-align: center;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    margin: 1rem;
    border-radius: 1rem;
}

.bonus-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
}

.bonus-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.game-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    padding: 1rem;
}

.game-card {
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%);
    padding: 1rem;
    border-radius: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
    position: relative;
}

.game-card.hot::before {
    content: '🔥';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 1rem;
}

/* Sports Screen */
.phone-screen.sports {
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 100%);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.balance {
    color: #00d4aa;
    font-weight: 700;
}

.user-avatar {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 50%;
}

.sports-nav {
    display: flex;
    padding: 1rem;
    gap: 0.5rem;
    overflow-x: auto;
}

.sport-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    color: #a0aec0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.8rem;
    white-space: nowrap;
}

.sport-tab.active {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    border-color: #00d4aa;
}

.matches {
    padding: 0 1rem;
}

.match {
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
}

.teams {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.teams span {
    font-size: 0.8rem;
    color: #a0aec0;
}

.odds {
    display: flex;
    gap: 1rem;
}

.odds span {
    background: rgba(0, 212, 170, 0.2);
    color: #00d4aa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.8rem;
    font-weight: 600;
}

/* App Info Section */
.app-info-section {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.app-description {
    text-align: center;
    margin-bottom: 4rem;
}

.app-description p {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
}

.app-details {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 3rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.detail-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.detail-content h4 {
    color: #a0aec0;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-content span {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 5rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #ffffff;
    font-weight: 700;
}

.faq-content {
    margin-bottom: 3rem;
}

.faq-content p {
    font-size: 1.1rem;
    color: #a0aec0;
    line-height: 1.7;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rating-label {
    font-weight: 600;
    color: #ffffff;
}

.rating-stars {
    display: flex;
    gap: 0.25rem;
}

.star {
    font-size: 1.2rem;
}

.star.filled {
    color: #ffd700;
}

.rating-text {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 3rem 0 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    text-align: center;
    margin-bottom: 2rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link.vk {
    background: #4c75a3;
}

.social-link.twitter {
    background: #1da1f2;
}

.social-link.telegram {
    background: #0088cc;
}

.social-link.email {
    background: #ea4335;
}

.social-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.social-icon {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Article Styles */
.article-page {
    padding-top: 80px;
    background: linear-gradient(135deg, #1a2332 0%, #2d3748 50%, #1a2332 100%);
    min-height: 100vh;
}

.article-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.breadcrumb a:hover {
    color: #00d4aa;
}

.article-hero {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: center;
}

.article-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #a0aec0;
}

.article-category {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.8rem;
    font-weight: 600;
}

.article-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    line-height: 1.2;
    font-weight: 800;
}

.article-excerpt {
    font-size: 1.25rem;
    color: #a0aec0;
    line-height: 1.6;
}

.article-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.article-body {
    padding: 4rem 0;
}

.article-layout {
    display: grid;
    /*grid-template-columns: 2fr 1fr;*/
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.article-text {
    max-width: none;
}

.article-text .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: #e2e8f0;
    font-weight: 500;
}

.article-text h2 {
    font-size: 2rem;
    margin: 2.5rem 0 1rem;
    color: #ffffff;
    font-weight: 700;
}

.article-text h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: #e2e8f0;
    font-weight: 600;
}

.article-text p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    color: #a0aec0;
}

.article-text blockquote {
    background: rgba(0, 212, 170, 0.1);
    border-left: 4px solid #00d4aa;
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 0.5rem 0.5rem 0;
    color: #e2e8f0;
}

.article-text ul,
.article-text ol {
    list-style: revert;
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: #a0aec0;
}

.article-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.info-box {
    background: rgba(0, 212, 170, 0.1);
    border: 1px solid #00d4aa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.info-box h4 {
    margin-bottom: 1rem;
    color: #00d4aa;
}

.warning-box {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid #e74c3c;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin: 2rem 0;
}

.warning-box h4 {
    margin-bottom: 1rem;
    color: #e74c3c;
}

.warning-box ul {
    list-style: revert;
    padding-left: 2rem;
    color: #a0aec0;
}

.article-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.tags {
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: #a0aec0;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    border-radius: 1rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tag:hover {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    border-color: #00d4aa;
}

.share-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
    color: #a0aec0;
}

.share-btn {
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #00d4aa;
}

/* Sidebar */
.article-sidebar {
    position: sticky;
    top: 140px;
    height: fit-content;
}

.sidebar-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.sidebar-section h4 {
    margin-bottom: 1.5rem;
    color: #ffffff;
    font-weight: 600;
}

.related-article {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.related-article:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-article:hover {
    transform: translateX(5px);
}

.related-article img {
    border-radius: 0.5rem;
    flex-shrink: 0;
}

.related-article h5 {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.related-article time {
    font-size: 0.8rem;
    color: #a0aec0;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cta-box {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
    text-align: center;
    border: none;
}

.cta-box h4 {
    color: white;
    margin-bottom: 1rem;
}

.cta-box p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.cta-box .btn {
    background: white;
    color: #00d4aa;
}

.cta-box .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .bonus-content {
        flex-direction: column;
        gap: 0.5rem;
    }

    .bonus-text {
        font-size: 0.9rem;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(26, 35, 50, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.3);
        padding: 2rem 0;
        backdrop-filter: blur(20px);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

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

    .screenshot-container {
        flex-direction: column;
        align-items: center;
    }

    .phone-frame {
        width: 250px;
        height: 450px;
    }

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

    .article-hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

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

    .article-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .rating-section {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
}

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

    .hero {
        padding: 90px 0 60px;
    }

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

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

    .app-info-section,
    .faq-section {
        padding: 3rem 0;
    }

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

    .phone-frame {
        width: 220px;
        height: 400px;
    }

    .app-details {
        padding: 2rem;
    }

    .screenshot-track {
        gap: 1rem;
    }

    .bonus-content {
        flex-direction: column;
        gap: 0.75rem;
        padding: 0 3rem 0 1rem;
    }

    .bonus-close {
        top: 1rem;
        right: 1rem;
        transform: none;
    }
}

/* Performance optimizations */
.hero-bg,
.phone-frame,
.screenshot {
    will-change: transform;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #00d4aa;
    outline-offset: 2px;
}

/* Loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover effects for interactive elements */
.detail-item,
.related-article,
.social-link,
.btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #00b894 0%, #00a085 100%);
}


/* --- Auto carousel (3 видимых) --- */
.carousel {
    --gap: 16px;
    position: relative;
    overflow: hidden;
    padding: 0; /* без лишних отступов */
}

.carousel-track {
    display: flex;
    gap: var(--gap);
    will-change: transform;
    transition: transform 420ms ease;
}

.carousel-slide {
    flex: 0 0 calc((100% - (var(--gap) * 2)) / 3); /* 3 карточки + 2 промежутка */
    user-select: none;
    text-decoration: none;
}

.carousel-slide picture,
.carousel-slide img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

/* опционально - адаптив; убери, если строго нужно всегда "3" */
@media (max-width: 1024px) {
    .carousel-slide {
        flex-basis: calc((100% - var(--gap)) / 2);
    }
}

@media (max-width: 640px) {
    .carousel-slide {
        flex-basis: 100%;
    }
}

/* Базово уже есть: .carousel, .carousel-track, .carousel-slide {...} */

/* 2 карточки на планшете */
@media (max-width: 1024px) {
    .carousel {
        --gap: 14px;
    }

    .carousel-slide {
        flex-basis: calc((100% - var(--gap)) / 2);
    }
}

/* 1 карточка на телефоне + внутренние отступы */
@media (max-width: 640px) {
    .carousel {
        --gap: 12px;
        padding: 0 12px;
    }

    .carousel-track {
        gap: var(--gap);
    }

    .carousel-slide {
        flex-basis: 100%;
    }

    .carousel-slide img {
        border-radius: 12px;
    }
}

/* ещё чуть компактнее на очень узких экранах */
@media (max-width: 380px) {
    .carousel {
        --gap: 10px;
        padding: 0 10px;
    }

    .carousel-slide img {
        border-radius: 10px;
    }
}

/* Универсальный блок: картинка + обтекание текста */
.content-flow .flow-media {
    float: left; /* картинка слева */
    width: clamp(240px, 40%, 520px); /* адаптивная ширина */
    margin: 0 1.5rem 1rem 0; /* отступы вокруг картинки */
    border-radius: 16px;
    overflow: hidden;
}

.content-flow .flow-media img {
    display: block;
    width: 100%;
    height: auto;
}

/* Обтекание + clearfix, чтобы контейнер не схлопывался */
.content-flow .flow-body::after {
    content: "";
    display: block;
    clear: both;
}

/* Вариант: картинка справа */
.content-flow.content-flow--right .flow-media {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

/* Кнопки блока */
.content-flow .content-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    margin-top: .5rem;
}

.content-cta {
    display: flex;
    justify-content: center; /* по центру по горизонтали */
    align-items: center; /* по центру по вертикали */
    gap: .75rem;
    margin-top: .75rem;
}


/* Мобилка: картинка над текстом, без обтекания */
@media (max-width: 768px) {
    .content-flow .flow-media {
        float: none;
        width: 100%;
        margin: 0 0 .75rem 0;
    }
}


/* Кликабельные плашки в info-tiles */
.info-tiles a.detail-item {
    text-decoration: none;
    color: inherit;
    display: flex; /* чтобы иконка и текст шли как в твоём detail-item */
    align-items: center;
}

.info-tiles a.detail-item:hover {
    transform: translateY(-2px);
}

.info-tiles .detail-content h4 {
    margin: 0 0 4px 0;
}


/* === Content-flow = FAQ-стили для текста === */
.content-flow .section-title {
    /* .section-title уже глобальная - оставляем как есть */
}

.content-flow .flow-body {
    margin-bottom: 3rem; /* как .faq-content */
}

/* Параграфы как в FAQ */
.content-flow p.article-text {
    font-size: 1.1rem; /* как .faq-content p */
    color: #a0aec0; /* серый как в FAQ */
    line-height: 1.7; /* как в FAQ */
    margin: 0 0 1.5rem; /* как .article-text p в статьях */
}

/* Ссылки внутри параграфов - читаемые */
.content-flow p.article-text a {
    color: #a0aec0;
    text-decoration: underline;
}

.content-flow p.article-text a:hover {
    color: #00d4aa;
}

/* Если секция случайно стоит внутри .hero (где всё белое) - принудительно серый */
.hero .content-flow p.article-text {
    color: #a0aec0 !important;
}

/* === Comparison table (простая версия, без фиксированного столбца) === */
.table-wrap {
    position: relative;
    margin-top: 1rem;
    border-radius: 16px;
    background: #0f0e1e;
    box-shadow: 0 16px 40px rgba(0, 0, 0, .35);

    /* скролл ТОЛЬКО по X внутри обёртки */
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* лёгкий градиент справа - не влияет на ширину */

.comparison-table {
    width: 100%;
    min-width: 720px; /* появится горизонтальный скролл в .table-wrap */
    border-collapse: separate;
    border-spacing: 0;
}

/* шапка больше не sticky (нам не нужен вертикальный скролл внутри) */
.comparison-table thead th {
    position: static;
    background: #16142a;
    color: #e6e9f2;
    text-align: left;
    font-weight: 600;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* УБИРАЕМ "липкость" первого столбца */
.comparison-table th:first-child,
.comparison-table td:first-child {
    position: static;
    left: auto;
    z-index: auto;
    background: transparent; /* оставим общий фон строки */
    font-weight: 600;
    color: #c9d1e2;
}

.comparison-table tbody td {
    padding: 14px 16px;
    color: #a0aec0;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    vertical-align: top;
}

/* зебра/hover */
.comparison-table tbody tr:nth-child(2n) td {
    background: rgba(255, 255, 255, .02);
}

@media (hover: hover) and (pointer: fine) {
    .comparison-table tbody tr:hover td {
        background: rgba(255, 255, 255, .04);
    }
}

/* скругления */
.comparison-table thead th:first-child {
    border-top-left-radius: 16px;
}

.comparison-table thead th:last-child {
    border-top-right-radius: 16px;
}

.comparison-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.comparison-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

/* компакт на узких экранах */
@media (max-width: 640px) {
    .comparison-table {
        min-width: 640px;
    }

    .comparison-table th, .comparison-table td {
        padding: 12px;
        font-size: .95rem;
    }
}

/* скроллбар под тёмную тему - только у таблицы */
.table-wrap::-webkit-scrollbar {
    height: 10px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .12);
    border-radius: 999px;
}

.table-wrap:hover::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .22);
}


/* === FAQ (аккордеон) - тёмная тема в стиле сайта === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.faq-item {
    border-radius: 16px;
    background: #121022;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
    overflow: hidden;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.faq-item.open {
    border-color: #00d4aa;
    background: #131231;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .36);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: transparent;
    border: 0;
    padding: 20px 56px 20px 20px;
    color: #e6e9f2;
    font-weight: 700;
    font-size: 1.2rem;
    cursor: pointer;
    position: relative;
}

.faq-question:hover {
    filter: brightness(1.03);
}

.faq-toggle {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: #0f0e1e;
    border: 1px solid rgba(255, 255, 255, .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.faq-toggle::before {
    content: "+";
    font-size: 18px;
    line-height: 1;
    color: #00d4aa;
}

.faq-item.open .faq-toggle::before {
    content: "×";
}

/* плавное раскрытие */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s ease;
    padding: 0 20px;
}

.faq-item.open .faq-answer {
    padding-bottom: 18px;
}

.faq-answer .article-text {
    color: #a0aec0;
    line-height: 1.7;
    margin: 0;
}

/* Footer extras */
.footer-top {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    padding: 14px 0 6px;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.footer-disclaimer {
    flex: 1 1 auto;
    margin: 0;
    color: #8fa1b5; /* серый как в тексте FAQ */
    line-height: 1.65;
    font-size: .98rem;
}

.footer-links a {
    display: inline-block;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    color: #c9d1e2;
    text-decoration: none;
}

.footer-links a:hover {
    border-color: #00d4aa;
    color: #e6e9f2;
}

.footer-bottom {
    padding: 10px 0 18px;
}

.footer-bottom p {
    margin: 0;
    color: #a0aec0;
}

/* Мобилка */
@media (max-width: 640px) {
    .footer-top {
        flex-direction: column;
        gap: .75rem;
    }

    .footer-links a {
        width: max-content;
    }
}

.logo-container {
    display: inline-flex;
    align-items: center;
    gap: .55rem
}

.logo-icon {
    display: inline-flex;
    width: 36px;
    height: 36px
}

.logo-icon .logo-svg {
    display: block;
    width: 100%;
    height: 100%
}

.logo-text {
    font-weight: 800;
    letter-spacing: .2px;
    color: #e6e9f2
}


/* --- Simple dropdown --- */
.has-dropdown {
    position: relative;
}

/* убираем стрелку/анимации у заголовка */
.dropdown-toggle {
    padding-right: 0;
}

.dropdown-toggle::after {
    content: none !important;
}

/* меню */
.dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #121022;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 8px;
    list-style: none;
    margin: 0;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    display: none; /* по умолчанию скрыто */
    z-index: 50;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #c9d1e2;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, .06);
    color: #e6e9f2;
}

/* десктоп: показывать только по hover, без анимаций */
@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover > .dropdown {
        display: block;
    }
}

/* мобилка: дропдаун раскрывается как вложенный список */
@media (max-width: 960px) {
    .has-dropdown {
        width: 100%;
    }

    .dropdown {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        margin-top: 6px;
        box-shadow: none;
        border-radius: 12px;
        padding: 6px;
    }

    .has-dropdown:not(.open) > .dropdown {
        display: none;
    }

    .has-dropdown.open > .dropdown {
        display: block;
    }
}

/* === Dropdown (простая версия) === */
.has-dropdown {
    position: relative;
}

.dropdown-toggle {
    padding-right: 0;
}

.dropdown-toggle::after {
    content: none !important;
}

.dropdown {
    position: absolute;
    left: 0;
    top: calc(100% + 8px);
    min-width: 180px;
    background: #121022;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 8px;
    margin: 0;
    list-style: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    display: none;
    z-index: 50;
}

.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #c9d1e2;
    text-decoration: none;
    white-space: nowrap;
}

.dropdown a:hover {
    background: rgba(255, 255, 255, .06);
    color: #e6e9f2;
}

/* Desktop: показывать по hover */
@media (hover: hover) and (pointer: fine) {
    .has-dropdown:hover > .dropdown {
        display: block;
    }
}

/* Mobile: всегда раскрыто */
@media (max-width: 960px) {
    .has-dropdown {
        width: 100%;
    }

    .dropdown {
        position: static;
        top: auto;
        left: auto;
        width: 100%;
        min-width: 0;
        display: block; /* <-- всегда видно */
        margin-top: 6px;
        padding: 6px;
        box-shadow: none;
        border-radius: 12px;
    }
}

/* 1) Никогда не растягиваем страницу по X */
html, body {
    overflow-x: hidden;
}

/* 2) Перенос длинных слов/ссылок, чтобы текст не распирал контейнер */
.article-text,
.content-flow p.article-text,
.faq-content p,
.comparison-table th,
.comparison-table td {
    overflow-wrap: anywhere; /* современный перенос */
    word-break: break-word; /* подстраховка для старых браузеров */
    hyphens: auto; /* перенос по слогам, где доступно */
}

/* 3) Flex-дети не должны «выпирать» за контейнер */
.nav-container > * {
    min-width: 0;
}

.article-layout > * {
    min-width: 0;
}

/* 4) Мобильное меню: уводим трансформацией, а не left:-100%,
      чтобы не появлялся горизонтальный скролл страницы */
@media (max-width: 768px) {
    .nav-menu {
        left: 0; /* фиксируем в ноль */
        transform: translateX(-100%); /* уводим за экран */
        will-change: transform;
    }

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

/* 5) На всякий случай ограничим любые «широкие» блоки шириной в вьюпорт */
.container,
.table-wrap,
.article-hero,
.article-image img {
    max-width: 100vw;
}


/* База: широкая карточка 21:9 */
.img-card {
    display: block;
    width: 100%;
    aspect-ratio: 21/9;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .14);
    background: #f2f3f5;
    margin: 16px 0 28px;
}

/* На десктопе - высота в 2 раза меньше (21:4.5) */
@media (min-width: 1024px) {
    .img-card {
        aspect-ratio: 21/4.5;
    }
}

