/* Altai Expeditions — site styles. Hand-written, no build step. */

:root {
    --green: #0a7d49;
    --green-dark: #075c36;
    --green-soft: #e6f2ec;
    --red: #e02027;
    --red-dark: #b9151b;
    --ink: #10201a;
    --ink-soft: #46544e;
    --muted: #74807b;
    --line: #e2e5e0;
    --sand: #f6f4ee;
    --white: #fff;
    --night: #0c1714;
    --radius: 14px;
    --radius-sm: 8px;
    --shadow: 0 10px 30px rgba(16, 32, 26, .10);
    --shadow-lg: 0 24px 60px rgba(16, 32, 26, .18);
    --wrap: 1200px;
    --header-h: 76px;
    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Outfit", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-dark); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(10, 125, 73, .45); outline-offset: 2px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 40px, 820px); margin-inline: auto; }
.section { padding: clamp(48px, 6vw, 84px) 0; }
/* A section holding a single compact element (e.g. the call-to-action card). */
.section-tight { padding: clamp(28px, 4vw, 48px) 0; }
.section-sand { background: var(--sand); }
.section-night { background: var(--night); color: #d9e2de; }
.section-night h2, .section-night h3 { color: #fff; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.18em; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    padding: .85em 1.6em; border-radius: 999px; border: 2px solid transparent;
    font-family: var(--font-display); font-weight: 600; font-size: 15px; letter-spacing: .01em; line-height: 1.2;
    cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s;
    text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 20px rgba(224, 32, 39, .28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-outline { border-color: var(--green); color: var(--green); background: transparent; }
.btn-outline:hover { background: var(--green); color: #fff; }
.btn-block { display: flex; width: 100%; }
.btn-sm { padding: .55em 1.1em; font-size: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-family: var(--font-display); }
.link-arrow .icon { transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
    position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
    display: flex; align-items: center;
    color: #fff; transition: background .3s, box-shadow .3s, color .3s;
}
.site-header::before {
    content: ""; position: absolute; inset: 0 0 -40px 0; z-index: -1; pointer-events: none;
    background: linear-gradient(to bottom, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0)); transition: opacity .3s;
}
.site-header.is-solid { background: #fff; color: var(--ink); box-shadow: 0 2px 18px rgba(16, 32, 26, .09); }
.site-header.is-solid::before { opacity: 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100% - 40px, 1360px); }
.brand { display: block; flex: none; }
.brand img { width: 190px; height: auto; }
.brand .logo-dark { display: none; }
.site-header.is-solid .brand .logo-light { display: none; }
.site-header.is-solid .brand .logo-dark { display: block; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav > li > a, .nav > li > button {
    display: flex; align-items: center; gap: 6px; padding: 10px 13px; border: 0; background: none; cursor: pointer;
    color: inherit; font-family: var(--font-display); font-weight: 500; font-size: 15.5px; border-radius: 8px;
}
.nav > li > a:hover, .nav > li > button:hover, .nav > li:focus-within > button { color: var(--red); }
.site-header:not(.is-solid) .nav > li > a:hover, .site-header:not(.is-solid) .nav > li > button:hover { color: #fff; background: rgba(255, 255, 255, .14); }
.nav .icon { width: 14px; height: 14px; opacity: .8; }
.nav .sub {
    position: absolute; top: 100%; left: 0; min-width: 240px; padding: 10px; margin-top: 6px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.nav > li:hover > .sub, .nav > li:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 9px 14px; border-radius: 8px; color: var(--ink); font-size: 15px; }
.nav .sub a:hover { background: var(--green-soft); color: var(--green-dark); }
.nav .sub .all { font-weight: 600; color: var(--green); border-bottom: 1px solid var(--line); border-radius: 8px 8px 0 0; margin-bottom: 4px; }
.nav-cta { margin-left: 10px; }
.nav > li.nav-cta > a, .site-header:not(.is-solid) .nav > li.nav-cta > a:hover { background: var(--red); color: #fff; padding: .6em 1.2em; border-radius: 999px; font-weight: 600; font-size: 14.5px; }
.nav > li.nav-cta > a:hover { background: var(--red-dark) !important; color: #fff !important; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; cursor: pointer; border-radius: 10px; }
.nav-toggle .icon { width: 26px; height: 26px; }

@media (max-width: 1080px) {
    .nav-toggle { display: grid; place-items: center; }
    .nav-panel {
        position: fixed; inset: 0 0 0 auto; width: min(360px, 88vw); background: #fff; color: var(--ink);
        padding: 84px 22px 32px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .28s ease, visibility .28s; z-index: 60;
    }
    .nav-open .nav-panel { transform: none; visibility: visible; box-shadow: var(--shadow-lg); }
    .nav-backdrop { position: fixed; inset: 0; background: rgba(8, 16, 13, .55); opacity: 0; visibility: hidden; transition: opacity .28s, visibility .28s; z-index: 55; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-close { position: absolute; top: 18px; right: 16px; }
    .nav { flex-direction: column; align-items: stretch; gap: 0; }
    .nav > li { border-bottom: 1px solid var(--line); }
    .nav > li:not(.nav-cta) > a, .nav > li > button { width: 100%; justify-content: space-between; padding: 15px 4px; font-size: 17px; color: var(--ink) !important; background: none !important; }
    .nav > li.nav-cta { border-bottom: 0; }
    .nav > li.nav-cta > a { justify-content: center; padding: .9em 1.2em; font-size: 16px; }
    .nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 10px; margin: 0; display: none; }
    .nav > li.is-open > .sub { display: block; }
    .nav > li.is-open > button .icon { transform: rotate(180deg); }
    .nav-cta { margin: 22px 0 0; }
    body.nav-open { overflow: hidden; }
}
@media (min-width: 1081px) { .nav-close, .nav-backdrop { display: none; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; height: 100svh; min-height: 560px; max-height: 980px; color: #fff; overflow: hidden; background: var(--night); }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 1.1s; }
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 13, .82) 0%, rgba(8, 16, 13, .25) 45%, rgba(8, 16, 13, .25) 100%); }
.hero-content { position: absolute; inset: auto 0 0 0; z-index: 2; padding-bottom: clamp(96px, 14vh, 150px); }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.hero-eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--red); }
.hero-title { font-size: clamp(38px, 6.4vw, 84px); font-weight: 700; color: #fff; max-width: 14ch; margin-bottom: 26px; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { font-family: var(--font-display); font-weight: 500; opacity: .9; margin-left: 6px; }
.hero-nav { position: absolute; z-index: 3; inset: auto 0 34px 0; }
.hero-nav .wrap { display: flex; gap: 14px; }
.hero-tab { flex: 1; max-width: 300px; padding: 14px 0 0; border: 0; border-top: 2px solid rgba(255, 255, 255, .35); background: none; color: rgba(255, 255, 255, .7); text-align: left; cursor: pointer; font-family: var(--font-display); font-size: 14.5px; font-weight: 500; line-height: 1.3; position: relative; transition: color .2s; }
.hero-tab::before { content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: #fff; }
.hero-tab.is-active { color: #fff; }
.hero-tab.is-active::before { width: 100%; transition: width 6.5s linear; }
.hero-tab span { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-bottom: 3px; }
@media (max-width: 640px) { .hero-tab { font-size: 0; padding-top: 10px; } .hero-tab span { display: none; } .hero-content { padding-bottom: 84px; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; min-height: clamp(340px, 52vh, 520px); display: flex; align-items: flex-end; color: #fff; background: var(--night) center / cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(8, 16, 13, .85), rgba(8, 16, 13, .3) 60%, rgba(8, 16, 13, .45)); }
.page-hero.is-plain { min-height: 300px; background: var(--green-dark); }
.page-hero.is-plain::before { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 255, 255, .10), transparent 55%); }
.page-hero .wrap { padding: calc(var(--header-h) + 40px) 0 clamp(26px, 3.4vw, 40px); }
/* Tour page: the facts row sits right above the sub-navigation. */
.page-hero:has(+ .subnav) .wrap { padding-bottom: clamp(16px, 2vw, 24px); }
.page-hero h1 { color: #fff; font-size: clamp(34px, 5.2vw, 64px); max-width: 18ch; margin: 0; text-wrap: balance; }
.page-hero .lead { font-size: clamp(17px, 2vw, 21px); max-width: 60ch; margin: 16px 0 0; color: rgba(255, 255, 255, .9); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 16px; color: rgba(255, 255, 255, .75); font-family: var(--font-display); }
.crumbs a { color: rgba(255, 255, 255, .85); }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 34px; margin-top: 26px; }
.fact { display: flex; align-items: center; gap: 12px; }
.fact .icon { width: 26px; height: 26px; opacity: .9; }
.fact small { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; opacity: .7; line-height: 1.2; }
.fact strong { font-family: var(--font-display); font-size: 17px; font-weight: 600; line-height: 1.3; }

/* ---------- Section heading ---------- */
.heading { max-width: 720px; margin-bottom: clamp(26px, 3.4vw, 44px); }
.heading.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--red); }
.heading.center .eyebrow::after { content: ""; width: 28px; height: 2px; background: var(--red); }
.heading h2 { font-size: clamp(28px, 3.8vw, 46px); margin: 0; text-wrap: balance; }
.heading p { color: var(--ink-soft); font-size: 18px; margin: 14px 0 0; }
.section-night .eyebrow { color: #7fd3a8; }
.section-night .heading p { color: #b6c4be; }
.heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(26px, 3.4vw, 44px); }
.heading-row .heading { margin-bottom: 0; }

/* ---------- Prose (admin rich text) ---------- */
.prose { color: var(--ink-soft); font-size: 17px; overflow-wrap: anywhere; }
.prose > :last-child { margin-bottom: 0; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .6em; }
.prose h2 { font-size: 26px; } .prose h3 { font-size: 21px; } .prose h4 { font-size: 18px; }
.prose ul, .prose ol { margin: 0 0 1em; padding-left: 1.3em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--green); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green); color: var(--ink); font-size: 1.05em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; }
.prose td, .prose th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose iframe { width: 100%; border: 0; border-radius: var(--radius); }
.prose.lg { font-size: 18.5px; line-height: 1.75; }
.section-night .prose { color: #c4d0cb; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }

.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; position: relative; }
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.06); }
.chip { position: absolute; top: 14px; left: 14px; padding: 5px 12px; border-radius: 999px; background: rgba(12, 23, 20, .72); backdrop-filter: blur(6px); color: #fff; font-family: var(--font-display); font-size: 12.5px; font-weight: 500; letter-spacing: .04em; }
.chip-red { background: var(--red); left: auto; right: 14px; }
.card-body { padding: 22px 22px 8px; flex: 1; }
.card-title { font-size: 21px; margin-bottom: 8px; }
.card-title a { color: var(--ink); }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card:hover .card-title a { color: var(--green); }
.card-text { color: var(--ink-soft); font-size: 15px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px 20px; }
.card-meta { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 14.5px; }
.price { font-family: var(--font-display); color: var(--muted); font-size: 13.5px; text-align: right; line-height: 1.2; }
.price strong { display: block; font-size: 22px; color: var(--green); font-weight: 700; }

/* image tiles (accommodations / categories) */
.tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 4; color: #fff; background: var(--night); }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8, 16, 13, .85), rgba(8, 16, 13, 0) 55%); }
.tile:hover img { transform: scale(1.07); }
.tile-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 22px; }
.tile-body h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.tile-body span { font-size: 14px; opacity: .85; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); }
.tile:hover { color: #fff; }

/* ---------- Home intro ---------- */
.intro { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.intro h1 { font-size: clamp(34px, 4.6vw, 58px); margin: 0 0 10px; }
.intro .tagline { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 25px); color: var(--green); margin: 0 0 26px; }
.intro-photo { display: block; width: 100%; height: auto; margin-top: clamp(26px, 3.5vw, 40px); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } .intro-photo { max-width: 520px; } }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin-top: 34px; }
.stat { border-top: 2px solid var(--line); padding-top: 14px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 30px; color: var(--ink); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14px; }

/* ---------- Feature band (project / CTA) ---------- */
.band { position: relative; color: #fff; background: var(--night) center / cover no-repeat; isolation: isolate; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 16, 13, .88), rgba(8, 16, 13, .45)); }
.band .wrap { padding: clamp(56px, 7vw, 96px) 0; }
.band h2 { color: #fff; font-size: clamp(28px, 4vw, 48px); max-width: 18ch; }
.band p { max-width: 54ch; color: rgba(255, 255, 255, .88); font-size: 18px; margin-bottom: 26px; }
.band .wrap > :last-child { margin-bottom: 0; }
.band .eyebrow { color: #9be0bd; }

.cta { background: var(--green-dark); color: #fff; border-radius: calc(var(--radius) * 1.5); padding: clamp(34px, 5vw, 60px); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.cta h2 { color: #fff; font-size: clamp(26px, 3.4vw, 40px); margin: 0 0 8px; }
.cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 18px; }
.cta > * { position: relative; }

/* ---------- Tour detail ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 20; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.subnav ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav ul a { display: block; padding: 17px 14px; white-space: nowrap; color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; font-size: 15px; border-bottom: 2px solid transparent; }
.subnav ul a:hover, .subnav ul a.is-active { color: var(--green); border-bottom-color: var(--green); }
.subnav .btn { flex: none; }
@media (max-width: 720px) { .subnav .btn { display: none; } }
/* The sub-navigation already separates the hero from the content, so the first block sits closer. */
.subnav + .section { padding-top: clamp(28px, 3.6vw, 48px); }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 4vw, 64px); align-items: start; }
.layout > aside { position: sticky; top: calc(var(--header-h) + 78px); }
.layout.no-subnav > aside { top: calc(var(--header-h) + 24px); }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; gap: 40px; } .layout > aside { position: static; } }

.block { margin-bottom: clamp(40px, 5vw, 60px); }
/* The last block must not stack its margin on top of the section padding. */
.block:last-child, .doc-group:last-child, .form-section:last-child, .side-box:last-child { margin-bottom: 0; }
.block > h2 { font-size: clamp(25px, 3vw, 34px); margin-bottom: 22px; }
.block > h3 { font-size: 22px; margin-bottom: 16px; }
.block > :last-child { margin-bottom: 0; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel-price { font-family: var(--font-display); color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.panel-price strong { display: block; font-size: 40px; line-height: 1.1; color: var(--ink); }
.panel-price strong small { font-size: 15px; font-weight: 500; color: var(--muted); }
.spec { margin: 18px 0; border-top: 1px solid var(--line); }
.spec li { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec li span:first-child { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.spec li span:last-child { font-weight: 600; text-align: right; }
.panel .note { font-size: 13.5px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.panel h3 { font-size: 19px; }

/* Three rows at most: the remaining photos stay reachable in the lightbox ("+N" on the last tile, set by site.js). */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery a:nth-child(n+10) { display: none; }
.gallery a.has-more { position: relative; }
.gallery a.has-more::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8, 16, 13, .58); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(18px, 2.4vw, 24px); }
.gallery a { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; background: var(--line); cursor: zoom-in; }
.gallery a:first-child { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s, filter .3s; }
.gallery a:hover img { transform: scale(1.05); filter: brightness(1.06); }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 8px; } .gallery a:nth-child(n+7) { display: none; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 480px; }
.table th { text-align: left; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--sand); padding: 13px 18px; }
.table td { padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: middle; }
.table td:last-child, .table th:last-child { text-align: right; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; font-family: var(--font-display); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-open { background: var(--green-soft); color: var(--green-dark); }
.badge-guaranteed { background: #e7f0ff; color: #1d4fb8; }
.badge-full { background: #f3f3f1; color: var(--muted); }

.incl { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.incl-box { border-radius: var(--radius); padding: 24px; background: var(--green-soft); }
.incl-box.no { background: #fbeeee; }
.incl-box h3 { font-size: 18px; margin-bottom: 14px; }
.incl-box li { display: flex; gap: 10px; padding: 5px 0; font-size: 15.5px; color: var(--ink-soft); }
.incl-box .icon { color: var(--green); margin-top: .28em; }
.incl-box.no .icon { color: var(--red); }

.timeline { position: relative; }
.day { position: relative; border-bottom: 1px solid var(--line); }
.day summary { display: grid; grid-template-columns: 86px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; }
.day summary::-webkit-details-marker { display: none; }
.day-num { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.day-title { font-family: var(--font-display); font-weight: 600; font-size: 19px; color: var(--ink); line-height: 1.3; }
.day summary .icon { color: var(--muted); transition: transform .2s; width: 20px; height: 20px; }
.day[open] summary .icon { transform: rotate(180deg); }
.day-body { padding: 0 0 22px 102px; }
.day-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.day-tags span { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--sand); color: var(--ink-soft); font-size: 13.5px; }
@media (max-width: 640px) { .day summary { grid-template-columns: 1fr auto; } .day-num { grid-column: 1 / -1; margin-bottom: -10px; } .day-body { padding-left: 0; } }

.acc-item { border-bottom: 1px solid var(--line); }
.acc-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; cursor: pointer; list-style: none; font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.acc-item summary::-webkit-details-marker { display: none; }
.acc-item summary:hover { color: var(--green); }
.acc-item summary .icon { color: var(--muted); transition: transform .2s; width: 20px; height: 20px; }
.acc-item[open] summary .icon { transform: rotate(180deg); }
.acc-item .prose { padding: 0 0 22px; font-size: 16px; }

.map { border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.map iframe { display: block; width: 100%; min-height: 420px; border: 0; }

.reviews { display: grid; gap: 20px; }
.review { background: var(--sand); border-radius: var(--radius); padding: 26px; }
.review-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.review-head img { width: 54px; height: 54px; border-radius: 50%; object-fit: cover; }
.review-head strong { display: block; font-family: var(--font-display); font-size: 17px; }
.review-head span { color: var(--muted); font-size: 14px; }

/* ---------- Split (company) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.flip > :first-child { order: 2; }
.split img { border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }

.ticks { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 800px) { .ticks { grid-template-columns: 1fr 1fr; gap: 16px; } }
/* Each statement sits on its own panel so neighbouring items read as separate points. */
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: #dde6e2; padding: 16px 20px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09); border-left: 3px solid #7fd3a8; border-radius: 10px; transition: background .25s, border-color .25s; }
.ticks li:hover { background: rgba(255, 255, 255, .075); }
/* Long statements take a full row of their own instead of wrapping in a narrow column. */
.ticks .tick-wide { grid-column: 1 / -1; }
.ticks .icon { flex: none; color: #0d1512; background: #7fd3a8; border-radius: 50%; padding: 4px; margin-top: .12em; width: 22px; height: 22px; stroke-width: 2.6; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.logo-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.logo-card img { margin: 0 auto 14px; max-height: 110px; width: auto; object-fit: contain; }
.logo-card h3 { font-size: 15px; margin: 0; font-weight: 600; color: var(--ink-soft); }

/* Certificates: document-style cards that open full size in the lightbox. */
.certs { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 3vw, 36px); }
.cert-card { display: block; width: min(100%, 340px); text-align: center; color: inherit; text-decoration: none; cursor: zoom-in; }
.cert-frame { position: relative; display: block; background: #fff; padding: 14px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; transition: transform .3s, box-shadow .3s, border-color .3s; }
.cert-frame::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--green); }
.cert-frame img { display: block; width: 100%; height: auto; border-radius: 4px; }
.cert-zoom { position: absolute; inset: auto 14px 14px 14px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 12px; border-radius: 0 0 4px 4px; background: rgba(7, 92, 54, .92); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 14.5px; letter-spacing: .02em; }
.cert-zoom .icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cert-card:hover .cert-frame, .cert-card:focus-visible .cert-frame { transform: translateY(-6px); border-color: var(--green); box-shadow: 0 30px 70px rgba(16, 32, 26, .26); }
.cert-card:focus-visible { outline: 3px solid var(--green); outline-offset: 6px; border-radius: var(--radius); }
.cert-card h3 { margin: 18px 0 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.lightbox.is-single .lb-prev, .lightbox.is-single .lb-next { display: none; }

/* ---------- Team ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 28px; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); margin-bottom: 16px; background: var(--line); }
.person h3 { font-size: 20px; margin-bottom: 2px; }
.person em { display: block; font-style: normal; color: var(--green); font-family: var(--font-display); font-weight: 500; font-size: 15px; margin-bottom: 10px; }
.person .prose { font-size: 15px; }
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 30px; margin-bottom: clamp(36px, 5vw, 56px); }
.founder { display: grid; grid-template-columns: 180px 1fr; gap: 24px; background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); align-items: start; }
.founder img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); }
.founder h3 { font-size: 23px; margin-bottom: 2px; }
.founder em { display: block; font-style: normal; color: var(--green); font-family: var(--font-display); font-weight: 500; margin-bottom: 10px; }
.founder .prose { font-size: 15.5px; }
@media (max-width: 560px) { .founder { grid-template-columns: 1fr; } .founder img { max-width: 220px; } }

/* Profile texts show the same number of lines; site.js adds the "Read more" button when text is cut. */
.clamp { position: relative; max-height: 9.9em; overflow: hidden; }
.founder .clamp { max-height: 13.2em; }
.clamp.is-clamped::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3.3em; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.clamp.is-open { max-height: none; }
.clamp.is-open::after { display: none; }
.clamp-toggle { margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--green); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; }
.clamp-toggle:hover { color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
@media print { .clamp { max-height: none; } .clamp::after, .clamp-toggle { display: none; } }

/* ---------- Tabs-like anchor groups (terms / tips) ---------- */
.doc { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 5vw, 70px); align-items: start; }
.doc-nav { position: sticky; top: calc(var(--header-h) + 24px); }
.doc-nav a { display: block; padding: 11px 16px; border-left: 2px solid var(--line); color: var(--ink-soft); font-family: var(--font-display); font-weight: 500; }
.doc-nav a:hover, .doc-nav a.is-active { color: var(--green); border-left-color: var(--green); background: var(--green-soft); }
.doc-group { margin-bottom: 44px; }
.doc-group > h2 { font-size: 28px; margin-bottom: 8px; }
@media (max-width: 820px) { .doc { grid-template-columns: 1fr; } .doc-nav { position: static; display: flex; gap: 8px; overflow-x: auto; } .doc-nav a { border-left: 0; border-bottom: 2px solid var(--line); white-space: nowrap; } }

/* ---------- Blog / projects ---------- */
.post-list { display: grid; gap: 28px; }
.post { display: grid; grid-template-columns: 300px 1fr; gap: 26px; align-items: center; position: relative; }
.post-media { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.post-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post-media img { transform: scale(1.05); }
.post h2 { font-size: 24px; margin-bottom: 10px; }
.post h2 a { color: var(--ink); }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h2 a { color: var(--green); }
.post p { color: var(--ink-soft); margin-bottom: 12px; }
.post time { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 8px; font-family: var(--font-display); letter-spacing: .04em; }
@media (max-width: 640px) { .post { grid-template-columns: 1fr; } }

.side-box { margin-bottom: 26px; }
.side-box h3 { font-size: 17px; padding-bottom: 12px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; }
.side-links a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.side-links a:hover { color: var(--green); }
.side-post { display: grid; grid-template-columns: 76px 1fr; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 15.5px; line-height: 1.35; }
.side-post img { width: 76px; height: 60px; object-fit: cover; border-radius: 6px; }
.side-post:hover { color: var(--green); }
.article-cover { width: 100%; border-radius: var(--radius); margin-bottom: 30px; max-height: 560px; object-fit: cover; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-display); font-weight: 500; }
.pager a:hover { border-color: var(--green); color: var(--green); }
.pager .is-current { background: var(--green); border-color: var(--green); color: #fff; }
.pager .is-disabled { color: #b4bbb7; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-family: var(--font-display); font-weight: 500; font-size: 14.5px; margin-bottom: 7px; color: var(--ink); }
.field label .req { color: var(--red); }
.input { width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.input:hover { border-color: #c9cfca; }
.input:focus { outline: 0; border-color: var(--green); box-shadow: 0 0 0 4px rgba(10, 125, 73, .13); }
textarea.input { min-height: 150px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2374807b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field .error { display: block; color: var(--red-dark); font-size: 13.5px; margin-top: 6px; }
.field.has-error .input { border-color: var(--red); }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 6px; }
.alert { padding: 15px 18px; border-radius: 10px; margin-bottom: 22px; display: flex; gap: 12px; align-items: flex-start; }
.alert-success { background: var(--green-soft); color: var(--green-dark); }
.alert-error { background: #fbeeee; color: var(--red-dark); }
.hp { position: absolute; left: -9999px; }
.steps { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 0; padding: 0; list-style: none; font-family: var(--font-display); font-size: 14.5px; }
.steps li { display: flex; align-items: center; gap: 9px; color: rgba(255, 255, 255, .6); }
.steps li + li::before { content: ""; width: 26px; height: 1px; background: rgba(255, 255, 255, .4); }
.steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid currentColor; font-size: 13px; }
.steps .is-done, .steps .is-current { color: #fff; }
.steps .is-current b { background: #fff; color: var(--green-dark); border-color: #fff; }
.form-section { margin-bottom: 38px; }
.form-section > h2 { font-size: 22px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.form-section > h2 b { width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: 15px; }

.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: -70px; position: relative; z-index: 2; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-lg); }
.contact-card .icon { width: 30px; height: 30px; color: var(--green); margin-bottom: 14px; }
.contact-card h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
.contact-card .value { font-family: var(--font-display); font-size: 19px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.contact-card .value p { margin: 0; }
.contact-card small { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; line-height: 1.5; }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .14); color: #fff; transition: background .2s; }
.social a:hover { background: var(--red); }
.social .icon { width: 19px; height: 19px; }

.done { text-align: center; padding: clamp(56px, 8vw, 96px) 0; }
.done .tick { width: 84px; height: 84px; border-radius: 50%; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin: 0 auto 26px; }
.done .tick .icon { width: 40px; height: 40px; stroke-width: 2.2; }
.done h1 { font-size: clamp(30px, 4.4vw, 48px); }
.done p { color: var(--ink-soft); font-size: 18px; max-width: 46ch; margin: 0 auto 28px; }
.done > :last-child { margin-bottom: 0; }
.done .big { font-family: var(--font-display); font-size: clamp(70px, 14vw, 150px); font-weight: 700; color: var(--green); line-height: 1; margin-bottom: 10px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #a9b7b1; padding: clamp(48px, 6vw, 72px) 0 0; font-size: 15.5px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h2 { color: #fff; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer a { color: #a9b7b1; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; }
.footer-brand img { width: 200px; margin-bottom: 20px; }
.footer-brand p { font-family: var(--font-display); font-size: 21px; color: #fff; line-height: 1.35; max-width: 18ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { margin-top: .3em; color: #7fd3a8; }
.footer-bottom { margin-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 14px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { gap: 32px 20px; } .footer-brand, .footer-grid > :last-child { grid-column: 1 / -1; } .footer-brand p { margin-bottom: 0; } }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--green-dark); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; margin: 0; z-index: 100; background: rgba(6, 12, 10, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { position: absolute; inset: auto 0 16px 0; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14.5px; padding: 0 60px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lightbox button:hover { background: rgba(255, 255, 255, .28); }
.lightbox .icon { width: 24px; height: 24px; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    .hero-slide img, .card, .card-media img, .tile img { transition: none; }
}
@media print { .site-header, .site-footer, .to-top, .subnav { display: none; } }
