:root {
  --ink: #102019;
  --muted: #66756d;
  --green: #176c4c;
  --green-bright: #36bd7d;
  --dark: #0b1712;
  --dark-soft: #11271d;
  --mint: #e8f7ee;
  --paper: #fffefa;
  --cream: #f5f3eb;
  --gold: #f1c870;
  --line: #dce7df;
  --display: Manrope, "Segoe UI", system-ui, sans-serif;
  --body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --shadow: 0 28px 70px rgba(18, 56, 39, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 8%, rgba(55, 191, 125, .08), transparent 25rem),
    var(--paper);
  font-family: var(--body);
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid rgba(23, 108, 76, .28); outline-offset: 4px; }
.wrap { width: min(1080px, calc(100% - 36px)); margin: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(220, 231, 223, .78);
  background: rgba(255, 254, 250, .78);
  box-shadow: 0 12px 36px rgba(16, 32, 25, .04);
  backdrop-filter: blur(18px);
}
.nav { height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 20px var(--display); }
.brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 9px 22px rgba(23, 108, 76, .2); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; font-weight: 700; }
.nav-links a { position: relative; text-decoration: none; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -7px; height: 2px; background: var(--green); transition: right .25s ease; }
.nav-links a:not(.nav-cta):hover::after { right: 0; }
.nav-links a:hover { color: var(--green); }
.nav-cta { padding: 9px 14px; border-radius: 9px; color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(16, 32, 25, .14); }

.crumbs { padding-top: 34px; color: var(--muted); font-size: 12px; }
.crumbs a { color: var(--green); text-decoration: none; }

.tool-hero { padding: 44px 0 82px; }
.tool-hero:has(.tool-hero-grid) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-top: 24px;
  padding: 72px 0 88px;
  color: white;
  background:
    radial-gradient(circle at 82% 35%, rgba(54, 189, 125, .24), transparent 24rem),
    radial-gradient(circle at 8% 100%, rgba(241, 200, 112, .12), transparent 22rem),
    var(--dark);
}
.tool-hero:has(.tool-hero-grid)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .2;
  background-image: linear-gradient(rgba(177, 226, 198, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(177, 226, 198, .14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(110deg, transparent, black 46%, transparent 92%);
}
.tool-hero:has(.tool-hero-grid)::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -170px;
  top: -180px;
  width: 560px;
  height: 560px;
  border: 1px solid rgba(149, 219, 181, .22);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(54, 189, 125, .05);
}
.tool-hero-grid { display: grid; grid-template-columns: 1fr 300px; gap: 70px; align-items: center; }
.tool-hero-grid.has-photo { grid-template-columns: minmax(0, 1fr) minmax(380px, 520px); gap: 52px; }
.tool-hero-grid.has-photo > * { min-width: 0; }
.kicker { margin-bottom: 13px; color: var(--green); font-size: 11px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.tool-hero:has(.tool-hero-grid) .kicker { color: #8de0b2; }
h1, h2, h3 { font-family: var(--display); }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
h1 span { color: var(--green); }
.tool-hero:has(.tool-hero-grid) h1 span { color: transparent; background: linear-gradient(120deg, #8de0b2, #f1c870); background-clip: text; -webkit-background-clip: text; }
.lead { max-width: 720px; margin: 22px 0 0; color: #52625a; font-size: 18px; line-height: 1.65; }
.tool-hero:has(.tool-hero-grid) .lead { color: #b7c9bf; }
.tool-logo {
  width: 250px;
  height: 250px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 56px;
  box-shadow: 0 38px 90px rgba(0, 0, 0, .34), 0 0 65px rgba(54, 189, 125, .12);
  animation: tool-logo-float 6s ease-in-out infinite;
}
.editorial-photo { width: 100%; max-width: 100%; margin: 0; }
.editorial-photo img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 1px solid rgba(19, 52, 38, .13);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(18, 56, 39, .18);
}
.editorial-photo figcaption { margin-top: 11px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.tool-hero-photo { border-color: rgba(255, 255, 255, .18) !important; border-radius: 30px !important; box-shadow: 0 38px 90px rgba(0, 0, 0, .34), 0 0 65px rgba(54, 189, 125, .1) !important; }
.hero-editorial-photo { max-width: 520px; justify-self: center; }
.hero-editorial-photo figcaption { color: #9fb4a9; }

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 800;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.button:hover { transform: translateY(-3px); }
.primary { color: #13241c; background: var(--gold); box-shadow: 0 13px 30px rgba(176, 125, 27, .22); }
.secondary { border: 1px solid var(--line); background: white; }
.tool-hero:has(.tool-hero-grid) .secondary { border-color: rgba(255, 255, 255, .22); color: white; background: rgba(255, 255, 255, .07); backdrop-filter: blur(12px); }

.section { position: relative; padding: 92px 0; }
.soft {
  background:
    linear-gradient(rgba(23, 108, 76, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 108, 76, .035) 1px, transparent 1px),
    var(--cream);
  background-size: 48px 48px;
}
.dark { color: white; background: radial-gradient(circle at 85% 20%, rgba(54, 189, 125, .16), transparent 25rem), var(--ink); }
.section-head { max-width: 700px; margin-bottom: 38px; }
.section-head::before { content: ""; display: block; width: 52px; height: 3px; margin-bottom: 18px; border-radius: 99px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.section-head h2 { margin: 0; font-size: clamp(31px, 4vw, 46px); line-height: 1.1; letter-spacing: -.04em; }
.section-head p { color: var(--muted); }
.dark .section-head p { color: #a8bbb0; }

.grid { counter-reset: detail-card; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  counter-increment: detail-card;
  position: relative;
  overflow: hidden;
  padding: 27px 24px 25px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .8) inset;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before { content: ""; position: absolute; left: 24px; top: 0; width: 44px; height: 2px; background: linear-gradient(90deg, var(--green), var(--gold)); }
.card::after { content: "0" counter(detail-card); position: absolute; right: 18px; top: 16px; color: #b6c3bc; font: 800 10px var(--display); letter-spacing: .08em; }
.card:hover { border-color: #9fc6af; box-shadow: 0 22px 48px rgba(18, 56, 39, .1); transform: translateY(-6px); }
.card h3 { margin: 0 28px 8px 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 14px; }
.dark .card { border-color: #294238; background: rgba(20, 39, 31, .88); }
.dark .card p { color: #9fb1a7; }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0; list-style: none; }
.checklist li { padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 8px 22px rgba(18, 56, 39, .04); }
.checklist li::before { content: "✓"; margin-right: 10px; color: var(--green); font-weight: 900; }
.flow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.flow span { padding: 11px 14px; border: 1px solid #cce4d5; border-radius: 10px; color: var(--green); background: var(--mint); box-shadow: inset 0 1px white, 0 7px 20px rgba(18, 56, 39, .05); font-size: 12px; font-weight: 900; }
.flow b { color: #77a08a; animation: flow-arrow 2s ease-in-out infinite; }
.note { padding: 20px 22px; border: 1px solid #deeadf; border-left: 4px solid var(--green); border-radius: 10px; color: #52625a; background: rgba(255, 255, 255, .88); box-shadow: 0 12px 28px rgba(18, 56, 39, .05); }
.photo-feature { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(320px, .92fr); gap: 50px; align-items: center; }
.photo-feature .section-head { margin-bottom: 26px; }

.prose { max-width: 790px; }
.prose h1 { font-size: 48px; }
.prose h2 { margin: 44px 0 12px; font-size: 27px; }
.prose h3 { margin: 30px 0 8px; }
.prose p, .prose li { color: #52625a; }
.prose strong { color: var(--ink); }
.prose a { color: var(--green); text-underline-offset: 3px; }
.meta-box { margin: 28px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(130deg, var(--cream), white); box-shadow: 0 12px 28px rgba(18, 56, 39, .05); font-size: 13px; }

.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-card { padding: 27px; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 12px 30px rgba(18, 56, 39, .05); transition: transform .25s, box-shadow .25s; }
.support-card:hover { box-shadow: 0 20px 45px rgba(18, 56, 39, .1); transform: translateY(-4px); }
.support-card h2 { margin: 0 0 8px; font-size: 21px; }
.support-card p { color: var(--muted); }

.catalog { counter-reset: catalog-card; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.catalog-card { counter-increment: catalog-card; position: relative; overflow: hidden; padding: 22px 20px 25px; border: 1px solid var(--line); border-radius: 17px; background: linear-gradient(145deg, white, #fbfdfb); box-shadow: 0 10px 26px rgba(18, 56, 39, .05); text-decoration: none; transition: border-color .3s, transform .3s, box-shadow .3s; }
.catalog-card::after { content: "0" counter(catalog-card); position: absolute; top: 18px; right: 17px; color: #afbeb6; font: 800 10px var(--display); }
.catalog-card:hover { border-color: #7bb093; box-shadow: 0 23px 50px rgba(18, 56, 39, .11); transform: translateY(-6px); }
.catalog-card img { width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 10px 24px rgba(18, 56, 39, .17); }
.catalog-card h2 { margin: 20px 0 7px; font-size: 17px; }
.catalog-card p { margin: 0; color: var(--muted); font-size: 13px; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.error-code { color: transparent; background: linear-gradient(120deg, var(--green), var(--gold)); background-clip: text; -webkit-background-clip: text; font: 800 90px/1 var(--display); }

footer { position: relative; overflow: hidden; padding: 52px 0 26px; color: #a5b8ae; background: radial-gradient(circle at 80% 0, rgba(54, 189, 125, .12), transparent 25rem), var(--dark); }
footer::before { content: ""; position: absolute; inset: 0; opacity: .1; background-image: linear-gradient(rgba(177, 226, 198, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(177, 226, 198, .12) 1px, transparent 1px); background-size: 46px 46px; }
.footer-grid, .copyright { position: relative; }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { font-size: 12px; text-decoration: none; }
.footer-links a:hover { color: white; }
.copyright { margin-top: 28px; padding-top: 18px; border-top: 1px solid #22332a; font-size: 11px; }

@keyframes tool-logo-float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-9px) rotate(1deg); } }
@keyframes flow-arrow { 0%, 100% { opacity: .55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(3px); } }

@media (max-width: 820px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .tool-hero-grid { grid-template-columns: 1fr; }
  .tool-hero-grid.has-photo, .photo-feature { grid-template-columns: minmax(0, 1fr); }
  .tool-hero-grid.has-photo { gap: 38px; }
  .tool-hero-grid.has-photo h1 { font-size: clamp(38px, 10.5vw, 48px); overflow-wrap: break-word; }
  .tool-hero-grid.has-photo .lead { font-size: 16px; }
  .hero-editorial-photo { order: initial; justify-self: center; }
  .tool-hero-photo { border-radius: 22px !important; }
  .tool-logo { width: 190px; height: 190px; order: -1; }
  .grid, .catalog { grid-template-columns: repeat(2, 1fr); }
  .checklist, .support-grid { grid-template-columns: 1fr; }
  .footer-grid { display: block; }
  .footer-links { margin-top: 24px; }
}

@media (max-width: 520px) {
  .grid, .catalog { grid-template-columns: 1fr; }
  .tool-hero { padding-top: 30px; }
  .tool-hero:has(.tool-hero-grid) { margin-top: 15px; padding: 48px 0 58px; }
  .prose h1 { font-size: 39px; }
  .nav-cta { font-size: 11px; }
  .section { padding: 68px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
