:root {
    --ink: #172226;
    --muted: #6d7777;
    --paper: #f6f5f1;
    --white: #fff;
    --line: #e3e3dc;
    --accent: #e8f36a;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2 { font-family: "Segoe UI", Arial, sans-serif; letter-spacing: -.055em; }

/* Startseite */
.hero {
    position: relative;
    min-height: 590px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 clamp(24px, 7vw, 108px);
    background: #243a33;
    color: #fff;
}
.hero::after {
    position: absolute;
    top: 9%;
    right: 3%;
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    box-shadow: 0 0 0 55px rgba(255,255,255,.025), 0 0 0 110px rgba(255,255,255,.025);
    content: "";
    pointer-events: none;
}
.topbar {
    position: relative;
    z-index: 1;
    display: flex;
    height: 83px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,.17);
}
.brand { font-size: 21px; font-weight: 800; letter-spacing: -1.5px; text-decoration: none; }
.brand span { color: var(--accent); }
.topbar-label, .hero-bottom {
    color: rgba(255,255,255,.66);
    font-size: 11px;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.hero-content { position: relative; z-index: 1; max-width: 680px; padding: 75px 0 82px; }
.eyebrow {
    margin: 0 0 18px;
    color: #72847c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.hero .eyebrow { color: var(--accent); }
.hero h1 { margin: 0 0 26px; font-size: clamp(58px, 9vw, 112px); font-weight: 600; line-height: .92; }
.hero h1 span { color: var(--accent); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.065em; }
.hero-copy { margin: 0 0 30px; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.7; }
.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 26px;
    padding: 14px 18px;
    background: var(--accent);
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: transform .2s, background .2s;
}
.hero-button:hover { transform: translateY(-2px); background: #f2fa9e; }
.hero-index { position: absolute; right: 9%; bottom: 100px; color: rgba(255,255,255,.35); font: italic 34px var(--serif); }
.hero-bottom { display: flex; justify-content: space-between; margin-top: auto; padding: 17px 0; border-top: 1px solid rgba(255,255,255,.17); font-size: 10px; }
.work-section { max-width: 1320px; margin: auto; padding: 88px clamp(24px, 7vw, 108px) 100px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 49px); font-weight: 600; line-height: 1.08; }
.section-note { max-width: 300px; margin: 0 0 3px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.project-card { display: block; min-width: 0; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: transform .22s, box-shadow .22s; }
.project-card:hover { transform: translateY(-5px); box-shadow: 0 14px 35px rgba(23,34,38,.09); }
.card-image { position: relative; height: 230px; overflow: hidden; background: #e9e9e2; }
.card-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.project-card:hover .card-image img { transform: scale(1.035); }
.card-placeholder { width: 100%; height: 100%; background: linear-gradient(140deg, #d8dfd4, #eeeddf); }
.card-number { position: absolute; top: 13px; left: 14px; padding: 6px 9px; background: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.card-body { padding: 20px 20px 18px; }
.card-meta { display: flex; min-height: 16px; justify-content: space-between; gap: 8px; color: #78827b; font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.card-dates { font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.card-body h2 { margin: 13px 0 7px; font-size: 25px; font-weight: 600; letter-spacing: -.04em; line-height: 1.15; }
.card-body p { margin: 0; color: var(--muted); font-size: 13px; }
.card-link { display: flex; justify-content: space-between; margin-top: 22px; padding-top: 13px; border-top: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.card-link span { color: #647b6d; font-size: 16px; }

/* Галереи */
.gallery-page { display: flex; min-height: 100vh; flex-direction: column; }
.site-header { display: flex; height: 78px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 7vw, 100px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.65); }
.site-header .brand { color: var(--ink); }
.back-link { color: #52645b; font-size: 13px; font-weight: 600; text-decoration: none; }
.back-link span { margin-right: 8px; }
.back-link:hover { color: var(--ink); }
.gallery-main { width: min(1200px, 100%); flex: 1; margin: 0 auto; padding: 64px clamp(22px, 5vw, 70px) 88px; }
.gallery-intro { max-width: 760px; margin-bottom: 36px; }
.gallery-intro h1 { margin: 0 0 15px; font-size: clamp(44px, 7vw, 76px); font-weight: 600; line-height: 1; }
.gallery-lead { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.gallery-count { display: inline-block; margin: 0; padding: 8px 11px; background: #e9eadf; color: #536158; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.media-grid { display: grid; align-items: start; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.media-card { min-width: 0; overflow: hidden; margin: 0; border: 1px solid var(--line); background: var(--white); }
.media-image { display: block; height: 235px; overflow: hidden; background: #e9e9e2; }
.media-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.media-image:hover img { transform: scale(1.04); }
.media-card figcaption { display: flex; justify-content: space-between; gap: 10px; padding: 11px 13px; color: var(--muted); font-size: 11px; }
.media-card figcaption span:first-child { color: #536158; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.video-card video { display: block; width: 100%; height: 235px; background: #1d2524; object-fit: contain; }
.video-embed { width: min(100%, 230px); aspect-ratio: 9 / 16; margin: 0 auto; overflow: hidden; background: #1d2524; }
.video-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.empty-note { color: var(--muted); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 22px clamp(24px, 7vw, 108px); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a { color: var(--ink); font-weight: 600; text-decoration: none; }

@media (max-width: 900px) {
    .project-grid, .media-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero::after { top: 17%; right: -15%; }
}
@media (max-width: 560px) {
    .hero { min-height: 540px; padding-right: 22px; padding-left: 22px; }
    .hero-content { padding: 72px 0; }
    .hero-index { right: 8%; bottom: 80px; font-size: 24px; }
    .topbar-label { font-size: 9px; }
    .hero-bottom { font-size: 8px; }
    .section-heading { display: block; }
    .section-heading h2 { max-width: 430px; }
    .section-note { margin-top: 14px; }
    .work-section { padding-top: 62px; padding-bottom: 70px; }
    .project-grid, .media-grid { grid-template-columns: 1fr; gap: 14px; }
    .card-image { height: 230px; }
    .gallery-main { padding-top: 46px; }
    .media-image, .video-card video { height: 260px; }
    .site-footer { flex-wrap: wrap; }
    .site-footer span:nth-child(2) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}