/* ============================================================
   pondmix — общий стиль страницы проекта и документации.
   Основа — оформление скилла docs-create; добавлены блоки
   посадочной страницы (шапка, карточки, плитки результатов).
   ============================================================ */

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --light-color: #ecf0f1;
    --dark-color: #34495e;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --water-accent: #1a698a;
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    padding: 0;
    margin: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    padding: 40px 0;
    text-align: center;
    margin-bottom: 40px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto 30px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--accent-color);
}

.btn-secondary:hover {
    background-color: #c0392b;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #219653;
}

.btn-water {
    background-color: var(--water-accent);
}

.btn-water:hover {
    background-color: #14526c;
}

.toc {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.toc h2 {
    margin-bottom: 15px;
    color: var(--primary-color);
    border-bottom: 2px solid var(--light-color);
    padding-bottom: 10px;
}

.toc ul {
    list-style-type: none;
    column-count: 1;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s;
    display: block;
    padding: 5px 0;
}

.toc a:hover {
    color: var(--accent-color);
}

section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

h2 {
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--light-color);
}

h3 {
    color: var(--dark-color);
    margin: 25px 0 15px;
}

h4 {
    color: var(--dark-color);
    margin: 20px 0 10px;
}

p {
    margin-bottom: 15px;
}

/* Длинные слова и URL (ссылки на DOI и т.п.) не должны расширять страницу. */
p, li, td, th, .example, .note, .warning {
    overflow-wrap: anywhere;
}

a {
    word-break: break-word;
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

li {
    margin-bottom: 8px;
}

code {
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    background: var(--light-color);
    color: var(--dark-color);
}

pre {
    background-color: #2c3e50;
    color: white;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
}

pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.example {
    background-color: #f9f9f9;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.note {
    background-color: #e8f4fd;
    border-left: 4px solid var(--secondary-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.warning {
    background-color: #fdf2e8;
    border-left: 4px solid var(--warning-color);
    padding: 15px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}

.table-scroll {
    overflow-x: auto;
    margin: 20px 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.table-scroll table {
    min-width: 520px;
}

th, td {
    border: 1px solid #e1e1e1;
    padding: 12px;
    text-align: left;
}

th {
    background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
    color: white;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f9f9f9;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.feature-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-color);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h4 {
    margin-top: 0;
    color: var(--primary-color);
}

/* --- Плитки с числами (посадочная страница) --- */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.stat {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    border-top: 4px solid var(--water-accent);
}

.stat .num {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--water-accent);
    line-height: 1.1;
}

.stat .label {
    display: block;
    margin-top: 6px;
    color: #6b7a86;
    font-size: 0.95rem;
}

.lead {
    font-size: 1.1rem;
    max-width: 900px;
}

.logo-inline {
    width: 96px;
    height: 96px;
    border-radius: 16px;
    float: right;
    margin: 0 0 12px 20px;
}

.screenshot {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

footer {
    background: var(--primary-color);
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

footer a {
    color: var(--light-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .toc ul {
        column-count: 1;
    }

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

    h1 {
        font-size: 2rem;
    }

    .logo-inline {
        float: none;
        display: block;
        margin: 0 auto 16px;
    }
}
