:root {
    --brand-a: #263247;
    --brand-b: #5d7a5f;
    --brand-c: #f3f6ef;
    --line-a: #d3dacd;
    --focus-a: #1f5f8f;
    --content-width: 1080px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Karla', Arial, sans-serif;
    color: var(--brand-a);
    background: #ffffff;
    line-height: 1.62;
}

h1,
h2,
h3 {
    font-family: 'Bitter', Georgia, serif;
    margin: 0 0 0.7rem;
    line-height: 1.2;
}

p,
li {
    margin: 0 0 0.9rem;
}

a {
    color: var(--brand-a);
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--brand-a);
    color: #fff;
    padding: 0.7rem 1rem;
    z-index: 100;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
}

.site-header {
    border-bottom: 1px solid var(--line-a);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.main-nav {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: space-between;
}

.main-nav a {
    text-decoration: none;
    padding: 0.45rem 0.7rem;
    border: 1px solid var(--line-a);
    border-radius: 6px;
    background: #fbfcf9;
    font-weight: 500;
}

.site-main,
.legal-main,
.thanks-main {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 1.2rem 1rem 2.2rem;
}

section {
    border: 1px solid var(--line-a);
    border-radius: 0;
    padding: 1.35rem;
    margin: 1rem 0;
    background: #fff;
}

.hero {
    background: linear-gradient(180deg, #f8fbf4 0%, #eef4e6 100%);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.8rem;
}

.btn {
    border-radius: 4px;
    padding: 0.65rem 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Karla', Arial, sans-serif;
}

.btn-solid {
    background: var(--brand-a);
    color: #fff;
    border: 2px solid var(--brand-a);
}

.btn-solid:hover {
    background: #24384d;
    border-color: #24384d;
}

.btn-outline {
    background: #fff;
    color: var(--brand-a);
    border: 2px solid var(--brand-a);
}

.btn-outline:hover {
    color: #24384d;
    border-color: #24384d;
}

.resources .resource-item {
    border-top: 1px dashed var(--line-a);
    padding-top: 0.75rem;
    margin-top: 0.75rem;
}

.resources .resource-item:first-child {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.card-grid,
.faq-grid,
.testimony-grid {
    display: grid;
    gap: 0.8rem;
}

.card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.faq-grid,
.testimony-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.faq-card,
.testimony-grid article {
    border: 1px solid var(--line-a);
    border-radius: 0;
    padding: 0.85rem;
    background: var(--brand-c);
}

.steps ol {
    margin: 0 0 0.9rem 1.15rem;
    padding: 0;
}

.contact-form,
.newsletter-form {
    display: grid;
    gap: 0.55rem;
}

input,
textarea {
    width: 100%;
    padding: 0.66rem 0.7rem;
    border: 1px solid var(--line-a);
    border-radius: 0;
    font: inherit;
    background: #fff;
}

.hp-field {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.consent-row {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
}

.consent-row input {
    width: auto;
    margin-top: 0.2rem;
}

.author {
    font-weight: 700;
}

.notice {
    background: #f4f8ed;
    border-left: 5px solid var(--brand-b);
}

.site-footer {
    max-width: var(--content-width);
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.footer-brand p {
    margin: 0.2rem 0;
}

.footer-legal {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 0.6rem;
}

.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    background: #2f3b34;
    color: #fff;
    border: 1px solid #4e6155;
    border-radius: 4px;
    padding: 0.9rem;
    z-index: 50;
}

.cookie-banner p {
    margin: 0 0 0.7rem;
}

.hidden {
    display: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 3px solid var(--focus-a);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .card-grid,
    .faq-grid,
    .testimony-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .main-nav {
        justify-content: center;
    }

    .card-grid,
    .faq-grid,
    .testimony-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }
}
