/*
Theme Name: Heparkz
Theme URI: https://t.me/heparkz
Author: Heparkz Team
Author URI: https://t.me/heparkz
Description: Современная кастомная тема WordPress для лендинга Telegram-канала «Печень — всему голова!» (heparkz). Полностью адаптирована под оригинальный дизайн с Tailwind и кастомными стилями. Идеально подходит для профессиональных медицинских сообществ и лендингов.
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, custom-theme, one-page
*/

/* ============================================
   HEPARKZ THEME - Custom Styles
   Based on original HTML design
   ============================================ */

: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;
}

/* Base */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Onest', system-ui, -apple-system, sans-serif;
    background: var(--cream);
    color: var(--ink);
    font-feature-settings: "ss01", "cv01";
}

.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 */
.paper-grain {
    background-image: radial-gradient(rgba(16,45,105,0.025) 1px, transparent 1px);
    background-size: 14px 14px;
}

/* Blob */
.blob {
    border-radius: 56% 44% 62% 38% / 48% 52% 48% 52%;
}

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

/* Sticker badge */
.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;
}

/* Buttons */
.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-primary:active {
    transform: translateY(0);
}

.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);
}

/* Card hover */
.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%;
}

/* Wave underline */
.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;
}

/* Tape */
.tape {
    background: rgba(232,160,76,0.85);
    color: #3d2300;
    transform: rotate(-2deg);
}

/* Portrait */
.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);
}

/* Gradient cream */
.gradient-cream {
    background: linear-gradient(180deg, var(--cream-2) 0%, var(--cream) 100%);
}

.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;
}

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

/* Marquee */
@keyframes marqueeX {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee {
    display: flex;
    gap: 3rem;
    animation: marqueeX 32s linear infinite;
    width: max-content;
}

.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);
}

.check-li {
    display: flex;
    gap: .65rem;
    align-items: flex-start;
}
.check-li::before {
    content: "";
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 4px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* Tag chip */
.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;
}

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

/* Quote deco */
.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;
}

/* Ribbon */
.ribbon-bg {
    background: linear-gradient(90deg, rgba(232,160,76,0.0) 0%, rgba(232,160,76,0.15) 30%, rgba(232,160,76,0.15) 70%, rgba(232,160,76,0.0) 100%);
}

.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
}

/* Progress bar */
.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;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .display {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }
    
    .h-section {
        font-size: 2.25rem !important;
    }
}

/* Hide Tailwind script in production if needed, but keep for compatibility */
