@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;1,8..60,400;1,8..60,600&family=Manrope:wght@400;500;600;700&display=swap');
/* seo.css — стили для контентных/посадочных страниц calc.podlevskikh.com
   Самодостаточный файл (не зависит от styles.css SPA). Бренд podlevskikh: тёплая бумага + золото #9A6A28 + антиква. */
:root {
  --primary: #9A6A28;
  --primary-dark: #7E551E;
  --secondary: #9A6A28;
  --success: #3E7D55;
  --danger: #B0472F;
  --ink: #211D16;
  --muted: #6B6354;
  --line: #E5DCC9;
  --bg: #F7F1E5;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.08), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 20px 25px -5px rgba(0,0,0,.10), 0 8px 10px -6px rgba(0,0,0,.05);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand { font-family: "Source Serif 4", Georgia, "Times New Roman", serif; font-weight: 600; }
.wrap { max-width: 860px; margin: 0 auto; padding: 0 18px; }
.wrap-wide { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Шапка */
.topbar { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.topbar .row { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand { font-weight: 800; font-size: 19px; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.brand:hover { text-decoration: none; }
.brand .dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); }
.topnav { display: flex; gap: 18px; font-size: 15px; font-weight: 600; }
.topnav a { color: var(--muted); }
.topnav a:hover { color: var(--primary-dark); text-decoration: none; }
@media (max-width: 680px) { .topnav { display: none; } }

/* Хлебные крошки */
.crumbs { font-size: 14px; color: var(--muted); padding: 16px 0 4px; }
.crumbs a { color: var(--muted); }

/* Заголовки */
.hero { padding: 26px 0 8px; }
h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.15; letter-spacing: -.02em; margin-bottom: 12px; }
.lead { font-size: 19px; color: var(--muted); margin-bottom: 8px; }
h2 { font-size: 26px; margin: 38px 0 14px; letter-spacing: -.01em; }
h3 { font-size: 20px; margin: 24px 0 10px; }
p { margin-bottom: 14px; }
ul, ol { margin: 0 0 16px 22px; }
li { margin-bottom: 6px; }
section { margin-bottom: 8px; }

/* Карточки */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); margin: 18px 0; }
.callout { border-left: 4px solid var(--primary); background: #EEE2C9; border-radius: 10px; padding: 14px 16px; margin: 18px 0; font-size: 15.5px; }
.callout.warn { border-color: var(--danger); background: #fef2f2; }
.callout.ok { border-color: var(--success); background: #ecfdf5; }

/* Таблицы */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--line); margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; background: var(--card); }
th, td { padding: 9px 12px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: #f1f5f9; font-weight: 700; position: sticky; top: 0; }
tbody tr:hover { background: #f8fafc; }
td.left, th.left { text-align: left; white-space: normal; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 700; }
.b-2 { background: #fee2e2; color: #b91c1c; }
.b-3 { background: #fef3c7; color: #b45309; }
.b-4 { background: #F3E8CE; color: #B07A1E; }
.b-5 { background: #dcfce7; color: #15803d; }
.hot { background: #9A6A28; color: #FCF8F0; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 16px; cursor: pointer; border: none; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary)); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { box-shadow: var(--shadow-lg); color: #fff; }
.btn-ghost { background: #fff; border: 1.5px solid var(--line); color: var(--ink); }
.btn-lg { padding: 16px 28px; font-size: 18px; }

/* Сетка ссылок */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: block; transition: var(--transition, all .2s); }
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-2px); }
.tile b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.tile span { color: var(--muted); font-size: 14px; }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 4px 16px; margin: 10px 0; }
details.faq summary { font-weight: 700; cursor: pointer; padding: 12px 0; list-style: none; font-size: 16.5px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::before { content: "＋"; color: var(--primary); margin-right: 10px; font-weight: 700; }
details.faq[open] summary::before { content: "－"; }
details.faq p { padding: 0 0 14px; color: #334155; margin: 0; }

/* CTA репетитор */
.tutor-cta { background: #EEE2C9; border: 1px solid var(--hairline-2, #D8CDB6); border-radius: var(--radius); padding: 26px; margin: 34px 0; text-align: center; }
.tutor-cta h3 { margin-top: 0; }
.tutor-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }

/* Калькулятор баллов поступления */
.matcher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.score-field label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.score-field input, .score-field select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px; font-size: 16px; background: #fff; }
.score-field input:focus, .score-field select:focus { outline: none; border-color: var(--primary); }
.prog { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 10px 0; background: var(--card); }
.prog.fit-budget { border-left: 4px solid var(--success); }
.prog.fit-paid { border-left: 4px solid var(--warning, #f59e0b); }
.prog.fit-no { opacity: .55; border-left: 4px solid var(--line); }
.prog .ptop { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: baseline; }
.prog .pname { font-weight: 700; font-size: 17px; }
.prog .pmeta { color: var(--muted); font-size: 14px; }
.prog .ptag { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.t-budget { background: #dcfce7; color: #15803d; }
.t-paid { background: #fef3c7; color: #b45309; }
.t-no { background: #f1f5f9; color: #64748b; }

/* Футер */
.site-footer { border-top: 1px solid var(--line); margin-top: 50px; padding: 28px 0; color: var(--muted); font-size: 14px; background: var(--card); }
.site-footer a { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 10px 0; }
.muted { color: var(--muted); font-size: 14px; }
hr { border: none; border-top: 1px solid var(--line); margin: 24px 0; }
