:root {
    --ink: #17171a;
    --paper: #f4f1ea;
    --muted: #77736b;
    --line: #d9d3c7;
    --yellow: #e9ec20;
    --blue: #1081f3;
    --green: #19ad19;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "DejaVu Sans", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip-link {
    position: absolute;
    left: -9999px;
}
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; }
.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(244, 241, 234, .96);
}
.nav {
    min-height: 76px;
    max-width: 1180px;
    margin: auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .08em;
}
.brand img { width: 74px; height: auto; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { text-decoration: none; font-size: .95rem; }
.nav-links a:hover { text-decoration: underline; }
.hero {
    min-height: 560px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    max-width: 1180px;
    margin: auto;
    padding: 64px 24px;
}
.eyebrow {
    margin: 0 0 16px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .16em;
    font-size: .78rem;
    font-weight: 700;
}
.hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.8rem);
    line-height: .9;
    letter-spacing: -.07em;
}
.hero-copy { max-width: 470px; }
.hero-copy p:last-of-type { line-height: 1.7; color: #504d47; }
.hero-image {
    border-radius: 4px;
    width: 100%;
    height: 480px;
    object-fit: cover;
}
.button {
    display: inline-block;
    border: 0;
    border-radius: 2px;
    padding: 14px 20px;
    background: var(--ink);
    color: white;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.button:hover { background: #35353a; }
.section {
    max-width: 1180px;
    margin: auto;
    padding: 84px 24px;
}
.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
}
.section-heading h2 { margin: 0; font-size: clamp(2rem, 5vw, 4.5rem); letter-spacing: -.05em; }
.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-top: 1px solid var(--line);
}
.plan {
    min-height: 230px;
    display: grid;
    grid-template-columns: 100px 1fr;
    border-bottom: 1px solid var(--line);
}
.plan:nth-child(odd) { border-right: 1px solid var(--line); }
.plan-letter {
    display: grid;
    place-items: center;
    font-size: 2.2rem;
    font-weight: 800;
}
.plan:nth-child(1) .plan-letter { background: var(--yellow); }
.plan:nth-child(2) .plan-letter { background: var(--blue); color: white; }
.plan:nth-child(3) .plan-letter { background: var(--green); color: white; }
.plan:nth-child(4) .plan-letter { background: #9b2c11; color: white; }
.plan-content { padding: 32px; }
.plan-content h3 { margin: 0 0 12px; }
.plan-content p { margin: 0; color: #5f5b53; line-height: 1.65; }
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
}
.gallery-grid figure { margin: 0; overflow: hidden; }
.gallery-grid figure:nth-child(1) { grid-column: span 7; }
.gallery-grid figure:nth-child(2) { grid-column: span 5; }
.gallery-grid figure:nth-child(3) { grid-column: span 4; }
.gallery-grid figure:nth-child(4) { grid-column: span 8; }
.gallery-grid img { width: 100%; height: 100%; min-height: 260px; object-fit: cover; }
.contact-layout {
    max-width: 1180px;
    margin: auto;
    padding: 84px 24px;
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 64px;
}
.contact-layout h1 { margin: 0; font-size: clamp(3rem, 7vw, 6rem); line-height: .95; letter-spacing: -.06em; }
.contact-layout > div:first-child p { line-height: 1.7; color: #625e56; }
.forms { display: grid; gap: 32px; }
.form-card {
    border: 1px solid var(--line);
    background: white;
    padding: 32px;
}
.form-card h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: grid; gap: 8px; margin-bottom: 16px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 700; }
input, textarea {
    width: 100%;
    border: 1px solid #bbb5a9;
    border-radius: 2px;
    background: #fbfaf7;
    padding: 12px;
    font: inherit;
}
textarea { min-height: 150px; resize: vertical; }
.status { min-height: 24px; margin: 12px 0 0; color: #4e4a43; }
.ebook-link { text-decoration: none; border-bottom: 1px solid currentColor; }
#card-element {
    border: 1px solid #bbb5a9;
    border-radius: 2px;
    background: #fbfaf7;
    padding: 12px;
}
.site-footer {
    border-top: 1px solid var(--line);
    max-width: 1180px;
    margin: auto;
    padding: 32px 24px;
    display: flex;
    justify-content: space-between;
    color: var(--muted);
    font-size: .85rem;
}
@media (max-width: 800px) {
    .hero, .contact-layout { grid-template-columns: 1fr; }
    .hero { gap: 36px; padding-top: 44px; }
    .hero-image { height: 360px; }
    .plan-grid { grid-template-columns: 1fr; }
    .plan:nth-child(odd) { border-right: 0; }
    .contact-layout { gap: 36px; }
}
@media (max-width: 560px) {
    .nav { align-items: flex-start; }
    .nav-links { gap: 12px; padding-top: 12px; }
    .brand span { display: none; }
    .plan { grid-template-columns: 72px 1fr; }
    .plan-content { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-card { padding: 20px; }
    .gallery-grid { display: grid; }
    .gallery-grid figure { grid-column: 1 / -1 !important; }
    .site-footer { flex-direction: column; gap: 8px; }
}
