/* PriceCompare - Полные стили с поддержкой всех функций */

:root {
    /* Цвета */
    --color-primary: #4a6cf7;
    --color-primary-light: #6a8af9;
    --color-primary-dark: #3a5ce7;
    --color-secondary: #2ecc71;
    --color-secondary-light: #4edc91;
    --color-secondary-dark: #1ebc61;
    --color-accent: #e74c3c;
    --color-warning: #f39c12;
    --color-text: #333333;
    --color-text-light: #777777;
    --color-border: #e0e0e0;
    --color-background: #f8f9fa;
    --color-white: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.5);
    
    /* Отступы */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    
    /* Типографика */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-md: 16px;
    --text-lg: 18px;
    --text-xl: 20px;
    --text-2xl: 24px;
    --text-3xl: 32px;
    --text-4xl: 40px;
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Переходы */
    --transition-fast: 0.2s;
    --transition-normal: 0.3s;
    --transition-slow: 0.5s;
    
    /* Контейнер */
    --container-max-width: 1200px;
    --container-padding: 20px;
}

/* Сброс и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-background);
    font-size: var(--text-md);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary);
}

ul {
    list-style: none;
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* Контейнер */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-md);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
    margin-bottom: var(--space-md);
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    gap: var(--space-sm);
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn--primary:hover {
    background-color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn--secondary {
    background-color: var(--color-white);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn--secondary:hover {
    background-color: var(--color-background);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn--text {
    background: none;
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
}

.btn--text:hover {
    background-color: var(--color-background);
}

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

/* Header */
.header {
    background-color: var(--color-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header__content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-lg) 0;
}

.logo__text {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text);
}

.logo__accent {
    color: var(--color-primary);
}

.nav__list {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.nav__link {
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav__link:hover {
    color: var(--color-primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav__link:hover::after {
    width: 100%;
}

.auth-buttons {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

.user-menu {
    display: none;
    align-items: center;
    gap: var(--space-md);
}

#usernameDisplay {
    font-weight: 500;
    color: var(--color-primary);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: var(--text-xl);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: var(--space-3xl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.hero__subtitle {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

/* Search Form */
.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto var(--space-2xl);
    gap: var(--space-md);
    position: relative;
}

.search-form__input-wrapper {
    position: relative;
    flex-grow: 1;
}

.search-form__icon {
    position: absolute;
    left: var(--space-md);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-light);
    pointer-events: none;
}

.search-form__input {
    width: 100%;
    padding: var(--space-md) var(--space-md) var(--space-md) 45px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: var(--text-md);
    transition: border-color var(--transition-fast);
    background-color: var(--color-white);
}

.search-form__input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.search-form__button {
    white-space: nowrap;
    min-width: 120px;
}

.subscription-status {
    margin-bottom: var(--space-xl);
}

.subscription-status__item {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
}

.subscription-status__item--active {
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--color-secondary);
}

.subscription-status__item--demo {
    background-color: rgba(243, 156, 18, 0.1);
    color: var(--color-warning);
}

.subscription-status__item--required {
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--color-accent);
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-2xl);
}

.hero__stat {
    text-align: center;
}

.hero__stat-number {
    font-size: var(--text-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.hero__stat-text {
    font-size: var(--text-sm);
    opacity: 0.9;
}

/* Sections */
.section {
    padding: var(--space-3xl) 0;
}

.section--alt {
    background-color: var(--color-white);
}

.section-title {
    font-size: var(--text-3xl);
    text-align: center;
    margin-bottom: var(--space-2xl);
    font-weight: 700;
}

/* How It Works - ИСПРАВЛЕННЫЙ */
.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.step {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.step__number {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    position: relative;
}

.step__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.step__description {
    color: var(--color-text-light);
    font-size: var(--text-md);
    line-height: 1.6;
}

/* Comparison Example */
.comparison-example {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    margin-top: var(--space-2xl);
}

.comparison-example__title {
    font-size: var(--text-xl);
    text-align: center;
    margin-bottom: var(--space-xl);
    font-weight: 600;
}

.comparison-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.comparison-item {
    background-color: var(--color-background);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
    position: relative;
    transition: transform var(--transition-fast);
}

.comparison-item:hover {
    transform: translateY(-3px);
}

.comparison-item--best {
    border: 2px solid var(--color-secondary);
    background-color: rgba(46, 204, 113, 0.05);
}

.comparison-item__badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-sm);
    font-size: var(--text-sm);
    font-weight: 500;
    box-shadow: var(--shadow-sm);
}

.comparison-item__marketplace {
    margin-bottom: var(--space-md);
}

.comparison-item__logo {
    height: 30px;
    width: auto;
}

.comparison-item__product-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
}

.comparison-item__title {
    font-size: var(--text-md);
    margin-bottom: var(--space-sm);
    font-weight: 600;
    line-height: 1.4;
}

.comparison-item__price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.comparison-item__delivery {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
}

.comparison-item__rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-md);
}

.comparison-item__reviews {
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

.comparison-item__button {
    width: 100%;
    margin-top: var(--space-md);
}

.comparison-summary {
    text-align: center;
    padding: var(--space-lg);
    background-color: var(--color-background);
    border-radius: var(--radius-md);
}

.comparison-summary__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: var(--space-sm);
}

.comparison-summary__text {
    color: var(--color-text-light);
}

/* Benefits - ИСПРАВЛЕННЫЙ */
.benefits__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-xl);
}

.benefit {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: transform var(--transition-fast);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.benefit:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.benefit__icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    margin-bottom: var(--space-md);
    transition: transform var(--transition-fast);
}

.benefit:hover .benefit__icon {
    transform: scale(1.1);
}

.benefit__title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
    font-weight: 600;
}

.benefit__description {
    color: var(--color-text-light);
    font-size: var(--text-md);
    line-height: 1.6;
}

/* FAQ - ИСПРАВЛЕННЫЙ */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-md);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.faq__item:hover {
    box-shadow: var(--shadow-md);
}

.faq__question {
    font-weight: 500;
    font-size: var(--text-lg);
    cursor: pointer;
    position: relative;
    padding-right: 40px;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq__answer {
    margin-top: var(--space-md);
    color: var(--color-text-light);
    font-size: var(--text-md);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
    line-height: 1.6;
}

.faq__toggle {
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-text);
    font-size: var(--text-xl);
    transition: transform var(--transition-normal);
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.faq__item.active .faq__toggle {
    transform: translateY(-50%) rotate(180deg);
}

/* CTA */
.cta {
    background-color: var(--color-primary);
    padding: var(--space-3xl) 0;
    text-align: center;
    color: var(--color-white);
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    pointer-events: none;
}

.cta__content {
    position: relative;
    z-index: 1;
}

.cta__title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    font-weight: 700;
}

.cta__text {
    font-size: var(--text-lg);
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
}

.cta__button {
    font-size: var(--text-lg);
    padding: var(--space-md) var(--space-2xl);
    min-width: 200px;
}

/* Footer */
.footer {
    background-color: var(--color-text);
    color: var(--color-white);
    padding: var(--space-3xl) 0 var(--space-lg);
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer__logo {
    margin-bottom: var(--space-md);
}

.footer__tagline {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.footer__heading {
    font-size: var(--text-lg);
    margin-bottom: var(--space-md);
    font-weight: 600;
}

.footer__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer__link {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    flex-wrap: wrap;
    gap: var(--space-md);
}

.footer__copyright {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer__social-link:hover {
    color: var(--color-white);
    background-color: rgba(255, 255, 255, 0.2);
}

/* Notification System */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
}

.notification {
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
    font-weight: 500;
    animation: slideInRight 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.notification__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.notification__message {
    flex: 1;
}

.notification__close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.notification__close:hover {
    opacity: 1;
}

.notification--success {
    background-color: rgba(46, 204, 113, 0.95);
}

.notification--error {
    background-color: rgba(231, 76, 60, 0.95);
}

.notification--warning {
    background-color: rgba(243, 156, 18, 0.95);
}

.notification--info {
    background-color: rgba(52, 152, 219, 0.95);
}

/* Анимации */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Адаптивный дизайн */
@media (max-width: 768px) {
    :root {
        --container-padding: 15px;
    }
    
    .header__content {
        padding: var(--space-md) 0;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        z-index: 1000;
        padding: var(--space-md) 0;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
        gap: var(--space-md);
        padding: 0 var(--container-padding);
    }
    
    .auth-buttons {
        display: none;
        position: absolute;
        top: calc(100% + 200px);
        left: 0;
        right: 0;
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: var(--space-md) var(--container-padding);
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .auth-buttons.active {
        display: flex;
    }
    
    .user-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: var(--container-padding);
        background-color: var(--color-white);
        box-shadow: var(--shadow-md);
        padding: var(--space-md);
        border-radius: var(--radius-md);
        flex-direction: column;
        gap: var(--space-sm);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hero__title {
        font-size: var(--text-3xl);
    }
    
    .hero__subtitle {
        font-size: var(--text-md);
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--space-lg);
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-form__button {
        width: 100%;
        margin-left: 0;
        margin-top: var(--space-md);
    }
    
    .section-title {
        font-size: var(--text-2xl);
    }
    
    .how-it-works__steps {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .comparison-items {
        grid-template-columns: 1fr;
    }
    
    .benefits__list {
        grid-template-columns: 1fr;
    }
    
    .footer__content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
    
    .notification-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: var(--text-2xl);
    }
    
    .section-title {
        font-size: var(--text-xl);
    }
    
    .step,
    .benefit {
        padding: var(--space-lg);
    }
    
    .comparison-item__product-image {
        width: 120px;
        height: 120px;
    }
    
    .faq__question {
        font-size: var(--text-md);
        padding-right: 30px;
    }
}

/* Утилитарные классы */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.hidden { display: none !important; }
.visible { display: block !important; }

/* Скрытые элементы для accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Фокус для accessibility */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Печать */
@media print {
    .header, .footer, .notification-container {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
@import url(&quot;responsive.css&quot;);

/* Адаптивные стили для PriceCompare */
@media (max-width: 768px) {
    .header__content {
        flex-wrap: wrap;
        padding: 0 15px;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-white);
        box-shadow: var(--shadow-md);
        z-index: 1000;
    }
    
    .nav.active {
        display: block;
    }
    
    .nav__list {
        flex-direction: column;
        padding: 20px;
    }
    
    .nav__item {
        margin: 0;
        margin-bottom: 15px;
    }
    
    .menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 24px;
        cursor: pointer;
        color: var(--color-primary);
    }
    
    .hero__content {
        flex-direction: column;
        text-align: center;
        padding: 40px 15px;
    }
    
    .hero__title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero__description {
        font-size: 1rem;
    }
    
    .search-form__filters {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form__select,
    .price-input {
        width: 100%;
    }
    
    .price-range {
        flex-direction: column;
        gap: 10px;
    }
    
    .auth-card {
        margin: 20px;
        border-radius: 0;
    }
    
    .footer__content {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .how-it-works__steps {
        flex-direction: column;
        gap: 30px;
    }
    
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero__title {
        font-size: 1.5rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
}

@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .search-form__button:active,
    .btn:active {
        transform: scale(0.95);
    }
}
/* Стили для секции результатов поиска */
.results {
    padding: 60px 0;
    background: #f8f9fa;
}

.results__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 20px;
}

.results__title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.results__controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.results__sort {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.3s ease;
}

.results__sort:hover {
    border-color: #667eea;
}

.results__sort:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.product-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.product-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-card__content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-card__title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0 0 12px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 13px;
    color: #666;
}

.product-card__seller {
    font-weight: 500;
}

.product-card__rating {
    color: #ffa500;
    font-weight: 600;
}

.product-card__footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-card__price {
    font-size: 20px;
    font-weight: 700;
    color: #667eea;
}

.product-card__link {
    padding: 8px 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.product-card__link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    font-size: 18px;
    color: #666;
    grid-column: 1 / -1;
}

/* Адаптивность */
@media (max-width: 768px) {
    .results {
        padding: 40px 0;
    }
    
    .results__header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .results__title {
        font-size: 24px;
    }
    
    .results__grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 16px;
    }
    
    .product-card__title {
        font-size: 14px;
    }
    
    .product-card__price {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .results__grid {
        grid-template-columns: 1fr;
    }
}/* Стили для отображения цен */
.product-card__price-info {
    margin-bottom: 12px;
}

.product-card__price-main {
    font-size: 24px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 4px;
}

.product-card__price-details {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

/* Улучшенная адаптивность для hero секции */
@media (max-width: 992px) {
    .hero__title {
        font-size: 36px;
    }
    
    .hero__subtitle {
        font-size: 18px;
    }
    
    .search-form {
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero__title {
        font-size: 28px;
        margin-bottom: 16px;
    }
    
    .hero__subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .search-form {
        max-width: 100%;
        padding: 6px;
    }
    
    .search-form__input-wrapper {
        flex-direction: column;
        gap: 8px;
    }
    
    .search-form__input {
        width: 100%;
        padding: 14px 12px;
    }
    
    .btn--accent {
        width: 100%;
        padding: 14px 24px;
    }
    
    .hero__info {
        gap: 20px;
    }
    
    .hero__info-item {
        font-size: 14px;
    }
    
    /* Адаптивность для результатов */
    .results__grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .results__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .product-card__footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .product-card__link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 40px 0;
    }
    
    .hero__title {
        font-size: 24px;
    }
    
    .hero__subtitle {
        font-size: 14px;
    }
    
    .search-form__icon {
        display: none;
    }
    
    .hero__info {
        flex-direction: column;
        gap: 12px;
    }
    
    .product-card__price-main {
        font-size: 20px;
    }
    
    .product-card__price-details {
        font-size: 11px;
    }
}

/* Улучшенная адаптивность для header */
@media (max-width: 768px) {
    .header__content {
        padding: 12px 0;
    }
    
    .nav {
        display: none;
    }
    
    .auth-buttons {
        gap: 8px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 14px;
    }
}

/* Адаптивность для секций */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }
    
    
    .benefits__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .examples__grid {
        grid-template-columns: 1fr;
    }
}
/* Улучшенные стили для блока "Как это работает" */
.how-it-works {
    padding: 60px 0;
    background: #f8f9fa;
}

.how-it-works .section-title {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}


.step {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.step__number {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.step__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step__icon .material-icons {
    font-size: 32px;
    color: white;
}

.step__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
}

.step__description {
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

/* FAQ улучшения */
.faq {
    padding: 60px 0;
}

.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 8px;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.12);
}

.faq-item__question {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-item__question h3 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 0;
    flex: 1;
}

.faq-item__icon {
    color: #667eea;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding: 0 24px;
}

.faq-item.active .faq-item__answer {
    max-height: 500px;
    padding: 0 24px 20px;
}

.faq-item__answer p {
    margin: 0;
    color: #666;
    line-height: 1.6;
    font-size: 14px;
}

/* Адаптивность для "Как это работает" */
@media (max-width: 768px) {
    .how-it-works {
        padding: 40px 0;
    }
    
    .how-it-works .section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }
    
    
    .step {
        padding: 25px 20px;
    }
    
    .step__number {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    .step__icon {
        width: 50px;
        height: 50px;
    }
    
    .step__icon .material-icons {
        font-size: 28px;
    }
    
    .step__title {
        font-size: 16px;
    }
    
    .step__description {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .faq-item__question {
        padding: 16px 20px;
    }
    
    .faq-item__question h3 {
        font-size: 14px;
    }
    
    .faq-item__answer {
        padding: 0 20px;
    }
    
    .faq-item.active .faq-item__answer {
        padding: 0 20px 16px;
    }
}
/* Новые стили для карточек "Как это работает" и "Преимущества" */

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.step-card__info {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #e8f4fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-card__info .material-icons {
    font-size: 16px;
    color: #2196F3;
}

.step-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step-card__icon .material-icons {
    font-size: 28px;
    color: white;
}

.step-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.step-card__description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
    }
}

/* Стили для секции преимуществ */
.benefits__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.benefit-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.benefit-card__info {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 24px;
    height: 24px;
    background: #e8f4fd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-card__info .material-icons {
    font-size: 16px;
    color: #2196F3;
}

.benefit-card__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-card__icon .material-icons {
    font-size: 28px;
    color: white;
}

.benefit-card__title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.benefit-card__description {
    font-size: 14px;
    color: #7f8c8d;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .benefits__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .benefits__grid {
        grid-template-columns: 1fr;
    }
}
/* Updated styles applied */

/* Исправление для секции "Как это работает" */
.how-it-works .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

@media (max-width: 1024px) {
    .how-it-works .steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .how-it-works .steps {
        grid-template-columns: 1fr;
    }
}

/* Форсированное применение стилей с !important */
.how-it-works .steps {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-top: 40px !important;
}

@media (max-width: 1024px) {
    .how-it-works .steps {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .how-it-works .steps {
        grid-template-columns: 1fr !important;
    }
}
