:root {
    color-scheme: light;
    --ink: #1d332b;
    --muted: #53665d;
    --green: #244f43;
    --paper: #f6f7f2;
    --line: #d7dfd6;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; }
a { color: inherit; }
::selection { background: #cadfbd; color: #152c20; }
:focus-visible { outline: 3px solid #b46b2d; outline-offset: 5px; }
.skip-link { position: absolute; left: 1rem; top: -8rem; z-index: 2; padding: 1rem; background: white; }
.skip-link:focus { top: 1rem; }

.site-header,
main,
.site-footer {
    width: min(1280px, calc(100% - 112px));
    margin-inline: auto;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 110px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -.5px;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 38px;
    padding-bottom: 3px;
    border-radius: 5px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -2px;
    color: var(--paper);
    background: var(--green);
}

.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; font-weight: 600; }
.service-link { text-decoration: none; padding-block: 12px; }
.service-link:hover { text-decoration: underline; text-underline-offset: 5px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 52px;
    border: 1px solid var(--green);
    border-radius: 5px;
    padding: 14px 21px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition: background-color 150ms ease, color 150ms ease;
}

.button:hover { background: #e3ebdf; }
.button-small { min-height: 44px; gap: 20px; padding: 10px 17px; font-size: 14px; }
.button-primary { color: white; background: var(--green); }
.button-primary:hover { background: #153c30; }
.button-light { color: var(--green); background: var(--paper); border-color: var(--paper); flex-shrink: 0; }
.button-light:hover { background: #dfebd7; }
.button span { font-size: 20px; line-height: 1; }

.hero {
    display: grid;
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: clamp(30px, 5vw, 76px);
    padding-block: 80px 92px;
}

h1 {
    margin: 0 0 26px;
    font-size: clamp(42px, 4.8vw, 68px);
    line-height: 1.04;
    font-weight: 650;
    letter-spacing: -.04em;
    text-wrap: balance;
}

.intro { max-width: 28ch; margin: 0 0 16px; font-size: 21px; line-height: 1.45; font-weight: 500; }
.hero-description { max-width: 48ch; margin: 0 0 30px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.access-note { margin: 13px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.hero-visual { position: relative; align-self: stretch; min-height: 450px; }
.hero-visual img { width: 100%; height: 100%; min-height: 450px; display: block; object-fit: cover; object-position: center; border-radius: 5px; }
.photo-caption { display: flex; align-items: center; gap: 9px; position: absolute; bottom: 18px; left: 18px; right: 18px; width: fit-content; padding: 10px 13px; border-radius: 3px; color: var(--green); background: var(--paper); font-size: 12px; line-height: 1.4; }
.caption-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); flex-shrink: 0; }

.service { display: grid; grid-template-columns: 1fr 1.25fr; gap: 100px; border-top: 1px solid var(--line); padding-block: 68px 78px; scroll-margin-top: 20px; }
h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.18; letter-spacing: -.025em; font-weight: 600; margin: 0 0 18px; text-wrap: balance; }
.service-intro p { max-width: 33ch; color: var(--muted); font-size: 16px; line-height: 1.7; margin: 0; }
.service-list article { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 22px; padding-block: 22px; border-top: 1px solid var(--line); }
.service-list article:first-child { border-top: 0; padding-top: 0; }
h3 { font-size: 15px; font-weight: 650; line-height: 1.5; margin: 0; }
.service-list p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

.test-access { display: flex; align-items: center; justify-content: space-between; gap: 44px; padding: 42px 44px; color: #f3f6ee; background: var(--green); border-radius: 5px; }
.test-access h2 { font-size: 29px; margin-bottom: 12px; }
.test-access p { max-width: 62ch; margin: 0; color: #d7e4d5; font-size: 14px; line-height: 1.7; }
.site-footer { display: flex; align-items: center; gap: 24px; padding-block: 38px; margin-block-top: 30px; color: var(--muted); font-size: 12px; }
.footer-brand { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 650; }
.site-footer p { margin: 0; }
.site-footer > a:last-child { margin-inline-start: auto; text-underline-offset: 3px; }

@media (min-width: 1550px) {
    .hero { padding-block: 96px; }
}

@media (max-width: 1050px) {
    .site-header, main, .site-footer { width: calc(100% - 64px); }
    .hero { padding-block: 60px; gap: 32px; }
    .hero-visual, .hero-visual img { min-height: 430px; }
    .service { gap: 48px; grid-template-columns: 1fr 1.2fr; }
    .service-list article { grid-template-columns: 1fr; gap: 7px; padding-block: 20px; }
    .test-access { padding: 32px; gap: 30px; }
}

@media (max-width: 720px) {
    .site-header, main, .site-footer { width: calc(100% - 40px); }
    .site-header { min-height: 86px; gap: 14px; }
    .brand { font-size: 18px; gap: 8px; }
    .brand-mark { width: 30px; height: 33px; font-size: 23px; }
    .site-header nav { gap: 0; }
    .service-link { display: none; }
    .button-small { padding-inline: 12px; gap: 13px; font-size: 13px; }
    .hero { grid-template-columns: 1fr; gap: 34px; padding-block: 44px 46px; }
    h1 { font-size: clamp(39px, 8.5vw, 60px); margin-bottom: 20px; }
    .intro { font-size: 20px; }
    .hero-description { font-size: 15px; }
    .hero-visual { aspect-ratio: 1.25; min-height: 0; }
    .hero-visual img { min-height: 0; }
    .photo-caption { left: 12px; bottom: 12px; right: 12px; padding: 8px 10px; font-size: 11px; }
    .service { grid-template-columns: 1fr; gap: 32px; padding-block: 42px; }
    .service-intro p { max-width: 42ch; }
    .service-list article { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px; }
    .test-access { flex-direction: column; align-items: flex-start; gap: 25px; padding: 29px 24px; }
    .test-access h2 { font-size: 27px; }
    .site-footer { flex-wrap: wrap; gap: 13px 20px; padding-block: 26px; margin-block-top: 20px; }
    .site-footer p { order: 3; width: 100%; }
}

@media (max-width: 380px) {
    .site-header, main, .site-footer { width: calc(100% - 32px); }
    .brand { font-size: 16px; }
    .brand-mark { width: 27px; height: 30px; }
    .button-small { gap: 7px; padding-inline: 9px; }
    .service-list article { grid-template-columns: 1fr; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .button { transition: none; }
}
