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

body {
    font-family: 'Inter', sans-serif;
    background: #F0F4FF;
}

.guest-container {
    display: flex;
    min-height: 100vh;
}

/* Сайдбар (полностью скопирован из admin.css) */
.sidebar {
    width: 340px;
    min-height: 100vh;
    position: relative;
    background: linear-gradient(35deg, #385AAB 11%, #7DB4FF 100%);
}

.sidebar-content {
    padding: 40px 20px;
}

.logo {
    margin-bottom: 30px;
    margin-left: 50px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link span {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
}

.has-submenu {
    position: relative;
}

.submenu {
    display: none;
    margin-top: 10px;
    margin-left: 20px;
    flex-direction: column;
    gap: 10px;
}

.submenu.active {
    display: flex;
}

.submenu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    width: 257px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(40, 70, 136, 0.3);
}

.submenu-item:hover {
    background: rgba(40, 70, 136, 0.9);
    backdrop-filter: blur(10px);
}

.submenu-item span {
    color: #FFFFFF;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
}

.arrow-icon {
    margin-left: auto;
    transition: transform 0.3s ease;
}

.arrow-icon.rotated {
    transform: rotate(180deg);
}

/* Хэдер */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.guest-header {
    height: 100px;
    background: #FFFFFF;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

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

.header-left h1 {
    font-size: 25px;
    font-weight: 700;
    color: #005491;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-right img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.header-right img:hover {
    opacity: 0.7;
}

/* Контентная область */
.content-wrapper {
    padding: 40px;
}

/* Секция поиска с двумя полями */
.search-section {
    margin-bottom: 40px;
}

.search-fields {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-bar {
    flex: 1;
    min-width: 250px;
    height: 42px;
    background: #FFFFFF;
    border: 0.5px solid #005491;
    border-radius: 10px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    gap: 10px;
    transition: all 0.3s ease;
}

.search-bar:focus-within {
    border-color: #385AAB;
    box-shadow: 0 0 0 2px rgba(56, 90, 171, 0.1);
}

.search-bar input {
    flex: 1;
    height: 100%;
    border: none;
    outline: none;
    font-size: 18px;
    font-weight: 400;
    color: #333;
    background: transparent;
}

.search-bar input::placeholder {
    color: #BBC2C7;
}

.search-bar img {
    opacity: 0.6;
    flex-shrink: 0;
}

/* Кнопки поиска и сброса */
.search-button,
.reset-button {
    height: 42px;
    padding: 0 24px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
}

.search-button {
    background: #005491;
    color: #FFFFFF;
}

.search-button:hover {
    background: #003f6b;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 84, 145, 0.2);
}

.reset-button {
    background: #FFFFFF;
    color: #005491;
    border: 0.5px solid #005491;
}

.reset-button:hover {
    background: #F0F4FF;
    transform: translateY(-1px);
}

.search-button:active,
.reset-button:active {
    transform: translateY(0);
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    display: flex;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
    gap: 20px;
    min-height: 283px;
}

.card-left {
    flex-shrink: 0;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.qr-number {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
}

.card-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.product-title {
    font-size: 20px;
    font-weight: 500;
    color: #000000;
    max-width: 60%;
    line-height: 1.3;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.icon-btn {
    width: 40px;
    height: 33px;
    background: #FFFFFF;
    border: 0.5px solid #005491;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.icon-btn:hover {
    background: #f0f0f0;
}

.card-content {
    display: flex;
    gap: 40px;
    flex: 1;
}

.info-column {
    flex: 1;
}

.info-label {
    font-size: 16px;
    font-weight: 500;
    color: #838383;
    margin-bottom: 5px;
}

.info-value {
    font-size: 16px;
    font-weight: 400;
    color: #000000;
    margin-bottom: 15px;
}

.info-value.cert-number {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.info-value.compliance {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: flex-end;
}

.details-btn {
    width: 124px;
    height: 35px;
    background: #FFFFFF;
    border: 0.5px solid #005491;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 400;
    color: #005491;
    cursor: pointer;
    transition: all 0.3s ease;
}

.details-btn:hover {
    background: #005491;
    color: #FFFFFF;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 12px 40px;
    background: #FFFFFF;
    border: 0.5px solid #005491;
    border-radius: 20px;
    font-size: 16px;
    color: #005491;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: #005491;
    color: #FFFFFF;
}

/* Modal (только чтение) */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

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

.modal-container {
    width: 90%;
    max-width: 1147px;
    max-height: 90vh;
    overflow-y: auto;
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px;
}

.modal-content {
    display: flex;
    gap: 30px;
}

.modal-left {
    flex: 0 0 auto;
    width: 161px;
}

.modal-middle {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.field-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.field-group label {
    font-size: 16px;
    font-weight: 500;
    color: #005491;
}

.field-box {
    background: #FFFFFF;
    border: 1px solid #005491;
    border-radius: 10px;
    padding: 10px;
    font-size: 16px;
    color: #000000;
    overflow: auto;
    min-height: 65px;
    max-height: 200px;
}

.field-box.readonly {
    background: #f9f9f9;
    cursor: default;
}

.field-box.small {
    min-height: 42px;
    max-height: 42px;
}

.field-box.medium {
    min-height: 72px;
    max-height: 72px;
}

.field-box.static {
    min-height: 42px;
    max-height: 42px;
}

.fields-row {
    display: flex;
    gap: 20px;
}

.field-group.half {
    flex: 1;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 30px;
}

.btn-close {
    width: 123px;
    height: 35px;
    background: #005491;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-close:hover {
    background: #003f6b;
}

/* Контактное модальное окно */
.contact-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(217, 217, 217, 0.7);
    align-items: center;
    justify-content: center;
    z-index: 1001;
}

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

.contact-modal-container {
    width: 828px;
    height: 679px;
    background: #FFFFFF;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.contact-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px 40px;
    border-bottom: 1px solid #E5E9F0;
}

.contact-modal-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #005491;
    margin: 0;
}

.contact-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.contact-modal-close:hover {
    opacity: 0.7;
}

.contact-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 30px 40px 40px 40px;
    gap: 20px;
}

.form-group {
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 90%;
    padding: 15px 18px;
    border: 1px solid #D9D9D9;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #FFFFFF;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #005491;
    box-shadow: 0 0 0 2px rgba(0, 84, 145, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #BBC2C7;
}

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

.contact-submit-btn {
    width: auto;
    align-self: flex-end;
    padding: 12px 32px;
    background: #005491;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.contact-submit-btn:hover {
    background: #003f6b;
    transform: translateY(-1px);
}

.contact-submit-btn:active {
    transform: translateY(0);
}

/* Статусы */
.status.active {
    color: #00A86B;
    font-weight: 500;
}

.status.inactive {
    color: #FF6B6B;
    font-weight: 500;
}

/* Сообщение об отсутствии данных */
.no-data {
    text-align: center;
    padding: 50px;
    font-size: 18px;
    color: #838383;
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
/* Дополнительные стили для сообщений */
.prompt-message,
.error-message {
    text-align: center;
    padding: 60px 40px;
}

.prompt-icon,
.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.prompt-message h3,
.error-message h3 {
    font-size: 24px;
    color: #005491;
    margin-bottom: 15px;
}

.prompt-message p,
.error-message p {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.prompt-message ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.prompt-message li {
    padding: 8px 0;
    color: #005491;
    font-weight: 500;
}

.prompt-note {
    color: #999 !important;
    font-size: 14px !important;
    margin-top: 20px !important;
}

.reset-button-small {
    margin-top: 20px;
    padding: 10px 24px;
    background: #005491;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.reset-button-small:hover {
    background: #003f6b;
    transform: translateY(-1px);
}
/* Адаптация для мобильных устройств */
@media (max-width: 1024px) {
    .search-fields {
        flex-direction: column;
    }

    .search-bar {
        width: 100%;
    }

    .search-button,
    .reset-button {
        width: 100%;
    }

    .card-content {
        flex-direction: column;
        gap: 15px;
    }

    .modal-content {
        flex-direction: column;
    }

    .fields-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 900px) {
    .contact-modal-container {
        width: 90%;
        height: auto;
        max-height: 90vh;
    }

    .contact-modal-header {
        padding: 20px 25px;
    }

    .contact-modal-header h2 {
        font-size: 24px;
    }

    .contact-form {
        padding: 20px 25px 30px 25px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100px;
    }

    .nav-link span {
        display: none;
    }

    .logo img {
        width: 80px;
        height: auto;
    }

    .search-fields {
        gap: 15px;
    }

    .search-button,
    .reset-button {
        height: 42px;
        font-size: 14px;
        padding: 0 20px;
    }
}

/* --- Стили специально для страницы О НАС (About) --- */

/* Контейнер-обертка для управления футером */
.main-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Предотвращает раздувание флекс-контейнера */
}

/* Переопределение для контента, чтобы занять все место до футера */
.main-content-about {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Секция с большой SVG иллюстрацией */
.illustration-container {
    flex: 1;
    display: flex;
    justify-content: left;
    align-items: center;
    padding: 60px;
}

.about-svg-main {
    width: 100%;
    max-width: 1063px;
    height: auto;
    max-height: 1241px;
    object-fit: contain;
}

/* ФУТЕР (Высота 245px, Цвет FFFFFF) */
.footer-about {
    background-color: #FFFFFF;
    border-top: 1px solid #E5E9F0;
    padding: 30px 65px 30px;
    margin-top: auto;           /* Прижимает футер к низу */
}

.footer-content h2 {
    font-size: 32px;
    font-weight: 700;
    color: #005491;
    margin-bottom: 35px;
}

.footer-contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px 50px;
    max-width: 900px;
}

.contact-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-label {
    font-size: 15px;
    color: #6B7A8F;
    font-weight: 500;
}

.contact-value {
    font-size: 17.5px;
    color: #1C2B4A;
    font-weight: 500;
    line-height: 1.4;
}

.contact-value a {
    color: #005491;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-value a:hover {
    color: #0077cc;
    text-decoration: underline;
}

.address .contact-value {
    font-weight: 400;
    color: #2C3E5A;
}

.contact-form textarea {
    max-height: 180px;
    overflow-y: auto;
    resize: vertical;           /* разрешаем пользователю менять высоту */
    min-height: 120px;
}

.contact-modal-container {
    max-height: 85vh;           /* ограничиваем высоту модалки */
    overflow: hidden;
}

.contact-form {
    max-height: calc(85vh - 180px); /* оставляем место для шапки и кнопки */
    overflow-y: auto;
    padding-right: 10px;
}

/* Красивый скроллбар для textarea */
.contact-form textarea::-webkit-scrollbar {
    width: 6px;
}
.contact-form textarea::-webkit-scrollbar-thumb {
    background: #005491;
    border-radius: 10px;
}
.contact-form textarea::-webkit-scrollbar-track {
    background: #F0F4FF;
}

/* Утилитарный класс для активной ссылки в сайдбаре именно для этой страницы */
.nav-link.active-about {
    background: rgba(255, 255, 255, 0.2);
}

/* Адаптивность для футера */
@media (max-width: 768px) {
    .footer-about {
        height: auto;
        padding: 30px 20px;
    }
    .footer-content h2 {
        font-size: 28px;
    }
    .footer-contacts-list {
        font-size: 14px;
    }
}