*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #f5f2ec;
  --surface:   #ffffff;
  --green:     #1a5c3a;
  --green-l:   #e8f3ed;
  --green-m:   #2d7a52;
  --text:      #2c2c2c;
  --muted:     #7a7a7a;
  --border:    #e2ddd6;
  --amber:     #fef9ee;
  --amber-b:   #e9b840;
  --amber-t:   #7a4f10;
  --r:         14px;
  --sh:        0 2px 18px rgba(60,45,20,0.07);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Source Sans 3', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.55;
}

body::before {
  content: '';
  position: fixed; inset: 0; opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0;
}

header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 40px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 8px rgba(60,45,20,0.05);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
}

.logo-name {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.logo-name span { color: var(--green); }

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.year-pill {
  background: var(--green-l);
  color: var(--green-m);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(26,92,58,0.15);
}

.header-sub {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 300;
}

.hero {
  text-align: center;
  padding: 80px 24px 72px;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: 'Lora', serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.12;
  letter-spacing: -0.5px;
  margin-bottom: 14px;
  animation: fadeUp 0.55s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.hero p {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  animation: fadeUp 0.55s ease 0.1s both;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 72px;
  position: relative;
  z-index: 1;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 24px;
  align-items: start;
  animation: fadeUp 0.55s ease 0.18s both;
}

.card {
  background: var(--surface);
  border-radius: var(--r);
  box-shadow: var(--sh);
  padding: 30px;
  border: 1px solid var(--border);
}

.results-card {
  position: sticky;
  top: 68px;
}

.card-head {
  font-family: 'Lora', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-head-ico {
  width: 26px; height: 26px;
  background: var(--green-l);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.card-head-ico svg {
  width: 13px; height: 13px;
  stroke: var(--green); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.field { margin-bottom: 20px; }

.flabel {
  display: block;
  font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: 5px;
}

.fhint {
  display: block;
  font-size: 0.76rem; color: var(--muted);
  font-weight: 300; margin-bottom: 6px; line-height: 1.4;
}

.ew { position: relative; }
.ep {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.1rem; color: var(--muted); pointer-events: none;
}
.einput {
  width: 100%;
  padding: 14px 14px 14px 32px;
  font-size: 1.45rem;
  font-family: 'Lora', serif; font-weight: 700;
  color: var(--text);
  border: 2px solid var(--border);
  border-radius: 11px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  letter-spacing: -0.3px;
}
.einput:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(26,92,58,0.09);
  background: white;
}

.trow {
  display: flex;
  background: var(--bg);
  border-radius: 10px;
  padding: 3px;
  border: 1px solid var(--border);
  gap: 3px;
}

.tb {
  flex: 1; padding: 10px 8px;
  border: none; background: transparent; border-radius: 7px;
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
  font-family: 'Source Sans 3', sans-serif;
}

.tb:hover { color: var(--text); }

.tb.on {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 8px rgba(26,92,58,0.22);
}

.fsgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}

.fsb {
  padding: 11px 10px;
  border: 2px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
  cursor: pointer; transition: all 0.18s;
  font-family: 'Source Sans 3', sans-serif;
  text-align: center;
}

.fsb:hover { border-color: var(--green); color: var(--green-m); }
.fsb.on { background: var(--green); border-color: var(--green); color: white; }

.skbox {
  background: var(--green-l);
  border: 1.5px solid rgba(26,92,58,0.18);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 9px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  transition: opacity 0.2s;
}

.sk-badge {
  background: var(--green); color: white;
  font-family: 'Lora', serif; font-size: 0.95rem; font-weight: 700;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

.skbox-t strong {
  display: block; font-size: 0.82rem; font-weight: 700;
  color: var(--green-m); margin-bottom: 2px;
}

.skbox-t span { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }

.ovrlbl {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.77rem; color: var(--muted); cursor: pointer; margin-bottom: 9px;
}

.ovrlbl input[type=checkbox] { accent-color: var(--green); width: 13px; height: 13px; cursor: pointer; }

.skgrid {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 6px;
  transition: opacity 0.2s;
}

.skgrid.off { opacity: 0.25; pointer-events: none; }

.skb {
  padding: 11px 0;
  border: 2px solid var(--border); background: var(--bg);
  border-radius: 9px; font-size: 0.88rem; font-weight: 600;
  color: var(--muted); cursor: pointer; transition: all 0.15s;
  font-family: 'Lora', serif;
}

.skb:hover { border-color: var(--green); color: var(--green-m); }
.skb.on { background: var(--green); border-color: var(--green); color: white; }

.selw { position: relative; }
.selw::after { content:'▾'; position:absolute; right:13px; top:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; font-size:0.82rem; }
select {
  width:100%; padding:11px 13px;
  font-size:0.9rem; font-family:'Source Sans 3',sans-serif;
  color:var(--text); border:2px solid var(--border); border-radius:10px;
  background:var(--bg); outline:none; appearance:none; cursor:pointer;
  transition:border-color 0.2s;
}
select:focus { border-color: var(--green); }

.sep { height:1px; background:var(--border); margin:18px 0; }

.disclaimer {
  background: var(--amber);
  border: 1.5px solid var(--amber-b);
  border-radius: 11px;
  padding: 14px 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-top: 20px;
}

.disclaimer svg {
  width: 16px; height: 16px;
  stroke: var(--amber-t); fill: none;
  stroke-width: 2; stroke-linecap: round;
  flex-shrink: 0; margin-top: 2px;
}

.disclaimer strong {
  display: block;
  font-size: 0.83rem; font-weight: 700;
  color: var(--amber-t); margin-bottom: 3px;
}

.disclaimer p {
  font-size: 0.78rem; color: #7a5020; line-height: 1.55;
}

.disc-bar {
  display:flex; align-items:flex-start; gap:9px;
  background:var(--green-l); border:1px solid rgba(26,92,58,0.18);
  border-radius:9px; padding:10px 12px; margin-bottom:18px;
}
.disc-bar svg { width:13px; height:13px; stroke:var(--green-m); fill:none; stroke-width:2; stroke-linecap:round; flex-shrink:0; margin-top:2px; }
.disc-bar p { flex:1; font-size:0.75rem; color:var(--muted); line-height:1.45; }
.disc-bar button { background:none; border:none; cursor:pointer; color:var(--muted); padding:0; display:flex; }
.disc-bar button:hover { color:var(--text); }
.disc-bar button svg { width:12px; height:12px; }

.netto-box {
  background: var(--green-l);
  border-radius: 12px;
  padding: 24px 18px 20px;
  text-align: center;
  margin-bottom: 20px;
  position: relative; overflow: hidden;
}
.netto-box::before {
  content:''; position:absolute; top:-50px; right:-50px;
  width:120px; height:120px; background:rgba(26,92,58,0.06); border-radius:50%;
}

.netto-lbl {
  font-size: 0.74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: var(--green-m); margin-bottom: 6px;
}

.netto-val {
  font-family: 'Lora', serif;
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 700; color: var(--green);
  line-height: 1; letter-spacing: -0.8px;
  transition: all 0.3s;
}

.netto-per {
  font-size: 0.8rem; color: var(--green-m); margin-top: 6px;
}

.bklist { list-style: none; display: flex; flex-direction: column; gap: 6px; }

.bk {
  display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 8px;
  transition: background 0.12s;
}
.bk:hover { background: var(--bg); }
.bk-dot { width: 8px; height: 8px; border-radius: 2px; flex-shrink: 0; }
.bk-name { flex: 1; font-size: 0.82rem; font-weight: 500; color: var(--text); }
.bk-pct { font-size: 0.72rem; color: var(--muted); margin-right: 2px; }
.bk-amt { font-family: 'Lora', serif; font-size: 0.84rem; font-weight: 600; color: var(--text); text-align: right; min-width: 72px; }

.bk.is-n { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 2px; }
.bk.is-n .bk-name { font-weight: 700; color: var(--green); }
.bk.is-n .bk-amt { color: var(--green); font-size: 0.94rem; }

.eff-row {
  margin-top: 14px; padding: 12px 14px;
  background: #3a3530; border-radius: 9px;
  display: flex; justify-content: space-between; align-items: center;
}

.eff-row span:first-child { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.eff-row span:last-child { font-family: 'Lora', serif; font-size: 1rem; font-weight: 700; color: white; }

.res-note { text-align: center; font-size: 0.7rem; color: var(--muted); margin-top: 11px; }

.how {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 24px 80px;
  position: relative; z-index: 1;
}

.how-head {
  text-align: center; margin-bottom: 36px;
}

.how-head h2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 700; color: var(--text);
  letter-spacing: -0.3px; margin-bottom: 8px;
}

.how-head p { font-size: 0.88rem; color: var(--muted); font-weight: 300; }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.how-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 28px 22px;
  text-align: center;
  box-shadow: var(--sh);
  position: relative;
  overflow: hidden;
}

.how-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--green);
  border-radius: 3px 3px 0 0;
}

.how-num {
  font-family: 'Lora', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--border); line-height: 1;
  margin-bottom: 12px; letter-spacing: -1px;
}

.how-ico {
  width: 48px; height: 48px;
  background: var(--green-l); border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
}

.how-ico svg { width: 22px; height: 22px; stroke: var(--green-m); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.how-card h3 {
  font-family: 'Lora', serif; font-size: 1rem; font-weight: 700;
  margin-bottom: 7px; color: var(--text);
}

.how-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; font-weight: 300; }

footer {
  text-align: center; padding: 24px;
  font-size: 0.76rem; color: var(--muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
  position: relative; z-index: 1;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
  header { padding: 0 18px; }
  .header-sub { display: none; }
  .hero { padding: 56px 18px 48px; }
  .wrap { padding: 0 16px 56px; }
  .calc-grid { grid-template-columns: 1fr; }
  .results-card { position: static; }
  .how { padding: 16px 16px 60px; }
  .how-grid { grid-template-columns: 1fr; }
}
