/* Free tools (/tools/): the list of Life Adviser's calculators, in the tool pages' look. */
:root{
  --ink:#000000; --navy:#112652; --magenta:#de0471; --muted:#5f6368;
  --line:#e3e6eb; --soft:#f3f4f7; --pink-soft:#fdf2f8;
  --head:'Manrope','Inter',system-ui,sans-serif; --body:'Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body.th-page{margin:0;background:#fff;color:var(--ink);font-family:var(--body);font-size:17px;line-height:1.6;overflow-x:hidden}
.th-wrap{max-width:880px;margin:0 auto;padding:0 24px}
a{color:var(--magenta);text-underline-offset:2px}
a:hover{color:#a80355}
:focus-visible{outline:3px solid var(--magenta);outline-offset:2px}

.th-top{border-bottom:1px solid var(--line);background:#fff}
.th-top-in{display:flex;align-items:center;justify-content:space-between;height:68px;max-width:1120px}
.th-logo img{display:block;height:28px;width:auto}

.th-intro{padding:56px 0 8px}
.th-intro-text{max-width:760px}
h1{font-family:var(--head);font-weight:800;font-size:clamp(36px,6vw,58px);line-height:1.04;letter-spacing:-.03em;margin:0 0 18px}
.th-lead{font-size:clamp(18px,2.2vw,21px);line-height:1.55;margin:0}
h2{font-family:var(--head);font-weight:800;font-size:clamp(23px,3vw,28px);line-height:1.15;letter-spacing:-.02em;margin:0 0 12px}

.th-tools{margin:36px 0 0}
.th-list{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:16px}
.th-card{margin:0;min-width:0}
.th-link{display:flex;flex-direction:column;gap:6px;height:100%;padding:22px 24px 24px;border:1px solid var(--line);border-radius:20px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .12s,box-shadow .12s}
.th-link:hover{color:var(--ink);border-color:var(--navy);box-shadow:0 6px 20px rgba(17,38,82,.08)}
.th-name{font-family:var(--head);font-weight:800;font-size:19px;line-height:1.3;color:var(--navy)}
.th-name::after{content:" \2192";color:var(--magenta)}
.th-desc{font-size:15.5px;line-height:1.5;color:var(--muted)}

.th-about{margin:48px 0 0;padding:24px 26px;border-radius:18px;background:var(--soft)}
.th-about p{margin:0 0 12px;font-size:16px}
.th-about p:last-child{margin-bottom:0}

.th-foot{margin:72px 0 0;background:var(--navy);color:rgba(255,255,255,.82);font-size:13px;line-height:1.6;padding:32px 0 28px}
.th-foot p{margin:0 0 12px}
.th-foot a{color:#fff}
.th-foot-links{list-style:none;margin:0 0 18px;padding:0;display:flex;flex-wrap:wrap;gap:8px 22px;font-size:14px;font-weight:600}
.th-foot .th-copy{margin:0;opacity:.8}

@media (max-width:700px){
  body.th-page{font-size:16px}
  .th-wrap{padding:0 18px}
  .th-top-in{height:60px}
  .th-logo img{height:24px}
  .th-intro{padding:36px 0 4px}
  .th-tools{margin-top:28px}
  .th-list{grid-template-columns:1fr;gap:12px}
  .th-link{padding:18px 18px 20px;border-radius:18px}
  .th-name{font-size:18px}
  .th-about{margin-top:40px;padding:20px 18px}
}
