/* css/style.css - Modern Web 3.0 Design */
:root {
    --primary-gradient: linear-gradient(135deg, #a8e6cf 0%, #7fcdcd 100%);
    --secondary-gradient: linear-gradient(135deg, #ffd3a5 0%, #fd9853 100%);
    --accent-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --dark-glass: rgba(255, 255, 255, 0.5);
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --shadow-light: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.08);
    --shadow-heavy: 0 25px 50px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 25%, #f0f8ff 50%, #fdf2f8 75%, #fefce8 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styling */
header {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

header:hover {
    background: rgba(255, 255, 255, 0.9);
}

header h1 {
    background: linear-gradient(135deg, #059669 0%, #0891b2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
}

header a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

header a:hover {
    color: #059669;
    text-shadow: 0 0 10px rgba(5, 150, 105, 0.3);
}

/* Main Content */
main {
    padding: 40px 0;
    min-height: calc(100vh - 200px);
}

/* Page Title */
.page-title {
    text-align: center;
    margin-bottom: 50px;
    padding: 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-medium);
}

.page-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.page-title .subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    opacity: 0.8;
}

/* Section Headers */
.section {
    margin-bottom: 50px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--shadow-light);
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #a8edea 0%, #7fcdcd 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 1.2rem;
}

/* Product Categories Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
}

.product-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.product-card:hover::before {
    transform: scaleX(1);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.85);
}

.product-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.product-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.doc-types {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.doc-type-badge {
    padding: 6px 12px;
    background: linear-gradient(135deg, #0891b2 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.25);
}

/* Organizations Grid */
.organizations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.org-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.org-card::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #a8edea 0%, #7fcdcd 100%);
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.org-card:hover::after {
    opacity: 1;
}

.org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
    background: rgba(255, 255, 255, 0.9);
}

.org-header {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.org-icon {
    width: 50px;
    height: 50px;
    background: var(--secondary-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.org-info h4 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    line-height: 1.3;
}

.org-type {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-gradient);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.org-details {
    space-y: 12px;
}

.org-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.org-detail:last-child {
    border-bottom: none;
}

.detail-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.org-detail span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.org-detail a {
    color: #0891b2;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.org-detail a:hover {
    color: #059669;
    text-shadow: 0 0 8px rgba(8, 145, 178, 0.3);
}

/* Map Container */
.map-container {
    margin-top: 40px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 500px;
}

#map-container {
    width: 100%;
    height: 100%;
    border-radius: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 60px 30px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--shadow-light);
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #ffd3a5 0%, #fd9853 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 2rem;
}

.empty-state h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: var(--text-primary);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.5rem;
    }
    
    .page-title h2 {
        font-size: 2rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .organizations-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .org-card {
        padding: 20px;
    }
    
    .section-header {
        padding: 15px 20px;
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    main {
        padding: 20px 0;
    }
    
    .page-title {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .page-title h2 {
        font-size: 1.7rem;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card {
        padding: 20px;
    }
    
    .map-container {
        height: 300px;
        margin-top: 20px;
    }
}

.org-card .org-info a {
    text-decoration: none; /* Убираем стандартное подчеркивание */
    color: inherit; /* Заставляем ссылку наследовать цвет текста от родителя, чтобы она выглядела как обычный заголовок */
    transition: color 0.3s ease; /* Добавляем плавный переход для эффекта при наведении */
}

/* Добавляем красивый и ненавязчивый эффект при наведении курсора */
.org-card .org-info a:hover h3 {
    color: #059669; /* При наведении меняем цвет текста заголовка на акцентный зеленый */
}
/* === Стили для Лид-формы === */
.lead-form-section {
    margin-top: 60px;
}

.lead-form-container {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 30px 40px;
    box-shadow: var(--shadow-medium);
}

.lead-form-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.lead-form .form-group {
    margin-bottom: 20px;
}

.lead-form label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.lead-form input[type="text"],
.lead-form input[type="tel"],
.lead-form input[type="email"],
.lead-form textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.lead-form input:focus,
.lead-form textarea:focus {
    outline: none;
    border-color: #059669;
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.2);
}

.lead-form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--secondary-gradient);
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.lead-form-submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

.consent-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 25px;
}

.consent-group input[type="checkbox"] {
    margin-top: 5px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.consent-group label {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}
.consent-group a {
    color: #0891b2;
    text-decoration: none;
}
.consent-group a:hover {
    text-decoration: underline;
}

/* Скрытое поле для защиты от спама */
.honeypot {
    display: none;
}

/* Стили для уведомлений после отправки формы */
.form-notification {
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    font-weight: 500;
    text-align: center;
    border: 1px solid transparent;
}
.form-notification.success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}
.form-notification.error {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}
.cta-section {
    margin-bottom: 40px; /* Отступ от контента ниже */
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 25px 35px;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
}
.cta-content:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.cta-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.cta-text {
    flex-grow: 1;
}

.cta-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.cta-text p {
    font-size: 1rem;
    color: var(--text-secondary);
}

.cta-action {
    flex-shrink: 0;
}

.cta-button {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    background: var(--secondary-gradient);
    border: none;
    border-radius: 12px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    white-space: nowrap;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-medium);
}

/* Адаптивность для CTA блока */
@media (max-width: 768px) {
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
        padding: 25px;
    }
    .cta-text h3 {
        font-size: 1.3rem;
    }
}
/* Стили для блока похожих организаций (версия 2 - карточки) */
.related-orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}
.related-org-card {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: var(--glass-bg);
    padding: 20px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}
.related-org-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(0, 0, 0, 0.1);
}
.related-org-name {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.4;
}
.related-org-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-top: 10px;
    border-top: 1px solid #f0f0f0;
}
.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}
.meta-icon {
    font-size: 1rem;
}
.related-org-types {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto; /* Прижимает типы к низу карточки */
    padding-top: 10px;
}
.type-badge {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 15px;
    background-color: #e9ecef;
    color: #495057;
}
.queries-container { margin-top: 20px; text-align: center; }
.popular-queries { font-size: 0.9rem; color: var(--text-secondary); }
.popular-queries.recent-searches { margin-top: 10px; }
.popular-queries span { font-weight: 500; margin-right: 5px; }
.popular-queries a { display: inline-block; margin-bottom: 5px; color: #0891b2; text-decoration: none; margin: 0 5px; padding: 3px 8px; border-radius: 10px; background: rgba(0,0,0,0.03); transition: all 0.2s ease; }
.popular-queries a:hover { background: rgba(0,0,0,0.07); text-decoration: underline; }
/* ... остальные стили ... */
.search-container { max-width: 800px; margin: 0 auto; padding: 30px; background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: 20px; box-shadow: var(--shadow-medium); }
.search-form { display: flex; gap: 15px; }
.search-form input[type="search"] { flex-grow: 1; padding: 15px 20px; font-size: 1.2rem; border: 1px solid #ccc; border-radius: 12px; transition: all 0.3s ease; }
.search-form input[type="search"]:focus { outline: none; border-color: #059669; box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.2); }
.search-form button { padding: 15px 30px; font-size: 1.2rem; font-weight: 600; color: white; background: var(--secondary-gradient); border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; }
.search-form button:hover { transform: translateY(-2px); box-shadow: var(--shadow-light); }
.results-summary { text-align: center; font-size: 1.1rem; color: var(--text-secondary); max-width: 700px; margin: -10px auto 30px auto; }
.summary-answer-box { display: flex; align-items: flex-start; gap: 20px; background-color: #e6f7ff; border-left: 5px solid #0891b2; padding: 20px 25px; border-radius: 15px; margin-bottom: 40px; }
.summary-icon { font-size: 2rem; color: #0891b2; }
.summary-text p { margin: 0; color: var(--text-secondary); font-size: 1.1rem; }
.summary-text .summary-conclusion { margin-top: 8px; font-size: 1.2rem; color: var(--text-primary); }
.summary-conclusion strong { color: #059669; }
.document-list-container{display:flex;flex-direction:column;gap:15px}
.document-card{display:grid;grid-template-columns:auto 1fr auto auto auto;align-items:center;gap:15px;padding:15px;background:rgba(255,255,255,.8);border-radius:12px;box-shadow:var(--shadow-light);transition:all .3s ease}
.document-card:hover{transform:scale(1.02);box-shadow:var(--shadow-medium)}
.doc-type-icon{width:40px;height:40px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:700;color:white;font-size:1.2rem}
.doc-type-icon.certificate{background-color:#3b82f6}
.doc-type-icon.declaration{background-color:#16a34a}
.doc-info{overflow:hidden;}
.doc-number{font-weight:600;color:var(--text-primary)}.doc-product{font-size:.9rem;color:var(--text-secondary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.doc-dates{font-size:.85rem;color:var(--text-secondary);white-space:nowrap}
.status-badge{padding:4px 10px;border-radius:15px;font-size:.8rem;font-weight:600;color:white}
.status-badge.status-active{background-color:#22c55e}.status-badge.status-expired{background-color:#ef4444}
.doc-link a{display:flex;align-items:center;justify-content:center;width:30px;height:30px;background-color:#f1f5f9;border-radius:50%;text-decoration:none;color:var(--text-secondary);font-weight:bold;transition:all .2s ease}
.doc-link a:hover{background-color:#e2e8f0;color:var(--text-primary)}
@media (max-width: 768px) {
    .document-card {
        grid-template-columns: auto 1fr auto;
        grid-template-areas: "icon info status" "icon dates link";
        gap: 10px 15px;
    }
    .doc-type-icon { grid-area: icon; }
    .doc-info { grid-area: info; }
    .doc-dates { grid-area: dates; }
    .doc-status { grid-area: status; justify-self: end; }
    .doc-link { grid-area: link; justify-self: end; }
}
.search-form {
    flex-direction: column; /* Располагаем элементы в колонку */}