/* Tutorial Page Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700;900&display=swap');

:root {
    --bg: #121221;
    --bg-panel: #1a1a2e;
    --accent: #FFCD30;
    --accent-glow: rgba(255, 205, 48, 0.3);
    --glass: rgba(26, 26, 46, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
    --text: #e0e0e0;
    --text-dim: rgba(224, 224, 224, 0.5);
    --success: #00ff88;
    --success-glow: rgba(0, 255, 136, 0.2);
    --error: #ff4a4a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
    line-height: 1.6;
}

.glow-bg {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(255, 205, 48, 0.04) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(26, 26, 46, 0.6) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(18, 18, 33, 1) 0%, transparent 100%);
    z-index: -1;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Fullscreen Widget Section Styling (Parallax Slide) */
.widget-section-fullscreen {
    width: 100%;
    height: 100vh;
    background: var(--bg);
    position: sticky;
    top: 0;
    z-index: 1;
    overflow: hidden;
    will-change: transform, opacity;
}

.guide-content-wrapper {
    position: relative;
    z-index: 10;
    background: var(--bg); /* Ensure content has background to cover the widget */
    width: 100%;
}

.widget-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Header */
.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-section img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.logo-text {
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
}

.nav-cta-mini {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid var(--accent);
    padding: 10px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: transparent;
}

.nav-cta-mini:hover {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translateY(-2px);
}

/* Main Layout */
.tutorial-header {
    text-align: center;
    margin-bottom: 60px;
}

.v2-title {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 20px;
}

.gold-gradient {
    background: linear-gradient(135deg, #ffcd30 0%, #ff9900 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.v2-lead-text {
    font-size: 18px;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto;
}

.highlight {
    color: var(--accent);
}

/* Sections */
.tutorial-section {
    margin-bottom: 80px;
}

.section-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 30px;
    backdrop-filter: blur(20px);
    margin-bottom: 40px;
}

.section-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-card p {
    color: var(--text-dim);
    margin-bottom: 20px;
    font-size: 16px;
}

.section-card p strong {
    color: #fff;
}

/* Timeline/Steps */
.timeline {
    position: relative;
    margin-top: 40px;
    padding-left: 30px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    bottom: 10px;
    width: 2px;
    background: var(--glass-border);
}

.timeline-step {
    position: relative;
    margin-bottom: 50px;
}

.timeline-step:last-child {
    margin-bottom: 0;
}

.step-marker {
    position: absolute;
    left: -30px;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--bg);
    border: 3px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
    z-index: 2;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-step.active .step-marker {
    background: var(--accent);
}

.timeline-step:hover .step-marker {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent);
    transform: scale(1.2);
}

.step-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    gap: 30px;
    transition: all 0.3s ease;
}

.step-card:hover {
    border-color: rgba(255, 205, 48, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

/* Step Control Icons inside Step Cards */
.step-control-icons {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.step-control-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.step-control-icon-item.highlighted {
    background: rgba(255, 205, 48, 0.08);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 205, 48, 0.15);
}

.step-control-icon-item .mini-key {
    background: #2a2a40;
    border-bottom: 2px solid #181828;
    color: #fff;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
}

.step-control-icon-item.highlighted .mini-key {
    background: var(--accent);
    color: #000;
    border-bottom-color: #b38600;
}

.step-control-icon-item svg {
    width: 13px;
    height: 13px;
    color: var(--text-dim);
    transition: all 0.3s ease;
}

.step-control-icon-item.highlighted svg {
    color: var(--accent);
    filter: drop-shadow(0 0 4px var(--accent-glow));
}

.step-control-icon-item .mouse-svg .left-btn,
.step-control-icon-item .mouse-svg .right-btn {
    fill: none;
    transition: all 0.3s ease;
}

.step-control-icon-item .mouse-svg.left-active .left-btn {
    fill: var(--accent);
}

.step-control-icon-item .mouse-svg.right-active .right-btn {
    fill: var(--accent);
}

.step-control-icon-item .mouse-svg.both-active .left-btn,
.step-control-icon-item .mouse-svg.both-active .right-btn {
    fill: var(--accent);
}

.step-control-icon-item .phone-svg .left-tap,
.step-control-icon-item .phone-svg .right-tap {
    fill: none;
    transition: all 0.3s ease;
}

.step-control-icon-item .phone-svg.left-active .left-tap {
    fill: var(--accent);
    r: 3px;
}

.step-control-icon-item .phone-svg.right-active .right-tap {
    fill: var(--accent);
    r: 3px;
}

.step-control-icon-item .phone-svg.both-active .left-tap,
.step-control-icon-item .phone-svg.both-active .right-tap {
    fill: var(--accent);
    r: 3px;
}

.step-visual {
    flex-shrink: 0;
    width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 120px;
    height: 120px;
    background: var(--bg);
    border: 1px solid var(--glass-border);
    padding: 8px;
    border-radius: 12px;
}

.step-cell {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.step-cell.flash {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.step-audio {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 50px;
    color: var(--accent);
}

.step-info {
    flex-grow: 1;
}

.step-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-transform: uppercase;
}

.step-desc {
    font-size: 14px;
    color: var(--text-dim);
    margin-bottom: 15px;
    line-height: 1.5;
}

.step-desc b {
    color: #fff;
}

.step-action-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 900;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.action-neutral {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
}

.action-match {
    background: rgba(0, 255, 136, 0.15);
    color: var(--success);
    border: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.1);
}

/* Controls section */
.controls-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.control-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
}

.control-panel h4 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 10px;
}

.control-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-item:last-child {
    margin-bottom: 0;
}

.key-cap {
    min-width: 44px;
    height: 44px;
    background: #2a2a40;
    border-bottom: 4px solid #181828;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mouse-icon-wrap {
    display: flex;
    gap: 8px;
}

.mouse-icon {
    width: 32px;
    height: 48px;
    border: 2px solid var(--text-dim);
    border-radius: 16px;
    position: relative;
}

.mouse-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 8px;
    width: 2px;
    height: 8px;
    background: var(--text-dim);
    transform: translateX(-50%);
}

.mouse-icon.left-click::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 12px;
    height: 20px;
    background: var(--accent);
    border-top-left-radius: 12px;
}

.mouse-icon.right-click::after {
    content: '';
    position: absolute;
    right: 2px;
    top: 2px;
    width: 12px;
    height: 20px;
    background: var(--accent);
    border-top-right-radius: 12px;
}

.control-detail h5 {
    font-size: 14px;
    color: #fff;
    margin-bottom: 4px;
}

.control-detail p {
    font-size: 12px;
    color: var(--text-dim);
    margin-bottom: 0;
}

/* Mobile Split Screen Guide */
.mobile-mockup {
    width: 100%;
    max-width: 320px;
    height: 180px;
    border: 4px solid #2a2a40;
    border-radius: 16px;
    margin: 0 auto 20px;
    display: flex;
    overflow: hidden;
    position: relative;
}

.mobile-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.01);
}

.mobile-half.left-half {
    border-right: 1px dashed rgba(255, 255, 255, 0.1);
    background: linear-gradient(to right, rgba(255, 205, 48, 0.03), transparent);
}

.mobile-half.right-half {
    background: linear-gradient(to left, rgba(255, 205, 48, 0.03), transparent);
}

.mobile-half svg {
    width: 24px;
    height: 24px;
    margin-bottom: 8px;
    color: var(--accent);
    opacity: 0.8;
}

.mobile-tap-hint {
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 205, 48, 0.4);
    border: 2px solid var(--accent);
    top: 50%;
    transform: translateY(-50%);
    animation: tap-pulse 1.5s infinite;
}

.mobile-tap-hint.left-tap { left: 40px; }
.mobile-tap-hint.right-tap { right: 40px; animation-delay: 0.75s; }

@keyframes tap-pulse {
    0% { transform: translateY(-50%) scale(0.8); opacity: 1; }
    100% { transform: translateY(-50%) scale(1.6); opacity: 0; }
}

/* Simulator styling */
.simulator-box {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    padding: 30px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.simulator-stage {
    display: flex;
    gap: 40px;
    align-items: center;
    width: 100%;
    justify-content: center;
}

.sim-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    width: 180px;
    height: 180px;
    background: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 16px;
}

.sim-cell {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    transition: all 0.15s ease;
}

.sim-cell.active {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

.sim-controls-panel {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 250px;
}

.sim-status-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sim-status-item span {
    font-weight: 700;
}

.sim-match-alert {
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.sim-match-alert.show-match {
    opacity: 1;
    transform: translateY(0);
}

.alert-pos {
    background: rgba(0, 255, 136, 0.1);
    border: 1px solid var(--success);
    color: var(--success);
}

.alert-audio {
    background: rgba(255, 205, 48, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
}

.alert-dual {
    background: linear-gradient(135deg, rgba(255, 205, 48, 0.15), rgba(0, 255, 136, 0.15));
    border: 1px solid #fff;
    color: #fff;
}

.sim-action-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text);
    padding: 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s;
    text-transform: uppercase;
    font-size: 13px;
}

.sim-action-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
}

/* Call to action */
.cta-section {
    text-align: center;
    padding: 60px 0 100px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, #ffcd30 0%, #ff9900 100%);
    color: #000;
    text-decoration: none;
    padding: 20px 45px;
    font-weight: 900;
    border-radius: 16px;
    text-transform: uppercase;
    box-shadow: 0 10px 40px rgba(255, 205, 48, 0.3);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 60px rgba(255, 205, 48, 0.5);
}

.btn-secondary {
    display: inline-block;
    background: var(--glass);
    color: #fff;
    text-decoration: none;
    padding: 20px 45px;
    font-weight: 900;
    border-radius: 16px;
    text-transform: uppercase;
    border: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-dim);
    transform: translateY(-6px);
}

/* Footer Grid Layout */
.footer-v2 {
    padding: 80px 0 50px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: space-between;
    gap: 40px;
}

.footer-brand-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-brand-col .f-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-brand-col .f-logo-img {
    width: 32px;
    height: 32px;
}

.footer-brand-col .f-logo-text {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
}

.footer-brand-col .f-copy {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.5;
}

.f-socials {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    color: var(--text-dim);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-link svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.social-link:hover {
    color: var(--accent);
    background: rgba(255, 205, 48, 0.05);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(255, 205, 48, 0.15);
}

.social-link:hover svg {
    transform: scale(1.1);
}

/* Custom Dropdown Language Selector */
.f-lang-selector.dropdown {
    position: relative;
    display: inline-block;
    margin-top: 10px;
}

.f-lang-selector.dropdown .dropdown-trigger {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    padding: 6px 12px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.f-lang-selector.dropdown .dropdown-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

.f-lang-selector.dropdown .dropdown-trigger .globe-icon {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

.f-lang-selector.dropdown .dropdown-trigger .chevron-icon {
    width: 12px;
    height: 12px;
    opacity: 0.4;
    transition: transform 0.2s ease;
}

.f-lang-selector.dropdown.open .dropdown-trigger .chevron-icon {
    transform: rotate(180deg);
}

.f-lang-selector.dropdown .dropdown-menu {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(18, 18, 33, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 4px;
    min-width: 130px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 100;
}

.f-lang-selector.dropdown.open .dropdown-menu {
    display: block;
    opacity: 1;
}

.f-lang-selector.dropdown .dropdown-item {
    display: block;
    padding: 8px 12px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    border-radius: 4px;
    text-align: left;
    transition: all 0.2s ease;
    font-weight: 500;
}

.f-lang-selector.dropdown .dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}

.f-lang-selector.dropdown .dropdown-item.active {
    color: var(--accent);
    background: rgba(255, 205, 48, 0.1);
    font-weight: 600;
    cursor: default;
    pointer-events: none;
}

.footer-links-col h4 {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #fff;
    margin-bottom: 25px;
    text-transform: uppercase;
    position: relative;
    width: fit-content;
}

.footer-title-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-title-link:hover {
    color: var(--accent) !important;
}

.footer-links-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.footer-links-col h4:hover::after {
    width: 100%;
}

.footer-links-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links-col ul li a {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}

.footer-links-col ul li a:hover {
    color: #fff;
    transform: translateX(4px);
}

/* Адаптивность для средних экранов */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: auto auto;
        justify-content: space-between;
        gap: 30px;
    }
}

/* Адаптивность для мобильных экранов */
@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .footer-brand-col {
        display: contents;
    }
    .footer-brand-col .f-logo-wrapper {
        order: 1;
        justify-content: center;
        margin-bottom: 10px;
    }
    .f-contact-row {
        order: 2;
        justify-content: center;
        margin-top: 5px;
        margin-bottom: 15px;
    }
    .footer-links-col {
        order: 3;
    }
    .footer-links-col:last-of-type {
        border-bottom: 1px solid var(--glass-border);
        padding-bottom: 30px;
    }
    .footer-brand-col .f-copy {
        order: 4;
        margin-top: 10px;
    }
    .f-socials {
        order: 5;
        justify-content: center;
        margin-top: 5px;
    }
    .f-lang-selector {
        order: 6;
        justify-content: center;
        margin-top: 5px;
    }
    .footer-links-col h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-links-col ul li a:hover {
        transform: translateY(-2px);
    }
    .footer-v2 { padding: 40px 0; }
}

/* Responsive design */
@media (max-width: 1024px) {
    .container {
        padding: 0 24px;
    }
    .controls-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .step-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    .step-visual {
        width: auto;
    }
}

@media (max-width: 600px) {
    .top-nav {
        flex-direction: column;
        gap: 20px;
        align-items: center;
        padding: 30px 0;
    }
    .simulator-stage {
        flex-direction: column;
        gap: 25px;
    }
    .sim-grid {
        width: 150px;
        height: 150px;
    }
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    .btn-primary, .btn-secondary {
        text-align: center;
        padding: 16px 30px;
    }
}

/* Hero Split Layout */
.hero-split {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 50px;
    margin-bottom: 80px;
}

.hero-visual-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 320px;
}

.hero-text-side {
    flex: 1.2;
}

.hero-text-side h1 {
    text-align: left;
    margin-bottom: 20px;
}

.hero-text-side p {
    margin-left: 0;
    text-align: left;
}

/* Interface Mockup in Hero */
.interface-mockup.hero-mockup {
    background: var(--bg-panel);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0,0,0,0.4);
    width: 100%;
    max-width: 380px;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.02);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 8px;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 50%;
}

.level-tag {
    font-size: 11px;
    font-weight: 900;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mockup-body.hero-mockup-body {
    padding: 35px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.game-grid-v2.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.hero-grid .g-cell {
    width: 65px;
    height: 65px;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.01);
    transition: all 0.3s ease;
}

.hero-grid .g-cell.active-gold {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Audio Status in Hero */
.hero-audio-wrap {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.02);
    padding: 10px 20px;
    border-radius: 14px;
    border: 1px solid var(--glass-border);
    width: fit-content;
}

.hero-audio-wrap .speaker-icon {
    width: 20px;
    height: 20px;
    color: var(--accent);
    filter: drop-shadow(0 0 6px var(--accent-glow));
    opacity: 0.3;
    transition: opacity 0.3s;
}

.hero-audio-wrap.active .speaker-icon {
    opacity: 1;
}

.audio-waves {
    display: flex;
    gap: 4px;
    height: 18px;
    align-items: center;
}

.bar {
    width: 3px;
    height: 30%;
    background: var(--accent);
    border-radius: 3px;
    opacity: 0.3;
}

.hero-audio-wrap.active .bar {
    opacity: 1;
    animation: bar-dance-hero 1.2s infinite ease-in-out;
}

.hero-audio-wrap.active .bar:nth-child(2) { animation-delay: 0.2s; height: 60%; }
.hero-audio-wrap.active .bar:nth-child(3) { animation-delay: 0.4s; height: 100%; }
.hero-audio-wrap.active .bar:nth-child(4) { animation-delay: 0.1s; height: 45%; }

@keyframes bar-dance-hero {
    0%, 100% { height: 30%; }
    50% { height: 100%; }
}

.hero-letter {
    font-size: 24px;
    font-weight: 900;
    color: var(--accent);
    opacity: 0;
    transform: scale(0.6);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    margin-left: 5px;
}

.hero-letter.active {
    opacity: 1;
    transform: scale(1);
}

@media (max-width: 992px) {
    .hero-split {
        flex-direction: column-reverse;
        gap: 40px;
        margin-top: 30px;
        margin-bottom: 60px;
    }
    
    .hero-text-side h1 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    .hero-text-side p {
        text-align: center;
        margin: 0 auto;
    }
    
    .hero-text-side {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 35px 25px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 205, 48, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 205, 48, 0.05);
    border: 1px solid rgba(255, 205, 48, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 205, 48, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    background: var(--accent);
    color: #000;
    box-shadow: 0 0 25px var(--accent-glow);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.feature-card p {
    font-size: 13.5px;
    color: var(--text-dim);
    line-height: 1.55;
    margin-bottom: 0 !important;
}

.feature-icon-wrap svg {
    width: 28px;
    height: 28px;
}

@media (max-width: 868px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tips Section Styles */
.tips-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 10px;
}

.tip-card {
    display: flex;
    gap: 25px;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    padding: 25px 30px;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    align-items: flex-start;
}

.tip-card:hover {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 205, 48, 0.15);
    transform: translateX(5px);
    box-shadow: -5px 10px 30px rgba(0, 0, 0, 0.15);
}

.tip-icon-box {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    transition: all 0.3s ease;
}

.tip-card:hover .tip-icon-box {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.tip-icon-box svg {
    width: 24px;
    height: 24px;
}

.tip-content {
    flex-grow: 1;
}

.tip-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.tip-header-row h4 {
    font-size: 17px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.tip-tag {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(255, 205, 48, 0.08);
    border: 1px solid rgba(255, 205, 48, 0.12);
    padding: 3px 10px;
    border-radius: 50px;
}

.tip-tag.accent-tag {
    color: var(--success);
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.12);
}

.tip-tag.error-tag {
    color: var(--error);
    background: rgba(255, 74, 74, 0.08);
    border-color: rgba(255, 74, 74, 0.12);
}

.tip-content p {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .tip-card {
        flex-direction: column;
        gap: 15px;
        padding: 20px;
    }
    
    .tip-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tip-card:hover {
        transform: translateY(-3px);
    }
}

/* Soft Language Suggestion Banner */
.lang-suggestion-banner {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translate(-50%, 100px);
    background: rgba(18, 19, 26, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    z-index: 9999;
    width: 90%;
    max-width: 650px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
    pointer-events: none;
}

.lang-suggestion-banner.show {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.lang-suggestion-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.globe-icon-banner {
    width: 20px;
    height: 20px;
    color: var(--accent);
    flex-shrink: 0;
    animation: pulse-globe 2s infinite ease-in-out;
}

@keyframes pulse-globe {
    0% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); opacity: 0.8; }
}

.lang-suggestion-content p {
    font-size: 14px;
    line-height: 1.4;
    color: var(--text-dim);
    margin: 0;
}

.lang-suggestion-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.btn-banner-switch {
    background: var(--accent);
    color: #000;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-banner-switch:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-banner-dismiss {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-banner-dismiss:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.15);
}

@media (max-width: 650px) {
    .lang-suggestion-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
        padding: 20px;
        bottom: 20px;
        text-align: center;
    }
    .lang-suggestion-content {
        flex-direction: column;
        gap: 8px;
    }
    .lang-suggestion-actions {
        justify-content: center;
        width: 100%;
    }
    .btn-banner-switch, .btn-banner-dismiss {
        flex: 1;
        text-align: center;
    }
}

/* Footer Contact Email Styling */
.f-contact-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    transition: color 0.2s ease;
}
.f-contact-row svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    transition: stroke 0.2s ease;
}
.f-contact-row a {
    color: inherit;
    text-decoration: none;
}
.f-contact-row:hover {
    color: var(--accent);
}



@media (max-width: 769px) {
    .footer-links-col h4 {
        margin-left: auto;
        margin-right: auto;
    }
}


.footer-links-col ul li span.disabled-link {
    font-size: 13px;
    color: var(--text-dim);
    display: inline-block;
    cursor: default;
}

/* Footer Responsive Updates */
@media (max-width: 1310px) and (min-width: 771px) {
    .footer-grid {
        display: grid !important;
        grid-template-columns: 250px 1fr 1fr 1fr !important;
        gap: 40px !important;
    }
    .footer-brand-col { grid-column: 1 / 2; grid-row: 1 / 3; }
    
    /* 2 пункта сверху (Колонки 2 и 3 в сетке) */
    .footer-links-col:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
    .footer-links-col:nth-child(3) { grid-column: 3 / 4; grid-row: 1; }
    
    /* 3 пункта снизу (Колонки 2, 3 и 4 в сетке) */
    .footer-links-col:nth-child(4) { grid-column: 2 / 3; grid-row: 2; }
    .footer-links-col:nth-child(5) { grid-column: 3 / 4; grid-row: 2; }
    .footer-links-col:nth-child(6) { grid-column: 4 / 5; grid-row: 2; }
}

@media (max-width: 770px) {
    .footer-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 0 !important; /* Убираем gap родителя, используем margin для контроля */
    }
    .footer-brand-col {
        display: contents !important;
    }
    .footer-links-col,
    .footer-brand-col > * {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* 1. Название (Логотип) */
    .footer-brand-col > a:first-child { order: 1; margin-bottom: 15px !important; }
    
    /* 2. Почта */
    .f-contact-row { order: 2; margin-bottom: 40px !important; flex-direction: row !important; gap: 10px !important; }
    
    /* 3. Списки категорий (Пункты меню) */
    .footer-links-col { order: 3; margin-bottom: 30px !important; }
    .footer-links-col h4::after { left: 50%; transform: translateX(-50%); }
    .footer-links-col ul { align-items: center !important; }
    
    /* 4. Дата реализации (Копирайт) */
    .f-copy { order: 4; margin-bottom: 20px !important; margin-top: 10px !important; }
    
    /* 5. Соцсети */
    .f-socials { order: 5; margin-bottom: 20px !important; flex-direction: row !important; gap: 20px !important; }
    
    /* 6. Переключение языка */
    .f-lang-selector { order: 6; }
}

/* Tooltip for coming-soon links */
span.coming-soon-link {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
    cursor: not-allowed !important;
}

span.coming-soon-link:hover {
    color: #00e5ff;
}

span.coming-soon-link::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(30, 30, 30, 0.9);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: normal;
    font-family: inherit;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
    margin-bottom: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Tooltip Arrow */
span.coming-soon-link::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: rgba(30, 30, 30, 0.9) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    pointer-events: none;
    z-index: 100;
    margin-bottom: -2px;
}

span.coming-soon-link:hover::after,
span.coming-soon-link:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Tooltip fixes */
.footer-links-col ul li span.coming-soon-link {
    font-size: 13px;
    color: var(--text-dim);
    text-decoration: none;
    transition: all 0.2s ease;
    display: inline-block;
}
.footer-links-col ul li span.coming-soon-link:hover {
    color: var(--accent);
}

.footer-title-link.coming-soon-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-title-link.coming-soon-link:hover {
    color: var(--accent) !important;
}
