/* Delphin Project Ecotechnika — site styles */

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url(../fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	--blue: #2b6cb0;
	--blue-dark: #1d4f86;
	--blue-soft: #e8f1fa;
	--green: #2f9e6a;
	--green-light: #5cc28e;
	--ink: #17212c;
	--text: #2c3946;
	--muted: #5b6876;
	--line: #e1e7ee;
	--soft: #f4f7fa;
	--white: #fff;
	--radius: 14px;
	--shadow: 0 1px 2px rgba(23, 33, 44, .06), 0 8px 24px rgba(23, 33, 44, .08);
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 32px);
	--font: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 17px/1.65 var(--font); color: var(--text); background: var(--white); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; border-radius: 4px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Buttons & links */
.btn, .prose a.btn { display: inline-flex; align-items: center; gap: .5em; padding: .85em 1.6em; border: 0; border-radius: 999px; background: var(--blue); color: #fff; font: 600 1rem/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .2s, transform .2s; }
.btn:hover, .prose a.btn:hover { background: var(--blue-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.btn-ghost:hover { background: #fff; color: var(--blue-dark); }
.prose a.btn-alt { background: var(--green); }
.prose a.btn-alt:hover { background: #237c52; }
.link-arrow { font-weight: 600; text-decoration: none; white-space: nowrap; }
.link-arrow::after { content: ' →'; transition: margin .2s; }
.link-arrow:hover::after { margin-left: 4px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.topbar { background: var(--ink); color: #cfd8e1; font-size: .85rem; }
.topbar-in { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.topbar a { color: #e6edf3; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-item { display: inline-flex; align-items: center; gap: 8px; }
.topbar svg, .contact-list svg { width: 16px; height: 16px; flex: none; }
.langs { margin-left: auto; display: flex; gap: 2px; }
.langs a { padding: 4px 8px; border-radius: 6px; font-weight: 600; letter-spacing: .04em; }
.langs a[aria-current] { background: var(--blue); color: #fff; }
.header-in { display: flex; align-items: center; gap: 24px; min-height: 84px; }
.logo img { width: 190px; height: auto; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav > ul > li > a { display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; border-radius: 8px; }
.nav > ul > li > a:hover, .nav > ul > li.active > a { color: var(--blue); background: var(--blue-soft); }
.nav .sub { position: absolute; top: 100%; left: 0; min-width: 300px; list-style: none; margin: 0; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.nav li.has-sub:hover > .sub, .nav li.has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; }
.nav .sub a { display: block; padding: 8px 12px; color: var(--text); text-decoration: none; border-radius: 8px; font-size: .93rem; line-height: 1.4; }
.nav .sub a:hover { background: var(--soft); color: var(--blue); }
.nav .sub ul { list-style: none; margin: 0; padding: 0 0 0 14px; }
.sub-toggle { display: none; }
.nav-search { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.nav-search input { width: 0; padding: 8px 0; border: 0; font: inherit; font-size: .9rem; background: transparent; transition: width .25s, padding .25s; }
.nav-search:focus-within input { width: 170px; padding: 8px 12px; }
.nav-search button { display: grid; place-items: center; width: 38px; height: 38px; border: 0; background: none; color: var(--ink); cursor: pointer; }
.nav-search svg { width: 18px; height: 18px; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.nav-toggle span:first-child, .nav-toggle span:first-child::before, .nav-toggle span:first-child::after { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); transition: .2s; content: ''; }
.nav-toggle span:first-child { top: 21px; }
.nav-toggle span:first-child::before { left: 0; top: -7px; }
.nav-toggle span:first-child::after { left: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { background: transparent; }
.nav-toggle[aria-expanded="true"] span:first-child::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:first-child::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 1100px) {
	.header-in { min-height: 70px; }
	.logo img { width: 150px; }
	.nav-toggle { display: block; }
	.nav { position: fixed; inset: 108px 0 0 0; display: none; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 40px; background: #fff; overflow-y: auto; }
	.nav.open { display: flex; }
	.nav > ul { flex-direction: column; }
	.nav > ul > li > a { padding: 14px 8px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
	.nav .sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 12px; display: none; min-width: 0; }
	.nav li.open > .sub { display: block; }
	.sub-toggle { display: block; position: absolute; right: 0; top: 4px; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
	.sub-toggle::after { content: ''; position: absolute; left: 17px; top: 15px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: .2s; }
	.nav li.open > .sub-toggle::after { transform: rotate(-135deg); top: 20px; }
	.nav-search input, .nav-search:focus-within input { width: 100%; padding: 12px 16px; }
	.topbar-item:nth-child(2) { display: none; }
}
@media (max-width: 520px) { .topbar-item:first-child a { font-size: .8rem; } }

/* Hero */
.hero { position: relative; min-height: clamp(440px, 70vh, 680px); display: flex; align-items: center; color: #fff; background: linear-gradient(120deg, #123a63 0%, #1f5f99 55%, #2f9e6a 140%); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 30, 52, .86) 0%, rgba(10, 30, 52, .55) 55%, rgba(10, 30, 52, .2) 100%); }
.hero-in { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 64px; }
.hero h1 { color: #fff; max-width: 14em; margin-bottom: .4em; }
.hero-text { font-size: 1.15rem; max-width: 36em; color: #e3ecf5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--green); margin-bottom: .8em; }
.hero .eyebrow { color: var(--green-light); }

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-soft { background: var(--soft); }
.section-head { margin-bottom: 36px; max-width: 760px; }
.section-head h2 { margin: 0; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; max-width: none; flex-wrap: wrap; }
.intro .prose-wide { font-size: 1.08rem; }

/* Services grid */
.services { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.service { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.service img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .4s; }
.service span { padding: 16px 18px 20px; font-weight: 600; line-height: 1.4; }
.service:hover { transform: translateY(-4px); color: var(--blue); }
.service:hover img { transform: scale(1.05); }
.services-lg { margin-top: 32px; }

/* Cards */
.cards { display: grid; gap: 28px; }
.cards-3 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s; }
.card:hover { transform: translateY(-3px); }
.card-img { display: block; aspect-ratio: 3 / 2; background: var(--blue-soft); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-img img { transform: scale(1.04); }
.card-noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--blue-soft), #dff3e9); }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 1.06rem; margin: 0; line-height: 1.4; }
.card-body h3 a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.card-body h3 a:hover { color: var(--blue); }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-body time, .card-cat { font-size: .82rem; font-weight: 600; color: var(--green); text-transform: uppercase; letter-spacing: .06em; }

/* Partners */
.partners { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.partners li { display: grid; place-items: center; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 3 / 2; }
.partners img { max-height: 70px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: .25s; }
.partners li:hover img { filter: none; opacity: 1; }

/* Page head */
.page-head { background: linear-gradient(120deg, #123a63, #1f5f99); color: #fff; padding: clamp(36px, 6vw, 64px) 0; }
.page-head h1 { color: #fff; margin: 0; max-width: 28em; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.5rem); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: .88rem; margin-bottom: 12px; color: #b9cde2; }
.crumbs a { color: #dbe8f5; text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.page-meta { margin: 10px 0 0; color: #cfe0f0; }

/* Body content */
.page-body { padding-top: clamp(36px, 5vw, 56px); padding-bottom: clamp(56px, 7vw, 88px); }
.page-body.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.aside { position: sticky; top: 140px; background: var(--soft); border-radius: var(--radius); padding: 22px; }
.aside h2 { font-size: 1rem; margin-bottom: 10px; }
.aside ul { list-style: none; margin: 0; padding: 0; }
.aside a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.aside a:hover, .aside a[aria-current] { background: #fff; color: var(--blue); }
@media (max-width: 960px) { .page-body.with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.prose { max-width: 780px; }
.prose-wide { max-width: 980px; }
.prose h2 { margin-top: 1.6em; }
.prose h3, .prose h4, .prose h5 { margin-top: 1.4em; }
.prose h5 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--green); }
.prose img { border-radius: 10px; margin: 1.4em 0; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: -.8em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--green); background: var(--soft); border-radius: 0 10px 10px 0; font-style: italic; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.prose th { background: var(--soft); color: var(--ink); }
.prose iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 10px; }
.prose .align-center { text-align: center; }
.prose .align-right { text-align: right; }
.prose .lead { font-size: 1.15rem; color: var(--ink); }
.prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.prose .gallery img { margin: 0; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lead-img img { width: 100%; margin: 0 0 1.6em; border-radius: var(--radius); }
.intro-text { margin-bottom: 8px; font-size: 1.05rem; color: var(--muted); }
.child-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.child-list a { display: block; padding: 14px 18px; background: var(--soft); border-radius: 10px; text-decoration: none; font-weight: 600; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2em; }
.tags a { padding: 6px 12px; background: var(--blue-soft); border-radius: 999px; font-size: .85rem; text-decoration: none; }

/* Filters & pager */
.filters { display: flex; flex-wrap: wrap; gap: 8px; padding: 32px 0 28px; }
.filters a { padding: 8px 16px; border-radius: 999px; background: var(--soft); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; }
.filters a:hover { background: var(--blue-soft); color: var(--blue); }
.filters a[aria-current] { background: var(--blue); color: #fff; }
.page-head + .wrap > .cards, .page-head + .wrap > .empty { margin-top: 40px; }
.pager { display: flex; justify-content: center; gap: 6px; margin: 48px 0 80px; flex-wrap: wrap; }
.pager a { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; background: var(--soft); text-decoration: none; font-weight: 600; color: var(--text); }
.pager a[aria-current] { background: var(--blue); color: #fff; }
.empty { color: var(--muted); padding: 24px 0 80px; }
.wrap > .cards:last-child { margin-bottom: 80px; }

/* Careers */
.jobs { margin-top: 48px; }
.job-list { display: grid; gap: 12px; }
.job { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: .2s; }
.job:hover { border-color: var(--blue); box-shadow: var(--shadow); }
@media (max-width: 600px) { .job { flex-direction: column; align-items: start; } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; padding-top: 48px; padding-bottom: 64px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-cards li { display: flex; gap: 14px; align-items: start; padding: 16px 18px; background: var(--soft); border-radius: 12px; }
.contact-cards svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 2px; }
.contact-cards strong { display: block; color: var(--ink); font-size: .9rem; }
.contact-cards a, .contact-cards span { font-size: 1rem; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 4vw, 36px); box-shadow: var(--shadow); display: grid; gap: 16px; align-content: start; }
.form h2 { margin: 0 0 4px; font-size: 1.4rem; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--ink); }
.form input[type=text], .form input[type=email], .form input[type=tel], .form textarea { width: 100%; padding: 12px 14px; border: 1px solid #cfd8e2; border-radius: 10px; font: 400 1rem var(--font); color: var(--text); background: #fff; }
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.form [aria-invalid=true] { border-color: #c0392b; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form .check { display: flex; gap: 10px; align-items: start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 5px; width: 18px; height: 18px; flex: none; }
.form .btn { justify-self: start; }
.field-error { color: #c0392b; font-weight: 500; font-size: .85rem; }
.alert { padding: 14px 18px; border-radius: 10px; margin: 0; }
.alert-ok { background: #e3f6ec; color: #1d6b45; }
.alert-err { background: #fdecea; color: #a8322a; }
.map iframe { display: block; width: 100%; height: 420px; border: 0; filter: grayscale(.3); }

/* Search */
.search-form { display: flex; gap: 10px; max-width: 640px; margin-bottom: 32px; }
.search-form input { flex: 1; padding: 12px 16px; border: 1px solid #cfd8e2; border-radius: 999px; font: inherit; }
.results { list-style: none; padding: 0; margin: 0; max-width: 800px; }
.results li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.results a { font-weight: 600; font-size: 1.1rem; }
.results p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }

/* 404 */
.notfound { text-align: center; }
.notfound .big { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; color: var(--blue-soft); margin: 0; -webkit-text-stroke: 2px var(--blue); }

/* Flipbook (brochures inside content) */
.flipbook { max-width: 600px; margin: 2em auto; }
.flipbook > a { display: block; margin-bottom: 16px; }
.flipbook > a img { margin: 0; width: 100%; border-radius: 4px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.js .flipbook.ready { display: grid; gap: 14px; }
.js .flipbook.ready .fb-stage { position: relative; perspective: 2200px; aspect-ratio: var(--fb-ratio, .775); }
.js .flipbook.ready .fb-stage > a { position: absolute; inset: 0; margin: 0; visibility: hidden; z-index: 1; transform-origin: left center; transition: transform .75s ease-in-out; backface-visibility: hidden; }
.js .flipbook.ready .fb-stage > a img { height: 100%; object-fit: contain; }
.js .flipbook.ready .fb-stage > a.on { visibility: visible; z-index: 2; }
.js .flipbook.ready .fb-stage > a.top { visibility: visible; z-index: 3; }
.js .flipbook.ready .fb-stage > a.flipped { transform: rotateY(-100deg); }
.fb-nav { display: flex; align-items: center; justify-content: center; gap: 18px; }
.fb-nav button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; }
.fb-nav button:hover { background: var(--green); }
.fb-nav button:disabled { opacity: .35; cursor: default; background: var(--blue); }
.fb-count { font-weight: 600; min-width: 60px; text-align: center; }
.fb-thumbs { display: flex; justify-content: center; gap: 10px; }
.fb-thumbs button { padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; cursor: pointer; opacity: .5; }
.fb-thumbs button[aria-current] { opacity: 1; border-color: var(--green); }
.fb-thumbs img { width: 60px; margin: 0; border-radius: 2px; }
.fb-hint { text-align: center; font-size: .85rem; color: var(--muted); margin: 0; }
@media (prefers-reduced-motion: reduce) { .js .flipbook.ready .fb-stage > a { transition: none; } * { scroll-behavior: auto !important; } }

/* Footer */
.site-footer { background: var(--ink); color: #b8c4d0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr auto; gap: 48px; padding-top: 64px; padding-bottom: 48px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo { width: 170px; margin-bottom: 18px; }
.site-footer h2 { color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #dfe7ef; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.contact-list li { display: flex; gap: 10px; align-items: start; }
.contact-list svg { margin-top: 4px; color: var(--green-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.footer-bottom { flex-wrap: wrap; gap: 8px 24px; }
.site-footer a.credit { color: #9fb0c0; }
.site-footer a.credit:hover { color: #fff; }

/* Content blocks (usable in any page body) */
.prose-wide.home-intro { max-width: var(--wrap); }
.home-intro > h2:first-child { margin-top: 0; max-width: 22em; }
.home-intro > .lead { max-width: 52em; }
.home-intro > p { max-width: 60em; }
.mvv { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 48px 0; }
.mvv > div { background: var(--soft); border-radius: var(--radius); padding: 28px 28px 20px; border-top: 4px solid var(--blue); }
.mvv > div:nth-child(2) { border-top-color: var(--green); }
.mvv > div:nth-child(3) { border-top-color: #e3a73a; }
.mvv h3 { margin-top: 0; font-size: 1.35rem; }
.mvv blockquote { margin: 0 0 1em; padding: 0; border: 0; background: none; font-size: .98rem; }
.mvv blockquote p:last-child { font-style: normal; font-size: .85rem; color: var(--muted); margin-top: -.4em; }
.mvv blockquote p:last-child::before { content: '— '; }
.mvv > div > p { font-size: .96rem; color: var(--text); }
.cols-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px 48px; }
.cols-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px 32px; }
.cols-2 > div > h3:first-child, .cols-3 > div > h3:first-child { margin-top: 0; }
.prose ul.checklist { list-style: none; padding: 0; }
.prose ul.checklist li { position: relative; padding-left: 32px; margin-bottom: .65em; }
.prose ul.checklist li::before { content: ''; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.prose .note { margin: 40px 0 0; padding: 18px 22px; background: var(--blue-soft); border-radius: 12px; font-size: .95rem; color: var(--ink); }
.section-quotes { background: linear-gradient(120deg, #123a63, #1f5f99); color: #fff; }
.testimonials h2 { color: #fff; margin-bottom: 32px; }
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.testimonials h2 { grid-column: 1 / -1; }
.testimonials blockquote { margin: 0; padding: 28px; background: rgba(255, 255, 255, .08); border-radius: var(--radius); border: 1px solid rgba(255, 255, 255, .15); display: flex; flex-direction: column; justify-content: space-between; }
.testimonials blockquote p:first-child { font-size: 1rem; line-height: 1.6; color: #e8f0f8; }
.testimonials blockquote p:first-child::before { content: '“'; display: block; font-size: 3.2rem; line-height: .6; color: var(--green-light); font-family: Georgia, serif; margin-bottom: 8px; }
.testimonials blockquote p:last-child { margin: 0; font-size: .88rem; color: #b9cde2; }
.testimonials strong { color: #fff; }

/* Centred reading column for articles and simple pages (heading aligned with the text) */
.wrap.narrow { max-width: calc(820px + 2 * var(--gutter)); }
.page-body.narrow .prose { margin: 0 auto; }
.page-body.narrow .prose-wide { max-width: none; }

/* List pages: categories in a side column */
.list-page { padding-top: 40px; padding-bottom: 80px; }
.list-page.with-cats { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 40px; align-items: start; }
.list-main .cards { margin: 0; }
.list-main .pager { margin-bottom: 0; }
.cards-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cat-nav-wrap { position: sticky; top: 140px; }
.cat-nav { background: var(--soft); border-radius: var(--radius); padding: 18px; }
.cat-nav summary { font-weight: 700; color: var(--ink); cursor: pointer; list-style: none; }
.cat-nav summary::-webkit-details-marker { display: none; }
.cat-nav ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 2px; }
.cat-nav ul ul { margin: 2px 0 4px 14px; border-left: 2px solid var(--line); padding-left: 6px; }
.cat-nav a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.cat-nav a:hover { background: #fff; color: var(--blue); }
.cat-nav a[aria-current] { background: var(--blue); color: #fff; }
.cat-nav .count { font-size: .78rem; font-weight: 600; color: var(--muted); align-self: center; }
.cat-nav a[aria-current] .count { color: #d6e6f5; }
@media (min-width: 961px) { .cat-nav summary { pointer-events: none; } }
@media (max-width: 960px) {
	.list-page.with-cats { grid-template-columns: 1fr; gap: 20px; }
	.cat-nav-wrap { position: static; }
	.cat-nav summary { display: flex; justify-content: space-between; }
	.cat-nav summary::after { content: '▾'; color: var(--muted); }
	.cat-nav[open] summary::after { content: '▴'; }
}

/* Careers: open positions and benefits */
.careers .jobs { margin: 8px 0 48px; }
.careers .job-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.careers .job { flex-direction: column; align-items: flex-start; gap: 10px; padding: 26px 28px; border-top: 4px solid var(--blue); }
.careers .job strong { font-size: 1.12rem; line-height: 1.35; }
.job-text { color: var(--muted); font-size: .95rem; }
.prose .features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin: 8px 0 40px; }
.prose .features > div { background: var(--soft); border-radius: var(--radius); padding: 22px 22px 6px; border-left: 4px solid var(--green); }
.prose .features h3 { margin: 0 0 .5em; font-size: 1.05rem; }
.prose .features p { font-size: .95rem; }

/* Page header image: same proportions everywhere, cropped instead of very tall */
.lead-img.cover img { aspect-ratio: 21 / 9; object-fit: cover; height: auto; }
@media (max-width: 600px) { .lead-img.cover img { aspect-ratio: 16 / 9; } }
.services-lg { margin-top: 28px; }
.intro-text .lead { margin-bottom: 0; }

/* Service pages: every photo in the text has the same wide proportions */
.prose.uniform-images img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; height: auto; }
.prose.uniform-images .flipbook img, .prose.uniform-images .gallery img { aspect-ratio: auto; object-fit: contain; }
@media (max-width: 600px) { .prose.uniform-images img { aspect-ratio: 16 / 9; } }
@media (min-width: 961px) { .cat-current { display: none; } }

/* No photo in a text may be taller than most of the screen (proportions are kept) */
.prose img { width: auto; height: auto; max-width: 100%; max-height: 70vh; }
.prose .lead-img img, .prose.uniform-images img { width: 100%; max-height: none; }
.prose .flipbook img { max-height: none; }

/* Faint water motif in the blue page headers: ripples on the right, waves along the bottom */
.page-head { position: relative; overflow: hidden; isolation: isolate; }
.page-head::before, .page-head::after { content: ''; position: absolute; pointer-events: none; z-index: -1; }
.page-head::before { right: -120px; top: -160px; width: 620px; height: 620px; background: url(../img/water-ripples.svg) center / contain no-repeat; }
.page-head::after { left: 0; right: 0; bottom: 0; height: 70%; background: url(../img/water-waves.svg) bottom / 100% 100% no-repeat; }
.page-head > .wrap { position: relative; }
@media (max-width: 700px) { .page-head::before { right: -260px; top: -220px; } }
.eco-badge { display: inline-block; }
.footer-badge { display: flex; justify-content: flex-end; align-items: flex-start; }
@media (max-width: 1100px) and (min-width: 861px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-badge { justify-content: flex-start; } }
@media (max-width: 860px) { .footer-badge { justify-content: flex-start; } }
.eco-badge img { width: auto; }
