:root {
  --ink: #182125;
  --muted: #667578;
  --line: #dce4df;
  --paper: #f5f7f6;
  --surface: #ffffff;
  --graphite: #20292c;
  --green: #9be83c;
  --green-soft: #e9f8cb;
  --violet: #7167d9;
  --violet-soft: #ebe9ff;
  --red: #ff4b3e;
  --shadow: 0 24px 70px rgba(21, 35, 39, .12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body, button, input, textarea { -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.topline { background: var(--graphite); color: #e9f1ed; font-size: 13px; }
.topline-inner { display: flex; justify-content: space-between; gap: 24px; padding: 10px 0; }
.topline-inner > * { min-width: 0; }
.topline a { text-decoration: none; font-weight: 800; }
header { position: sticky; top: 0; z-index: 10; background: rgba(245, 247, 246, .94); backdrop-filter: blur(18px); border-bottom: 1px solid rgba(220, 228, 223, .86); }
.nav { min-height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo-picture { display: inline-flex; align-items: center; width: 230px; min-width: 230px; text-decoration: none; }
.logo-picture img { display: block; width: 100%; height: auto; max-height: 48px; object-fit: contain; }
nav { display: flex; align-items: center; gap: 18px; font-size: 13px; font-weight: 700; color: #526164; }
nav a { position: relative; padding: 7px 0; text-decoration: none; white-space: nowrap; }
nav a:hover, nav a.active { color: var(--ink); }
nav a.active::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 3px; border-radius: 3px; background: var(--green); }
.socials { display: flex; gap: 6px; margin-left: auto; }
.social-link, .menu { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); text-decoration: none; font-size: 18px; }
.social-link:hover, .menu:hover { border-color: var(--violet); color: var(--violet); }
.menu { display: none; cursor: pointer; font-size: 22px; }
.nav-cta, .button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.nav-cta { padding: 12px 16px; border-radius: 10px; background: var(--green); font-weight: 800; white-space: nowrap; }
.nav-cta:hover { background: #a9ef52; }
main { overflow: hidden; }
.hero { position: relative; padding: 34px 0 82px; }
.hero::before { content: ""; position: absolute; top: -180px; right: -180px; z-index: -1; width: 520px; height: 520px; border-radius: 50%; background: var(--violet-soft); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 48px; color: var(--muted); font-size: 12px; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--violet); }
.crumbs span { color: var(--violet); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 58px; align-items: center; }
.hero-grid > * { min-width: 0; }
.kicker { display: inline-flex; align-items: center; gap: 9px; color: var(--violet); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; font-weight: 900; }
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--green); }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { max-width: 590px; margin: 18px 0 24px; font-size: clamp(44px, 6.3vw, 78px); line-height: .95; letter-spacing: -.065em; text-wrap: balance; overflow-wrap: anywhere; }
.page-anti h1 { font-size: clamp(42px, 5.3vw, 58px); }
.lead { max-width: 61ch; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { min-height: 52px; padding: 0 22px; border-radius: 11px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 11px 22px rgba(21, 35, 39, .12); }
.button-primary { background: var(--red); color: #fff; }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.button-secondary:hover { border-color: var(--violet); }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-proof strong { display: block; margin-bottom: 3px; font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.hero-proof span { color: var(--muted); font-size: 12px; line-height: 1.2; }
.hero-visual { position: relative; padding: 22px; border-radius: 24px; background: var(--graphite); color: #fff; box-shadow: var(--shadow); animation: board-in .85s cubic-bezier(.16, 1, .3, 1) both; }
.hero-visual::after { content: ""; position: absolute; right: -50px; bottom: -50px; width: 190px; height: 190px; border: 1px solid rgba(155, 232, 60, .34); border-radius: 50%; }
.visual-top { position: relative; z-index: 1; display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.visual-top small { color: #b5c1be; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.visual-top strong { color: var(--green); font-size: 13px; }
.photo-frame { position: relative; z-index: 1; overflow: hidden; border-radius: 15px; background: #fff; }
.photo-frame img { display: block; width: 100%; height: 390px; object-fit: contain; }
.photo-frame-wide img { height: auto; aspect-ratio: auto; }
.visual-caption { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 20px; padding-top: 17px; }
.visual-caption strong { display: block; font-size: 20px; line-height: 1.1; letter-spacing: -.04em; }
.visual-caption span { display: block; margin-top: 4px; color: #b5c1be; font-size: 12px; }
.visual-caption > span { max-width: 190px; text-align: right; }
.gallery-thumbs { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; margin-top: 10px; }
.gallery-thumb { overflow: hidden; padding: 0; border: 2px solid transparent; border-radius: 7px; background: #fff; cursor: pointer; }
.gallery-thumb.active { border-color: var(--green); }
.gallery-thumb img { display: block; width: 100%; height: 48px; object-fit: cover; }
section { padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-heading h2 { max-width: 720px; margin: 0; font-size: clamp(34px, 4.8vw, 58px); line-height: .98; letter-spacing: -.06em; text-wrap: balance; }
.section-heading p { max-width: 420px; margin: 0; color: var(--muted); }
.source { border-top: 1px solid var(--line); background: var(--surface); }
.source-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(270px, .82fr); gap: 72px; align-items: start; }
.prose { max-width: 73ch; }
.prose p { margin-bottom: 18px; }
.prose a { color: #5750ae; font-weight: 700; }
.prose h2 { margin: 54px 0 19px; font-size: clamp(28px, 3.8vw, 42px); line-height: 1; letter-spacing: -.05em; }
.prose h3 { margin: 40px 0 14px; font-size: 24px; line-height: 1; letter-spacing: -.04em; }
.prose ul { margin: 20px 0 26px; padding: 0; list-style: none; }
.prose li { position: relative; padding: 8px 0 8px 25px; border-bottom: 1px solid var(--line); }
.prose li::before { content: ""; position: absolute; top: 18px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.fact-panel { position: sticky; top: 116px; padding: 26px; border-radius: var(--radius); background: var(--green); }
.fact-panel h2 { margin-bottom: 18px; font-size: 30px; line-height: 1; letter-spacing: -.05em; }
.fact-panel dl { margin: 0; }
.fact-panel div { display: grid; grid-template-columns: 1fr auto; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(24, 33, 37, .22); }
.fact-panel dt { color: #435231; }
.fact-panel dd { margin: 0; font-weight: 900; }
.fact-panel p { margin: 18px 0 0; color: #40532f; font-size: 14px; }
.photo-section { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.photo-grid figure { margin: 0; }
.photo-grid a { display: block; overflow: hidden; border-radius: 14px; background: var(--surface); }
.photo-grid img { display: block; width: 100%; height: 210px; object-fit: cover; transition: transform .25s ease; }
.photo-grid a:hover img { transform: scale(1.04); }
.photo-grid figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; }
.photo-grid a, .application-photo img { cursor: zoom-in; }
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(18, 27, 30, .9); }
.lightbox[hidden] { display: none; }
.lightbox-dialog { position: relative; width: min(100%, 1100px); max-height: calc(100dvh - 48px); }
.lightbox-image { display: block; max-width: 100%; max-height: calc(100dvh - 112px); margin: 0 auto; border-radius: 14px; background: #fff; box-shadow: 0 24px 80px rgba(0, 0, 0, .34); object-fit: contain; }
.lightbox-caption { margin: 12px 48px 0; color: #fff; text-align: center; font-size: 14px; }
.lightbox-close { position: absolute; top: -16px; right: -16px; z-index: 1; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--green); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 10px 25px rgba(0, 0, 0, .24); }
.lightbox-close:hover { background: #b4f36a; }
body.lightbox-open { overflow: hidden; }
.details { background: var(--green); }
.details .section-heading p { color: #40532f; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.detail-block { padding-top: 17px; border-top: 1px solid rgba(24, 33, 37, .34); }
.detail-block h3 { margin-bottom: 18px; font-size: 23px; line-height: 1; letter-spacing: -.045em; }
.detail-block ul { margin: 0; padding: 0; list-style: none; }
.detail-block li { padding: 9px 0; border-bottom: 1px solid rgba(24, 33, 37, .2); color: #3e4d31; font-size: 14px; }
.detail-block li:last-child { border-bottom: 0; }
.details-cta { display: inline-flex; margin-top: 20px; min-height: 48px; align-items: center; padding: 0 17px; border-radius: 10px; background: var(--graphite); color: #fff; text-decoration: none; }
.details-cta:hover { background: var(--violet); }
.related { background: var(--graphite); color: #fff; }
.related .section-heading p { color: #bdc9c6; }
.related-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #4a5759; }
.related-list a { display: flex; min-height: 112px; align-items: end; justify-content: space-between; gap: 12px; padding: 18px; background: var(--graphite); color: #fff; text-decoration: none; transition: background .2s ease, color .2s ease; }
.related-list a::after { content: "→"; color: var(--green); font-size: 23px; }
.related-list a:hover { background: var(--green); color: var(--ink); }
.related-list a:hover::after { color: var(--ink); }
.contact { background: var(--violet-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr); gap: 64px; align-items: start; }
.contact h2 { max-width: 620px; margin: 13px 0 25px; font-size: clamp(38px, 5vw, 66px); line-height: .96; letter-spacing: -.07em; text-wrap: balance; }
.address { max-width: 430px; padding: 18px 20px; background: rgba(255, 255, 255, .62); border-radius: 14px; }
.address strong { font-size: 20px; }
.address p { margin: 7px 0 0; color: var(--muted); }
.address a { text-decoration: none; }
.address a:hover { color: var(--violet); }
.contact-form { padding: 30px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.contact-form h3 { margin-bottom: 6px; font-size: 26px; letter-spacing: -.05em; }
.contact-form > p { margin-bottom: 24px; color: var(--muted); font-size: 14px; }
label { display: grid; gap: 7px; margin-top: 15px; font-size: 13px; font-weight: 800; }
input, textarea { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; padding: 11px 13px; color: var(--ink); background: var(--paper); font: inherit; }
textarea { min-height: 108px; resize: vertical; line-height: 1.45; }
input:focus, textarea:focus { outline: 3px solid rgba(113, 103, 217, .2); border-color: var(--violet); }
.form-submit { width: 100%; margin-top: 22px; min-height: 52px; border: 0; border-radius: 10px; background: var(--red); color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.form-submit:hover { background: #e84237; }
.form-status { min-height: 24px; margin: 12px 0 0 !important; color: #397c27 !important; }
footer { padding: 54px 0 28px; background: var(--graphite); color: #d7e0dc; }
.footer-grid { display: grid; grid-template-columns: 1.35fr 1.35fr 1fr; gap: 38px; }
.footer-logo { display: inline-flex; width: 230px; }
footer .footer-logo img { max-height: 48px; }
footer p, footer a { color: #98a8a5; font-size: 13px; }
footer a:hover { color: var(--green); }
.footer-title { margin-bottom: 12px; color: #fff; font-weight: 800; }
.footer-links { display: grid; gap: 7px; }
.copyright { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 20px; border-top: 1px solid #3e4b4e; color: #7e908d; font-size: 12px; }
.copyright a { text-decoration: none; }
:focus-visible { outline: 3px solid rgba(113, 103, 217, .4); outline-offset: 3px; }
@keyframes board-in { from { opacity: 0; transform: translateY(22px) rotate(1deg); } to { opacity: 1; transform: translateY(0) rotate(0); } }
@media (max-width: 1060px) {
  .nav-cta { display: none; }
  .menu { display: grid; min-width: 44px; }
  nav { display: none; position: absolute; top: 70px; right: 14px; left: 14px; z-index: 30; flex-direction: column; align-items: stretch; max-height: calc(100dvh - 82px); overflow-y: auto; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); }
  nav.open { display: flex; }
  nav a { display: flex; min-height: 44px; align-items: center; padding: 0 12px; }
  .hero-grid, .source-grid, .contact-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 720px; }
  .fact-panel { position: static; max-width: 720px; }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  section { padding: 64px 0; }
  .section-heading { display: block; margin-bottom: 28px; }
  .section-heading p { margin-top: 16px; }
  .details-grid { grid-template-columns: 1fr 1fr; }
  .detail-block:last-child { grid-column: 1 / -1; }
  .related-list { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  html { overflow-x: clip; }
  body { overflow-x: clip; }
  .wrap { width: min(100% - 28px, var(--max)); }
  .topline-inner { flex-direction: column; gap: 2px; }
  .topline-inner > * { max-width: 100%; overflow-wrap: anywhere; }
  .topline { font-size: 12px; }
  .nav { min-height: 70px; gap: 8px; }
  .logo-picture { width: 155px; min-width: 0; flex: 0 1 155px; }
  .logo-picture img { max-height: 36px; }
  .socials { gap: 5px; }
  .social-link, .menu { width: 44px; height: 44px; min-width: 44px; }
  .hero { padding: 25px 0 56px; }
  .crumbs { margin-bottom: 31px; line-height: 1.35; }
  h1 { margin-bottom: 19px; font-size: clamp(38px, 11vw, 56px); overflow-wrap: anywhere; }
  .page-anti h1 { font-size: clamp(34px, 10.1vw, 42px); }
  .lead { font-size: 16px; }
  .hero-actions { margin-top: 25px; }
  .button { width: 100%; }
  .hero-proof { gap: 8px; margin-top: 32px; }
  .hero-proof strong { font-size: 19px; }
  .hero-proof span { font-size: 11px; }
  .hero-visual { padding: 15px; border-radius: 18px; }
  .photo-frame img { height: 270px; }
  .visual-caption { display: block; }
  .visual-caption > span { max-width: none; margin-top: 8px; text-align: left; }
  .gallery-thumbs { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .gallery-thumb img { height: 42px; }
  .prose li { padding-left: 21px; }
  .details-grid { grid-template-columns: 1fr; gap: 22px; }
  .detail-block:last-child { grid-column: auto; }
  .related-list { grid-template-columns: 1fr; }
  .related-list a { min-height: 70px; align-items: center; }
  .photo-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .photo-grid img { height: 145px; }
  .lightbox { padding: 14px; }
  .lightbox-dialog { max-height: calc(100dvh - 28px); }
  .lightbox-image { max-height: calc(100dvh - 88px); border-radius: 10px; }
  .lightbox-close { top: -5px; right: -5px; width: 44px; height: 44px; }
  .lightbox-caption { margin-right: 40px; margin-left: 40px; font-size: 13px; }
  .contact-form { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 27px; }
  .footer-logo { width: 190px; }
  footer .footer-logo img { max-height: 36px; }
  .copyright { flex-direction: column; margin-top: 28px; }
}
@media (max-width: 359px) {
  .logo-picture { width: 124px; flex-basis: 124px; }
  .nav { gap: 5px; }
  .hero-proof { grid-template-columns: 1fr; }
  .hero-proof div { display: flex; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-visual { animation: none; }
  .button, .related-list a, .photo-grid img { transition: none; }
}
