:root {
    --bg: #F6F5F3;
    --surface: #F6F5F3;
    --surface-alt: #EEF6D8;
    --text: #262013;
    --text-muted: #726B5A;
    --border: #E4E0D8;
    --primary: #84CC16;
    --primary-hover: #65A30D;
    --on-primary: #111111;
    --accent: #26291E;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Noto Serif SC', serif;
    font-style: normal;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Noto Serif SC', serif;
    font-style: normal;
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

h2 {
    font-size: clamp(1.65rem, 3vw, 2.5rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
}

h4 {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
}

h5 {
    font-size: 1.15rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: 1rem;
}

p:last-child {
    margin-bottom: 0;
}

a,
a:hover,
a:focus {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    transition: background-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.cookie-consent-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(22, 20, 13, 0.65);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.cookie-consent-modal {
    background-color: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    max-width: 600px;
    width: 100%;
    padding: 28px;
    box-shadow: none;
    position: relative;
}

.cookie-consent-title {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.cookie-consent-desc {
    font-size: 0.925rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.cookie-consent-link {
    text-decoration: underline !important;
    color: var(--accent);
}

.cookie-consent-preferences {
    background-color: #ECEAE5;
    border: 1px solid var(--border);
    padding: 16px;
    margin-bottom: 20px;
}

.cookie-consent-option {
    margin-bottom: 12px;
}

.cookie-consent-option:last-child {
    margin-bottom: 0;
}

.cookie-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.875rem;
    cursor: pointer;
}

.cookie-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cookie-consent-btn {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cookie-consent-btn-primary {
    background-color: var(--primary);
    color: var(--on-primary);
}

.cookie-consent-btn-primary:hover {
    background-color: var(--primary-hover);
}

.cookie-consent-btn-secondary {
    background-color: var(--accent);
    color: #FFFFFF;
}

.cookie-consent-btn-outline {
    border: 1px solid var(--border);
    background-color: transparent;
    color: var(--text);
}

.cookie-consent-btn-save {
    background-color: #3B3830;
    color: #FFFFFF;
}

@media (max-width: 768px) {
    h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        word-break: break-word;
    }

    h2 {
        font-size: clamp(1.45rem, 5vw, 1.85rem);
        word-break: break-word;
    }

    h3 {
        font-size: clamp(1.2rem, 4vw, 1.45rem);
        word-break: break-word;
    }

    h4,
    h5,
    h6 {
        word-break: break-word;
    }

    a,
    p,
    span,
    li {
        word-break: break-word;
    }

    .cookie-consent-modal {
        width: 100%;
        padding: 20px;
    }

    .cookie-consent-actions {
        flex-direction: column;
    }

    .cookie-consent-btn {
        width: 100%;
    }
}

/* ===== header_block ===== */
header#header {
    overflow: hidden;
}

.mobile-menu-overlay.is-active {
    display: flex !important;
}

/* ===== hero_block ===== */
#hero {
    overflow: hidden;
}

#hero h1,
#hero h2,
#hero h3 {
    hyphens: auto;
}

#hero a,
#hero button {
    cursor: pointer;
}

/* ===== business_challenges_block ===== */
#challenges {
    background-color: var(--bg);
    color: var(--text);
}

#challenges * {
    box-sizing: border-box;
}

/* ===== crm_capabilities_block ===== */
#capabilities {
    hyphens: auto;
}

#capabilities button {
    outline: none;
}

/* ===== about_okarven_block ===== */
#about {
    overflow: hidden;
}

#about * {
    box-sizing: border-box;
    border-radius: 0 !important;
}

/* ===== crm_solutions_block ===== */
#solutions {
    overflow: hidden;
}

#solutions h2 {
    hyphens: auto;
    line-height: 1.25;
}

#solutions h3 {
    hyphens: auto;
    line-height: 1.3;
}

.js-solution-card {
    width: 100%;
}

/* ===== pricing_block ===== */
.pricing-section h2,
.pricing-section h3 {
    hyphens: auto;
    line-height: 1.2
}

.pricing-section .featured-card {
    border: 3px double var(--accent)
}

.pricing-section .pricing-card {
    border-radius: 0
}

.pricing-section .js-plan-btn:hover {
    filter: brightness(0.95)
}

/* ===== implementation_stages_block ===== */
#stages {
    hyphens: auto;
}

/* ===== advantages_block ===== */
#advantages {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    hyphens: auto;
}

/* ===== faq_block ===== */
#faq {
    hyphens: auto;
}

#faq .js-faq-trigger:focus-visible {
    outline: 2px solid #84CC16;
    outline-offset: -2px;
}

/* ===== contact_block ===== */
.contact-input::placeholder {
    color: var(--text-muted);
    opacity: 0.85;
}

.contact-input:focus {
    border-color: var(--accent) !important;
}

button[type="submit"]:hover {
    background-color: var(--primary-hover) !important;
}

/* ===== footer_block ===== */
#footer {
    overflow: hidden;
}

#footer a {
    text-decoration: none;
}