@import url('https://fonts.googleapis.com/css2?family=PT+Serif:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Базовые стили */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'PT Serif', serif;
    background: white;
    overflow-x: hidden;
}

.main-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Навигация */
nav {
    background-color: #1a1a1a;
    padding: 15px 20px;
    position: relative;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

/* Десктопное меню */
.desktop-menu {
    list-style: none;
    padding: 0;
    margin: 0 0 0 auto;
    display: flex;
    gap: 20px;
}

/* Мобильное меню (скрыто по умолчанию) */
.mobile-menu {
    display: none;
    list-style: none; /* Добавлено */
    padding: 0; /* Добавлено */
}

/* Знак Ъ в навигации */
.nav-sign-container {
    margin-right: auto;
}

.nav-sign {
    font-size: 32px;
    font-weight: bold;
    color: white;
    text-decoration: none;
    transition: transform 0.3s;
}

.nav-sign:hover {
    transform: scale(1.1);
    /* color: white; - Удалено, так как уже задано выше */
}

/* Ссылки меню */
nav a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
    font-weight: bold;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 10px;
}

nav a:hover {
    color: #ffcc00;
}

/* Гамбургер меню */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 15px;
    background: none;
    border: none;
    outline: none;
    position: relative;
    z-index: 1000;
}

.hamburger-box {
    width: 30px;
    height: 24px;
    display: inline-block;
    position: relative;
}

.hamburger-inner {
    display: block;
    top: 50%;
    margin-top: -2px;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    width: 30px;
    height: 3px;
    background-color: white;
    border-radius: 3px;
    position: absolute;
    transition: transform 0.3s ease;
}

.hamburger-inner::before,
.hamburger-inner::after {
    content: "";
    display: block;
}

.hamburger-inner::before {
    top: -10px;
}

.hamburger-inner::after {
    bottom: -10px;
}

/* Основное содержимое */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 20px;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
}

.hard-sign {
    font-size: 30vmin;
    font-weight: normal;
    color: #1a1a1a;
    line-height: 0.7;
    user-select: none;
    max-width: 100%;
    margin: 0;
}

.subtitle {
    margin-top: 20px;
    font-size: 24px;
    color: #555;
    font-style: italic;
    text-align: center;
    padding: 0 20px;
}

/* Подвал */
footer {
    background-color: #1a1a1a;
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 14px;
    flex-shrink: 0;
}

/* Стили для страницы со словами */
.page-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

.words-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: space-between;
    margin-top: 30px;
}

.words-column {
    flex: 1;
    min-width: 200px;
}

.words-column h2 {
    color: #333;
    border-bottom: 2px solid #ffcc00;
    padding-bottom: 5px;
    margin-top: 0;
}

.words-column ul {
    list-style-type: none;
    padding: 0;
}

.words-column li {
    padding: 5px 0;
    font-size: 18px;
}

/* Форма обратной связи */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Мобильная версия */
@media (max-width: 768px) {
    nav {
        padding: 15px;
    }

    .desktop-menu {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .mobile-menu {
        display: flex; /* Изменено с block на flex */
        position: fixed;
        top: 0;
        right: 0;
        width: 250px;
        height: 100vh;
        background-color: #1a1a1a;
        flex-direction: column;
        justify-content: flex-start;
        padding: 80px 20px 20px;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 999;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        transform: translateX(0);
    }
    
    .nav-sign-container.mobile {
        text-align: center;
        margin-bottom: 30px;
    }
    
    .mobile-menu li {
        margin: 12px 0;
        text-align: center;
    }
    
    .mobile-menu a {
        font-size: 20px;
        padding: 10px;
        display: block;
    }
    
    /* Анимация гамбургера */
    .hamburger.active .hamburger-inner {
        transform: rotate(45deg);
    }
    
    .hamburger.active .hamburger-inner::before {
        transform: rotate(-45deg) translate(-7px, -7px);
    }
    
    .hamburger.active .hamburger-inner::after {
        opacity: 0;
    }
    
    /* Контент */
    .content {
        padding: 0 15px;
    }
    
    .hard-sign {
        font-size: 50vmin;
        line-height: 0.6;
    }
    
    .subtitle {
        font-size: 20px;
        padding: 0 15px;
    }

    /* Страница со словами */
    .words-container {
        flex-direction: column;
        gap: 20px;
        padding: 0 15px;
    }
    
    .words-column {
        min-width: 100%;
    }
    
    .words-column li {
        font-size: 16px;
    }
}

/* Стили для формы обратной связи (универсальные) */
.feedback-container {
    max-width: 600px;
    margin: 2rem auto;
    padding: 2.5rem;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.feedback-title {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 2rem;
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    position: relative;
    line-height: 1.3;
}

.feedback-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: #ffcc00;
    margin: 1rem auto 0;
    border-radius: 2px;
}

.feedback-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.form-input, 
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: 'PT Serif', serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
    box-sizing: border-box;
}

.form-input:focus, 
.form-textarea:focus {
    border-color: #ffcc00;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.form-textarea {
    min-height: 160px;
    resize: vertical;
    line-height: 1.5;
}

.submit-btn {
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'PT Serif', serif;
    margin-top: 0.5rem;
    width: 100%;
    max-width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.submit-btn:hover {
    background: #ffcc00;
    color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Дополнительные стили для улучшения UX */
.form-group:has(.form-input:focus),
.form-group:has(.form-textarea:focus) {
    transform: translateY(-1px);
}

/* Медиа-запросы для адаптации */
@media (max-width: 768px) {
    .feedback-container {
        padding: 1.5rem;
        margin: 1rem auto;
        border-radius: 10px;
    }
    
    .feedback-form {
        gap: 1.25rem;
    }
    
    .submit-btn {
        width: 100%;
        max-width: none;
        padding: 0.875rem;
    }
}

@media (min-width: 1200px) {
    .feedback-container {
        margin: 3rem auto;
        padding: 3rem;
    }
    
    .feedback-title {
        margin-bottom: 2.5rem;
    }
}

/* Добавьте эти стили в ваш CSS */
.badge-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.badge-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

.result-card.noun {
    border-left: 4px solid #27ae60 !important;
}

.result-card.not-noun {
    border-left: 4px solid #e74c3c !important;
}

