:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --surface-alt: #eaf0f6;
    --surface-soft: #f8fbff;
    --text: #0f1720;
    --muted: #4e5c6b;
    --primary: #103f66;
    --primary-strong: #0a2d4a;
    --accent: #ff8a1d;
    --border: #d4dde6;
    --ok: #14532d;
    --error: #9b1c1c;
    --shadow: 0 14px 40px rgba(8, 31, 55, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    background: radial-gradient(circle at 10% -20%, #ffffff 0%, var(--bg) 45%, #e3ebf2 100%);
    color: var(--text);
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1100px, 92%);
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(15, 23, 32, 0.08);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.header-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

.brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.menu-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    height: 2px;
    width: 100%;
    background: var(--text);
    border-radius: 999px;
    transition: 0.22s ease;
}

.lang-switch {
    display: inline-flex;
    border: 1px solid var(--border);
    border-radius: 999px;
    overflow: hidden;
    background: var(--surface);
}

.lang-btn {
    border: 0;
    background: transparent;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--primary-strong);
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-btn.is-active {
    background: var(--primary-strong);
    color: #ffffff;
}

.main-nav {
    position: absolute;
    inset: 72px 0 auto 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.2s ease;
    display: grid;
    gap: 2px;
    padding: 8px 0;
}

.main-nav a {
    padding: 12px 4%;
    font-weight: 600;
    color: var(--primary-strong);
    transition: background 0.2s ease, color 0.2s ease;
}

.main-nav a:hover {
    background: var(--surface-alt);
}

.main-nav.open {
    transform: scaleY(1);
}

.hero {
    position: relative;
    padding: 34px 0 20px;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 999px;
    filter: blur(2px);
    z-index: -1;
}

.hero::before {
    width: 320px;
    height: 320px;
    right: -90px;
    top: -120px;
    background: radial-gradient(circle, rgba(255, 138, 29, 0.18), rgba(255, 138, 29, 0));
}

.hero::after {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -230px;
    background: radial-gradient(circle, rgba(16, 63, 102, 0.2), rgba(16, 63, 102, 0));
}

.hero-grid {
    display: grid;
    gap: 22px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--primary);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: 'Sora', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h4 {
    margin: 12px 0 8px;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    line-height: 1.3;
    color: var(--primary-strong);
}

h1 {
    font-size: clamp(1.8rem, 4.6vw, 3.2rem);
    max-width: 18ch;
}

h2 {
    margin-top: 6px;
    font-size: clamp(1.35rem, 4vw, 2.2rem);
}

h3 {
    font-size: 1.08rem;
}

p {
    margin: 0 0 14px;
}

.hero-text {
    color: var(--muted);
    max-width: 58ch;
    font-size: 1.04rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.btn {
    border: 0;
    border-radius: 12px;
    padding: 11px 16px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    display: inline-flex;
    justify-content: center;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(120deg, var(--primary), #0f4f83);
    color: #fff;
    box-shadow: 0 8px 20px rgba(16, 63, 102, 0.26);
}

.btn-primary:hover {
    background: linear-gradient(120deg, #0f4f83, var(--primary-strong));
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.7);
    color: var(--primary-strong);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: #9cb5c9;
}

.hero-card {
    background: linear-gradient(155deg, #103f66 0%, #0a2d4a 68%);
    color: #f3f7fb;
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-card h2 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: #ffffff;
}

.hero-card p {
    color: #c7d6e4;
}

.hero-card ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.section {
    padding: 44px 0;
}

.section-alt {
    background: linear-gradient(160deg, #e8eff5 0%, #f4f7fb 100%);
    border-top: 1px solid #dde6ee;
    border-bottom: 1px solid #dde6ee;
}

.card-grid,
.feature-grid {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.card {
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(12, 28, 44, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(12, 28, 44, 0.11);
}

.card ul {
    margin: 10px 0 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 5px;
}

.about-grid,
.contact-grid {
    display: grid;
    gap: 14px;
}

.highlight-box,
.legal-card,
.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(12, 28, 44, 0.06);
}

.feature-grid > div,
.contact-grid > div {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
}

.feature-grid h3,
.card h3,
.highlight-box h3 {
    margin-bottom: 8px;
}

.contact-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    display: grid;
    gap: 8px;
}

.contact-form {
    display: grid;
    gap: 8px;
}

.contact-form label {
    font-weight: 600;
    margin-top: 4px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #bdc8d4;
    border-radius: 12px;
    padding: 11px;
    font: inherit;
    background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: 2px solid rgba(16, 63, 102, 0.2);
    border-color: #1e5785;
}

.checkbox-row {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 8px;
    align-items: start;
    margin-top: 4px;
    color: var(--muted);
    font-weight: 400;
}

.checkbox-row input {
    margin-top: 3px;
}

.form-message {
    margin: 6px 0 0;
    font-size: 0.95rem;
    padding: 10px 12px;
    border-radius: 10px;
}

.form-message.success {
    color: var(--ok);
    background: #e6f7ec;
    border: 1px solid #bde8cb;
}

.form-message.error {
    color: var(--error);
    background: #fdebec;
    border: 1px solid #f8c8cc;
}

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

.legal h3 {
    margin: 16px 0 6px;
}

.legal-note {
    margin-top: 10px;
    color: #7a4421;
    background: #fff6e9;
    border: 1px solid #f2d9bb;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.95rem;
}

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

.legal-links .btn {
    min-width: 180px;
}

.site-footer {
    background: #0c2438;
    color: #d7e4ef;
    padding: 22px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
}

.footer-inner a {
    color: #fbbf82;
    font-weight: 600;
}

.footer-links {
    display: flex;
    gap: 12px;
}

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 {
    transition-delay: 0.08s;
}

.reveal-delay-2 {
    transition-delay: 0.16s;
}

.reveal-delay-3 {
    transition-delay: 0.24s;
}

@media (min-width: 780px) {
    .menu-toggle {
        display: none;
    }

    .lang-btn {
        padding: 8px 14px;
    }

    .main-nav {
        position: static;
        transform: none;
        border: 0;
        background: transparent;
        display: flex;
        gap: 16px;
        padding: 0;
        margin-left: auto;
    }

    .main-nav a {
        padding: 8px 0;
        position: relative;
    }

    .main-nav a::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 2px;
        width: 100%;
        height: 2px;
        background: var(--accent);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.2s ease;
    }

    .main-nav a:hover::after {
        transform: scaleX(1);
    }

    .hero {
        padding-top: 58px;
    }

    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
        gap: 24px;
    }

    .section {
        padding: 72px 0;
    }

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

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

    .about-grid {
        grid-template-columns: 1.3fr 0.7fr;
        align-items: start;
    }

    .contact-grid {
        grid-template-columns: 0.85fr 1.15fr;
        align-items: start;
    }
}

@media (max-width: 779px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 10px 0;
    }

    .header-actions {
        margin-left: auto;
    }

    .main-nav {
        top: 84px;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}
