/* Стили для Flask сайта в стиле Notion */

/* Общие стили */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #37352f;
    background-color: #ffffff;
}

/* Отступ для основного контента под закрепленной навигацией */
main {
    margin-top: 76px;
}

@media (max-width: 768px) {
    main {
        margin-top: 70px;
    }
}

/* Навигация */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e1e5e9;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
}

.navbar-brand {
    font-weight: 600;
    font-size: 18px;
    color: #37352f !important;
    cursor: pointer;
    pointer-events: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #37352f !important;
    transition: color 0.2s ease;
    cursor: pointer;
    pointer-events: auto;
    position: relative;
    z-index: 10000;
}

.navbar-nav .nav-link:hover {
    color: #37352f !important;
    background-color: #f7f6f3;
}

.navbar-nav .nav-item {
    position: relative;
    z-index: 10000;
}

/* Карточки */
.card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    border-color: #37352f;
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.1);
}

/* Кнопки */
.btn {
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #37352f;
    border-color: #37352f;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #2e2d29;
    border-color: #2e2d29;
    color: #ffffff;
}

/* Формы */
.form-control {
    border: 1px solid #e1e5e9;
    border-radius: 4px;
    color: #37352f;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: #37352f;
    box-shadow: 0 0 0 3px rgba(55, 53, 47, 0.1);
    outline: none;
}

.form-control::placeholder {
    color: #9b9a97;
}

/* Алерты */
.alert {
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    background-color: #ffffff;
    color: #37352f;
    position: relative;
    z-index: 1000;
}

.alert-success {
    border-color: #4caf50;
}

.alert-danger {
    border-color: #ff6b6b;
}

/* Контейнер для alert-сообщений */
.alert-container {
    padding-top: 100px;
    position: relative;
    z-index: 1000;
}

/* Футер */
footer {
    background-color: #f7f6f3 !important;
    border-top: 1px solid #e1e5e9;
    color: #787774;
}

footer h5 {
    color: #37352f;
    font-weight: 600;
}

footer a {
    color: #787774;
    text-decoration: none;
    transition: color 0.2s ease;
}

footer a:hover {
    color: #37352f;
}

/* Адаптивность */
@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .navbar-nav .nav-link {
        padding: 12px 16px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .navbar-brand {
        padding: 8px 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* Дополнительные утилиты */
.text-primary {
    color: #37352f !important;
}

.bg-primary {
    background-color: #37352f !important;
}

.border-primary {
    border-color: #37352f !important;
}

/* Навигация */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #37352f !important;
}

/* Hero секция */
.hero-section {
    background: #ffffff;
    min-height: 60vh;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #e1e5e9;
}

.hero-section h1 {
    color: #37352f;
}

/* Категории */
.category-card {
    background: white;
    border-radius: 6px;
    border: 1px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: #37352f;
}

.category-card h5 {
    color: #37352f;
    font-weight: 600;
    margin-top: 1rem;
}

/* Статистика */
.stat-item {
    padding: 20px;
    text-align: center;
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: #37352f;
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.1);
}

.team-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.team-card:hover {
    border-color: #37352f;
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.1);
}

.team-avatar {
    transition: transform 0.3s ease;
}

.team-card:hover .team-avatar {
    transform: scale(1.05);
}

.tech-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.tech-item:hover {
    border-color: #37352f;
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.1);
}

.contact-item {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: #37352f;
    box-shadow: 0 2px 8px rgba(55, 53, 47, 0.1);
}

.contact-icon {
    color: #37352f;
    transition: color 0.3s ease;
}

.contact-item:hover .contact-icon {
    color: #37352f;
}

.social-links a {
    color: #787774;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: #37352f;
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Мобильная адаптивность */
@media (max-width: 576px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    .display-6 {
        font-size: 1.5rem;
    }
}

/* Дополнительные элементы */
.map-placeholder {
    background: #f7f6f3;
    border: 1px solid #e1e5e9;
    border-radius: 6px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #787774;
}

.accordion-button:not(.collapsed) {
    background-color: #f7f6f3;
    color: #37352f;
}

.accordion-button:focus {
    box-shadow: 0 0 0 3px rgba(55, 53, 47, 0.1);
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e1e5e9;
    border-radius: 50%;
    border-top-color: #37352f;
    animation: spin 1s ease-in-out infinite;
}

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

/* Ограничение строк для заголовка и описания доклада */
.report-title {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
  margin-top: 0;
  width: 100%;
}

.report-description {
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 16px;
  margin-top: 0;
  width: 100%;
}

.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.report-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.report-bottom {
  margin-top: auto;
  width: 100%;
}

.report-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 16px;
    padding: 24px;
    transition: box-shadow 0.25s cubic-bezier(0.4,0,0.2,1), transform 0.18s cubic-bezier(0.4,0,0.2,1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    box-shadow: 0 8px 32px 0 rgba(34, 60, 80, 0.12), 0 1.5px 4px 0 rgba(34, 60, 80, 0.06);
    position: relative;
    align-items: stretch;
    justify-content: flex-start;
    height: 100%;
}

.report-card:hover {
    box-shadow: 0 12px 48px 0 rgba(34, 60, 80, 0.16), 0 3px 12px 0 rgba(34, 60, 80, 0.10);
    transform: translateY(-2px) scale(1.012);
}

.report-category {
  margin-bottom: 8px;
}

.report-title {
  margin-bottom: 8px;
}

.report-description {
  margin-bottom: 16px;
}

.report-meta {
  margin-bottom: 8px;
} 

@media (max-width: 600px) {
  .hero-btn {
    font-size: 15px;
    padding: 0;
    width: 100%;
    height: 44px;
    line-height: 44px;
  }
} 

@media (max-width: 600px) {
  .benefits-cards-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
  .benefit-card-custom {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
} 

@media (max-width: 600px) {
  .price-warning-banner {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 8px !important;
    font-size: 14px !important;
    box-sizing: border-box;
  }
  .price-warning-banner span {
    font-size: 16px !important;
    white-space: normal !important;
    word-break: break-word !important;
  }
} 