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

body {
    background: #000000;
    color: #333333;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    transition: all 0.3s ease;
}


body .coming-soon-text {
    color: #ffffff !important;
}

body:not(:hover) .coming-soon-text {
    color: #ffffff !important;
}


.navbar {
    background: #111111;
    padding: 0.5rem 0;
    border-bottom: 1px solid #333333;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

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

.nav-logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.1);
}

.braille-logo {
    display: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
    align-items: center;
    height: 100%;
}

.nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-link {
    display: inline-block;
    text-decoration: none;
    color: #cccccc;
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, transparent, transparent);
    border: 2px solid transparent;
    background-clip: padding-box;
}

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

.nav-link:hover::before {
    left: 100%;
}

.nav-link:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #333333, #444444);
    border-color: #555555;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, #444444, #555555);
    border-color: #666666;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.nav-link.active:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.25);
}



.braille-nav {
    display: none;
}


.coming-soon-banner {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0.5rem 1rem !important;
    margin: 0 1rem !important;
    height: 100% !important;
    color: #ffffff !important;
}

.coming-soon-text {
    color: #ffffff !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    margin-bottom: 0 !important;
    font-family: 'Courier New', monospace !important;
    letter-spacing: 0px !important;
    word-break: break-all !important;
    text-align: center !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.coming-soon-text:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

body:not(:hover) .coming-soon-text {
    color: #ffffff !important;
    opacity: 1 !important;
}

.coming-soon-braille {
    color: #e8e8e8;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    word-break: break-all;
    text-align: center;
    line-height: 1.2;
}


body:hover {
    color: #ffffff;
}


body:hover .coming-soon-text,
body:not(:hover) .coming-soon-text {
    color: #ffffff !important;
}


.coming-soon-banner,
.coming-soon-banner *,
body .coming-soon-banner,
body .coming-soon-banner *,
body:hover .coming-soon-banner,
body:hover .coming-soon-banner *,
body:not(:hover) .coming-soon-banner,
body:not(:hover) .coming-soon-banner * {
    color: #ffffff !important;
}


.header-container {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    width: 100%;
}

header {
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(45deg, #000000, #111111);
    border: 2px solid #222222;
    border-radius: 12px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: fit-content;
    max-width: 600px;
}

h1 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

h1:hover {
    color: #ffffff;
    text-shadow: 2px 2px 8px rgba(255, 255, 255, 0.5);
    transform: scale(1.05);
}

.subtitle {
    font-size: 1.2rem;
    color: #666666;
    font-style: italic;
}

.subtitle:hover {
    color: #cccccc;
}

main {
    margin: 0 auto;
    padding: 2rem;
}


body:not(.translator-page) main {
    max-width: 800px;
}

h2 {
    color: #444444;
    margin-bottom: 1.5rem;
    margin-top: 3rem;
    font-size: 1.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
    border-bottom: 1px solid #333333;
    padding-bottom: 0.5rem;
}

h2:first-of-type {
    margin-top: 1rem;
}

h2:hover {
    color: #ffffff;
}

.braille-text {
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    color: #e8e8e8;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    background: #050505;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border-radius: 6px;
    border: 1px solid #333333;
    letter-spacing: 1.5px;
    line-height: 1.6;
    position: relative;
    cursor: pointer;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
    min-height: fit-content;
    height: auto;
    display: block;
    overflow: visible;
}

.braille-text .english-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8) !important;
    z-index: 1 !important;
    pointer-events: none !important;
    padding: 0.8rem !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    font-weight: bold !important;
    background: rgba(0, 0, 0, 0.3) !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.braille-text .braille-layer {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    color: #e8e8e8 !important;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3) !important;
    z-index: 2 !important;
    pointer-events: none !important;
    padding: 0.8rem !important;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    letter-spacing: inherit !important;
    background: #050505 !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
}

.braille-text:hover {
    color: #ffffff;
    background: #1a1a1a;
    border-color: #555555;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}



p, li {
    margin-bottom: 0.9rem;
    font-size: 1.05rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

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

li {
    margin-bottom: 0.4rem;
    transition: all 0.3s ease;
}

li:hover {
    color: #ffffff;
    transform: translateX(10px);
}

blockquote {
    background: #111111;
    border-left: 4px solid #444444;
    padding: 1rem;
    margin: 1rem 0;
    font-style: italic;
    border-radius: 0 6px 6px 0;
    transition: all 0.3s ease;
}

blockquote:hover {
    border-left-color: #666666;
    background: #1a1a1a;
    transform: translateX(10px);
}

/* Шрифт Брайля */
.braille {
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    color: #e8e8e8;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    background: #050505;
    padding: 0.8rem;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
    border-radius: 6px;
    border: 1px solid #333333;
    letter-spacing: 1.5px;
    line-height: 1.4;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.braille:hover {
    color: #ffffff;
    background: #1a1a1a;
    border-color: #555555;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1);
}


.braille::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.02) 2px,
        rgba(255, 255, 255, 0.02) 4px
    );
    pointer-events: none;
}

.braille:hover::before {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.05) 2px,
        rgba(255, 255, 255, 0.05) 4px
    );
}


.sound-button {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: #1a1a1a;
    color: #666666;
    border: 2px solid #333333;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    margin: 0.8rem 0;
    text-align: center;
}

.sound-button:hover {
    background: #333333;
    color: #ffffff;
    border-color: #555555;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

.sound-button:active {
    transform: scale(0.95);
}

footer {
    text-align: center;
    padding: 1rem;
    background: #0a0a0a;
    border-top: 1px solid #222222;
    margin-top: 1.5rem;
}

footer p {
    color: #444444;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}

footer:hover p {
    color: #cccccc;
}

footer .braille {
    font-size: 0.8rem;
    padding: 0.3rem;
    margin-top: 0.2rem;
    margin-bottom: 0;
}


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

.content-block {
    animation: fadeInUp 0.6s ease-out;
}


body::after {
    content: '🦯';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0.1;
    pointer-events: none;
    z-index: -1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -50%) rotate(10deg);
    }
}


*:focus {
    outline: 2px solid #555555;
    outline-offset: 2px;
}




@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    main {
        padding: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
        margin-top: 2rem;
    }
    
    .braille-text {
        font-size: 1.1rem;
        letter-spacing: 1px;
        padding: 0.6rem;
    }
    
    .braille {
        font-size: 1.1rem;
        letter-spacing: 1px;
        padding: 0.8rem;
    }
}


.translator-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 3rem;
}

.translator-header {
    text-align: center;
    margin-bottom: 3rem;
}

.translator-header h1 {
    font-size: 2.5rem;
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.translator-header p {
    color: #999999;
    font-size: 1.1rem;
    margin: 0;
}

.translator-box {
    background: #111111;
    border-radius: 12px;
    border: 1px solid #333333;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    min-height: 350px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: none;
}

.input-panel,
.output-panel {
    display: flex;
    flex-direction: column;
    position: relative;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem 0.5rem;
    border-bottom: 1px solid #333333;
}

.language-label {
    font-size: 0.9rem;
    color: #cccccc;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.char-counter {
    font-size: 0.8rem;
    color: #666666;
}

#mainInput {
    flex: 1;
    background: transparent;
    border: none;
    padding: 1.5rem;
    color: #ffffff;
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    line-height: 1.6;
    resize: none;
    outline: none;
}

#mainInput::placeholder {
    color: #666666;
    font-size: 1.1rem;
}

.translate-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border-left: 1px solid #333333;
    border-right: 1px solid #333333;
}

.swap-icon {
    background: #333333;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    color: #cccccc;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.swap-icon:hover {
    background: #444444;
    color: #ffffff;
    transform: rotate(180deg);
}

.swap-icon:active {
    transform: scale(0.9);
}

.output-panel {
    border-left: 1px solid #333333;
}

.output-text {
    flex: 1;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 1.2rem;
    line-height: 1.6;
    color: #e8e8e8;
    text-shadow: 0 0 2px rgba(255, 255, 255, 0.3);
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

.output-text .placeholder {
    color: #666666;
    font-family: 'Arial', sans-serif;
    font-size: 1.1rem;
    font-style: italic;
}

.copy-btn {
    background: transparent;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.copy-btn:hover:not(:disabled) {
    background: #333333;
    color: #ffffff;
}

.copy-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.translate-btn {
    background: linear-gradient(45deg, #333333, #444444);
    border: 2px solid #555555;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: inherit;
}

.translate-btn:hover {
    background: linear-gradient(45deg, #444444, #555555);
    border-color: #666666;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.translate-btn:active {
    transform: scale(0.95);
}

.translate-btn span {
    font-size: 1rem;
    font-weight: bold;
}

.braille-btn {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: #e0e0e0;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    margin-top: 0.3rem;
}

.braille-output {
    background: #222222;
    border: 1px solid #444444;
    border-radius: 6px;
    padding: 1rem;
    min-height: 200px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    line-height: 1.6;
    color: #ffffff;
    letter-spacing: 1.5px;
    white-space: pre-wrap;
    word-break: break-word;
}

.braille-output.empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder {
    color: #666666;
    font-style: italic;
    font-family: 'Arial', sans-serif;
    font-size: 1rem;
    letter-spacing: normal;
}

.output-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.action-btn {
    background: #333333;
    border: 1px solid #555555;
    border-radius: 6px;
    padding: 0.8rem 1.2rem;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: inherit;
}

.action-btn:hover:not(:disabled) {
    background: #444444;
    border-color: #666666;
    transform: translateY(-2px);
}

.action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.action-btn span {
    font-size: 0.9rem;
}

.action-btn .braille-btn {
    font-size: 0.7rem;
    margin-top: 0.2rem;
}

.info-section {
    background: #111111;
    padding: 2rem 4rem;
    border-radius: 8px;
    border: 1px solid #333333;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 1.5rem;
}

.info-card {
    background: #222222;
    padding: 2rem 2.5rem;
    border-radius: 6px;
    border: 1px solid #444444;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: #555555;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    color: #ffffff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.braille-small {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #d8d8d8;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.info-card p {
    color: #cccccc;
    line-height: 1.6;
    margin: 0;
}


@media (max-width: 768px) {
    .translator-main {
        padding: 1rem 1.5rem;
        max-width: 100%;
    }
    
    .translator-header h1 {
        font-size: 2rem;
    }
    
    .translator-box {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }
    
    .translate-divider {
        border-left: none;
        border-right: none;
        border-top: 1px solid #333333;
        border-bottom: 1px solid #333333;
        padding: 0.8rem;
    }
    
    .swap-icon {
        transform: rotate(90deg);
    }
    
    .swap-icon:hover {
        transform: rotate(270deg);
    }
    
    .output-panel {
        border-left: none;
        border-top: 1px solid #333333;
    }
    
    .panel-header {
        padding: 0.8rem 1rem 0.4rem;
    }
    
    #mainInput,
    .output-text {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .info-section {
        padding: 1.5rem;
        margin-top: 1.5rem;
    }
}

@media (max-width: 1024px) and (min-width: 769px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
    
    .info-card {
        padding: 1.5rem 2rem;
    }
    
    .info-section {
        padding: 2rem 3rem;
        max-width: 1200px;
    }
}

@media (max-width: 480px) {
    .header-container {
        margin: 0.5rem 0;
    }
    
    header {
        padding: 0.4rem 0.8rem;
        max-width: 90%;
    }
    
    h1 {
        font-size: 1.1rem;
        margin-bottom: 0.2rem;
    }
    
    main {
        padding: 0.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
        margin-top: 1.5rem;
    }
    
    .braille-text {
        font-size: 1rem;
        padding: 0.5rem;
    }
    
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.4rem 0.8rem;
    }
    
    .nav-link span {
        font-size: 0.9rem;
    }
    
    .braille-nav {
        font-size: 0.7rem;
    }
    
    .coming-soon-banner {
        margin: 0 0.5rem;
        padding: 0.4rem 0.8rem;
    }
    
    .coming-soon-text {
        font-size: 1rem;
    }
    
    .coming-soon-braille {
        font-size: 0.7rem;
    }
}


.coming-soon-banner .coming-soon-text,
.coming-soon-banner .coming-soon-text:hover,
body:hover .coming-soon-banner .coming-soon-text,
body:not(:hover) .coming-soon-banner .coming-soon-text,
.nav-container .coming-soon-banner .coming-soon-text {
    color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* X кнопка стили */
.x-link {
    background: linear-gradient(135deg, #000000, #1a1a1a) !important;
    border: 2px solid #333333 !important;
    color: #ffffff !important;
    position: relative;
    overflow: hidden;
    font-weight: bold !important;
}

.x-link:hover {
    background: linear-gradient(135deg, #1a1a1a, #333333) !important;
    border-color: #555555 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1) !important;
}

.x-link span {
    font-size: 1.2rem !important;
    font-weight: bold !important;
    transition: all 0.3s ease;
}

.x-link:hover span {
    transform: scale(1.1);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
