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

html {
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #0a0e17;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -moz-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

h2:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #ff7b00, #ffcc00);
    border-radius: 2px;
    animation: gradientShift 3s infinite alternate;
}

@keyframes gradientShift {
    0% { background: linear-gradient(90deg, #ff7b00, #ffcc00); }
    50% { background: linear-gradient(90deg, #ffcc00, #ff7b00); }
    100% { background: linear-gradient(90deg, #ff7b00, #ffcc00); }
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: #d1d5db;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    color: #ffcc00;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 204, 0, 0.7);
}

ul, ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.5rem;
    color: #d1d5db;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    overflow: hidden;
    table-layout: fixed;
}

th, td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

th {
    background-color: rgba(255, 204, 0, 0.15);
    font-weight: 600;
    color: #ffcc00;
}

td {
    color: #d1d5db;
}

tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Header & Navigation */
header {
    background: linear-gradient(180deg, rgba(10, 14, 23, 0.95) 0%, rgba(10, 14, 23, 0.8) 100%);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 204, 0, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%;
}

/* Enhanced Animated Logo */
.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    max-width: 100%;
}

.logo-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    max-width: 100%;
}

.logo-glow {
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.4) 0%, rgba(255, 204, 0, 0) 70%);
    border-radius: 50%;
    animation: pulseGlow 3s infinite alternate;
    filter: blur(10px);
    z-index: 0;
}

@keyframes pulseGlow {
    0% { opacity: 0.3; transform: scale(0.9); }
    100% { opacity: 0.6; transform: scale(1.1); }
}

.logo {
    font-size: 3rem;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    max-width: 100%;
}

.logo-letter {
    display: inline-block;
    background: linear-gradient(45deg, #ff7b00, #ffcc00, #ff7b00);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: gradientMove 3s ease infinite, float 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(255, 204, 0, 0.5);
}

.logo-letter:nth-child(1) { animation-delay: 0s, 0s; }
.logo-letter:nth-child(2) { animation-delay: 0.2s, 0.1s; }
.logo-letter:nth-child(3) { animation-delay: 0.4s, 0.2s; }
.logo-letter:nth-child(4) { animation-delay: 0.6s, 0.3s; }
.logo-letter:nth-child(5) { animation-delay: 0.8s, 0.4s; }

@keyframes gradientMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.logo-sparkles {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ffcc00;
    border-radius: 50%;
    animation: sparkleTwinkle 2s infinite;
    box-shadow: 0 0 10px #ffcc00;
}

@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50% { opacity: 1; transform: scale(1); }
}

.logo-subtitle {
    font-size: 0.9rem;
    color: #ffcc00;
    margin-top: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

.logo-subtitle:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
    animation: subtitleLine 3s infinite;
}

@keyframes subtitleLine {
    0% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Mobile menu button */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
    flex-shrink: 0;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff7b00, #ffcc00);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Main Navigation */
.main-nav ul {
    display: flex;
    list-style: none;
    padding-left: 0;
    margin: 0;
    flex-wrap: wrap;
}

.main-nav li {
    margin-bottom: 0;
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.main-nav a {
    color: #ffffff;
    font-weight: 600;
    padding: 0.5rem 0;
    position: relative;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    white-space: nowrap;
}

.main-nav a:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ff7b00, #ffcc00);
    transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
    background: radial-gradient(circle at center, #1a2b3c 0%, #0a0e17 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 123, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 204, 0, 0.1) 0%, transparent 50%);
    animation: heroBgMove 20s infinite alternate;
}

@keyframes heroBgMove {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-50px, 50px) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
    padding: 0 1rem;
}

.hero h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease;
    text-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, #ff7b00, #ffcc00);
    color: #0a0e17;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 10px 30px rgba(255, 123, 0, 0.4);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    animation: fadeInUp 1s ease 0.4s both, buttonPulse 2s infinite;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    word-wrap: break-word;
}

@keyframes buttonPulse {
    0%, 100% { box-shadow: 0 10px 30px rgba(255, 123, 0, 0.4); }
    50% { box-shadow: 0 10px 40px rgba(255, 123, 0, 0.6); }
}

.cta-button:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.7s ease;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 123, 0, 0.6);
    color: #0a0e17;
}

.cta-button:hover:before {
    left: 100%;
}

/* Main Content */
main {
    padding: 4rem 0;
    background: linear-gradient(180deg, #0a0e17 0%, #1a2b3c 100%);
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.main-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    width: 100%;
    max-width: 100%;
}

/* Text Sections */
.section-text {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 20px;
    padding: 2.5rem;
    margin-bottom: 3rem;
    border: 1px solid rgba(255, 204, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-text:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff7b00, #ffcc00, #ff7b00);
    background-size: 200% 100%;
    animation: gradientMove 3s infinite linear;
}

.section-text:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

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

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

/* Table Styling */
.table-container {
    overflow-x: auto;
    margin-bottom: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 204, 0, 0.2);
    position: relative;
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* List Animations */
.section-text ol li,
.section-text ul li {
    position: relative;
    padding-left: 2rem;
    opacity: 0;
    animation: slideInLeft 0.5s ease forwards;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

.section-text ol li:before,
.section-text ul li:before {
    position: absolute;
    left: 0;
    color: #ffcc00;
}

.section-text ol li {
    counter-increment: list-counter;
}

.section-text ol li:before {
    content: counter(list-counter) ".";
    font-weight: bold;
}

.section-text ul li:before {
    content: "✦";
    animation: spin 2s infinite linear;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-text ol li:nth-child(1) { animation-delay: 0.1s; }
.section-text ol li:nth-child(2) { animation-delay: 0.2s; }
.section-text ol li:nth-child(3) { animation-delay: 0.3s; }
.section-text ol li:nth-child(4) { animation-delay: 0.4s; }
.section-text ol li:nth-child(5) { animation-delay: 0.5s; }

.section-text ul li:nth-child(1) { animation-delay: 0.6s; }
.section-text ul li:nth-child(2) { animation-delay: 0.7s; }
.section-text ul li:nth-child(3) { animation-delay: 0.8s; }
.section-text ul li:nth-child(4) { animation-delay: 0.9s; }
.section-text ul li:nth-child(5) { animation-delay: 1s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Table Row Animation */
.table-container tbody tr {
    opacity: 0;
    animation: fadeInRow 0.5s ease forwards;
    transform-origin: left;
}

.table-container tbody tr:nth-child(1) { animation-delay: 0.1s; }
.table-container tbody tr:nth-child(2) { animation-delay: 0.2s; }
.table-container tbody tr:nth-child(3) { animation-delay: 0.3s; }
.table-container tbody tr:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInRow {
    from { 
        opacity: 0;
        transform: translateX(-20px) scaleX(0.9);
    }
    to { 
        opacity: 1;
        transform: translateX(0) scaleX(1);
    }
}

/* Sub-section styling */
.section-text section {
    background: rgba(255, 204, 0, 0.05);
    border-radius: 15px;
    padding: 1.5rem;
    margin-top: 2rem;
    border-left: 4px solid #ffcc00;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

.section-text section:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 204, 0, 0.05), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.section-text section:hover:before {
    transform: translateX(100%);
}

/* Aside / Sidebar */
aside {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(255, 204, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    position: sticky;
    top: 120px;
    align-self: start;
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #ffcc00 rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Custom scrollbar for Webkit browsers */
aside::-webkit-scrollbar {
    width: 6px;
}

aside::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

aside::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, #ff7b00, #ffcc00);
    border-radius: 3px;
}

aside::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, #ffcc00, #ff7b00);
}

aside h3 {
    color: #ffcc00;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

aside h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 25%;
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

aside ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

aside li {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 204, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

aside li:before {
    content: "▶";
    position: absolute;
    left: 0;
    color: #ffcc00;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

aside li:hover:before {
    transform: translateX(5px);
}

aside li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

aside a {
    color: #d1d5db;
    padding-left: 1.5rem;
    display: block;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

aside a:hover {
    color: #ffcc00;
    transform: translateX(5px);
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0a0e17 0%, #070a12 100%);
    color: white;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}

footer:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #ffcc00, transparent);
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
}

.footer-section {
    flex: 1;
    min-width: 250px;
    margin-bottom: 2rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-section h3 {
    color: #ffcc00;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ffcc00;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-links a {
    color: #d1d5db;
    transition: all 0.3s ease;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.footer-links a:hover {
    color: #ffcc00;
    padding-left: 5px;
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 204, 0, 0.1);
    color: #94a3b8;
    font-size: 0.9rem;
    position: relative;
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding-left: 1rem;
    padding-right: 1rem;
}

.copyright:before {
    content: '🎰';
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 1.5rem;
    background: #0a0e17;
    padding: 0 1rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff7b00, #ffcc00);
    color: #0a0e17;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(255, 123, 0, 0.4);
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    border: none;
    animation: buttonPulse 2s infinite;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 15px 40px rgba(255, 123, 0, 0.6);
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus {
    outline: 2px solid #ffcc00;
    outline-offset: 3px;
}

/* Content Placeholder Styles */
.content-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 204, 0, 0.1);
    width: 100%;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Floating particles effect */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 204, 0, 0.3);
    border-radius: 50%;
    animation: floatParticle 20s infinite linear;
}

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* МЕДИА-ЗАПРОСЫ ДЛЯ МОБИЛЬНОЙ ВЕРСТКИ */

@media (max-width: 1100px) {
    .main-content-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    aside {
        position: static;
        order: -1;
        max-height: none;
        overflow-y: visible;
        width: 100%;
    }
}

@media (max-width: 992px) {
    h1 { 
        font-size: 2.2rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    h2 { 
        font-size: 1.8rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero h1 { 
        font-size: 3rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: calc(100% + 2rem);
    }
    
    table {
        min-width: 600px;
    }
    
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overflow-scrolling: touch;
    }
    
    /* Fix for Opera mobile overflow */
    .section-text, 
    .content-primary,
    .main-content-wrapper {
        overflow: visible;
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .logo-container {
        order: 1;
        width: auto;
        margin-bottom: 0;
        margin-right: auto;
        flex-shrink: 0;
        position: relative;
        max-width: 60%;
    }
    
    .logo-wrapper {
        padding: 0.25rem;
        width: auto;
        max-width: 100%;
    }
    
    .logo {
        font-size: 2rem !important;
        max-width: 100%;
    }
    
    .logo-letter {
        font-size: 2rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
        margin-top: 0;
        letter-spacing: 1px;
        position: absolute;
        bottom: -1.2rem;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        width: 100%;
        text-align: center;
        padding-top: 0;
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .logo-subtitle:after {
        bottom: -2px;
        height: 1px;
    }
    
    .menu-toggle {
        display: flex;
        order: 2;
        margin-left: auto;
        position: relative;
        z-index: 1002;
        width: 28px;
        height: 20px;
        flex-shrink: 0;
    }
    
    .menu-toggle span {
        width: 100%;
        height: 3px;
        background: linear-gradient(90deg, #ff7b00, #ffcc00);
        border-radius: 3px;
        transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    }
    
    .main-nav {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(15px);
        z-index: 1000;
        margin-top: 0;
        border-top: 1px solid rgba(255, 204, 0, 0.1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .main-nav.active {
        max-height: 400px;
        overflow-y: auto;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 1rem;
        margin: 0;
        width: 100%;
    }
    
    .main-nav li {
        margin-left: 0;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .main-nav a {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
        width: 100%;
        font-size: 0.9rem;
        background: rgba(255, 255, 255, 0.05);
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: rgba(255, 204, 0, 0.15);
        transform: translateX(5px);
    }
    
    .main-nav a:after {
        display: none;
    }
    
    /* Hero section fixes */
    .hero {
        padding: 3rem 0;
        min-height: 70vh;
        display: flex;
        align-items: center;
        width: 100%;
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
        line-height: 1.3;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
        line-height: 1.5;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-button {
        padding: 0.9rem 1.8rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        display: block;
        word-wrap: break-word;
        overflow-wrap: break-word;
        white-space: normal;
    }
    
    .section-text {
        padding: 1.5rem;
        margin-bottom: 2rem;
        border-radius: 15px;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }
    
    .section-text h2,
    .section-text h3 {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .section-text section {
        padding: 1rem;
        margin-top: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section {
        min-width: 100%;
        margin-bottom: 1.5rem;
        padding: 0 1rem;
    }
    
    .scroll-top {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    /* CRITICAL FIX for Opera mobile overflow issue */
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 1rem;
        overflow: visible !important;
    }
    
    main {
        overflow: visible !important;
    }
    
    .content-primary {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .section-text {
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
        word-break: break-word;
        hyphens: auto;
    }
    
    .table-container {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-1rem - 1px);
        margin-right: calc(-1rem - 1px);
        position: relative;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
    
    table {
        min-width: 768px;
        width: 100%;
    }
    
    /* Fix for long text content */
    .section-text p,
    .section-text li,
    .section-text td,
    .section-text th {
        word-break: break-word;
        hyphens: auto;
        max-width: 100%;
        overflow-wrap: break-word;
    }
    
    /* Specific fix for long headings */
    .section-text h2,
    .section-text h3 {
        overflow-wrap: break-word;
        word-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    h1 { 
        font-size: 1.8rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    h2 { 
        font-size: 1.5rem; 
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    h3 {
        font-size: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .logo {
        font-size: 1.8rem !important;
    }
    
    .logo-letter {
        font-size: 1.8rem;
    }
    
    .logo-subtitle {
        font-size: 0.6rem;
        bottom: -1rem;
        letter-spacing: 0.8px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        padding: 0 0.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .hero p {
        font-size: 0.9rem;
        padding: 0;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .section-text {
        padding: 1.25rem;
        margin-bottom: 1.5rem;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .section-text section {
        padding: 0.75rem;
        margin-top: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    .main-nav ul {
        padding: 0.75rem;
    }
    
    .main-nav a {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-button {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 280px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside {
        padding: 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    aside h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside li {
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside a {
        font-size: 0.9rem;
        padding-left: 1.2rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    footer {
        padding: 3rem 0 1.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .footer-links li {
        margin-bottom: 0.5rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .copyright {
        padding-top: 1.5rem;
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .copyright:before {
        font-size: 1.2rem;
        top: -12px;
        padding: 0 0.75rem;
    }
    
    /* Critical fix for Opera mobile table overflow */
    .table-container {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-0.75rem - 1px);
        margin-right: calc(-0.75rem - 1px);
        position: relative;
        left: 50%;
        right: 50%;
        transform: translateX(-50%);
        border-radius: 0;
    }
    
    table {
        min-width: 480px;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.8rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Fix for lists on very small screens */
    .section-text ol,
    .section-text ul {
        padding-left: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .section-text ol li,
    .section-text ul li {
        padding-left: 1.5rem;
        margin-bottom: 0.4rem;
        font-size: 0.9rem;
        word-break: break-word;
        hyphens: auto;
    }
    
    /* Ensure all text elements break properly */
    .section-text * {
        max-width: 100%;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 1.5rem !important;
    }
    
    .logo-letter {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .logo-subtitle {
        font-size: 0.55rem;
        letter-spacing: 0.5px;
        bottom: -0.9rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .container {
        padding: 0 0.5rem;
        width: 100%;
        max-width: 100%;
    }
    
    .hero {
        padding: 2.5rem 0;
        width: 100%;
        max-width: 100%;
    }
    
    .section-text {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
        overflow: visible !important;
    }
    
    .menu-toggle {
        width: 25px;
        height: 18px;
    }
    
    .main-nav a {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .cta-button {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 250px;
        white-space: normal;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside {
        padding: 1rem;
        width: 100%;
        max-width: 100%;
    }
    
    aside h3 {
        font-size: 1.1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside li {
        margin-bottom: 0.6rem;
        padding-bottom: 0.6rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    aside a {
        font-size: 0.85rem;
        padding-left: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    /* Extra fix for very small screens */
    .section-text h2 {
        font-size: 1.3rem;
        line-height: 1.3;
    }
    
    .section-text h3 {
        font-size: 1.1rem;
        line-height: 1.3;
    }
    
    .table-container {
        width: 100vw;
        max-width: 100vw;
        margin-left: calc(-0.5rem - 1px);
        margin-right: calc(-0.5rem - 1px);
    }
    
    table {
        min-width: 360px;
    }
}

/* Улучшения для сенсорных устройств */
@media (hover: none) and (pointer: coarse) {
    .cta-button:hover {
        transform: none;
    }
    
    .main-nav a:hover {
        transform: none;
    }
    
    aside a:hover {
        transform: none;
    }
    
    .scroll-top:hover {
        transform: none;
    }
    
    /* Increase touch target size for mobile */
    .menu-toggle,
    .cta-button,
    .scroll-top {
        min-height: 44px;
        min-width: 44px;
    }
    
    .main-nav a {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    /* Increase spacing between links for easier tapping */
    .main-nav li {
        margin-bottom: 0.75rem;
    }
}

/* Disable animations for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Fix for iOS Safari */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
    
    /* Prevent text size adjustment in iOS */
    html {
        -webkit-text-size-adjust: 100%;
    }
}

/* Fix for viewport issues in mobile browsers */
@media screen and (orientation: landscape) and (max-height: 600px) {
    .hero {
        padding: 2rem 0;
        min-height: 90vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .cta-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }
}

/* Improve text readability in light mode */
@media (prefers-color-scheme: light) {
    body {
        color: #1a1a1a;
    }
    
    .section-text {
        background: rgba(0, 0, 0, 0.03);
    }
}

/* Opera Mini specific fixes */
@media all and (-webkit-min-device-pixel-ratio:0) and (min-resolution: .001dpcm) {
    .logo-container {
        transform: translateZ(0);
    }
}

/* Critical overflow prevention for all mobile browsers */
@media (max-width: 768px) {
    /* Force all containers to respect viewport width */
    body, html, .container, main, .content-primary, .main-content-wrapper {
        max-width: 100vw !important;
        width: 100vw !important;
        overflow-x: hidden !important;
    }
    
    /* Ensure content stays within bounds */
    .section-text, .content-placeholder, aside, .footer-content, .footer-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Handle long words and URLs */
    .section-text p, .section-text li, .section-text td, .section-text th {
        overflow-wrap: anywhere !important;
        word-break: break-word !important;
        hyphens: auto !important;
    }
    
    /* Special handling for tables */
    .table-container {
        width: 100vw !important;
        max-width: 100vw !important;
        left: 50% !important;
        right: 50% !important;
        margin-left: -50vw !important;
        margin-right: -50vw !important;
        transform: translateX(0) !important;
        position: relative !important;
    }
    
    table {
        width: 100% !important;
        min-width: auto !important;
    }
}