
:root {
  --ink: #1c1b18;
  --ink-soft: #57534a;
  --paper: #f6f2ea;
  --paper-2: #eee8dc;
  --white: #fffdf9;
  --line: #ddd4c5;
  --gold: #aa7b3d;
  --gold-dark: #7b5428;
  --sage: #71806b;
  --shadow: 0 18px 42px rgba(39,31,20,.10);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold-dark); }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid rgba(170,123,61,.55); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; top: 12px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 1000; border-radius: 10px; }
.skip-link:focus { left: 12px; }
.site-sale-bar { background: var(--ink); color: #fffdf7; font-size: .9rem; }
.site-sale-bar .wrap { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 6px 20px; text-align: center; }
.site-sale-bar a { color: #f2cf94; font-weight: 700; white-space: nowrap; }
.site-sale-bar a:hover { color: #fff; }
.wrap { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.header { border-bottom: 1px solid rgba(28,27,24,.10); background: rgba(246,242,234,.90); position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: Georgia, "Times New Roman", serif; font-weight: 700; letter-spacing: .11em; font-size: 1.05rem; }
.brand-mark { width: 24px; height: 24px; border: 2px solid var(--gold); border-radius: 50%; position: relative; display: inline-block; }
.brand-mark::after { content: ""; width: 7px; height: 7px; position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--gold); }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: #4b473f; font-size: .94rem; font-weight: 650; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 8px; }
.nav-toggle svg { width: 25px; height: 25px; }
.btn { border: 1px solid transparent; border-radius: 999px; display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 9px; padding: 11px 18px; font-weight: 750; font-size: .94rem; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(28,27,24,.10); }
.btn-primary { color: #fffdf8; background: var(--ink); }
.btn-primary:hover { color: #fff; background: #33302b; }
.btn-gold { color: #2f2111; background: #e6c18a; }
.btn-gold:hover { color: #2f2111; background: #efcf9b; }
.btn-quiet { color: var(--ink); border-color: #d2c5b1; background: rgba(255,253,249,.55); }
.btn-quiet:hover { color: var(--ink); background: #fffdf9; }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .74rem; color: var(--gold-dark); margin: 0 0 13px; }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; letter-spacing: -.035em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(2.55rem, 5.2vw, 5.05rem); max-width: 820px; }
h2 { font-size: clamp(2.05rem, 3.7vw, 3.35rem); }
h3 { font-size: 1.45rem; }
p { margin: 0; }
.lede { color: var(--ink-soft); font-size: clamp(1.03rem, 1.8vw, 1.2rem); max-width: 650px; }
.hero { overflow: hidden; padding: 72px 0 42px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero-copy h1 { margin-bottom: 20px; }
.hero-copy .lede { margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { margin-top: 22px; color: #6d665b; font-size: .88rem; }
.hero-art { min-height: 430px; position: relative; display: grid; place-items: center; }
.hero-art::before { content: ""; width: 430px; max-width: 88%; aspect-ratio: 1; position: absolute; border-radius: 50%; background: radial-gradient(circle at 50% 44%, #fffdf8 0 21%, transparent 21.5%), linear-gradient(135deg, #c9aa73, #8b5c2b); box-shadow: 0 28px 70px rgba(91,60,26,.22); transform: rotate(-19deg); }
.hero-art::after { content: ""; width: 310px; aspect-ratio: 1; position: absolute; border: 12px solid rgba(255,253,249,.55); border-radius: 50%; }
.gem { width: 122px; height: 122px; position: relative; z-index: 1; background: linear-gradient(135deg, #f7e8b3, #fffdf6 40%, #c89956); clip-path: polygon(50% 0, 92% 27%, 100% 65%, 50% 100%, 0 65%, 8% 27%); box-shadow: inset 0 0 0 2px rgba(98,65,24,.18), 0 10px 25px rgba(78,50,19,.18); }
.gem::after { content: ""; position: absolute; inset: 20%; clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: rgba(255,255,255,.72); }
.section { padding: 86px 0; }
.section-tight { padding: 55px 0; }
.section-dark { background: var(--ink); color: #fffdf8; }
.section-dark .kicker { color: #e6c18a; }
.section-dark .lede, .section-dark .muted { color: #d4ccbf; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-head > div:last-child { max-width: 465px; }
.tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { background: var(--white); padding: 28px; border: 1px solid rgba(28,27,24,.08); border-radius: var(--radius-xl); box-shadow: var(--shadow); }
.tool-card h2 { font-size: clamp(1.8rem, 3vw, 2.45rem); margin-bottom: 8px; }
.tool-card p { color: var(--ink-soft); }
.calc-tabs { display: flex; gap: 4px; background: #ece5d9; padding: 4px; border-radius: 13px; margin: 24px 0 20px; }
.calc-tab { border: 0; background: transparent; color: #5d574e; padding: 10px 12px; border-radius: 9px; font-weight: 750; flex: 1; }
.calc-tab.is-active { background: #fffdf9; color: var(--ink); box-shadow: 0 2px 8px rgba(28,27,24,.08); }
.field-label { display: block; font-size: .88rem; font-weight: 780; margin: 0 0 8px; }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.input { width: 100%; min-height: 54px; border: 1px solid #d7cdbc; border-radius: 12px; padding: 12px 14px; background: #fffdf9; color: var(--ink); font-size: 1.05rem; font-weight: 650; }
.unit { min-height: 54px; min-width: 59px; display: grid; place-items: center; border-radius: 12px; background: #ece5d9; color: #6b6052; font-weight: 800; }
.calc-help { color: #756d62; font-size: .85rem; margin: 10px 0 0; }
.result { margin-top: 24px; padding: 21px; border: 1px solid #ead3ab; border-radius: 18px; background: linear-gradient(135deg, #fff8e9, #fffdf8); }
.result-label { font-size: .76rem; letter-spacing: .12em; font-weight: 850; text-transform: uppercase; color: var(--gold-dark); }
.result-main { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 8px; }
.result-main strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.4rem; line-height: 1; }
.result-main span { color: #6f6558; font-weight: 700; }
.result-details { color: #635a4f; font-size: .9rem; }
.result-warning { color: #8a5025; margin-top: 10px; font-size: .86rem; display: none; }
.result-warning.show { display: block; }
.list-check { display: grid; gap: 11px; margin: 22px 0 0; padding: 0; list-style: none; }
.list-check li { position: relative; padding-left: 27px; color: #5f574d; }
.list-check li::before { content: ""; width: 15px; height: 15px; border-radius: 50%; background: #e4c084; position: absolute; left: 0; top: .38em; box-shadow: inset 0 0 0 4px #fff8eb; }
.guide-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.guide-card { padding: 23px; min-height: 208px; border: 1px solid #ddd4c5; border-radius: var(--radius-lg); background: rgba(255,253,249,.47); display: flex; flex-direction: column; justify-content: space-between; transition: background .2s ease, transform .2s ease; }
.guide-card:hover { background: #fffdf9; transform: translateY(-3px); color: var(--ink); }
.guide-icon { width: 42px; height: 42px; border: 1px solid #d7bd93; display: grid; place-items: center; border-radius: 50%; color: var(--gold-dark); font-family: Georgia,serif; font-weight: 700; }
.guide-card h3 { margin-top: 26px; font-size: 1.35rem; }
.guide-card p { margin-top: 10px; color: var(--ink-soft); font-size: .93rem; }
.guide-link { margin-top: 18px; color: var(--gold-dark); font-weight: 800; font-size: .9rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.step { padding: 26px; background: #25231f; border: 1px solid #3e3a33; border-radius: var(--radius-lg); }
.step-number { color: #e6c18a; font-family: Georgia, serif; font-size: 2rem; display: block; margin-bottom: 16px; }
.step p { margin-top: 12px; color: #d4ccbf; }
.sale-panel { background: linear-gradient(125deg, #2a2722, #1d1b18 60%, #45331f); color: #fffdf7; border: 1px solid rgba(230,193,138,.32); border-radius: var(--radius-xl); padding: clamp(28px, 5vw, 54px); display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 35px; box-shadow: var(--shadow); }
.sale-panel h2 { max-width: 580px; }
.sale-panel p { color: #d8cfbf; max-width: 640px; margin-top: 16px; }
.sale-panel .eyebrow { color: #e6c18a; font-size: .78rem; letter-spacing: .13em; font-weight: 850; text-transform: uppercase; margin-bottom: 12px; }
.sale-panel .btn { white-space: nowrap; }
.article-hero { padding: 68px 0 30px; }
.article-hero h1 { font-size: clamp(2.5rem, 4.7vw, 4.35rem); max-width: 900px; margin-bottom: 18px; }
.article-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 42px; align-items: start; }
.article { background: rgba(255,253,249,.62); border: 1px solid rgba(28,27,24,.08); border-radius: var(--radius-xl); padding: clamp(25px,4vw,50px); }
.article h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); margin: 42px 0 14px; }
.article h2:first-child { margin-top: 0; }
.article h3 { margin: 24px 0 8px; }
.article p + p { margin-top: 14px; }
.article p, .article li { color: #514b42; }
.article ul, .article ol { padding-left: 22px; margin: 15px 0; }
.article li + li { margin-top: 8px; }
.note { margin: 24px 0; padding: 18px 20px; border-left: 3px solid var(--gold); background: #f5eddf; color: #5b4935; border-radius: 0 12px 12px 0; }
.note strong { color: #332518; }
.toc { position: sticky; top: 100px; padding: 22px; border: 1px solid #d9cebd; border-radius: 16px; background: rgba(255,253,249,.56); }
.toc h2 { font-size: 1.25rem; margin-bottom: 12px; }
.toc a { display: block; font-size: .92rem; padding: 8px 0; color: #5e554a; border-bottom: 1px solid #e5dccf; }
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: var(--gold-dark); }
.table-wrap { overflow-x: auto; border: 1px solid #d8cebf; border-radius: 16px; margin: 18px 0; }
table { width: 100%; border-collapse: collapse; min-width: 520px; background: #fffdf9; }
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid #e8e0d4; }
th { background: #f0e8dc; color: #473d32; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; }
td { color: #514a40; }
tr:last-child td { border-bottom: 0; }
.table-highlight td { background: #fff4dd; }
.screen-sizer { padding: 34px; border: 1px solid #d9cdb9; background: #fffdf9; border-radius: var(--radius-xl); }
.calibration { display: grid; grid-template-columns: 1fr auto; gap: 22px; align-items: center; padding-bottom: 26px; border-bottom: 1px solid #e2d9cc; }
.credit-card { width: 323px; height: 204px; max-width: 100%; border: 2px solid #b68545; background: linear-gradient(135deg, #f7e1b5, #cda569); border-radius: 18px; box-shadow: 0 12px 25px rgba(111,73,26,.18); transform-origin: left center; position: relative; }
.credit-card::before { content: "85,60 mm"; position: absolute; bottom: 14px; right: 17px; font-weight: 850; color: #3d2a16; font-size: .82rem; }
.credit-card::after { content: ""; position: absolute; width: 45px; height: 32px; left: 24px; top: 24px; border-radius: 7px; background: repeating-linear-gradient(90deg, #8c682f 0 3px, #c6a05d 3px 6px); }
.range { width: 100%; accent-color: var(--gold); }
.sizer-controls { margin: 28px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.size-chip { border: 1px solid #d2c5b1; background: #fffdf9; padding: 9px 13px; border-radius: 999px; color: #4d463e; font-weight: 750; }
.size-chip.is-active, .size-chip:hover { border-color: #b08045; background: #f6e9d4; color: #493215; }
.ring-stage { min-height: 330px; display: grid; place-items: center; border-radius: 20px; background: radial-gradient(circle, #fbf8f1, #eee6d8); overflow: hidden; position: relative; }
.on-screen-ring { width: 64px; height: 64px; border-radius: 50%; border: 14px solid #a97837; box-shadow: inset 0 0 0 2px rgba(255,255,255,.3), 0 12px 24px rgba(97,65,30,.14); transition: width .25s ease, height .25s ease; }
.ring-caption { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: #6a6054; font-size: .9rem; }
.print-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 21px 0; }
.print-sheet { background: #fff; color: #000; border: 1px dashed #bcb4a7; padding: 16mm 14mm; margin-top: 20px; }
.print-sheet h2, .print-sheet h3 { font-family: Arial, sans-serif; letter-spacing: 0; }
.print-sheet h2 { font-size: 24px; }
.print-sheet p { font-family: Arial, sans-serif; font-size: 12px; color: #222; }
.print-rings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12mm 10mm; margin-top: 13mm; }
.print-ring-item { display: grid; justify-items: center; gap: 3mm; font-family: Arial, sans-serif; font-size: 11px; }
.print-ring { border: 1.5mm solid #000; border-radius: 50%; box-sizing: content-box; }
.print-scale { margin: 10mm 0 2mm; width: 50mm; height: 3mm; background: #000; position: relative; }
.print-scale::before { content: "0"; position: absolute; left: 0; top: 4mm; font: 10px Arial; }
.print-scale::after { content: "50 mm — kontrolli joonlauaga"; position: absolute; right: 0; top: 4mm; white-space: nowrap; font: 10px Arial; }
.print-strip { margin-top: 18mm; border-top: 1px dashed #777; padding-top: 8mm; }
.strip-svg { width: 100%; max-width: 170mm; height: auto; display: block; }
.faq { display: grid; gap: 10px; margin-top: 22px; }
.faq details { border: 1px solid #ddd3c4; border-radius: 14px; background: #fffdf9; padding: 0 17px; }
.faq summary { cursor: pointer; padding: 16px 28px 16px 0; font-family: Georgia, serif; font-weight: 700; color: #352e27; list-style: none; position: relative; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font: 1.55rem/1 Arial; color: var(--gold-dark); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 16px; }
.disclosure { border-top: 1px solid #d7cebf; color: #756e63; font-size: .84rem; padding: 22px 0 0; margin-top: 52px; }
.footer { background: #171614; color: #eee8dd; padding: 48px 0 24px; margin-top: 82px; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 42px; }
.footer h2 { font-size: 1.22rem; letter-spacing: 0; }
.footer p, .footer a { color: #beb6aa; font-size: .92rem; }
.footer a:hover { color: #fff; }
.footer-links { display: grid; gap: 8px; }
.footer-bottom { border-top: 1px solid #37332e; margin-top: 35px; padding-top: 17px; color: #918a80; font-size: .82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.badge { display: inline-flex; padding: 6px 9px; color: #6d4a1e; border: 1px solid #d6ba88; background: #fff6e7; border-radius: 999px; font-size: .75rem; letter-spacing: .04em; font-weight: 800; }
.center { text-align: center; }
.muted { color: var(--ink-soft); }
.no-results { padding: 16px; border: 1px solid #dec79e; background: #fff6e5; border-radius: 12px; color: #79542a; margin-top: 12px; display: none; }
.no-results.show { display: block; }
@media (max-width: 900px) {
  .nav { gap: 13px; }
  .hero-grid, .article-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 320px; order: -1; }
  .hero-art::before { width: 330px; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .steps { grid-template-columns: 1fr; }
  .toc { display: none; }
  .sale-panel { grid-template-columns: 1fr; }
}
@media (max-width: 690px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .header-inner { min-height: 66px; }
  .nav-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; top: 66px; right: 14px; left: 14px; padding: 14px; background: #fffdf9; box-shadow: var(--shadow); border: 1px solid #ded5c7; border-radius: 16px; flex-direction: column; align-items: stretch; gap: 0; }
  .nav.is-open { display: flex; }
  .nav a { padding: 11px 10px; }
  .hero { padding: 42px 0 25px; }
  .hero-art { min-height: 245px; }
  .hero-art::before { width: 255px; }
  .hero-art::after { width: 188px; border-width: 8px; }
  .gem { width: 80px; height: 80px; }
  .tools, .guide-grid { grid-template-columns: 1fr; }
  .section { padding: 62px 0; }
  .section-head { display: block; }
  .section-head > div:last-child { margin-top: 14px; }
  .sale-panel { padding: 28px; }
  .calibration { grid-template-columns: 1fr; }
  .credit-card { width: 280px; }
  .print-rings { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 25px; }
}
@media print {
  @page { size: A4 portrait; margin: 10mm; }
  body { background: white !important; }
  .site-sale-bar, .header, .footer, .no-print, .btn, .screen-sizer > :not(.print-sheet), .article-hero, .breadcrumbs { display: none !important; }
  .print-sheet { display: block !important; border: 0; padding: 0; margin: 0; }
  .print-sheet * { color: #000 !important; box-shadow: none !important; }
}
