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

body {
    font-family: Arial, sans-serif;
    background: #f5f5f5;
    line-height: 1.6;
}

.logo {
    color: white;
    font-size: 2rem;
}
.main-image img {
    max-width: 50%;
    border-radius: 8px;
}
/* Мобільний хедер */
.mobile-header {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #003366;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 60px;
}

.mobile-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff;
    padding: 5px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-icons {
    display: flex;
    gap: 15px;
    font-size: 20px;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 2000;
    transition: left 0.3s ease;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-header {
    padding: 20px;
    background: #003366;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 18px;
    font-weight: bold;
}

.mobile-close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-nav-content {
    padding: 20px;
}

.mobile-nav-content a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
}

.mobile-nav-content a:hover {
    color: #003366;
}

.mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1999;
}

.mobile-overlay.active {
    display: block;
}

/* Десктопний хедер */
.header-top {
    background: #003366;
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 1000;
}

.wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-links {
    background: #003366;
    padding: 15px 0;
    position: relative;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin: 0 25px;
    font-size: 16px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    background: rgba(255,255,255,0.1);
}

/* Випадаюче меню */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-radius: 4px;
    z-index: 1001;
    top: 100%;
    left: 0;
    margin-top: 10px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 14px;
}

.dropdown-content a:hover {
    background: #f8f9fa;
    color: #003366;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.search-container {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 25px;
    padding: 8px 15px;
    margin: 0 20px;
    flex: 0 1 400px;
}

.search-container input {
    border: none;
    background: none;
    outline: none;
    padding: 5px 10px;
    width: 100%;
    font-size: 14px;
}

.search-container button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.icons {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icons span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

/* Основний контент */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

.content {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Стилі для вікторини */
.question__item {
    display: none;
    margin-bottom: 30px;
}

.question__item.active {
    display: block;
    animation: fadeIn 0.5s ease-in;
}

.question__text {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #003366;
}

.question__text span {
    color: #666;
    font-size: 16px;
}

.question__answer {
    display: block;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.question__answer:hover {
    background: #003366;
    color: white;
    border-color: #003366;
}

/* Прелоадер */
.preload {
    display: none;
    text-align: center;
    padding: 50px 0;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #003366;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

.result {
    opacity: 0;
    transition: opacity 0.5s ease;
    margin: 10px 0;
}

/* Привітальна сторінка */
.welcome-page {
    display: none;
    text-align: center;
    margin-bottom: 40px;
    border-radius: 15px;
}

.welcome-page.active {
    display: block;
    animation: fadeIn 1s ease;
}

.welcome-title {
    font-size: 2.5em;
    color: #003366;
    margin-bottom: 20px;
}

.welcome-subtitle {
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

.welcome-steps {
    text-align: left;
    max-width: 600px;
    margin: 0 auto 30px auto;
}

.welcome-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    border-left: 4px solid #003366;
}

.step-number {
    background: #003366;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    flex-shrink: 0;
    margin-top: 2px;
}

.step-content {
    flex: 1;
    line-height: 1.6;
    font-size: 18px;
}

.step-title {
    color: #003366;
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

.welcome-button {
    background: #309246;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

/* Блок відгуків */
.comments {
    margin-top: 40px;
    border-top: 2px solid #e9ecef;
    padding-top: 30px;
}

.review-container {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.average-rating {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.rating {
    font-size: 48px;
    font-weight: bold;
    color: #003366;
}

.total-reviews {
    color: #666;
}

.stars {
    color: #ffc107;
    font-size: 18px;
}

.recommendation {
    background: #003366;
    color: white;
    padding: 1px;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 14px;
}

.bar-container {
    flex: 1;
    background: #e9ecef;
    border-radius: 10px;
    height: 8px;
}

.bar {
    background: #ffc107;
    height: 100%;
    border-radius: 10px;
}

.write-review-block {
    text-align: center;
    margin-top: 20px;
}

.write-review {
    display: inline-block;
    background: #003366;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.write-review:hover {
    background: #002244;
}

/* Стилі для аватарок у відгуках */
.review-avatar-container {
    display: flex;
    align-items: center;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
}

.review-avatar-placeholder {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #003366;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.review-header {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
}

.review-info {
    flex: 1;
    margin-right: 15px;
}

.review-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
}

.review-time {
    font-size: 12px;
    color: #666;
}

.review-rating {
    color: #ffc107;
    font-size: 18px;
    white-space: nowrap;
}

.review-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 12px;
}

.review-image {
    max-width: 200px;
    border-radius: 4px;
    margin-top: 8px;
}

/* Кнопка завантаження відгуків */
.load-more-reviews {
    width: 100%;
    padding: 15px;
    background: #003366;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    font-weight: bold;
}

.load-more-reviews:hover:not(:disabled) {
    background: #002244;
    transform: translateY(-2px);
}

/* Форма відгуку */
.review-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #e9ecef;
}

.review-form h4 {
    margin-bottom: 15px;
    color: #003366;
    text-align: center;
}

.rating-stars {
    display: flex;
    gap: 5px;
    justify-content: center;
    margin-bottom: 15px;
}

.star {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s;
}

.star.active,
.star:hover {
    color: #ffc107;
}

.review-textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.submit-review-btn {
    background: #003366;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: block;
    margin: 0 auto;
}

.submit-review-btn:hover {
    background: #002244;
}

/* Форма */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: Arial, sans-serif;
}

.form-group textarea {
    height: 100px;
    resize: vertical;
}


/* Футер */
.footer {
    background: #003366;
    color: white;
    padding: 30px 20px;
    margin-top: 40px;
    border-top: 3px solid #309246;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.footer-links a:hover {
    color: #309246;
    background: rgba(255, 255, 255, 0.1);
}

.footer-text {
    font-size: 14px;
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

.footer-brand-text,
.footer-facebook-text {
    margin-bottom: 15px;
    color: #cccccc;
}

.footer-copyright {
    font-weight: bold;
    color: #ffffff;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* Мобільна версія футера */
@media (max-width: 768px) {
    .footer {
        padding: 25px 15px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 14px;
        padding: 8px;
    }
    
    .footer-text {
        font-size: 13px;
    }
    
    .footer-brand-text,
    .footer-facebook-text {
        margin-bottom: 12px;
    }
    
    .footer-copyright {
        margin-top: 15px;
        padding-top: 15px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 20px 10px;
    }
    
    .footer-links a {
        font-size: 13px;
    }
    
    .footer-text {
        font-size: 12px;
    }
}

/* Анімації */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Адаптивність для мобільних */
@media (max-width: 768px) {
    .header-top {
        display: none;
    }
    
    .logo {
        color: white;
        font-size: 1rem;
    }
    
    .mobile-header {
        display: flex;
    }
    .main-image img {
        max-width: 50%;
        border-radius: 8px;
    }
    .container {
        margin-top: 60px;
        padding: 0 15px;
    }

    .content {
        padding: 20px;
        margin: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .question__text {
        font-size: 18px;
    }

    .question__answer {
        padding: 12px;
        font-size: 14px;
    }

    .review-container {
        padding: 15px;
    }

    .average-rating {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .rating {
        font-size: 36px;
    }

    .review-item {
        padding: 12px;
    }

    .review-header {
        position: relative;
        padding-right: 50px;
        min-height: 40px;
    }

    .review-avatar-container {
        position: absolute;
        right: 0;
        top: 0;
    }

    .review-avatar,
    .review-avatar-placeholder {
        margin-right: 0;
        width: 35px;
        height: 35px;
    }

    .review-info {
        margin-right: 0;
        padding-right: 10px;
    }

    .review-rating {
        position: absolute;
        right: 0;
        top: 40px;
        font-size: 16px;
    }

    .welcome-title {
        font-size: 1.5em;
    }
    
    .welcome-steps {
        margin-bottom: 20px;
    }
    
    .welcome-step {
        flex-direction: row;
        padding: 12px;
    }
    
    .step-number {
        margin-right: 0;
        margin-bottom: 10px;
        align-self: center;
    }
    
    .step-content {
        font-size: 16px;
        padding-left: 10px;
    }
    
    .welcome-button {
        width: 100%;
        padding: 18px;
    }

    .main-image img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    .content {
        padding: 15px;
    }

    .question__text {
        font-size: 16px;
    }

    .review-container {
        padding: 10px;
    }

    .mobile-nav {
        width: 280px;
    }

    .review-avatar,
    .review-avatar-placeholder {
        width: 30px;
        height: 30px;
    }

    .review-header {
        padding-right: 40px;
    }

    .review-rating {
        font-size: 14px;
        top: 35px;
    }

    .welcome-step {
        padding: 10px;
        margin-bottom: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .step-content {
        font-size: 15px;
    }
}

/* Десктопні стилі */
@media (min-width: 769px) {
    .mobile-header {
        display: none;
    }
    
    .header-top {
        display: block;
    }
}