@import url("variables.css");

:root {
    --layout-max-width: 1440px;
    --layout-gutter: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-family-base, "Poppins", sans-serif);
    line-height: 1.6;
    color: var(--color-text, #1a2e2d);
    background: var(--color-surface, #fffef3);
}

body.nav-menu-open {
    overflow: hidden;
}

main {
    width: min(var(--layout-max-width), calc(100% - (var(--layout-gutter) * 2)));
    margin: 0 auto;
    padding: 7.5rem 0 6rem;
}

.hero {
    min-height: 72vh;
    display: grid;
    align-content: center;
    gap: 1rem;
    padding: 2rem 0 4rem;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
    margin: 0;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 620px;
    margin: 0;
    font-size: 1.08rem;
    color: #4b5563;
}

.section-block {
    background: #ffffff;
    border-radius: 1.75rem;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.section-block h2 {
    margin-top: 0;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    letter-spacing: -0.02em;
}

.section-block p {
    color: #4b5563;
    margin-bottom: 0;
}

.contact-form {
    display: grid;
    gap: 0.75rem;
    max-width: 480px;
}

.contact-form input,
.contact-form textarea,
.contact-form button {
    font: inherit;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 0.85rem;
    background: #f9fafb;
}

.contact-form button {
    width: fit-content;
    padding: 0.75rem 1.25rem;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.error-page {
    text-align: center;
    padding: 4rem 1.5rem;
}

.error-page h1 {
    font-size: 4rem;
    margin: 0 0 1rem;
}

@media (max-width: 768px) {
    main {
        padding-top: 6.75rem;
    }

    .hero {
        min-height: 58vh;
        padding-bottom: 2rem;
    }

    .section-block {
        padding: 1.5rem;
    }
}
