/* STPektas Blog - tasarım taslağı (ana sayfa + hesap sayfası ortak stil) */
:root {
  --bg: #f8f9fb;
  --card: #ffffff;
  --text: #334155;
  --heading: #1e293b;
  --muted: #7b8794;
  --line: #e7ebf0;
  --accent: #3f8f8b;          /* logodaki petrol yeşilinin yumuşatılmış hali */
  --accent-soft: #e4f1f0;
  --accent-dark: #2d6e6b;
  --radius: 14px;
  --header-h: 68px;

  --c-blue: #e6eef8;   --c-blue-t: #3d6a9e;
  --c-green: #e5f2ea;  --c-green-t: #3c7a55;
  --c-peach: #fbece0;  --c-peach-t: #a8602d;
  --c-lilac: #efe9f7;  --c-lilac-t: #6b4c9a;
  --c-sand: #f6f0dc;   --c-sand-t: #8a7424;
  --c-rose: #fbe8ec;   --c-rose-t: #a64760;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65; font-size: 16px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--heading); line-height: 1.25; margin: 0; }
button { font-family: inherit; }

/* pastel renk yardımcıları */
.c-blue  { background: var(--c-blue);  color: var(--c-blue-t); }
.c-green { background: var(--c-green); color: var(--c-green-t); }
.c-peach { background: var(--c-peach); color: var(--c-peach-t); }
.c-lilac { background: var(--c-lilac); color: var(--c-lilac-t); }
.c-sand  { background: var(--c-sand);  color: var(--c-sand-t); }
.c-rose  { background: var(--c-rose);  color: var(--c-rose-t); }

/* ---------- Üst çubuk (ana sitedeki başlıkla aynı yapı) ---------- */
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar { display: flex; align-items: center; gap: 28px; height: var(--header-h); padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--heading); flex-shrink: 0; }
.brand:hover { text-decoration: none; }
.brand img { height: 46px; width: 46px; display: block; }
.brand span { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 26px; letter-spacing: 0.5px; color: #2b2b2b; }

.mainnav { display: flex; gap: 6px; margin: 0 auto; }
.mainnav a {
  font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 16px;
  color: #2b2b2b; padding: 8px 14px; border-radius: 8px; white-space: nowrap;
}
.mainnav a:hover { background: var(--accent-soft); text-decoration: none; }
.mainnav a.active { color: var(--accent-dark); background: var(--accent-soft); }

.menu-btn {
  display: none; border: 1.5px solid var(--line); background: #fff; border-radius: 8px;
  padding: 6px 10px; font-size: 16px; cursor: pointer; color: var(--text);
}

.searchbox { position: relative; width: 280px; flex-shrink: 0; }
.searchbox input {
  width: 100%; border: 1.5px solid var(--line); background: #f3f6f9; border-radius: 999px;
  padding: 9px 16px; font: inherit; font-size: 14.5px; outline: 0; color: var(--text);
}
.searchbox input:focus { background: #fff; border-color: var(--accent); }
.q-res {
  position: absolute; left: 0; right: 0; top: 46px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 28px rgba(30,41,59,.12); display: none; overflow: hidden;
}
.q-res.show { display: block; }
.q-res a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--text); font-size: 14.5px; }
.q-res a:hover { background: var(--accent-soft); text-decoration: none; }
.q-res small { color: var(--muted); }
.q-res .none { padding: 12px 14px; color: var(--muted); font-size: 14px; }

.lang { position: relative; flex-shrink: 0; }
.lang > button {
  display: flex; align-items: center; gap: 8px; border: 0; background: transparent;
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; white-space: nowrap;
}
.lang i { width: 18px; height: 18px; border-radius: 50%; background: #d9363e; display: inline-block; position: relative; }
html[lang="en"] .lang i { background: #1d4e89; }
.lang i::after { content: ""; position: absolute; left: 5px; top: 5px; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.lang-menu {
  position: absolute; right: 0; top: 40px; z-index: 40; min-width: 148px; padding: 6px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 28px rgba(30,41,59,.12);
}
.lang-menu button {
  display: block; width: 100%; text-align: left; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); padding: 8px 12px; border-radius: 8px;
}
.lang-menu button:hover, .lang-menu button.is-current { background: var(--accent-soft); color: var(--accent-dark); }

html[lang="en"] .only-tr { display: none !important; }
html:not([lang="en"]) .only-en { display: none !important; }

/* ---------- Ana düzen: sol menü ekranın soluna yaslı ---------- */
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 32px; padding: 22px 24px 0; align-items: start; }
.shell > main { min-width: 0; }
.left {
  position: sticky; top: calc(var(--header-h) + 16px);
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
  scrollbar-width: thin; scrollbar-color: #d5dce4 transparent;
}

.side-title {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px;
  color: var(--muted); margin: 0 0 8px 6px;
}
.side-title button { border: 0; background: transparent; color: var(--accent-dark); font-size: 12px; font-weight: 600; cursor: pointer; text-transform: none; letter-spacing: 0; }

.cat-item { margin-bottom: 4px; }
.cat-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: transparent; padding: 8px 10px; border-radius: 10px; cursor: pointer; color: var(--text);
  font-size: 14.5px; font-weight: 600;
}
.cat-btn:hover { background: #eef2f6; }
.cat-item.open > .cat-btn { background: #fff; box-shadow: 0 0 0 1px var(--line); }
.cat-btn .dot { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.cat-btn .nm { flex: 1; }
.cat-btn .cnt { font-size: 12px; color: var(--muted); background: #eef2f6; border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.cat-btn .chev { color: var(--muted); transition: transform .15s ease; font-size: 16px; }
.cat-item.open .chev { transform: rotate(90deg); }

.sub { list-style: none; margin: 4px 0 8px 22px; padding: 0 0 0 12px; border-left: 2px solid var(--line); display: none; }
.cat-item.open .sub { display: block; }
.sub a { display: block; padding: 6px 10px; font-size: 14px; color: var(--text); border-radius: 8px; }
.sub a:hover { background: #eef2f6; text-decoration: none; }
.sub a.current { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.sub a.more { color: var(--accent-dark); font-weight: 700; }

.side-recent { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.recent { list-style: none; margin: 0; padding: 0; }
.recent a { display: block; padding: 7px 10px; border-radius: 10px; color: var(--text); }
.recent a:hover { background: #eef2f6; text-decoration: none; }
.recent b { display: block; font-size: 14px; color: var(--heading); font-weight: 600; }
.recent small { color: var(--muted); font-size: 12.5px; }
.empty { margin: 0 6px; font-size: 13px; color: var(--muted); }

/* ---------- Reklam alanları (yalnızca orta sütunda) ---------- */
.ad {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  border: 1.5px dashed #cfd7e0; background: #f1f4f8; color: #94a0ad;
  border-radius: 10px; font-size: 12px; text-align: center; line-height: 1.4;
  min-height: 100px; margin: 22px 0;
}
.ad small { display: block; font-size: 10.5px; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 2px; }
.ad .adsbygoogle { display: block; width: 100%; }
.ad-wide   { min-height: 100px; margin: 34px 0; }
.ad-inline { min-height: 120px; margin: 26px 0; }
.ad:has(ins[data-ad-status="filled"]) {
  display: block; border: 0; background: transparent; min-height: 0; border-radius: 0;
}
.ad:has(ins[data-ad-status="filled"]) small { display: none; }

/* ---------- Ana sayfa ---------- */
.home-main { max-width: 1180px; margin: 0 auto; width: 100%; }
/* Başlık kartı: logodaki paralel çizgilerden esinlenen yumuşak desen */
.hero {
  position: relative; overflow: hidden; border-radius: 24px; padding: 40px 40px 36px;
  background: linear-gradient(120deg, #e4f1f0 0%, #eaf0f9 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(63,143,139,.22) 0 7px, transparent 7px 20px);
  -webkit-mask-image: linear-gradient(to left, #000 0%, transparent 55%);
          mask-image: linear-gradient(to left, #000 0%, transparent 55%);
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -1px; max-width: 640px; }
.hero p { margin: 10px 0 20px; color: #52667a; font-size: 17px; max-width: 560px; }
.hero .stats { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .stats span {
  background: rgba(255,255,255,.75); border-radius: 999px; padding: 6px 14px;
  font-size: 13.5px; font-weight: 700; color: var(--accent-dark);
}

/* Büyük kategori kutuları */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.cat-tile {
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 150px; padding: 20px 22px; border-radius: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.cat-tile::after {
  content: ""; position: absolute; right: -28px; top: -28px; width: 110px; height: 110px;
  border-radius: 50%; background: rgba(255,255,255,.5);
}
.cat-tile:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30,41,59,.12); text-decoration: none; }
.cat-tile .ic {
  position: absolute; left: 20px; top: 18px; z-index: 1;
  width: 48px; height: 48px; border-radius: 14px; background: #fff;
  display: grid; place-items: center; font-size: 25px; box-shadow: 0 4px 12px rgba(30,41,59,.08);
}
.cat-tile b { display: block; font-size: 17.5px; line-height: 1.25; position: relative; z-index: 1; }
.cat-tile small { display: block; font-size: 13px; opacity: .8; font-weight: 600; margin-top: 2px; position: relative; z-index: 1; }
.cat-tile .go {
  position: absolute; right: 18px; bottom: 18px; z-index: 1; font-style: normal; font-size: 20px;
  opacity: 0; transform: translateX(-6px); transition: all .18s ease;
}
.cat-tile:hover .go { opacity: .8; transform: none; }

/* Popüler hesaplayıcılar: açıklamasız, büyük kartlar */
.pop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pop {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  gap: 16px; min-height: 120px; padding: 20px 22px; background: var(--card);
  border: 1px solid var(--line); border-radius: 18px; color: var(--heading);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.pop:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 26px rgba(30,41,59,.08); text-decoration: none; }
.pop .pill { font-size: 11.5px; font-weight: 700; padding: 3px 11px; border-radius: 999px; }
.pop h3 { font-size: 18px; }
.pop .arrow { position: absolute; right: 20px; top: 18px; color: var(--muted); font-size: 18px; transition: transform .18s ease, color .18s ease; }
.pop:hover .arrow { transform: translateX(4px); color: var(--accent-dark); }

.section { margin-top: 34px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 20px; }
.section-head a { font-size: 14px; font-weight: 600; }

.recent-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.recent-strip a {
  flex: 0 0 auto; min-width: 190px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 10px 14px; color: var(--text);
}
.recent-strip a:hover { border-color: var(--accent); text-decoration: none; }
.recent-strip b { display: block; font-size: 14px; color: var(--heading); }
.recent-strip small { color: var(--muted); font-size: 12.5px; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.tool {
  display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; color: inherit;
}
.tool:hover { border-color: var(--accent); text-decoration: none; }
.tool .tag { font-size: 11.5px; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .5px; }
.tool h3 { font-size: 16px; }
.tool .d { font-size: 13.5px; color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: inherit; display: block; }
.post:hover { text-decoration: none; border-color: var(--accent); }
.post .thumb { height: 100px; display: flex; align-items: center; justify-content: center; font-size: 34px; }
.post .body { padding: 14px 16px 16px; }
.post .pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 8px; }
.post h3 { font-size: 15.5px; margin-bottom: 6px; }
.post p { margin: 0; font-size: 13.5px; color: var(--muted); }

footer { margin-top: 56px; border-top: 1px solid var(--line); background: var(--card); padding: 28px 24px; color: var(--muted); font-size: 13.5px; }
footer .in { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
footer a { color: var(--muted); margin-left: 16px; }

/* ---------- Hesap sayfası ----------
   İki düzen vardır; sayfada <div class="layout side"> veya <div class="layout wide"> yazılır:
   side = ortada yazı, sağda sabit hesaplayıcı (küçük hesaplar)
   wide = üstte geniş hesaplayıcı, altında yazı (geniş yer isteyen hesaplar) */
.layout { display: grid; gap: 0 32px; align-items: start; }
.layout.side {
  grid-template-columns: minmax(0, 1fr) 380px;
  grid-template-areas: "head calc" "body calc";
  grid-template-rows: auto 1fr;
}
.layout.wide {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "calc" "body";
}
.head { grid-area: head; }
.body-col { grid-area: body; }
.calc-col { grid-area: calc; }
.head, .body-col { max-width: 880px; width: 100%; margin: 0 auto; }
.crumbs { font-size: 13px; color: var(--muted); padding: 0 0 10px; }
.crumbs a { color: var(--muted); }
.page-title h1 { font-size: clamp(26px, 3.2vw, 32px); letter-spacing: -0.6px; margin-bottom: 8px; }
.page-title p { margin: 0 0 8px; color: var(--muted); }

.layout.side .calc-col { position: sticky; top: calc(var(--header-h) + 16px); }
.layout.wide .calc-col { max-width: 880px; width: 100%; margin: 4px auto 22px; }
.calc {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: 0 8px 26px rgba(30,41,59,.06); padding: 20px 22px;
}
.layout.side .calc { max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; }
/* geniş düzende girdiler solda, sonuç + rapor butonu sağda */
.layout.wide .calc-body { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.layout.wide .result { margin-top: 0; }
.calc h2 { font-size: 16px; margin-bottom: 14px; }
.field { margin-bottom: 11px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 5px; }
.input { display: flex; background: #f3f6f9; border: 1.5px solid transparent; border-radius: 10px; }
.input:focus-within { background: #fff; border-color: var(--accent); }
.input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 9px 12px; font: inherit; font-weight: 600; color: var(--heading); }
.input .u { padding: 0 12px; display: flex; align-items: center; font-size: 12.5px; font-weight: 700; color: var(--muted); border-left: 1.5px solid var(--line); }

.result { background: var(--accent-soft); border-radius: 14px; padding: 16px; text-align: center; margin-top: 16px; }
.result .lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--accent-dark); }
.result .val { font-size: 34px; font-weight: 800; color: var(--heading); line-height: 1.2; margin: 4px 0 6px; word-break: break-word; }
.badge { display: inline-block; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; background: #fff; color: var(--muted); }
.badge.lam { background: var(--c-green); color: var(--c-green-t); }
.badge.gec { background: var(--c-sand); color: var(--c-sand-t); }
.badge.tur { background: var(--c-peach); color: var(--c-peach-t); }
.saved-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); line-height: 1.45; }

/* Kilitli rapor butonu (her hesaplayıcının altında aynı) */
.btn-lock {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  margin-top: 12px; padding: 11px 16px; border: 1.5px solid var(--accent); border-radius: 12px;
  background: #fff; color: var(--accent-dark); font: inherit; font-weight: 700; font-size: 14.5px; cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-lock:hover { background: var(--accent); color: #fff; text-decoration: none; }
.btn-lock svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-hint { text-align: center; font-size: 12px; color: var(--muted); margin: 6px 0 0; }

.article { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; margin-top: 18px; }
.article h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.6px; margin: 8px 0 12px; }
.article h2 { font-size: 20px; margin: 26px 0 8px; }
.article h2:first-child { margin-top: 0; }
.article h3 { font-size: 16px; margin: 16px 0 4px; }
.article .flow-fig { margin: 8px 0 16px; }
.article .flow-fig img { width: min(100%, 520px); height: auto; display: block; }
.article .flow-fig.excel-shot img { width: min(100%, 860px); }
.article .flow-fig figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.article p { margin: 0 0 12px; }
.formula { background: #f3f6f9; border-radius: 10px; padding: 14px 18px; font-family: "Cascadia Mono", Consolas, monospace; font-size: 16px; text-align: center; color: var(--heading); margin: 12px 0; overflow-x: auto; }
.formula.has-copy { display: flex; align-items: center; gap: 14px; text-align: left; overflow: hidden; }
.formula.has-copy .formula-code { flex: 1; min-width: 0; text-align: center; overflow-x: auto; }
.copy-code {
  flex: none; margin-left: auto; border: 1px solid #c9d5dc; background: #fff; color: var(--accent-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 13px; font-weight: 700; border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap;
}
.copy-code:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.formula.frac { display: inline-grid; grid-template-columns: auto auto; align-items: center; justify-content: center; gap: 8px; width: 100%; }
.formula .stack { display: flex; flex-direction: column; align-items: center; height: auto; gap: 0; padding: 0; }
.formula .stack b { font-weight: 500; border-bottom: 1.5px solid var(--heading); padding: 0 8px 5px; }
.formula .stack i { font-style: normal; padding: 5px 8px 0; }
.note { font-size: 13px; color: var(--muted); border-left: 3px solid var(--line); padding-left: 12px; }
.article ul { margin: 0 0 12px; padding-left: 18px; }
.article li { margin: 4px 0; }
.article table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 14.5px; }
.article th, .article td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.article th { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px; }
.article .table-wrap { overflow-x: auto; }

/* Yazı solda akar, resimler sağda alt alta ve sabit kalır */
.layout.read {
  display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: start;
}
.layout.read .article { margin-top: 0; }
.read-shots {
  position: sticky; top: calc(var(--header-h) + 16px);
  display: flex; flex-direction: column; gap: 12px;
  max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto;
}
.shot {
  display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; cursor: zoom-in; overflow: hidden; text-align: left; font: inherit; color: inherit;
}
.shot img { width: 100%; height: 190px; object-fit: contain; background: #fff; display: block; }
.shot .cap { display: block; font-size: 12px; line-height: 1.4; color: var(--muted); padding: 6px 8px 8px; }
.viewer {
  border: 0; padding: 36px 16px 16px; border-radius: 16px; background: #fff;
  max-width: min(880px, 92vw); box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
}
.viewer::backdrop { background: rgba(15, 23, 42, .55); }
.viewer img { display: block; max-width: 100%; max-height: min(78vh, 760px); margin: 0 auto; }
.viewer-x {
  position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: var(--accent-soft); color: var(--accent-dark); font-size: 22px; line-height: 1; cursor: pointer;
}

.related { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 14px; }

/* ---------- Dar ekran ---------- */
@media (max-width: 1280px) {
  .searchbox { width: 220px; }
  .bar { gap: 18px; }
}
@media (max-width: 1180px) {
  /* dar ekranda "side" düzeni de "wide" gibi tek sütuna iner: yazı başlık, hesaplayıcı, içerik */
  .layout.side {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "calc" "body";
    grid-template-rows: auto;
  }
  .layout.side .calc-col { position: static; max-width: 880px; width: 100%; margin: 4px auto 22px; }
  .layout.side .calc { max-height: none; }
}
@media (max-width: 760px) {
  .layout.wide .calc-body { grid-template-columns: 1fr; gap: 0; }
  .layout.wide .result { margin-top: 16px; }
}
@media (max-width: 1000px) {
  .bar { flex-wrap: wrap; height: auto; padding: 10px 16px; row-gap: 8px; }
  .mainnav { order: 5; width: 100%; margin: 0; overflow-x: auto; }
  .searchbox { flex: 1; width: auto; }
}
@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; padding: 16px; }
  .menu-btn { display: block; }
  .left { display: none; position: static; max-height: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
  body.side-open .left { display: block; }
  .tools, .posts, .pop-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .hero { padding: 28px 22px; }
  .tools, .posts, .related, .pop-grid { grid-template-columns: 1fr; }
  .brand span { font-size: 22px; }
  .article { padding: 18px; }
  .layout.read { grid-template-columns: 1fr; }
  .read-shots { position: static; max-height: none; order: -1; flex-direction: row; }
  .shot { flex: 1; min-width: 0; }
  .shot img { height: 140px; }
}
