/*
Theme Name: Heparkz
Theme URI: https://heparkz.t.me
Author: Baglan Uataev
Author URI: https://ps.kz
Description: Профессиональный лендинг для Telegram-канала гепатологов «Печень — всему голова!». Современный дизайн в тёплых тонах с акцентом на навигацию и конверсию.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: heparkz
Tags: landing-page, medical, telegram, one-page
*/

/* 
 * Основные стили темы Heparkz
 * Tailwind CSS подключён через CDN в header.php для быстрого старта.
 * При необходимости можно заменить на собранный Tailwind.
 */

:root {
    --ink: #102d69;
    --ink-2: #1f3b7d;
    --cream: #f7efe1;
    --cream-2: #fbf6ec;
    --paper: #ffffff;
    --terra: #c2410c;
    --terra-soft: #f4dcc4;
    --amber: #e8a04c;
    --sage: #6b7d5b;
    --sage-soft: #d8dccb;
    --line: #e8dcc6;
    --muted: #6b6253;
}

body {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.display {
    font-family: 'Unbounded', 'Onest', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.02;
}

.eyebrow {
    font-family: 'Onest', sans-serif;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 11.5px;
}

.paper-grain {
    background-image: radial-gradient(rgba(16,45,105,0.025) 1px, transparent 1px);
    background-size: 14px 14px;
}

.btn-primary {
    background: var(--ink);
    color: #fff;
    transition: transform .25s ease, box-shadow .3s ease, background .25s ease;
    box-shadow: 0 8px 18px -8px rgba(16,45,105,0.45), inset 0 1px 0 rgba(255,255,255,0.18);
}

.btn-primary:hover {
    background: var(--ink-2);
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -10px rgba(16,45,105,0.55);
}

.btn-ghost {
    color: var(--ink);
    background: transparent;
    border: 1.5px solid rgba(16,45,105,0.18);
    transition: all .25s ease;
}

.btn-ghost:hover {
    background: rgba(16,45,105,0.06);
    border-color: rgba(16,45,105,0.35);
}

.lift {
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
}

.lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -22px rgba(16,45,105,0.18);
}

.nav-link {
    position: relative;
    transition: color .2s ease;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--terra);
    border-radius: 2px;
    transition: width .3s ease;
}

.nav-link:hover {
    color: var(--terra);
}

.nav-link:hover::after {
    width: 100%;
}

.sticker {
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: 0 1px 0 rgba(16,45,105,0.04), 0 6px 18px -8px rgba(16,45,105,0.08);
}

.pill {
    border-radius: 999px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: var(--cream-2);
    border: 1px solid var(--line);
    color: var(--ink);
    font-weight: 500;
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 999px;
}

.h-section {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.05;
}

.gradient-navy {
    background: radial-gradient(circle at 18% 12%, rgba(232,160,76,0.18) 0%, transparent 45%),
                radial-gradient(circle at 92% 88%, rgba(194,65,12,0.18) 0%, transparent 50%),
                linear-gradient(135deg, #102d69 0%, #1a3a82 60%, #122e6a 100%);
}

.grain-overlay {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.45 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
    opacity: 0.12;
    pointer-events: none;
}

.img-tint {
    filter: saturate(0.92) contrast(1.02);
}

.progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--terra), var(--amber));
    z-index: 60;
    transition: width .1s linear;
}

/* Additional styles from original design */
.portrait {
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(16,45,105,0.4), 0 0 0 8px rgba(255,255,255,0.6);
}

.corner-mark {
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--terra);
    border-radius: 6px;
}

.marquee {
    display: flex;
    gap: 3rem;
    animation: marqueeX 32s linear infinite;
    width: max-content;
}

@keyframes marqueeX {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ring-soft {
    box-shadow: 0 0 0 8px rgba(255,255,255,0.5), 0 30px 50px -20px rgba(16,45,105,0.25);
}

.wave-underline {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 8'%3E%3Cpath d='M0 4 Q 10 0 20 4 T 40 4 T 60 4 T 80 4' fill='none' stroke='%23c2410c' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: 0 100%;
    background-size: 80px 8px;
    padding-bottom: 8px;
}

.quote-deco::before {
    content: "“";
    font-family: 'Unbounded', serif;
    font-size: 110px;
    color: var(--terra);
    opacity: .25;
    position: absolute;
    left: -8px;
    top: -32px;
    line-height: 1;
}

.num {
    font-family: 'Unbounded', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--terra);
}

.dotted-row {
    background-image: radial-gradient(rgba(16,45,105,0.18) 1.4px, transparent 1.4px);
    background-size: 10px 10px;
    background-position: 0 50%;
    background-repeat: repeat-x;
    height: 8px;
}