:root {
    --background: #f5f7f9;
    --surface: #ffffff;
    --border: #d9dde4;
    --border-soft: rgba(217, 221, 228, 0.6);
    --text: #2b3135;
    --muted: #5f6770;
    --accent: #2d6cdf;
    --accent-soft: #e6efff;
    --radius-lg: 20px;
    --radius-md: 16px;
    --shadow: 0 18px 40px rgba(25, 35, 45, 0.08);
    --heading-font: 'Spectral', serif;
    --body-font: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--background);
    color: var(--text);
    font-family: var(--body-font);
    display: grid;
    grid-template-rows: auto 1fr auto;
}

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

a:hover,
a:focus {
    color: var(--accent);
}

.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: clamp(1.8rem, 5vw, 2.8rem) clamp(2rem, 6vw, 3.6rem);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.2rem;
}

.page-header__brand {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.brand-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--heading-font);
    font-size: 1.1rem;
}

.brand-name {
    font-family: var(--heading-font);
    font-size: 1.4rem;
}

.page-header__links {
    display: flex;
    gap: 1.4rem;
    flex-wrap: wrap;
}

main {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.6rem) clamp(2rem, 6vw, 3.6rem);
    display: grid;
    gap: clamp(2.4rem, 5vw, 3.4rem);
}

section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: clamp(2rem, 5vw, 2.8rem);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow);
    display: grid;
    gap: 1.4rem;
}

h1 {
    font-family: var(--heading-font);
    font-size: clamp(2.2rem, 5vw, 2.8rem);
    line-height: 1.2;
}

p {
    line-height: 1.7;
    color: var(--muted);
}

.label {
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.contact-panel {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-panel__details {
    display: grid;
    gap: 1.2rem;
}

.contact-panel__details div {
    display: grid;
    gap: 0.4rem;
}

.contact-form {
    display: grid;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    gap: 0.4rem;
}

.checkbox-row {
    align-items: center;
}

.checkbox-label {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.95rem;
    color: var(--muted);
    cursor: pointer;
}

.checkbox-label input {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.checkbox-text {
    line-height: 1.6;
}

label {
    font-size: 0.95rem;
    color: var(--text);
}

input,
textarea {
    font-family: inherit;
    font-size: 1rem;
    padding: 0.9rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: #fdfefe;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

textarea {
    resize: vertical;
}

.primary {
    align-self: flex-start;
    padding: 0.75rem 1.8rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease;
}

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

.form-response {
    min-height: 1.2rem;
    font-size: 0.95rem;
    color: var(--muted);
}

.page-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1.8rem clamp(2rem, 6vw, 3.2rem);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
}

.page-footer__links {
    display: flex;
    gap: 1.2rem;
}

@media (max-width: 720px) {
    .page-header {
        justify-content: center;
    }

    .primary {
        width: 100%;
        text-align: center;
    }

    main {
        padding: 1.8rem;
    }
}
