/* ====== PROPER CONSTRUCT — Reset & Base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

:root {
    --color-primary: #15314e;
    --color-primary-dark: #0c2138;
    --color-accent: #e07a5f;
    --color-accent-dark: #c8654c;
    --color-bg: #ffffff;
    --color-bg-alt: #f4f6f9;
    --color-text: #1f2a37;
    --color-muted: #5b6573;
    --color-border: #e3e8ef;
    --shadow-sm: 0 2px 6px rgba(15, 32, 56, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 32, 56, 0.10);
    --radius: 6px;
    --radius-lg: 12px;
}

img { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }

h1, h2, h3, h4 { color: var(--color-primary); margin-top: 0; line-height: 1.25; font-weight: 700; }
h1 { font-size: 2.4rem; margin-bottom: 16px; }
h2 { font-size: 1.7rem; margin-bottom: 14px; }
h3 { font-size: 1.15rem; margin-bottom: 10px; }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 6px; }

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

/* ====== Header ====== */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 50;
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 20px;
}
.logo {
    display: flex; align-items: center; gap: 12px;
    font-weight: 800; color: var(--color-primary); font-size: 1.05rem;
    letter-spacing: 0.02em;
}
.logo-mark {
    width: 46px; height: 46px;
    background: var(--color-primary);
    color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 0.78rem; letter-spacing: 0.04em;
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
}
.logo-mark::after {
    content: "";
    position: absolute;
    bottom: -6px; left: -8px; right: -8px;
    height: 10px;
    background: var(--color-accent);
    transform: rotate(-8deg);
}

.main-nav ul { display: flex; gap: 8px; list-style: none; padding: 0; margin: 0; align-items: center; }
.main-nav li { margin: 0; }
.main-nav a {
    color: var(--color-primary);
    font-weight: 600; font-size: 0.95rem;
    padding: 10px 14px;
    border-radius: var(--radius);
    transition: background 0.18s;
}
.main-nav a:hover { background: var(--color-bg-alt); color: var(--color-primary); }
.main-nav .nav-cta {
    background: var(--color-accent);
    color: #fff !important;
    padding: 10px 18px;
    margin-left: 6px;
}
.main-nav .nav-cta:hover { background: var(--color-accent-dark); }

.nav-toggle {
    display: none;
    background: transparent; border: none; font-size: 1.5rem;
    color: var(--color-primary); cursor: pointer; padding: 6px 10px;
}

/* ====== Buttons ====== */
.btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: var(--radius);
    font-weight: 600; font-size: 0.98rem;
    cursor: pointer; border: none;
    transition: background 0.18s, transform 0.1s, box-shadow 0.18s;
    text-align: center;
}
.btn-primary { background: var(--color-accent); color: #fff !important; }
.btn-primary:hover { background: var(--color-accent-dark); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,0.6); padding: 11px 24px; }
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.btn-outline { background: transparent; color: var(--color-primary) !important; border: 2px solid var(--color-primary); padding: 11px 24px; }
.btn-outline:hover { background: var(--color-primary); color: #fff !important; }

/* ====== Hero ====== */
.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 80px 0 90px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    top: 50%; right: -120px;
    width: 380px; height: 380px;
    background: var(--color-accent);
    opacity: 0.10;
    border-radius: 50%;
    transform: translateY(-50%);
}
.hero-inner {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center;
    position: relative; z-index: 1;
}
.hero h1 { color: #fff; font-size: 2.7rem; line-height: 1.18; }
.hero .accent { color: var(--color-accent); }
.hero .lead { font-size: 1.08rem; color: rgba(255,255,255,0.92); margin-bottom: 28px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(6px);
    border-radius: var(--radius-lg);
    padding: 28px 28px 22px;
}
.hero-card h3 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.hero-card ul { list-style: none; padding: 0; margin: 0; }
.hero-card li {
    color: rgba(255,255,255,0.92);
    font-size: 0.95rem;
    padding: 8px 0 8px 26px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.10);
}
.hero-card li:last-child { border-bottom: none; }
.hero-card li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--color-accent);
    font-weight: 800;
}

/* ====== Page hero (inner pages) ====== */
.page-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: #fff;
    padding: 60px 0 56px;
    text-align: center;
}
.page-hero h1 { color: #fff; font-size: 2.2rem; }
.page-hero p { color: rgba(255,255,255,0.92); max-width: 680px; margin: 0 auto; }

/* ====== Trust bar ====== */
.trust-bar {
    background: var(--color-bg-alt);
    padding: 30px 0;
    border-bottom: 1px solid var(--color-border);
}
.trust-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    text-align: center;
}
.trust-item { display: flex; flex-direction: column; align-items: center; }
.trust-item .num { font-size: 1.9rem; font-weight: 800; color: var(--color-primary); }
.trust-item .label { color: var(--color-muted); font-size: 0.9rem; margin-top: 4px; }

/* ====== Sections ====== */
.section { padding: 70px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-title .eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 10px;
}
.section-title h2 { font-size: 1.85rem; }
.section-title p { color: var(--color-muted); }

.eyebrow {
    display: inline-block;
    color: var(--color-accent);
    font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 8px;
}

/* ====== Grids ====== */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ====== Cards ====== */
.card {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
    transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.card .icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-bg-alt);
    color: var(--color-accent);
    border-radius: var(--radius);
    font-size: 1.4rem; font-weight: 800;
    margin-bottom: 14px;
}
.card h3 { font-size: 1.05rem; }
.card p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* ====== Process steps ====== */
.process-step {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    border: 1px solid var(--color-border);
    text-align: center;
}
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px;
    background: var(--color-accent);
    color: #fff;
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 14px;
}
.process-step p { color: var(--color-muted); font-size: 0.95rem; margin: 0; }

/* ====== Testimonials ====== */
.testimonial {
    background: #fff;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: 26px 24px;
}
.testimonial p { color: var(--color-text); font-style: italic; margin-bottom: 14px; }
.testimonial .author {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.95rem;
    display: flex; flex-direction: column;
}
.testimonial .author span {
    color: var(--color-muted);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 2px;
}

/* ====== Lists ====== */
.check-list { list-style: none; padding: 0; }
.check-list li {
    padding: 8px 0 8px 28px;
    position: relative;
    border-bottom: 1px solid var(--color-border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
    content: "✓";
    position: absolute; left: 0;
    color: var(--color-accent);
    font-weight: 800;
}
.num-list { padding-left: 22px; }
.num-list li { padding: 4px 0; }

/* ====== Forms ====== */
form label {
    display: block;
    margin-bottom: 14px;
    font-size: 0.92rem;
    color: var(--color-primary);
    font-weight: 600;
}
form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="number"],
form select,
form textarea {
    width: 100%;
    padding: 11px 13px;
    margin-top: 6px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--color-text);
    background: #fff;
    transition: border-color 0.18s, box-shadow 0.18s;
}
form input:focus, form select:focus, form textarea:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(224, 122, 95, 0.15);
}
form textarea { resize: vertical; min-height: 110px; }
.checkbox-label {
    display: flex; align-items: flex-start; gap: 10px;
    font-weight: 500; color: var(--color-muted); font-size: 0.88rem;
    margin: 18px 0;
}
.checkbox-label input { margin-top: 4px; }
.form-success {
    background: #e7f5ec;
    border: 1px solid #b7dec5;
    color: #1c5b34;
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-top: 16px;
}

/* ====== Map ====== */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

/* ====== Content pages ====== */
.content-page { padding: 56px 0 70px; background: #fff; }
.content-page h1 { font-size: 2rem; margin-bottom: 6px; }
.content-page h2 {
    font-size: 1.25rem;
    margin-top: 32px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border);
}
.content-page h3 { font-size: 1.05rem; margin-top: 22px; }
.content-page .updated { color: var(--color-muted); font-size: 0.88rem; margin-bottom: 24px; }
.content-page .breadcrumb a { color: var(--color-muted); }
.callout {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    padding: 18px 22px;
    border-radius: var(--radius);
    margin: 22px 0;
}
.callout strong { color: var(--color-primary); display: block; margin-bottom: 6px; }
.callout p { margin: 0; color: var(--color-text); }

/* ====== Footer ====== */
.site-footer {
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.82);
    padding: 56px 0 22px;
    margin-top: 60px;
}
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px;
    margin-bottom: 32px;
}
.site-footer h4 {
    color: #fff;
    font-size: 0.95rem;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 0.93rem; }
.site-footer a { color: rgba(255,255,255,0.78); }
.site-footer a:hover { color: var(--color-accent); }
.site-footer p { font-size: 0.92rem; color: rgba(255,255,255,0.74); }
.legal-info {
    font-size: 0.85rem !important;
    color: rgba(255,255,255,0.66) !important;
    margin-top: 14px !important;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.62);
}

/* ====== Cookie banner ====== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--color-primary-dark);
    color: rgba(255,255,255,0.92);
    padding: 18px 0;
    z-index: 100;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.16);
}
.cookie-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 22px; flex-wrap: wrap;
}
.cookie-inner p { margin: 0; font-size: 0.92rem; max-width: 700px; }
.cookie-inner a { color: var(--color-accent); }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-ghost {
    border-color: rgba(255,255,255,0.4);
}

/* ====== Responsive ====== */
@media (max-width: 960px) {
    .hero { padding: 60px 0 70px; }
    .hero-inner { grid-template-columns: 1fr; gap: 30px; }
    .hero h1 { font-size: 2.1rem; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (max-width: 720px) {
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.45rem; }
    .nav-toggle { display: inline-block; }
    .main-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        box-shadow: var(--shadow-md);
    }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; padding: 14px 16px; gap: 4px; align-items: stretch; }
    .main-nav a { padding: 12px 14px; }
    .main-nav .nav-cta { margin-left: 0; margin-top: 6px; text-align: center; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .footer-bottom { flex-direction: column; }
    .section { padding: 50px 0; }
    .hero h1 { font-size: 1.8rem; }
}
