:root {
    --ink: #142c43;
    --blue: #1879a6;
    --pale: #f0f5f8;
    --line: #dce6ed;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: 16px/1.65 system-ui, Arial, sans-serif;
    color: #293b48;
}

a {
    color: inherit;
}

.wrap {
    max-width: 1120px;
    margin: auto;
    padding: 0 22px;
}

header {
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 4;
    box-shadow: 0 2px 14px #142c4317;
}

nav {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    font-size: 25px;
    font-weight: 850;
    color: var(--ink);
    text-decoration: none;
}

.logo span {
    color: var(--blue);
}

.links {
    display: flex;
    flex-wrap: wrap;
    gap: 19px;
}

.links a {
    text-decoration: none;
    font-weight: 650;
    font-size: 14px;
}

.hero {
    background: linear-gradient(115deg, #10283fea, #1679a9dd), linear-gradient(40deg, #697f89, #ccd9e0);
    color: white;
    padding: 100px 0;
}

.hero h1 {
    font-size: clamp(34px, 5.6vw, 58px);
    line-height: 1.13;
    max-width: 850px;
    margin: 0 0 20px;
}

.hero p {
    font-size: 19px;
    max-width: 750px;
}

.btn {
    display: inline-block;
    border: 0;
    background: var(--blue);
    color: white;
    padding: 13px 22px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 750;
    cursor: pointer;
}

.btn.white {
    background: white;
    color: var(--ink);
}

section {
    padding: 68px 0;
}

h2 {
    color: var(--ink);
    font-size: clamp(27px, 3vw, 36px);
    margin: 0 0 15px;
}

h3 {
    color: var(--ink);
    margin: 0 0 8px;
}

.lead {
    font-size: 18px;
    max-width: 850px;
}

.soft {
    background: var(--pale);
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.card {
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 20px #142c4309;
}

.card p {
    margin-bottom: 0;
}

.pill {
    display: inline-block;
    background: #e7f3f9;
    color: #125c83;
    border-radius: 20px;
    padding: 5px 13px;
    font-size: 13px;
    font-weight: 750;
    margin-bottom: 15px;
}

.photo {
    background: linear-gradient(135deg, #e3eaf0, #b5c8d4);
    border-radius: 10px;
    height: 190px;
    display: grid;
    place-items: center;
    padding: 0;
    overflow: hidden;
    text-align: center;
    color: #456173;
}

/* A csak szöveget tartalmazó helyőrzők kapjanak belső margót */
.photo:not(:has(img)) {
    padding: 20px;
}

/* A kép töltse ki a .photo dobozt, aránytartással, kilógó részek levágásával */
.photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.form {
    max-width: 760px;
    background: white;
    padding: 30px;
    border-radius: 13px;
    box-shadow: 0 6px 28px #142c4315;
}

label {
    display: block;
    font-weight: 700;
    margin: 15px 0 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #b8cbd6;
    border-radius: 7px;
    font: inherit;
}

textarea {
    min-height: 130px;
}

.check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-weight: 400;
}

.check input {
    width: auto;
    margin-top: 7px;
}

.note {
    font-size: 14px;
    color: #586d7b;
}

footer {
    background: var(--ink);
    color: white;
    padding: 42px 0;
}

footer a {
    color: white;
}

.footer-heading {
    color: white;
}

.notice {
    background: #eaf5fa;
    border-left: 4px solid var(--blue);
    padding: 14px 18px;
    margin-top: 22px;
}

/* A honeypot mező a látogatók elől rejtve marad. */
.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 760px) {
    .grid {
        grid-template-columns: 1fr;
    }

    /* Mobilon a doboz szélességéhez igazodó arány, hogy a kép ne vágódjon le csúnyán */
    .photo {
        height: auto;
        aspect-ratio: 3 / 2;
    }
    .hero {
        padding: 76px 0;
    }

    section {
        padding: 48px 0;
    }

    nav {
        padding: 13px 0;
    }

    .links {
        gap: 12px;
    }

    .form {
        padding: 20px;
    }
}