:root {
    --primary-color: #0a192f;
    --secondary-color: #172a45;
    --accent-color: #64ffda;
    --text-color: #e6f1ff;
    --error-color: #f87171;
    --success-color: #4CAF50;
}
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
}
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.main-header {
    background-color: var(--secondary-color);
    padding: 40px 0;
    text-align: center;
    border-bottom: 3px solid var(--accent-color);
}
.main-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}
.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}
.test-section {
    padding: 50px 0;
}
.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}
.game-brick {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--accent-color);
}
.game-brick:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}
.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.game-link h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}
.seo-content {
    padding: 50px 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin: 40px 0;
}
.seo-content h2 {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 25px;
}
.seo-content h3 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--accent-color);
}
.level-list {
    list-style-type: none;
    margin: 25px 0;
}
.level-list li {
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.1);
}
.cta-box {
    text-align: center;
    margin-top: 40px;
}
.cta-button {
    display: inline-block;
    padding: 15px 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s;
}
.cta-button:hover {
    background-color: var(--text-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(100, 255, 218, 0.3);
}
.main-footer {
    background-color: var(--secondary-color);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}
.footer-links {
    list-style-type: none;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}
.footer-links li {
    margin: 0 15px;
}
.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
}
.test-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 30px 0;
    text-align: center;
}
.test-container {
    padding: 40px 0;
}
.instructions-list {
    margin: 20px 0 30px;
    padding-left: 20px;
}
.instructions-list li {
    margin-bottom: 10px;
}
.search-box {
    display: flex;
    gap: 10px;
    margin: 30px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}
input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: var(--text-color);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s;
}
input:focus {
    border-color: var(--accent-color);
}
button {
    padding: 15px 25px;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
button:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}
.suggestion {
    margin: 20px 0;
    min-height: 24px;
    font-style: italic;
    text-align: center;
}
.level-progress {
    margin: 50px 0;
}
.level-clouds {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 15px;
}
.level-cloud {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 2;
    transition: all 0.3s;
}
.level-cloud.completed {
    background: var(--accent-color);
    color: var(--primary-color);
}
.level-cloud.active {
    background: var(--accent-color);
    transform: scale(1.3);
    box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
    color: var(--primary-color);
}
.progress-track {
    height: 10px;
    background: var(--secondary-color);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}
.progress-bar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    transition: width 0.5s ease;
}
.word-list {
    margin: 40px 0;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}
.word-item {
    padding: 15px;
    margin: 10px 0;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    animation: fadeIn 0.4s ease-out;
}
.word-pair {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.english-word {
    font-weight: 600;
    font-size: 1.1rem;
}
.transcription {
    color: var(--accent-color);
    font-size: 0.9em;
    font-style: italic;
}
.russian-word {
    opacity: 0.9;
}
.test-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 40px 0;
}
.test-actions button {
    min-width: 200px;
}
#exportBtn {
    background-color: var(--success-color);
}
#resetCache {
    background-color: var(--error-color);
}
.back-link {
    color: var(--accent-color);
    text-decoration: none;
    display: inline-block;
    margin-top: 30px;
    font-weight: 600;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 768px) {
    .privacy-header h1, .terms-header h1, .contact-header h1 {
        font-size: 2rem;
    }
    
    .privacy-container h2, .terms-container h2, .contact-container h2 {
        font-size: 1.6rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    .main-header h1 {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .game-grid {
        grid-template-columns: 1fr;
    }
    
    .search-box {
        flex-direction: column;
    }
    
    button {
        width: 100%;
    }
    
    .test-actions {
        flex-direction: column;
    }
    
    .test-actions button {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .level-cloud {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .main-header h1 {
        font-size: 1.8rem;
    }
}
.privacy-header, .terms-header, .contact-header {
    background: linear-gradient(135deg, #172a45, #0a192f);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #64ffda;
}
.privacy-container h2, .terms-container h2, .contact-container h2 {
    color: #64ffda;
    margin: 40px 0 20px;
    font-size: 1.8rem;
}
.privacy-container h3, .terms-container h3 {
    color: #3b82f6;
    margin: 25px 0 15px;
    font-size: 1.4rem;
}
.privacy-container ul, .terms-container ul {
    padding-left: 25px;
    margin: 15px 0;
}
.privacy-container li, .terms-container li {
    margin-bottom: 10px;
}
.effective-date {
    margin-top: 50px;
    font-style: italic;
    text-align: right;
    opacity: 0.8;
}

.page-header {
    background: linear-gradient(135deg, #172a45, #0a192f);
    padding: 60px 0;
    text-align: center;
    border-bottom: 3px solid #64ffda;
}
.page-header h1 {
    color: #64ffda;
    font-size: 2.5rem;
    margin-bottom: 15px;
}
.subtitle {
    color: rgba(230, 241, 255, 0.8);
    font-size: 1.2rem;
}
.page-main {
    padding: 40px 0;
}
.page-footer {
    background: #172a45;
    padding: 30px 0;
    text-align: center;
}
.footer-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.footer-links a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s;
}
.footer-links a:hover {
    color: #3b82f6;
    text-decoration: underline;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 25, 47, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 3px solid var(--accent-color);
    transform: scale(0.9);
    transition: all 0.3s ease;
}
.modal-overlay.active .modal-content {
    transform: scale(1);
}
.modal-title {
    color: var(--accent-color);
    font-size: 2rem;
    margin-bottom: 20px;
}
.modal-message {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
}
.modal-close {
    padding: 12px 30px;
    background: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}
.modal-close:hover {
    background: var(--text-color);
    transform: translateY(-2px);
}

#reportWord a {
    color: var(--accent-color);
    text-decoration: underline;
    transition: color 0.3s;
}

#reportWord a:hover {
    color: #3b82f6;
}

#wordReportSection {
    animation: fadeIn 0.5s ease-out;
}

#wordReportSection pre {
    font-family: 'Montserrat', sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
}
/* Добавьте в начало или в подходящее место в styles.css */
.header-logo {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 50px;
    width: auto;
    z-index: 10;
    transition: all 0.3s ease;
}

.header-logo:hover {
    transform: scale(1.05);
}
.contact-info {
    max-width: 600px;
    margin: 40px auto;
    padding: 30px;
    background: rgba(30, 58, 138, 0.2);
    border-radius: 10px;
    text-align: center;
}
.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.terms-content {
    background: rgba(23, 42, 69, 0.7);
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
    line-height: 1.8;
}
.terms-content h2 {
    color: #64ffda;
    margin-top: 30px;
    border-bottom: 1px solid #1e3a8a;
    padding-bottom: 10px;
}
.terms-content h3 {
    color: #3b82f6;
    margin: 25px 0 15px;
}
.terms-list {
            padding-left: 25px;
            margin: 15px 0;
}
    .terms-list li {
    margin-bottom: 10px;
}
.word-report-section {
    display: none;
    margin: 30px auto;
    padding: 25px;
    background: rgba(23, 42, 69, 0.7);
    border-radius: 10px;
    border: 1px solid #64ffda;
    max-width: 600px;
    animation: fadeIn 0.5s ease-out;
}
.word-report-section h3 {
    color: #64ffda;
    margin-bottom: 15px;
    font-size: 1.4rem;
}
 .word-report-section pre {
    background: rgba(10, 25, 47, 0.5);
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    font-family: 'Montserrat', sans-serif;
    white-space: pre-wrap;
    word-wrap: break-word;
    border-left: 3px solid #64ffda;
}
.word-report-section a {
    color: #64ffda;
    text-decoration: none;
    transition: color 0.3s;
}
.word-report-section a:hover {
    color: #3b82f6;
    text-decoration: underline;
}
@media (max-width: 768px) {
    .header-logo {
        height: 40px;
        top: 15px;
        left: 15px;
    }
}
.subtitle {
    color: #e6f1ff;
    font-size: 1.2rem;
}
 .social-link-contact {
            display: inline-block;
            padding: 12px 24px;
            background: #64ffda;
            color: #0a192f;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            transition: all 0.3s;
        }
        .social-link-contact:hover {
            background: #3b82f6;
            color: white;
            transform: translateY(-2px);
        }
        .contact-header-2 {
            text-align: center;
            padding: 40px 0;
        }

address a{
    color: #e6f1ff;
}
.form-parent{
    width: 100%;
    display: flex;
    justify-content: center;
}
.form-container {
  width: 320px;
  border-radius: 0.75rem;
  background-color: rgba(17, 24, 39, 1);
  padding: 2rem;
  color: rgba(243, 244, 246, 1);
}

.title {
  text-align: center;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
}

.form {
  margin-top: 1.5rem;
}

.input-group {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.input-group label {
  display: block;
  color: rgba(156, 163, 175, 1);
  margin-bottom: 4px;
}

.input-group input {
  width: 100%;
  border-radius: 0.375rem;
  border: 1px solid rgba(55, 65, 81, 1);
  outline: 0;
  background-color: rgba(17, 24, 39, 1);
  padding: 0.75rem 1rem;
  color: rgba(243, 244, 246, 1);
}

.input-group input:focus {
  border-color: rgba(167, 139, 250);
}

.forgot {
  display: flex;
  justify-content: flex-end;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(156, 163, 175,1);
  margin: 8px 0 14px 0;
}

.forgot a,.signup a {
  color: rgba(243, 244, 246, 1);
  text-decoration: none;
  font-size: 14px;
}

.forgot a:hover, .signup a:hover {
  text-decoration: underline rgba(167, 139, 250, 1);
}

.sign {
  display: block;
  width: 100%;
  background-color:#64ffda;
  padding: 0.75rem;
  text-align: center;
  color: rgba(17, 24, 39, 1);
  border: none;
  border-radius: 0.375rem;
  font-weight: 600;
}

.social-message {
  display: flex;
  align-items: center;
  padding-top: 1rem;
}

.line {
  height: 1px;
  flex: 1 1 0%;
  background-color: rgba(55, 65, 81, 1);
}

.social-message .message {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: rgba(156, 163, 175, 1);
}

.social-icons {
  display: flex;
  justify-content: center;
}

.social-icons .icon {
  border-radius: 0.125rem;
  padding: 0.75rem;
  border: none;
  background-color: transparent;
  margin-left: 8px;
}

.social-icons .icon svg {
  height: 1.25rem;
  width: 1.25rem;
  fill: #fff;
}

.signup {
  text-align: center;
  font-size: 0.75rem;
  line-height: 1rem;
  color: rgba(156, 163, 175, 1);
}
