/* =======================================================
   CARER24 · Warm Editorial redesign · 2026
   ======================================================= */

:root {
    /* Brand */
    --primary: #008bc9;
    --primary-dark: #006a9c;
    --primary-soft: #e6f3fa;
    --secondary: #00ca74;
    --secondary-dark: #00a35d;
    --secondary-soft: #e3f9ef;
    --accent: #d4622a;
    --accent-dark: #b04700;

    /* Neutrals — warm */
    --bg: #faf7f2;        /* warm cream — NOT pure white */
    --surface: #ffffff;
    --text: #1a2332;      /* deep navy instead of pure black */
    --text-2: #4a5568;
    --text-3: #8291a3;
    --border: #e8e0d3;    /* warm border */
    --border-soft: #f0ebe1;
    --dark: #162032;      /* dark sections */

    /* Type */
    --font-display: 'Fraunces', 'Georgia', serif;
    --font-body: 'Manrope', system-ui, -apple-system, sans-serif;

    /* Effects */
    --shadow-xs: 0 1px 3px rgba(22, 32, 50, 0.04);
    --shadow-sm: 0 2px 8px rgba(22, 32, 50, 0.06), 0 1px 2px rgba(22, 32, 50, 0.04);
    --shadow-md: 0 10px 30px rgba(22, 32, 50, 0.08), 0 2px 6px rgba(22, 32, 50, 0.04);
    --shadow-lg: 0 25px 60px rgba(22, 32, 50, 0.12), 0 10px 20px rgba(22, 32, 50, 0.06);
    --shadow-xl: 0 40px 80px rgba(0, 105, 154, 0.15);

    /* Radius */
    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --r-xl: 28px;

    /* Layout */
    --header-h: 88px;
    --maxw: 1200px;
}

/* ================= RESET ================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: contain;
    font-feature-settings: "ss01", "cv11";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; color: inherit; }

/* ================= TYPOGRAPHY ================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--text);
}

.wrap {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
}

.section { padding: 110px 0; position: relative; scroll-margin-top: calc(var(--header-h) + 16px); }
.pillars-section,
section[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    margin-bottom: 16px;
}
.section-title-light { color: #fff; }

.section-sub {
    font-size: 1.1rem;
    color: var(--text-2);
    max-width: 620px;
    line-height: 1.7;
}
.section-intro { text-align: center; margin: 0 auto 70px; max-width: 720px; }
.section-intro .section-sub { margin: 0 auto; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--primary);
    padding: 7px 14px;
    border: 1px solid var(--primary);
    border-radius: 99px;
    margin-bottom: 20px;
    background: var(--surface);
}
.eyebrow-on-dark { color: var(--secondary); border-color: var(--secondary); background: rgba(255,255,255,0.05); }

.lead { font-size: 1.1rem; color: var(--text-2); line-height: 1.75; margin-bottom: 16px; }
p { color: var(--text-2); line-height: 1.7; }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary);
    font-weight: 600;
    margin-top: 12px;
    transition: gap 0.25s ease;
}
.link-arrow:hover { gap: 14px; }
.link-arrow i { font-size: 0.85em; }

/* ================= HEADER ================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 16px 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.logo-img { height: 48px; width: auto; }
.header-meta { display: flex; align-items: center; gap: 24px; }

.header-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-2);
}
.stars { color: #f59e0b; letter-spacing: -1px; font-size: 0.95rem; }
.rating-text strong { color: var(--text); font-weight: 700; }

.header-phone {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    padding: 8px 18px;
    background: var(--primary);
    color: #fff;
    border-radius: 99px;
    transition: all 0.25s ease;
    position: relative;
}
.header-phone:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.header-phone i { display: none; }
.phone-label { font-size: 0.72rem; opacity: 0.85; letter-spacing: 0.05em; }
.phone-number { font-weight: 700; font-size: 0.95rem; }

/* ================= HERO ================= */
.hero {
    position: relative;
    padding: 80px 0 140px;
    overflow: hidden;
    isolation: isolate;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0, 139, 201, 0.06), transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 202, 116, 0.05), transparent 60%);
    z-index: -1;
}
.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(22, 32, 50, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 32, 50, 0.02) 1px, transparent 1px);
    background-size: 48px 48px;
    mask: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 90%);
    -webkit-mask: radial-gradient(ellipse 70% 60% at 50% 40%, black 40%, transparent 90%);
}
.hero-inner {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: 1.15fr 440px;
    gap: 70px;
    align-items: start;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 0.85rem;
    color: var(--text-2);
    margin-bottom: 32px;
    box-shadow: var(--shadow-xs);
}
.hero-eyebrow strong { color: var(--secondary-dark); font-weight: 700; }

.dot-pulse {
    width: 8px; height: 8px;
    background: var(--secondary);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}
.dot-pulse::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: var(--secondary);
    opacity: 0.4;
    animation: pulse 2s ease-out infinite;
}
@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(2.2); opacity: 0; }
}

.hero-title {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.025em;
}
.hero-title em {
    font-style: italic;
    font-weight: 500;
    color: var(--primary);
}
.title-underline-wrap {
    display: inline-block;
    position: relative;
}
.title-underline {
    position: absolute;
    left: 0; right: 0; bottom: -6px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 14' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 10 Q 75 2 150 8 T 298 6' stroke='%2300ca74' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;
    opacity: 0.9;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 32px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

.hero-checks { margin-bottom: 40px; }
.hero-checks li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
    color: var(--text);
    font-size: 1rem;
}
.hero-checks i {
    width: 28px;
    height: 28px;
    background: var(--secondary-soft);
    color: var(--secondary-dark);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.hero-checks strong { font-weight: 700; }

.hero-trust-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.trust-badge {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-2);
}
.trust-badge i {
    color: var(--primary);
    font-size: 1.3rem;
    margin-top: 2px;
}
.trust-badge strong { color: var(--text); font-weight: 700; font-size: 0.92rem; }

/* ================= FORM CARD ================= */
.form-card {
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-soft);
    position: sticky;
    top: calc(var(--header-h) + 16px);
    overflow: hidden;
}
.form-card-head {
    padding: 28px 32px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, #0a9bd8 100%);
    color: #fff;
    position: relative;
}
.form-card-head::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%);
    pointer-events: none;
}
.form-card-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 5px 11px;
    background: rgba(255,255,255,0.18);
    border-radius: 99px;
    margin-bottom: 10px;
}
.form-card-title {
    font-size: 1.45rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.2;
}
.form-card-sub { font-size: 0.85rem; opacity: 0.9; margin-bottom: 18px; }

.progress-track {
    height: 4px;
    background: rgba(255,255,255,0.22);
    border-radius: 99px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    width: 33.33%;
    background: var(--secondary);
    border-radius: 99px;
    transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0,202,116,0.5);
}

#contactForm { padding: 28px 32px 32px; }
.form-step { display: none; animation: fadeStep 0.35s ease; }
.form-step.active { display: block; }

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

.field-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    margin-top: 16px;
}
.field-label:first-child { margin-top: 0; }
.field-hint { font-weight: 400; color: var(--text-3); text-transform: none; letter-spacing: 0; }

.field-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    background: var(--surface);
    font-size: 0.95rem;
    transition: all 0.2s ease;
    font-family: var(--font-body);
}
.field-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,139,201,0.12);
}
select.field-input { cursor: pointer; appearance: none; -webkit-appearance: none; padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%238291a3'%3E%3Cpath d='M5.23 7.21a.75.75 0 011.06.02L10 11.06l3.71-3.83a.75.75 0 111.08 1.04l-4.25 4.39a.75.75 0 01-1.08 0L5.21 8.27a.75.75 0 01.02-1.06z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; }

/* Chip group (mobility) */
.chip-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 8px; }
.chip {
    padding: 12px 10px;
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-2);
    background: var(--surface);
    transition: all 0.2s ease;
    text-align: center;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.selected {
    border-color: var(--primary);
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-sm);
    font-weight: 700;
    font-size: 0.98rem;
    letter-spacing: 0.01em;
    transition: all 0.25s ease;
    box-shadow: 0 6px 18px rgba(212, 98, 42, 0.3);
    margin-top: 24px;
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 98, 42, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
    width: auto;
    padding: 14px 28px;
}
.btn-primary-outline:hover { background: var(--primary); color: #fff; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 22px;
    background: var(--bg);
    color: var(--text-2);
    border: 1.5px solid var(--border);
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.98rem;
    transition: all 0.2s ease;
    margin-top: 24px;
}
.btn-secondary:hover { background: var(--border-soft); color: var(--text); border-color: var(--text-3); }

.btn-row { display: grid; grid-template-columns: 1fr 1.5fr; gap: 10px; }
.btn-row .btn-primary, .btn-row .btn-secondary { margin-top: 24px; }

.btn-white {
    background: #fff;
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.btn-white:hover { background: #fff; color: var(--primary); transform: translateY(-2px); }

.btn-secondary-dark {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-secondary-dark:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.5); color: #fff; }

.form-privacy {
    display: flex;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-3);
    margin-top: 18px;
    line-height: 1.5;
    text-align: center;
    justify-content: center;
}
.form-privacy i { color: var(--secondary-dark); }

.response-msg {
    padding: 0 32px;
    text-align: center;
    font-weight: 600;
    min-height: 0;
}
.response-msg:not(:empty) { padding: 20px 32px 28px; }
.response-msg.success { color: var(--secondary-dark); }

/* ================= PILLARS ================= */
.pillars-section {
    margin-top: -80px;
    position: relative;
    z-index: 2;
    padding: 0 0 60px;
}
.pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}
.pillar-card {
    background: var(--surface);
    padding: 32px 24px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    border: 1px solid var(--border-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pillar-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}
.pillar-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
}
.pillar-number {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1;
    margin-bottom: 6px;
    letter-spacing: -0.03em;
}
.pillar-static { font-size: 2.4rem; }
.pillar-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-2);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.pillar-chips {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 12px 0 10px;
}
.badge-sm {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    border-radius: 99px;
    border: 1px solid rgba(0,139,201,0.2);
}

/* ================= STORY SECTION ================= */
.story-section { background: var(--surface); }
.story-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 80px;
    align-items: center;
}
.story-image-wrap {
    position: relative;
    padding-bottom: 40px;
}
.story-image {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg);
}
.story-quote {
    position: absolute;
    bottom: 0;
    right: -30px;
    background: var(--surface);
    padding: 24px 28px;
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-lg);
    max-width: 320px;
    border-left: 3px solid var(--secondary);
}
.story-quote i {
    color: var(--secondary);
    font-size: 1.3rem;
    margin-bottom: 8px;
    display: block;
    opacity: 0.5;
}
.story-quote p {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 10px;
}
.story-quote p em { font-weight: 500; color: var(--primary); font-style: italic; }
.story-quote cite { font-size: 0.82rem; color: var(--text-3); font-style: normal; font-weight: 600; }

/* ================= SERVICES ================= */
.services-section { background: var(--bg); }
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}
.service-card {
    background: var(--surface);
    padding: 32px 28px;
    border-radius: var(--r-lg);
    border: 1px solid var(--border-soft);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border);
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-soft);
    color: var(--primary);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 20px;
}
.service-card h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 10px;
}
.service-card p { font-size: 0.95rem; color: var(--text-2); line-height: 1.65; }

.services-note {
    max-width: 800px;
    margin: 0 auto;
    padding: 18px 24px;
    background: var(--primary-soft);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
    display: flex;
    gap: 14px;
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
}
.services-note i { color: var(--primary); flex-shrink: 0; margin-top: 3px; }

/* ================= COST SECTION ================= */
.cost-section { background: var(--surface); position: relative; overflow: hidden; }
.cost-section::before {
    content: '';
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0,202,116,0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.cost-grid {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 70px;
    align-items: center;
    position: relative;
}
.cost-text .lead { max-width: 520px; }
.cost-list { margin: 24px 0 32px; }
.cost-list li {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 0;
    font-size: 1rem;
    color: var(--text);
}
.cost-list i { color: var(--secondary-dark); font-size: 1.1rem; }

.cost-card {
    background: linear-gradient(165deg, var(--surface) 0%, #fafcfe 100%);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    padding: 36px 36px 28px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.cost-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}
.cost-card-head { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.cost-card-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 6px;
    display: block;
}
.cost-card h3 { font-size: 1.5rem; font-weight: 500; }

.cost-table { margin-bottom: 20px; }
.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px dashed var(--border);
}
.cost-row:last-child { border-bottom: none; }
.cost-row-highlight {
    background: var(--secondary-soft);
    margin: 4px -16px;
    padding: 14px 16px;
    border-radius: var(--r-sm);
    border-bottom: none !important;
}
.cost-label { font-weight: 500; color: var(--text); }
.cost-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 500;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;
}
.cost-row-highlight .cost-value { color: var(--secondary-dark); }
.cost-value span { font-size: 1rem; color: var(--text-3); font-weight: 400; margin-left: 4px; }
.cost-card-foot { font-size: 0.78rem; color: var(--text-3); text-align: center; }

/* ================= MAP ================= */
.map-section { background: var(--bg); }
.map-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px;
    background: var(--surface);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    height: 520px;
    overflow: hidden;
    position: relative;
}
#map { margin-top: -5px; }
#map_link, .map_info, #map_info, .sm_info,
div[style*="z-index: 1000000"], a[href*="simplemaps.com"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ================= TESTIMONIALS ================= */
.testimonial-section { background: var(--surface); padding-bottom: 110px; }
.testi-slider-wrap {
    overflow: hidden;
    padding: 20px 0;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.testi-track {
    display: flex;
    gap: 24px;
    width: max-content;
    animation: testiScroll 80s linear infinite;
}
.testi-track:hover { animation-play-state: paused; }
@keyframes testiScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 12px)); }
}

.testi-card {
    flex: 0 0 360px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.3s ease;
}
.testi-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary); }
.testi-stars { color: #f59e0b; font-size: 1.05rem; letter-spacing: 1px; }
.testi-text {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.55;
    font-weight: 400;
}
.testi-foot { display: flex; gap: 14px; align-items: center; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.testi-foot strong { display: block; font-weight: 700; color: var(--text); font-size: 0.95rem; }
.testi-foot span { font-size: 0.8rem; color: var(--text-3); }

/* ================= COMPARE TABLE ================= */
.compare-section { background: var(--bg); }
.compare-table-wrap {
    max-width: 920px;
    margin: 0 auto;
    background: var(--surface);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
}
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th, .compare-table td {
    padding: 18px 22px;
    text-align: left;
    font-size: 0.95rem;
}
.compare-table thead th {
    background: var(--bg);
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.05rem;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}
.compare-table thead th i { margin-right: 8px; font-size: 1.1rem; vertical-align: middle; }
.compare-us i { color: var(--secondary-dark); }
.compare-them i { color: #b85450; }
.compare-us { color: var(--secondary-dark); }
.compare-them { color: #b85450; }
.compare-table tbody tr { border-bottom: 1px solid var(--border-soft); transition: background 0.2s; }
.compare-table tbody tr:hover { background: var(--bg); }
.compare-table tbody tr:last-child { border-bottom: none; }
.compare-table tbody td:first-child { font-weight: 600; color: var(--text); }
.cell-yes { color: var(--secondary-dark); font-weight: 600; }
.cell-yes::before { content: '✓'; margin-right: 6px; font-weight: 700; }
.cell-no { color: #b85450; font-weight: 500; }
.cell-no::before { content: '✕'; margin-right: 6px; font-weight: 700; }

/* ================= PROCESS ================= */
.process-section { background: var(--surface); }
.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    counter-reset: step;
    position: relative;
}
.process-step {
    padding: 32px 26px;
    background: var(--bg);
    border-radius: var(--r-lg);
    border: 1px solid var(--border-soft);
    transition: all 0.3s ease;
    position: relative;
}
.process-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
    font-family: var(--font-display);
    font-size: 2.6rem;
    font-weight: 500;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
    opacity: 0.9;
}
.process-step h3 { font-size: 1.15rem; font-weight: 500; margin-bottom: 8px; }
.process-step p { font-size: 0.92rem; line-height: 1.6; }

/* ================= FAQ ================= */
.faq-section { background: var(--bg); }
.faq-wrap { max-width: 820px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item[open] { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.faq-item summary {
    padding: 22px 24px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    list-style: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--primary); }
.faq-chevron {
    color: var(--text-3);
    font-size: 0.9rem;
    transition: transform 0.25s ease, color 0.2s;
    flex-shrink: 0;
}
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-answer { padding: 0 24px 22px; }
.faq-answer p { line-height: 1.75; font-size: 0.98rem; }

/* ================= FINAL CTA ================= */
.final-cta { padding: 80px 0; background: var(--bg); }
.final-cta-box {
    background: linear-gradient(135deg, var(--dark) 0%, #1e2d4a 60%, #0a9bd8 150%);
    border-radius: var(--r-xl);
    padding: 70px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}
.final-cta-box::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(0,202,116,0.15), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0,139,201,0.2), transparent 50%);
    pointer-events: none;
}
.final-cta-content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.final-cta-sub {
    color: rgba(255,255,255,0.8);
    font-size: 1.1rem;
    margin: 16px auto 36px;
    max-width: 520px;
    line-height: 1.7;
}
.final-cta-btns {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.final-cta-btns .btn-primary, .final-cta-btns .btn-secondary { width: auto; margin-top: 0; padding: 16px 28px; }

/* ================= FOOTER ================= */
.site-footer {
    background: var(--dark);
    color: #fff;
    padding: 70px 0 28px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col h4 {
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 18px;
}
.footer-logo { height: 42px; width: auto; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.6; margin-bottom: 18px; }
.footer-rating {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 99px;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.8);
}
.footer-rating strong { color: #fff; font-weight: 700; }

.footer-col p { color: rgba(255,255,255,0.7); font-size: 0.9rem; line-height: 1.7; margin-bottom: 14px; }
.footer-col a { color: #fff; transition: color 0.2s; }
.footer-col a:hover { color: var(--secondary); }
.footer-col a i { margin-right: 6px; opacity: 0.7; }

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: rgba(255,255,255,0.8); font-size: 0.92rem; }
.footer-links a:hover { color: var(--secondary); }

.footer-socials { display: flex; gap: 10px; margin-top: 18px; }
.footer-socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all 0.25s ease;
}
.footer-socials a:hover { background: var(--secondary); color: #fff; transform: translateY(-3px); }

.footer-bottom {
    padding-top: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
}
.footer-legal-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.footer-legal-tags .badge-sm { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); border-color: rgba(255,255,255,0.1); }

/* ================= FLOAT CALL ================= */
.float-call {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 900;
}
.float-btn {
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--secondary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    box-shadow: 0 10px 30px rgba(0,202,116,0.4);
    transition: all 0.25s ease;
    position: relative;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 2px solid var(--secondary);
    opacity: 0;
    animation: ringPulse 2.2s ease-out infinite;
}
@keyframes ringPulse {
    0% { transform: scale(1); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* ================= MOBILE STICKY CTA ================= */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    z-index: 999;
    padding: 16px 20px;
    background: var(--accent);
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-size: 0.98rem;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.15);
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.mobile-sticky-cta i { font-size: 1rem; }

/* ================= COOKIE BANNER ================= */
.cookie-banner {
    position: fixed;
    bottom: 0; left: 0;
    width: 100%;
    padding: 20px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
    z-index: 9999;
    display: none;
}
.cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}
.cookie-inner strong { display: block; font-weight: 700; margin-bottom: 4px; color: var(--text); font-size: 0.95rem; }
.cookie-inner p { font-size: 0.85rem; color: var(--text-2); margin: 0; }
.cookie-inner a { color: var(--primary); }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.btn-cookie {
    padding: 10px 18px;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: 0.88rem;
    background: var(--bg);
    color: var(--text-2);
    border: 1px solid var(--border);
    transition: all 0.2s;
}
.btn-cookie:hover { background: var(--border-soft); }
.btn-cookie-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-cookie-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ================= REVEAL ================= */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
    .hero-inner { grid-template-columns: 1fr; gap: 50px; }
    .form-card { position: static; max-width: 520px; margin: 0 auto; }
    .hero { padding: 40px 0 100px; }
    .story-grid, .cost-grid { grid-template-columns: 1fr; gap: 50px; }
    .story-quote { position: static; max-width: 100%; margin-top: 20px; right: 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .section { padding: 80px 0; }
}

@media (max-width: 768px) {
    :root { --header-h: 72px; }
    .wrap, .hero-inner, .header-inner { padding-left: 20px; padding-right: 20px; }
    .section { padding: 70px 0; }
    body { padding-bottom: 72px; }
    
    .mobile-sticky-cta { display: flex; }
    .float-call { bottom: 90px; right: 16px; }
    .float-btn { width: 54px; height: 54px; font-size: 1.2rem; }
    
    .site-header { padding: 0; }
    .header-inner { padding: 12px 20px; }
    .logo-img { height: 38px; }
    .header-rating { display: none; }
    .phone-label { display: none; }
    .header-phone { padding: 10px 14px; }
    .header-phone i { display: inline-block; margin-right: 6px; }
    .phone-number { font-size: 0.85rem; }
    
    .hero-title { font-size: 2.4rem; line-height: 1.1; }
    .hero-sub { font-size: 1rem; }
    .hero-trust-row { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; }
    
    .form-card-head { padding: 24px 24px 20px; }
    #contactForm { padding: 24px 24px 28px; }
    .form-card-title { font-size: 1.25rem; }
    
    .pillars-section { margin-top: -60px; padding-bottom: 40px; }
    .pillars { grid-template-columns: 1fr 1fr; gap: 14px; }
    .pillar-card { padding: 24px 16px; }
    .pillar-number { font-size: 2rem; }
    
    .section-title { font-size: 1.8rem; }
    .section-intro { margin-bottom: 50px; }
    
    .services-grid, .process-steps { gap: 16px; }
    .compare-table th, .compare-table td { padding: 14px 12px; font-size: 0.88rem; }
    .cost-card { padding: 28px 24px; }
    
    .final-cta-box { padding: 50px 28px; }
    .final-cta-btns { flex-direction: column; }
    .final-cta-btns .btn-primary, .final-cta-btns .btn-secondary { width: 100%; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 36px; text-align: left; }
    .footer-bottom { flex-direction: column; text-align: center; }
    
    .cookie-inner { flex-direction: column; text-align: center; gap: 16px; }
    .map-wrap { height: 420px; padding: 20px; }
    
    .testi-card { flex: 0 0 300px; padding: 24px; }
    .testi-text { font-size: 1rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 1.95rem; }
    .pillars { grid-template-columns: 1fr 1fr; }
    .btn-row { grid-template-columns: 1fr; }
}

/* ================= PRINT ================= */
@media print {
    .site-header, .float-call, .mobile-sticky-cta, .cookie-banner, .form-card { display: none; }
}

/* ==========================================
   MOBILE DRAWER (STYLED LINKS & CTA)
   ========================================== */

/* Kontener linków – pozwala stopce zjechać na dół */
.mobile-drawer-inner {
    display: flex;
    flex-direction: column;
    flex: 1; 
}

/* Pojedynczy link w menu */
.mobile-drawer-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
    transition: color 0.2s ease, padding-left 0.2s ease;
}

/* Ikony przy linkach */
.mobile-drawer-link i {
    color: var(--primary);
    font-size: 1.25rem;
    width: 24px; /* Stała szerokość, żeby tekst pod spodem równo się zaczynał */
    text-align: center;
}

.mobile-drawer-link:hover {
    color: var(--primary);
    padding-left: 8px; /* Lekkie przesunięcie przy najechaniu palcem/myszką */
}

/* Wyróżniony przycisk "Kontakt" w menu */
.mobile-drawer-link.mobile-drawer-cta {
    margin-top: 24px;
    padding: 16px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--r-sm);
    border-bottom: none;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(212, 98, 42, 0.2);
}

.mobile-drawer-link.mobile-drawer-cta i {
    color: #fff;
}

.mobile-drawer-link.mobile-drawer-cta:hover {
    background: var(--accent-dark);
    padding-left: 20px; /* Resetujemy padding z normalnego hovera */
}

/* Dolna sekcja z numerem telefonu (przyklejona do dołu ekranu) */
.mobile-drawer-foot {
    margin-top: auto; 
    padding-top: 40px;
}

/* Wygląd wizytówki telefonicznej */
.mobile-drawer-phone {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--primary-soft);
    padding: 16px;
    border-radius: var(--r-md);
    text-decoration: none;
    transition: transform 0.2s ease;
}

.mobile-drawer-phone:hover {
    transform: translateY(-2px);
}

/* Kółko z ikoną słuchawki */
.mobile-drawer-phone i {
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.mobile-drawer-phone small {
    display: block;
    font-size: 0.72rem;
    color: var(--text-2);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}

.mobile-drawer-phone strong {
    display: block;
    font-size: 1.05rem;
    color: var(--primary-dark);
}