/**
 * RecyclingBulat - Unified Stylesheet
 * ====================================
 */

html {
    scroll-behavior: smooth;
}


:root {
    /* Основная палитра */
    --bs-primary: #FF6720;
    --bs-primary-rgb: 255, 103, 32;
    --bs-primary-dark: #E55A1C;
    --bs-primary-light: #FF8547;

    /* Дополнительные цвета */
    --bs-secondary: #414141;
    --bs-secondary-rgb: 44, 62, 80;
    --bs-accent: #FFA726;
    --bs-accent-rgb: 255, 167, 38;

    /* Цвета для серий картриджей */
    --color-series-a: #FF8A00;
    --color-series-p: #E74C3C;
    --color-series-b: #414141;
    --color-printers: #3498DB;
    --color-cartridges: #9B59B6;
    --color-chips: #27AE60;

    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, #FF6720 0%, #FFA726 100%);
    --gradient-dark: linear-gradient(135deg, #414141 0%, #414141 100%);
    --gradient-series-a: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%);
    --gradient-series-p: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    --gradient-series-b: linear-gradient(135deg, #414141 0%, #2C3E50 100%);
    --gradient-printers: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
    --gradient-cartridges: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
    --gradient-chips: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
}


html {
    scroll-behavior: smooth;
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


main {
    flex: 1;
}


.navbar {
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
}


.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary) !important;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}


.navbar-brand:hover {
    transform: scale(1.03);
}


.navbar-brand .brand-logo {
    width: 30px;
    height: 30px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}


.nav-link {
    color: var(--bs-secondary) !important;
    font-weight: 500;
    padding: 0.5rem 1.25rem !important;
    transition: all 0.3s ease;
    position: relative;
}


.nav-link:hover {
    color: var(--bs-primary) !important;
}


.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: width 0.3s ease;
}


.nav-link:hover::after {
    width: 60%;
}


.search-box {
    position: relative;
    margin-left: 1rem;
}


.search-input {
    width: 250px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}


.search-input:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(255, 103, 32, 0.1);
    width: 300px;
}


.search-button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bs-primary);
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}


.search-button:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-50%) scale(1.1);
}


.btn-login {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.6rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.3);
}


.btn-login:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 32, 0.4);
}


.hero-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}


.hero-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 103, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}


.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 0.8s ease;
}


.hero-content p {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease;
}


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


.btn-catalog {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 1rem 3rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(255, 103, 32, 0.3);
}


.btn-catalog:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(255, 103, 32, 0.4);
}


.hero-image {
    position: relative;
    animation: fadeInRight 1s ease;
}


@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


.book-stack {
    display: flex;
    gap: 20px;
    perspective: 1000px;
    justify-content: center;
    align-items: flex-end;
}


.book {
    width: 180px;
    height: 240px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    transition: transform 0.3s ease;
}


.book::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 60px;
}


.book::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 50px;
}


.book:hover {
    transform: translateY(-10px) rotateY(5deg);
}


.book-b {
    background: linear-gradient(135deg, #414141 0%, #414141 100%);
}


.book-p {
    background: linear-gradient(135deg, #E74C3C 0%, #E74C3C 100%);
    height: 260px;
}


.book-a {
    background: linear-gradient(135deg, #FF8A00 0%, #FF8A00 100%);
    height: 220px;
}


.series-section {
    padding: 60px 0;
    margin-top: -40px;
    position: relative;
    z-index: 10;
    background: white;
}


.series-card {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.4s ease;
    background: white;
    height: 100%;
}


.series-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}


.series-card.disabled {
    cursor: not-allowed;
    position: relative;
}


.series-card.disabled:hover {
    transform: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}


.series-card.disabled::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(248, 249, 250, 0.85);
    backdrop-filter: blur(2px);
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
}


.series-card.disabled::after {
    content: '\F293'; /* Bootstrap Icons lock icon */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.15);
    z-index: 2;
    pointer-events: none;
}


.series-card.disabled .series-info a {
    pointer-events: none;
}


.series-card.disabled:hover .series-icon {
    transform: none;
}


.series-card.disabled .series-card-header {
    filter: grayscale(30%);
}


.series-card-header {
    padding: 0;
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
}


.series-card-header-a {
    background: linear-gradient(135deg, #FF8A00 0%, #FF8A00 100%);
}


.series-card-header-p {
    background: linear-gradient(135deg, #E74C3C 0%, #E74C3C 100%);
}


.series-card-header-b {
    background: linear-gradient(135deg, #414141 0%, #414141 100%);
}


.series-icon {
    width: 100px;
    height: 130px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    position: relative;
}


.series-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.4);
    bottom: 30px;
}


.series-card:hover .series-icon {
    transform: scale(1.1) rotate(-5deg);
}


.series-info {
    color: white;
    flex: 1;
    padding-left: 1.5rem;
}


.series-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}


.series-info a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}


.series-info a:hover {
    transform: translateX(5px);
}


.series-info a i {
    margin-left: 8px;
    transition: margin-left 0.3s ease;
}


.series-info a:hover i {
    margin-left: 12px;
}


.series-card-body {
    padding: 1.5rem;
    background: white;
}


.info-section {
    padding: 60px 0;
    background: #f8f9fa;
}


.info-card-link {
    text-decoration: none;
    display: block;
    height: 100%;
}


.info-card {
    background: white;
    border: none;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}


.info-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}


.info-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-right: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(255, 103, 32, 0.3);
    transition: transform 0.3s ease;
}


.info-card:hover .info-icon {
    transform: scale(1.1) rotate(10deg);
}


.info-content h5 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0;
}


.news-section {
    padding: 60px 0;
    background: white;
}


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


.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}


.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    border-radius: 2px;
}


.section-header p {
    color: #6c757d;
    font-size: 1.1rem;
}


.news-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.news-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}


.news-card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}


.news-card-image::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 103, 32, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}


.news-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.news-date {
    color: var(--bs-primary);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}


.news-date i {
    margin-right: 6px;
}


.news-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}


.news-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}


.news-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
}


.news-link:hover {
    color: var(--bs-primary-dark);
    transform: translateX(5px);
}


.news-link i {
    margin-left: 6px;
    transition: margin-left 0.3s ease;
}


.news-link:hover i {
    margin-left: 10px;
}


.all-news-card {
    background: var(--gradient-primary);
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(255, 103, 32, 0.3);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    position: relative;
    cursor: pointer;
}


.all-news-card:hover {
    box-shadow: 0 8px 28px rgba(255, 103, 32, 0.4);
    transform: translateY(-8px);
}


.all-news-card::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -50px;
    right: -50px;
    animation: float 6s ease-in-out infinite;
}


.all-news-content {
    text-align: center;
    color: white;
    z-index: 1;
}


.all-news-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}


.all-news-content h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}


.all-news-content p {
    font-size: 1.1rem;
    opacity: 0.95;
}


.about-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    position: relative;
    overflow: hidden;
}


.about-section::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 103, 32, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}


.about-content {
    position: relative;
    z-index: 1;
}


.about-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}


.about-content h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--bs-primary);
    border-radius: 2px;
}


.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 2rem;
}


.about-text p {
    margin-bottom: 1.5rem;
    text-align: justify;
}


.about-text strong {
    color: var(--bs-primary);
    font-weight: 700;
}


.about-highlight {
    background: linear-gradient(90deg, rgba(255, 103, 32, 0.1) 0%, transparent 100%);
    padding: 1.5rem;
    border-left: 4px solid var(--bs-primary);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
}


.about-highlight p {
    margin-bottom: 0;
    font-style: italic;
    color: var(--bs-secondary);
}


.about-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}


.stat-item {
    flex: 1;
    min-width: 150px;
    text-align: center;
}


.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.5rem;
    display: block;
}


.stat-label {
    color: var(--bs-secondary);
    font-weight: 600;
}


.books-fan {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.fan-book {
    position: absolute;
    width: 140px;
    height: 200px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    transform-origin: bottom center;
}


.fan-book::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: rgba(255, 255, 255, 0.3);
    bottom: 50px;
}


.fan-book-a {
    background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%);
    transform: rotate(-40deg) translateY(20px);
    z-index: 1;
}


.fan-book-p {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
    transform: rotate(0deg);
    z-index: 2;
}


.fan-book-b {
    background: linear-gradient(135deg, #414141 0%, #2C3E50 100%);
    transform: rotate(40deg) translateY(20px);
    z-index: 1;
}


.books-fan:hover .fan-book-a {
    transform: rotate(-50deg) translateY(10px);
}


.books-fan:hover .fan-book-p {
    transform: rotate(0deg) translateY(-10px);
}


.books-fan:hover .fan-book-b {
    transform: rotate(50deg) translateY(10px);
}


.contacts-section {
    padding: 80px 0;
    background: white;
}


.contact-card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}


.contact-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    transform: translateY(-5px);
}


.contact-icon-wrapper {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 4px 16px rgba(255, 103, 32, 0.3);
}


.contact-icon-wrapper i {
    font-size: 2rem;
    color: white;
}


.contact-card h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
    text-align: center;
}


.contact-info {
    text-align: center;
}


.contact-info p {
    color: #6c757d;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}


.contact-info a {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}


.contact-info a:hover {
    color: var(--bs-primary-dark);
}


.contact-map {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    border-radius: 16px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}


.contact-map::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 103, 32, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}


.contact-form {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.contact-form h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
}


.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 103, 32, 0.25);
}


.btn-submit {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.75rem 2.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.3);
}


.btn-submit:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 32, 0.4);
}


footer {
    background: var(--gradient-dark);
    color: white;
    padding: 50px 0 30px;
    margin-top: 60px;
}


footer h5 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}


footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}


footer a:hover {
    color: var(--bs-primary);
    transform: translateX(5px);
}


footer ul {
    list-style: none;
    padding: 0;
}


footer ul li {
    margin-bottom: 0.75rem;
}


.footer-description {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


.social-links {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}


.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: none;
}


.social-links a:hover {
    background: var(--bs-primary);
    transform: translateY(-3px) scale(1.1);
}


.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 3rem;
    padding-top: 2rem;
}


.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
}


@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .book-stack {
        margin-top: 3rem;
    }

    .book {
        width: 140px;
        height: 180px;
        font-size: 3.5rem;
    }

    .book-p {
        height: 200px;
    }

    .book-a {
        height: 170px;
    }
}


@media (max-width: 768px) {
    .hero-section {
        padding: 50px 0 40px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn-catalog {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .search-box {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .series-card-header {
        flex-direction: column;
        height: auto;
        padding: 1.5rem;
        text-align: center;
    }

    .series-icon {
        margin-bottom: 1rem;
    }

    .series-info {
        padding-left: 0;
    }

    .info-card {
        flex-direction: column;
        text-align: center;
    }

    .info-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
}


@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .book {
        width: 90px;
        height: 120px;
        font-size: 2.5rem;
    }

    .book-p {
        height: 140px;
    }

    .book-a {
        height: 110px;
    }

    .series-section {
        margin-top: 0;
    }

    .news-card-image {
        height: 180px;
        font-size: 3rem;
    }

    .all-news-card {
        min-height: 350px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .about-content h2 {
        font-size: 2rem;
    }

    .about-stats {
        gap: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .books-fan {
        height: 300px;
    }

    .fan-book {
        width: 100px;
        height: 150px;
        font-size: 3rem;
    }

    .contact-map {
        height: 300px;
        font-size: 4rem;
    }
}


body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    overflow-x: hidden;
    background: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.breadcrumb-section {
    background: white;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e0e0e0;
}


.breadcrumb {
    margin-bottom: 0;
}


.breadcrumb-item a {
    color: var(--bs-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}


.breadcrumb-item a:hover {
    color: var(--bs-primary-dark);
}


.breadcrumb-item.active {
    color: #6c757d;
}


.series-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}


.series-indicator i {
    font-size: 1.1rem;
}


.product-section {
    padding: 3rem 0;
}


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


.product-image-circle {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 5rem;
    color: rgba(0, 0, 0, 0.1);
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.product-image-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    z-index: 1;
}


.product-image-circle > i {
    position: relative;
    z-index: 2;
}


.series-badge-circle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(65, 65, 65, 0.4);
    border: 3px solid white;
    z-index: 100;
}


.product-main-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin: 0;
}


.info-block {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    height: 100%;
}


.block-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
}


.block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}


.info-block .d-flex.align-items-center {
    margin-bottom: 0;
}


.info-table {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.info-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f5f5f5;
}


.info-row:last-child {
    border-bottom: none;
}


.info-label {
    color: #6c757d;
    font-weight: 500;
    flex: 0 0 40%;
}


.info-value {
    color: var(--bs-secondary);
    font-weight: 600;
    text-align: right;
    flex: 1;
}


.info-value-inline {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}


.info-value-inline span {
    white-space: nowrap;
}


.info-value-inline .value-label {
    color: #6c757d;
    font-weight: 500;
}


.info-value-inline .value-data {
    color: var(--bs-secondary);
    font-weight: 700;
}


.doc-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}


.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}


.doc-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}


.doc-info {
    flex: 1;
}


.doc-name {
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0.25rem;
}


.doc-description {
    font-size: 0.9rem;
    color: #6c757d;
}


.btn-download {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 32, 0.3);
    white-space: nowrap;
}


.btn-download:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.4);
}


.tabs-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}


.custom-tabs {
    border-bottom: none;
    padding: 1.5rem;
    gap: 0.75rem;
    background: #f8f9fa;
    flex-wrap: wrap;
}


.custom-tabs .nav-item {
    margin-bottom: 0;
}


.custom-tabs .nav-link {
    border: 2px solid transparent;
    background: white;
    color: #6c757d;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}


.custom-tabs .nav-link::after {
    display: none;
}


.custom-tabs .nav-link:hover {
    color: var(--bs-primary);
    border-color: var(--bs-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.2);
}


.custom-tabs .nav-link.active {
    color: var(--bs-primary);
    background: rgba(255, 103, 32, 0.1);
    border-color: var(--bs-primary);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.2);
}


.custom-tabs .nav-link.active:hover {
    color: var(--bs-primary-dark);
    background: rgba(255, 103, 32, 0.15);
    border-color: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 103, 32, 0.3);
}


.custom-tab-content {
    padding: 2rem;
}


.tab-inner h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1.5rem;
}


.tab-inner p {
    color: #6c757d;
    line-height: 1.8;
}


.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}


.reviews-header h3 {
    margin-bottom: 0;
}


.btn-add-review {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 32, 0.3);
}


.btn-add-review:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.4);
}


.review-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
}


.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}


.review-author {
    font-weight: 700;
    color: var(--bs-secondary);
    font-size: 1.1rem;
}


.review-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}


.review-rating {
    color: var(--bs-primary);
}


.review-date {
    font-size: 0.9rem;
    color: #6c757d;
}


.review-text {
    color: #495057;
    line-height: 1.6;
}


.qa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}


.qa-header h3 {
    margin-bottom: 0;
}


.btn-ask-question {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 32, 0.3);
}


.btn-ask-question:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.4);
}


.qa-item {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 1rem;
    border-left: 4px solid var(--bs-primary);
}


.qa-question {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}


.qa-icon {
    width: 40px;
    height: 40px;
    background: var(--bs-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    flex-shrink: 0;
}


.qa-question-text {
    font-weight: 700;
    color: var(--bs-secondary);
    font-size: 1.05rem;
}


.qa-answer {
    padding-left: 3.5rem;
    color: #495057;
    line-height: 1.6;
}


.qa-no-answer {
    padding-left: 3.5rem;
    color: #6c757d;
    font-style: italic;
}


.overview-item {
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


.overview-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 16px rgba(255, 103, 32, 0.15);
    transform: translateY(-2px);
}


.overview-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}


.overview-content {
    flex: 1;
}


.overview-source {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}


.overview-title {
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 0;
}


.overview-link {
    color: var(--bs-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}


.overview-link:hover {
    color: var(--bs-primary-dark);
    text-decoration: underline;
}


.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}


.cartridge-item {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}


.cartridge-item:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 4px 16px rgba(255, 103, 32, 0.2);
    transform: translateY(-3px);
}


.cartridge-item-icon {
    width: 60px;
    height: 60px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
    color: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}


.cartridge-item:hover .cartridge-item-icon {
    background: rgba(255, 103, 32, 0.1);
    color: var(--bs-primary);
}


.cartridge-item-model {
    font-weight: 700;
    color: var(--bs-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}


.cartridge-item-type {
    font-size: 0.85rem;
    color: #6c757d;
}


.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}


.modal-overlay.active {
    display: flex;
}


.modal-window {
    background: white;
    border-radius: 16px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}


@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.modal-header {
    padding: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}


.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin: 0;
}


.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}


.modal-close:hover {
    background: #f0f0f0;
    color: var(--bs-secondary);
}


.modal-body {
    padding: 1.5rem;
}


.form-group {
    margin-bottom: 1.5rem;
}


.form-label {
    display: block;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}


.form-hint {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.25rem;
}


.form-input,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: inherit;
}


.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 3px rgba(255, 103, 32, 0.1);
}


.form-textarea {
    resize: vertical;
    min-height: 120px;
}


.star-rating {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}


.star-rating-label {
    display: block;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-bottom: 0.5rem;
}


.star {
    font-size: 2rem;
    color: #e0e0e0;
    cursor: pointer;
    transition: all 0.2s ease;
}


.star:hover,
.star.active {
    color: var(--bs-primary);
    transform: scale(1.1);
}


.star-rating-hint {
    display: block;
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}


.modal-footer {
    padding: 1.5rem;
    border-top: 2px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}


.btn-submit {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 32, 0.3);
}


.btn-submit:hover {
    background: var(--bs-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.4);
}


.btn-submit:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


@media (max-width: 768px) {
    .search-box {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .product-main-title {
        font-size: 1.4rem;
    }

    .product-image-circle {
        width: 150px;
        height: 150px;
        font-size: 4rem;
    }

    .series-badge-circle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .series-indicator {
        font-size: 0.8rem;
        padding: 0.3rem 0.75rem;
    }

    .info-label {
        flex: 0 0 35%;
        font-size: 0.9rem;
    }

    .info-value {
        font-size: 0.9rem;
    }

    .doc-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .btn-download {
        width: 100%;
    }

    .custom-tabs {
        padding: 1rem;
    }

    .custom-tabs .nav-link {
        padding: 0.65rem 1rem;
        font-size: 0.9rem;
    }

    .review-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .review-meta {
        align-items: flex-start;
    }

    .compatibility-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .qa-answer,
    .qa-no-answer {
        padding-left: 0;
        margin-top: 1rem;
    }

    .overview-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .overview-link {
        margin-top: 1rem;
    }

    .modal-window {
        max-height: 95vh;
    }

    .star {
        font-size: 1.5rem;
    }
}


.series-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: var(--gradient-series-a);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.3);
}


.product-image-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -30px;
    right: -30px;
    z-index: 1;
}


.series-badge-circle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    background: var(--gradient-series-a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
    border: 3px solid white;
    z-index: 100;
}


.series-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}


.product-image-circle::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    z-index: 1;
}


.series-badge-circle {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    border: 3px solid white;
    z-index: 100;
}


.page-header {
    background: var(--gradient-series-a);
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.page-header::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}


.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}


.page-header p {
    font-size: 1.1rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}


.series-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.filter-section {
    background: white;
    padding: 2rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}


.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}


.filter-label {
    font-weight: 600;
    color: var(--bs-secondary);
    margin-right: 0.5rem;
}


.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    min-width: 200px;
}


.filter-select:focus {
    outline: none;
    border-color: var(--bs-primary);
}


.results-count {
    color: #6c757d;
    font-size: 0.95rem;
}


.catalog-section {
    padding: 3rem 0;
}


.cartridge-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.cartridge-card:hover {
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}


.cartridge-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.series-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--gradient-series-a);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(255, 138, 0, 0.3);
}


.cartridge-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.cartridge-model {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}


.cartridge-info {
    flex: 1;
    margin-bottom: 1rem;
}


.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}


.info-item:last-child {
    border-bottom: none;
}


.info-label {
    color: #6c757d;
}


.info-value {
    color: var(--bs-secondary);
    font-weight: 600;
}


.btn-details {
    background: var(--bs-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 103, 32, 0.3);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}


.btn-details:hover {
    background: var(--bs-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 103, 32, 0.4);
}


.news-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}


.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}


.news-card-image {
    height: 200px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255, 103, 32, 0.2);
    position: relative;
    overflow: hidden;
}


.news-card-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.news-date {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.news-excerpt {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}


.news-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}


.news-link:hover {
    gap: 1rem;
    color: var(--bs-primary-dark);
}


.news-detail-section {
    background: #f8f9fa;
}


.news-detail-header {
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}


.news-detail-meta {
    display: flex;
    gap: 2rem;
    color: #6c757d;
    font-size: 0.95rem;
}


.news-detail-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}


.news-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--bs-secondary);
    line-height: 1.3;
}


.news-detail-image {
    border-radius: 16px;
    overflow: hidden;
}


.news-detail-image-placeholder {
    height: 400px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 103, 32, 0.2);
    position: relative;
}


.news-detail-image-placeholder::before {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255, 138, 0, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    top: -50px;
    right: -50px;
}


.news-detail-content {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}


.news-detail-content .lead {
    font-size: 1.25rem;
    color: #495057;
    margin-bottom: 2rem;
    line-height: 1.7;
}


.news-detail-content h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-top: 2.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.3;
}


.news-detail-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}


.news-detail-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-top: 1.75rem;
    margin-bottom: 0.875rem;
    line-height: 1.4;
}


.news-detail-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-secondary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}


.news-detail-content h1:first-child,
.news-detail-content h2:first-child,
.news-detail-content h3:first-child,
.news-detail-content h4:first-child {
    margin-top: 0;
}


.news-detail-content p {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}


.news-detail-content p:last-child {
    margin-bottom: 0;
}


.news-detail-content ul,
.news-detail-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}


.news-detail-content ul li,
.news-detail-content ol li {
    color: #495057;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0.75rem;
}


.news-detail-content ul li:last-child,
.news-detail-content ol li:last-child {
    margin-bottom: 0;
}


.news-detail-content ul ul,
.news-detail-content ol ol,
.news-detail-content ul ol,
.news-detail-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}


.news-detail-content strong {
    font-weight: 700;
    color: var(--bs-secondary);
}


.news-detail-content em {
    font-style: italic;
}


.news-detail-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid var(--bs-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
    font-size: 1.15rem;
    font-style: italic;
    color: #495057;
}


.news-detail-content blockquote p {
    margin-bottom: 0.75rem;
}


.news-detail-content blockquote p:last-child {
    margin-bottom: 0;
}


.news-detail-content a {
    color: var(--bs-primary);
    text-decoration: underline;
    transition: color 0.3s ease;
}


.news-detail-content a:hover {
    color: var(--bs-primary-dark);
}


.news-detail-content code {
    background: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #e83e8c;
}


.news-detail-content pre {
    background: #f8f9fa;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1.5rem 0;
    border-left: 4px solid var(--bs-primary);
}


.news-detail-content pre code {
    background: transparent;
    padding: 0;
    color: #495057;
    font-size: 0.95rem;
}


.news-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}


.news-detail-content iframe,
.news-detail-content video {
    max-width: 100%;
    border-radius: 12px;
    margin: 1.5rem 0;
}


.news-detail-content hr {
    border: none;
    border-top: 2px solid #e9ecef;
    margin: 2rem 0;
}


.news-detail-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}


.news-detail-content table th,
.news-detail-content table td {
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    text-align: left;
}


.news-detail-content table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--bs-secondary);
}


.news-detail-content .ql-align-center {
    text-align: center;
}


.news-detail-content .ql-align-right {
    text-align: right;
}


.news-detail-content .ql-align-justify {
    text-align: justify;
}


.news-detail-content .ql-indent-1 { padding-left: 3rem; }


.news-detail-content .ql-indent-2 { padding-left: 6rem; }


.news-detail-content .ql-indent-3 { padding-left: 9rem; }


.news-detail-content .ql-color-red { color: #dc3545; }


.news-detail-content .ql-color-green { color: #28a745; }


.news-detail-content .ql-color-blue { color: #007bff; }


.news-quote {
    background: #f8f9fa;
    border-left: 4px solid var(--bs-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}


.news-quote p {
    font-size: 1.15rem;
    font-style: italic;
    color: #495057;
    margin-bottom: 0.75rem;
}


.news-quote footer {
    color: #6c757d;
    font-size: 0.95rem;
    font-style: normal;
}


.news-detail-footer {
    padding-top: 2rem;
    border-top: 2px solid #e9ecef;
}


.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-secondary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}


.btn-back:hover {
    color: var(--bs-primary);
    gap: 1rem;
}


.news-share {
    display: flex;
    align-items: center;
}


.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    color: var(--bs-secondary);
    text-decoration: none;
    margin-left: 0.5rem;
    transition: all 0.3s ease;
}


.share-link:hover {
    background: var(--bs-primary);
    color: white;
    transform: translateY(-2px);
}


@media (max-width: 768px) {
    .news-detail-title {
        font-size: 1.75rem;
    }

    .news-detail-image-placeholder {
        height: 250px;
        font-size: 3rem;
    }

    .news-detail-content {
        padding: 1.5rem;
    }

    .news-detail-footer {
        flex-direction: column;
        gap: 1.5rem;
    }

    .news-detail-footer > div {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1rem;
    }
}


.pagination-section {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}


.pagination {
    gap: 0.5rem;
}


.page-link {
    color: var(--bs-secondary);
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}


.page-link:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: white;
}


.page-item.active .page-link {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}


@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .search-box {
        margin-left: 0;
        margin-top: 1rem;
        width: 100%;
    }

    .search-input {
        width: 100%;
    }

    .search-input:focus {
        width: 100%;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-select {
        width: 100%;
    }

    .cartridge-image {
        height: 180px;
        font-size: 2.5rem;
    }
}


.page-header {
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.series-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}


.page-header {
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.series-label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(65, 65, 65, 0.3);
}


.page-header {
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.series-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 12px;
    font-size: 2rem;
    font-weight: 700;
    margin-right: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.page-header {
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.page-header {
    color: white;
    padding: 60px 0 40px;
    position: relative;
    overflow: hidden;
}


.cartridge-image::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
}


.catalog-hero {
    padding: 6rem 0 3rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}


.catalog-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--bs-secondary);
    margin-bottom: 1rem;
}


.catalog-hero p {
    font-size: 1.25rem;
    color: #6c757d;
}


.catalog-section {
    padding: 4rem 0;
}


.catalog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}


.catalog-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px);
    position: relative;
}


.catalog-card.animate-in {
    animation: cardFadeIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}


.catalog-card-header {
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, var(--bs-primary) 0%, #FFA726 100%);
    position: relative;
    overflow: hidden;
}


.catalog-card-header::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -100px;
    right: -50px;
}


.catalog-card-header-series-a {
    background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%);
}


.catalog-card-header-series-p {
    background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
}


.catalog-card-header-series-b {
    background: linear-gradient(135deg, #414141 0%, #2C3E50 100%);
}


.catalog-card-header-printers {
    background: linear-gradient(135deg, #27AE60 0%, #229954 100%);
}


.catalog-card-header-cartridges {
    background: linear-gradient(135deg, #3498DB 0%, #2980B9 100%);
}


.catalog-card-header-chips {
    background: linear-gradient(135deg, #F39C12 0%, #E67E22 100%);
}


.catalog-card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}


.catalog-card-title {
    color: white;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0;
    position: relative;
    z-index: 1;
}


.catalog-card-body {
    padding: 2rem;
}


.catalog-card-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}


.catalog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--bs-primary);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}


.catalog-card-link:hover {
    gap: 1rem;
    color: var(--bs-primary-dark);
}


.catalog-card-series-a .catalog-card-link {
    color: #FF8A00;
}


.catalog-card-series-p .catalog-card-link {
    color: #E74C3C;
}


.catalog-card-series-b .catalog-card-link {
    color: #414141;
}


.catalog-card-link-printers {
    color: #27AE60;
}


.catalog-card-link-cartridges {
    color: #3498DB;
}


.catalog-card-link-chips {
    color: #F39C12;
}


@media (max-width: 768px) {
    .catalog-hero h1 {
        font-size: 2rem;
    }

    .catalog-hero p {
        font-size: 1rem;
    }

    .catalog-grid {
        grid-template-columns: 1fr;
    }

    .catalog-card-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .catalog-card-title {
        font-size: 1.5rem;
    }
}
/* Series Р (красная) */
.series-p .page-header { background: var(--gradient-series-p); }
.series-p .cartridge-image::before {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 70%);
}
.series-p .series-label { background: var(--gradient-series-p); }
.series-p .series-badge-circle{
    background: var(--gradient-series-p);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}
.series-p .series-indicator{
    background: var(--gradient-series-p);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);}
.series-p .product-image-circle::before {
    background: radial-gradient(circle, rgba(231, 76, 60, 0.15) 0%, transparent 70%);
}

/* Series B (чёрная) */
.series-b .page-header { background: var(--gradient-series-b); }
.series-b .series-label { background: var(--gradient-series-b); }
.series-b .cartridge-image::before{
    background: radial-gradient(circle, rgba(65, 65, 65, 0.15) 0%, transparent 70%);
}
.series-b .series-badge-circle{
    background: var(--gradient-series-b);
    box-shadow: 0 4px 12px rgba(65, 65, 65, 0.4);
}
.series-b .series-indicator{
    background: var(--gradient-series-b);
    box-shadow: 0 2px 8px rgba(65, 65, 65, 0.3);
}
.series-b .product-image-circle::before {
    background: radial-gradient(circle, rgba(65, 65, 65, 0.15) 0%, transparent 70%);
}

/* Printers (зелёная) */
.printers .page-header { background: var(--gradient-printers); }
.printers .page-header { background: var(--gradient-printers); }
.printers .cartridge-image::before{
    background: radial-gradient(circle, rgba(39, 174, 96, 0.15) 0%, transparent 70%);
}

/* Cartridges (синяя) */
.cartridges .page-header { background: var(--gradient-cartridges); }
.cartridges .page-header { background: var(--gradient-cartridges); }
.cartridges .cartridge-image::before{
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
}

/* Chips (жёлтая) */
.chips .page-header { background: var(--gradient-chips); }
.chips .page-header { background: var(--gradient-chips); }
.chips .cartridge-image::before{
    background: radial-gradient(circle, rgba(255, 167, 38, 0.15) 0%, transparent 70%);
}

/* Printers (зелёная) */
.printers .product-image-circle::before { background: radial-gradient(circle, rgba(39, 174, 96, 0.15) 0%, transparent 70%); }

/* Cartridges (синяя) */
.cartridges .product-image-circle::before { background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%); }

/* Chips (жёлтая) */
.chips .product-image-circle::before { background: radial-gradient(circle, rgba(255, 167, 38, 0.15) 0%, transparent 70%); }

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 40px 15px 20px;
    border-radius: 8px;
    color: #fff;
    font-weight: 500;
    z-index: 10001;
    animation: slideIn 0.3s ease;
}

.notification-success { background: #28a745; }
.notification-error { background: #dc3545; }
.notification-info { background: #17a2b8; }

.notification button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: inherit;
    font-size: 20px;
    cursor: pointer;
}

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

/* Star Rating */
.star-rating {
    display: flex;
    gap: 5px;
}

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

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

.cartridge-item-model {
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    line-height: 1.3;
    font-weight: 700;
    color: var(--bs-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.product-main-title {
    word-break: break-word;
    overflow-wrap: break-word;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
}

.cartridge-model {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* ============================================
   Search Box - Фирменный стиль RecyclingBulat
   ============================================ */

.header-search-wrapper {
    position: relative;
}

.header-search {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid transparent;
    border-radius: 50px;
    padding: 4px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.header-search:focus-within {
    background: #fff;
    border-color: #ff8a00;
    box-shadow: 0 4px 20px rgba(255, 138, 0, 0.15);
}

.header-search-input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    background: transparent;
    outline: none;
    font-size: 14px;
    color: #333;
    width: 180px;
    transition: width 0.3s ease;
}

.header-search-input::placeholder {
    color: #999;
}

.header-search:focus-within .header-search-input {
    width: 240px;
}

.header-search-btn {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.header-search-btn:hover {
    background: linear-gradient(135deg, #ff9a20 0%, #ff7b10 100%);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
}

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

.header-search-btn i {
    font-size: 16px;
}

/* ============================================
   Search Dropdown - Фирменный стиль
   ============================================ */

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 350px;
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
    max-height: 450px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    animation: dropdownSlide 0.2s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.search-dropdown.active {
    display: block;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.15s ease;
}

.search-dropdown-item:first-child {
    border-radius: 16px 16px 0 0;
}

.search-dropdown-item:last-child {
    border-bottom: none;
}

.search-dropdown-item:hover,
.search-dropdown-item.active {
    background: linear-gradient(90deg, #fff8f0 0%, #fff 100%);
    padding-left: 20px;
}

.search-dropdown-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.search-dropdown-item:hover .search-dropdown-icon {
    transform: scale(1.1);
}

.search-dropdown-content {
    flex: 1;
    min-width: 0;
}

.search-dropdown-title {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.search-dropdown-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-dropdown-type {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-dropdown-subtitle {
    color: #888;
    font-size: 12px;
}

.search-dropdown-empty,
.search-dropdown-loader {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.search-dropdown-loader i {
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.search-dropdown-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #414141 0%, #2d2d2d 100%);
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    border-radius: 0 0 16px 16px;
    transition: all 0.2s ease;
}

.search-dropdown-all:hover {
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
}

/* ============================================
   Search Page - Фирменный стиль
   ============================================ */

.search-section {
    padding: 50px 0;
    min-height: 60vh;
}

.search-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 25px;
}

.search-form-large {
    display: flex;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 60px;
    padding: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.search-form-large:focus-within {
    border-color: #ff8a00;
    box-shadow: 0 6px 30px rgba(255, 138, 0, 0.15);
}

.search-input-large {
    flex: 1;
    padding: 16px 24px;
    font-size: 16px;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
}

.search-input-large::placeholder {
    color: #aaa;
}

.btn-search-large {
    padding: 16px 32px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search-large:hover {
    background: linear-gradient(135deg, #ff9a20 0%, #ff7b10 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.4);
}

.btn-search-large:active {
    transform: translateY(0);
}

.search-meta {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
    font-size: 16px;
}

.search-meta strong {
    color: #ff8a00;
}

.search-group {
    margin-bottom: 50px;
}

.search-group-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid #414141;
    display: inline-block;
    color: #333;
}

.search-items {
    display: grid;
    gap: 12px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.search-item:hover {
    border-color: #ff8a00;
    box-shadow: 0 4px 20px rgba(255, 138, 0, 0.1);
    transform: translateX(8px);
}

.search-item-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 20px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.search-item:hover .search-item-icon {
    transform: scale(1.1) rotate(-5deg);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-weight: 600;
    font-size: 15px;
    color: #333;
    margin-bottom: 4px;
    word-break: break-word;
}

.search-item-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-item-type {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.search-item-subtitle {
    color: #888;
    font-size: 13px;
}

/* ============================================
   Цвета типов - Единый стиль
   ============================================ */

/* Тонеры - оранжевый (фирменный) */
.search-item-icon--toner,
.search-dropdown-icon--toner { background: var(--gradient-series-a); color: white; }
.search-item-type--toner,
.search-dropdown-type--toner { background: var(--gradient-series-a); color: white; }

/* Принтеры - тёмный (фирменный) */
.search-item-icon--printer,
.search-dropdown-icon--printer { background: var(--gradient-printers); color: white; }
.search-item-type--printer,
.search-dropdown-type--printer { background: var(--gradient-printers); color: white; }

/* Картриджи - зелёный */
.search-item-icon--cartridge,
.search-dropdown-icon--cartridge { background: var(--gradient-cartridges); color: white; }
.search-item-type--cartridge,
.search-dropdown-type--cartridge { background: var(--gradient-cartridges); color: white; }

/* Чипы - синий */
.search-item-icon--chip,
.search-dropdown-icon--chip { background: var(--gradient-chips); color: white; }
.search-item-type--chip,
.search-dropdown-type--chip { background: var(--gradient-chips); color: white; }

/* Новости - голубой */
.search-item-icon--news,
.search-dropdown-icon--news { background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%); color: white; }
.search-item-type--news,
.search-dropdown-type--news { background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%); color: white; }

/* Статьи - фиолетовый */
.search-item-icon--article,
.search-dropdown-icon--article { background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%); color: white; }
.search-item-type--article,
.search-dropdown-type--article { background: linear-gradient(135deg, #FF8A00 0%, #FF6720 100%); color: white; }

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 768px) {
    .header-search-input {
        width: 140px;
    }

    .header-search:focus-within .header-search-input {
        width: 180px;
    }

    .search-dropdown {
        min-width: 280px;
        right: 0;
        left: auto;
    }

    .search-form-large {
        flex-direction: column;
        border-radius: 20px;
        padding: 8px;
    }

    .search-input-large {
        text-align: center;
    }

    .btn-search-large {
        justify-content: center;
    }

    .search-header h1 {
        font-size: 1.8rem;
    }
}

/* ============================================
   Sort Dropdown
   ============================================ */

.catalog-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.catalog-count {
    color: #666;
    font-size: 14px;
}

.catalog-count strong {
    color: #333;
}

.sort-dropdown-wrapper {
    position: relative;
}

.sort-dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sort-dropdown-toggle:hover {
    border-color: #ff8a00;
}

.sort-dropdown-toggle.active {
    border-color: #ff8a00;
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.15);
}

.sort-dropdown-toggle .sort-chevron {
    transition: transform 0.2s ease;
    font-size: 12px;
}

.sort-dropdown-toggle.active .sort-chevron {
    transform: rotate(180deg);
}

.sort-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 100;
    display: none;
    animation: dropdownSlide 0.2s ease;
    overflow: hidden;
}

.sort-dropdown-menu.active {
    display: block;
}

.sort-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.15s ease;
    border-bottom: 1px solid #f0f0f0;
}

.sort-dropdown-item:last-child {
    border-bottom: none;
}

.sort-dropdown-item:hover {
    background: #fff8f0;
    padding-left: 20px;
}

.sort-dropdown-item.active {
    background: linear-gradient(90deg, #fff3e0 0%, #fff 100%);
    color: #ff8a00;
    font-weight: 600;
}

.sort-dropdown-item i {
    font-size: 16px;
}

/* ============================================
   Form Page
   ============================================ */

.form-page-section {
    padding: 50px 0;
}

.form-page-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.form-page-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 30px;
    text-align: center;
}

.form-page-text {
    font-size: 16px;
    line-height: 1.7;
    color: #555;
}

.form-page-text--before {
    margin-bottom: 30px;
}

.form-page-text--after {
    margin-top: 30px;
}

.form-page-embed {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 20px;
    min-height: 400px;
}

.form-page-embed iframe {
    width: 100%;
    border: none;
    border-radius: 12px;
}

/* ============================================
   Distributor Card
   ============================================ */

.distributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}

.distributor-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.distributor-card:hover {
    border-color: #ff8a00;
    box-shadow: 0 4px 20px rgba(255, 138, 0, 0.1);
}

.distributor-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: linear-gradient(135deg, #414141 0%, #2d2d2d 100%);
    color: #fff;
}

.distributor-card-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.distributor-card-website {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.distributor-card-website:hover {
    background: #ff8a00;
}

.distributor-card-body {
    padding: 16px 20px;
}

.distributor-card-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.distributor-card-row:last-child {
    margin-bottom: 0;
}

.distributor-card-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 10px;
    color: #666;
    flex-shrink: 0;
}

.distributor-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.distributor-card-link {
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.distributor-card-link:hover {
    color: #ff8a00;
}

.distributor-card-address {
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

.distributor-card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-top: 1px solid #eee;
}

.distributor-card-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.distributor-card-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 138, 0, 0.4);
}

.distributor-card-btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.distributor-card-btn-icon svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

/* Tab пустой если нет дистрибьюторов */
.tab-distributors-empty {
    text-align: center;
    padding: 40px 20px;
    color: #999;
}

/* ============================================
   Distributor Card V2 - Компактный
   ============================================ */

.distributors-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    align-items: stretch;
}

.dist-card-v2 {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: visible;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.dist-card-v2:hover {
    border-color: #ff8a00;
    box-shadow: 0 8px 30px rgba(255, 138, 0, 0.12);
}

.dist-card-v2-main {
    padding: 20px;
    flex: 1;
}

.dist-card-v2-info {
    flex: 1;
    min-width: 0;
}

.dist-card-v2-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 14px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #ff8a00 0%, #ff6b00 50%, transparent 100%) 1;
}

/* Contacts */
.dist-card-v2-contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.dist-card-v2-contact-group {
    position: relative;
}

.dist-card-v2-contact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f5f5f5;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dist-card-v2-contact:hover {
    background: #fff;
    border-color: #ff8a00;
    color: #ff8a00;
}

.dist-card-v2-contact i:first-child {
    color: #999;
    font-size: 12px;
}

.dist-card-v2-contact:hover i:first-child {
    color: #ff8a00;
}

.dist-card-v2-contact span {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dist-card-v2-contact--link {
    background: transparent;
    padding: 6px 0;
}

.dist-card-v2-contact--link:hover {
    background: transparent;
    border-color: transparent;
}

.dist-card-v2-badge {
    background: #ff8a00;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.dist-card-v2-chevron {
    font-size: 10px;
    color: #999;
    transition: transform 0.2s ease;
}

.dist-card-v2-contact.active .dist-card-v2-chevron {
    transform: rotate(180deg);
}

.dist-card-v2-external {
    font-size: 10px;
    opacity: 0.5;
}

/* Dropdown */
.dist-card-v2-dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    display: none;
    animation: distDropdown 0.15s ease;
}

@keyframes distDropdown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dist-card-v2-dropdown.active {
    display: block;
}

.dist-card-v2-dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: #333;
    text-decoration: none;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.15s ease;
}

.dist-card-v2-dropdown-item:last-child {
    border-bottom: none;
}

.dist-card-v2-dropdown-item:hover {
    background: #fff8f0;
    color: #ff8a00;
}

.dist-card-v2-dropdown-item i {
    color: #bbb;
    font-size: 12px;
}

.dist-card-v2-dropdown-item:hover i {
    color: #ff8a00;
}

/* Actions */
.dist-card-v2-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #fafafa 0%, #f5f5f5 100%);
    border-top: 1px solid #eee;
    border-radius: 0 0 12px 12px;
    margin-top: auto;
}

.dist-card-v2-actions--empty {
    background: #fafafa;
}

.dist-card-v2-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    border: none;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.dist-card-v2-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.35);
}

.dist-card-v2-btn-icon {
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dist-card-v2-btn-icon svg {
    width: 100%;
    height: 100%;
}

.dist-card-v2-btn .bi-cart3 {
    font-size: 15px;
}

/* No links */
.dist-card-v2-no-links {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #888;
    font-size: 13px;
    padding: 4px 0;
}

.dist-card-v2-no-links i {
    color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .distributors-grid-v2 {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .dist-card-v2-contacts {
        flex-direction: column;
        gap: 8px;
    }

    .dist-card-v2-contact {
        width: 100%;
        justify-content: flex-start;
    }

    .dist-card-v2-contact span {
        max-width: none;
        flex: 1;
    }

    .dist-card-v2-dropdown {
        width: 100%;
    }

    .dist-card-v2-actions {
        flex-direction: column;
    }

    .dist-card-v2-btn {
        justify-content: center;
        width: 100%;
    }
}

/* ============================================
   Error Pages (QR, 404, etc.)
   ============================================ */

.error-section {
    padding: 80px 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
}

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

.error-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 50%;
    font-size: 48px;
    color: #999;
}

.error-icon--warning {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #ff8a00;
}

.error-content h1 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin-bottom: 16px;
}

.error-content p {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.error-content .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #ff8a00 0%, #ff6b00 100%);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.error-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 138, 0, 0.35);
}

/* ============================================
   Recommendations Toolbar
   ============================================ */

.recommendations-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-bottom: 20px;
}

.recommendations-search {
    position: relative;
    flex: 1;
    min-width: 200px;
}

.recommendations-search i.bi-search {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

.recommendations-search-input {
    width: 100%;
    padding: 10px 36px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    transition: all 0.2s ease;
}

.recommendations-search-input:focus {
    outline: none;
    border-color: #ff8a00;
    box-shadow: 0 0 0 3px rgba(255, 138, 0, 0.1);
}

.recommendations-search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    display: none;
    align-items: center;
    justify-content: center;
    background: #e0e0e0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #666;
    font-size: 14px;
    transition: all 0.2s ease;
}

.recommendations-search-clear:hover {
    background: #ff8a00;
    color: #fff;
}

.recommendations-search-input:not(:placeholder-shown) + .recommendations-search-clear {
    display: flex;
}

.recommendations-filters {
    display: flex;
    gap: 12px;
}

.recommendations-select {
    padding: 10px 32px 10px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E") no-repeat right 12px center;
    appearance: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.recommendations-select:focus {
    outline: none;
    border-color: #ff8a00;
}

.recommendations-count {
    font-size: 13px;
    color: #666;
    white-space: nowrap;
}

.recommendations-count span {
    font-weight: 600;
    color: #ff8a00;
    display: inline-block;
    transition: transform 0.2s ease;
}

.recommendations-count span.updated {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* ============================================
   Recommendations Animations
   ============================================ */

.recommendation-item {
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.recommendation-item.hidden {
    display: none !important;
}

.recommendation-item.fade-out {
    opacity: 0;
    transform: scale(0.95);
}

.recommendation-item.fade-in {
    animation: recommendationFadeIn 0.3s ease forwards;
}

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

/* ============================================
   Recommendations Groups
   ============================================ */

.recommendations-group {
    transition: opacity 0.25s ease, max-height 0.3s ease;
    overflow: hidden;
}

.recommendations-group.hiding {
    opacity: 0;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ============================================
   Recommendations Empty State
   ============================================ */

.recommendations-wrapper .recommendations-empty,
.compatibility-grid .recommendations-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #888;
    display: none;
    animation: fadeIn 0.3s ease;
}

.recommendations-wrapper .recommendations-empty.visible,
.compatibility-grid .recommendations-empty.visible {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Recommendations Responsive
   ============================================ */

@media (max-width: 768px) {
    .recommendations-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .recommendations-search {
        min-width: 100%;
    }

    .recommendations-filters {
        flex-wrap: wrap;
    }

    .recommendations-select {
        flex: 1;
        min-width: 140px;
    }

    .recommendations-count {
        text-align: center;
    }
}