
body {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    background: #f5f7fa;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.flex-grow-1 {
    flex-grow: 1;
}

.container-head {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 5px 10px;
    padding-top: 3px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.container {
    max-width: 860px;
    margin: auto;
    padding: 2em;
}

h1 {
    font-size: 2.5em;
    margin-bottom: 1em;
}

.logo-icon {
  height: 50px;
}

.main-title {
    text-align: center;
    font-weight: 600;
}

.info-box {
    background: #ffffff;
    padding: 1.5em;
    margin: 1.5em 0;
    border-left: 6px solid #2c3e50;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

ul {
    padding-left: 1.5em;
}

ul li {
    margin-bottom: 0.4em;
}

.logo {
    display: block;
    width: 190px;
}

/* Меню */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 75px;
    background-color: #2c3e50;
    color: white;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-menu {
    list-style: none;
    display: flex;
    gap: 1.5em;
    margin: 0;
}
.nav-menu li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 0.4em 0.8em;
}
.nav-menu li a.active, .nav-menu li a:hover {
    background: #34495e;
    border-radius: 6px;
}

main.container {
    padding-top: 7em;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-section {
    background: linear-gradient(135deg, #ecf0f1, #f9fbfc);
    color: #2c3e50;
    border: 1px solid #dfe3e8;
    border-radius: 16px;
    padding: 50px 40px;
    margin: 40px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 1.15rem;
    animation: fadeInUp 0.6s ease-in-out;
    position: relative;
    overflow: hidden;
}

.hs {
    padding-top: 90px;
}

.hero-button-container {
    margin-top: 30px;
    text-align: center;
}

.hero-start-button {
    display: inline-block;
    background-color: #4c47a3;
    color: white;
    padding: 12px 28px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.hero-start-button:hover {
    background-color: #4e49b1;
    transform: translateY(-2px);
}

.hero-section::before {
    content: "👋";
    font-size: 2.8rem;
    position: absolute;
    top: 20px;
    left: 30px;
    animation: float 3s ease-in-out infinite;
}

.hero-section h2 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 30px;
    color: #555;
}

.hero-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 600px;
    font-size: 1.15rem;
    text-align: left;
}

.hero-list li {
    margin: 12px 0;
    padding-left: 24px;
    position: relative;
}

.hero-list li::before {
    content: "✔";
    color: #2980b9;
    position: absolute;
    left: 0;
    top: 1px;
}

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

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 0 20px;
    text-align: center;
    font-size: 0.95rem;
    bottom: 0;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 15px 0 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-links li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links li a:hover {
    color: #1abc9c;
}


/* иконка-бургер */
.burger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 50px;
    height: 38px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 4px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Анимация крестика */
.burger.open .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(13px, 12px);
}

.burger.open .burger-line:nth-child(2) {
    opacity: 0;
}

.burger.open .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(11px, -10px);
}

/* Выпадающее меню */
@media (max-width: 780px) {
    .burger {
        display: flex;
        position: absolute;
        top: 1.1rem;
        right: 1.2rem;
    }

    .nav-container {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: rgba(44, 62, 80, 0.95); /* полупрозрачный фон */
        padding: 1rem;
        border-radius: 8px 0 0 8px;
        box-shadow: -4px 4px 12px rgba(0, 0, 0, 0.2);
        animation: slideIn 0.3s ease;
        z-index: 1000;
    }

    .nav-container.show {
        display: flex;
    }

    .nav-menu {
        flex-direction: column;
        gap: 1rem;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .nav-menu li a {
        color: white;
        font-size: 1.1rem;
        text-decoration: none;
        padding: 0.5rem 0.8rem;
        border-radius: 6px;
        transition: background 0.2s;
    }

    .nav-menu li a:hover {
        background: rgba(255, 255, 255, 0.1);
    }

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

.dropzone {
    position: relative;
    border: 2px dashed #3498db;
    border-radius: 16px;
    padding: 3rem 2rem;
    margin: 3rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.dropzone:hover {
    background-color: rgba(236, 246, 253, 0.85);
}

.dropzone.dragover {
    border-color: #1d72b8;
    background-color: rgba(236, 246, 253, 0.9);
}

.dropzone-icon {
    width: 64px;
    opacity: 0.8;
    margin-bottom: 1rem;
}

.dropzone-text {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 0.5rem 0;
}

.dropzone-browse {
    color: #1d72b8;
    text-decoration: underline;
    cursor: pointer;
}

.dropzone-subtext {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
}


.result-card {
    background-color: #fffef8; /* светло-желтый фон */
    border-left: 6px solid #ffc107; /* насыщенный жёлтый */
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease;

}

.result-card:hover {
    transform: translateY(-3px);
}

.result-card h2 {
    margin-top: 0;
    color: #0c0c18;
}

.result-meta {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.risk-chip {
    background: #ffecec;
    color: #e74c3c;
    padding: 0.4rem 0.7rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-right: 0.4rem;
    display: inline-block;
}

.highlighted-text {
    background-color: #fff3cd;
    color: #856404;
    padding: 0.1em 0.25em;
    border-radius: 4px;
}

.match-chip {
    background-color: #e0f7fa;
    color: #00796b;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    font-size: 0.9rem;
    margin-right: 0.3rem;
    display: inline-block;
}

.analysis-header {
    font-size: 1.6rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.no-risks-text {
    font-size: 1.2rem;
    color: #28a745; /* зелёный */
    font-weight: 500;
    margin-bottom: 2rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-page {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 0;
}

.about-title {
    padding-bottom: 1em;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 4rem;
    text-align: center;
    color: #2c3e50;
}

.section-block {
    margin-bottom: 3rem;
}

.custom-list {
    list-style: none;
    padding-left: 0;
}

.custom-list li {
    padding-left: 1.2rem;
    margin-bottom: 0.75rem;
    position: relative;
    font-size: 1.05rem;
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.tech-card {
    flex: 1 1 300px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.tech-card h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-list {
    list-style: none;
    padding-left: 0;
}

.contact-list li {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

#filter-container {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Segoe UI', sans-serif;
}

#filter-container label {
    font-weight: 500;
    font-size: 15px;
    color: #333;
}

.filter-wrapper {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-family: 'Segoe UI', sans-serif;
}

#riskFilter {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  background-color: #fff;
  color: #333;
  font-size: 16px;
  transition: border 0.2s, box-shadow 0.2s;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23999' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  cursor: pointer;
}

#riskFilter:focus {
  border-color: #007BFF;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
  outline: none;
}

