/* budzhet-semyi.study — design signature: warm editorial magazine, family-first */
:root {
  --coral: #d94f35;
  --coral-light: #fdf0ed;
  --coral-dark: #a83825;
  --blue: #2d6a9f;
  --blue-light: #eaf1f8;
  --blue-dark: #1d4d76;
  --bg: #fffaf8;
  --surface: #ffffff;
  --border: #ecddd9;
  --text: #2c1f1c;
  --text-muted: #7a5c57;
  --text-light: #b89490;
  --radius: 12px;
  --radius-sm: 7px;
  --shadow: 0 2px 14px rgba(217,79,53,.09);
  --shadow-md: 0 6px 28px rgba(217,79,53,.14);
  --max-w: 1140px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); font-size: 16px; line-height: 1.75; color: var(--text); background: var(--bg); }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }

/* ── Header ── */
.site-header { background: var(--surface); border-bottom: 3px solid var(--coral); position: sticky; top: 0; z-index: 100; box-shadow: var(--shadow); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--coral); letter-spacing: -.01em; }
.logo-icon { width: 38px; height: 38px; background: var(--coral); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem; flex-shrink: 0; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a { font-size: .87rem; font-weight: 500; color: var(--text); padding: 6px 13px; border-radius: 20px; transition: background .2s, color .2s; }
.site-nav a:hover, .site-nav a.active { background: var(--coral-light); color: var(--coral); text-decoration: none; }
.nav-cta { background: var(--coral) !important; color: #fff !important; font-weight: 700 !important; }
.nav-cta:hover { background: var(--coral-dark) !important; }

/* ── Breadcrumb ── */
.breadcrumb { padding: 14px 0 0; font-size: .82rem; color: var(--text-muted); }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--coral); }
.breadcrumb span + span::before { content: ' › '; margin: 0 5px; }

/* ── Hero — magazine split ── */
.hero { background: linear-gradient(135deg, #2c1f1c 0%, #4a2e28 60%, var(--coral-dark) 100%); color: #fff; padding: 68px 0 56px; }
.hero-inner { display: grid; grid-template-columns: 1fr 340px; gap: 48px; align-items: center; }
.hero-tag { display: inline-block; background: var(--coral); border-radius: 4px; padding: 3px 12px; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 900; line-height: 1.18; margin-bottom: 18px; }
.hero p { font-size: 1.08rem; opacity: .88; margin-bottom: 28px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); padding: 28px; }
.hero-stat { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.hero-stat:last-child { border-bottom: none; }
.hero-stat-num { font-size: 1.6rem; font-weight: 900; color: var(--coral); min-width: 70px; }
.hero-stat-text { font-size: .88rem; opacity: .85; line-height: 1.4; }

/* ── Trust bar ── */
.trust-bar { background: var(--coral); color: #fff; padding: 14px 0; }
.trust-bar-inner { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; }
.trust-item-icon { font-size: 1.2rem; }

/* ── Buttons ── */
.btn { display: inline-block; font-weight: 700; border-radius: var(--radius-sm); padding: 13px 26px; font-size: .97rem; cursor: pointer; border: none; transition: transform .15s, box-shadow .15s; text-decoration: none !important; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary { background: var(--coral); color: #fff; }
.btn-primary:hover { background: var(--coral-dark); color: #fff; }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-sm { padding: 9px 18px; font-size: .86rem; }

/* ── Section ── */
.section { padding: 60px 0; }
.section-sm { padding: 40px 0; }
.section-title { font-size: clamp(1.35rem, 2.8vw, 1.9rem); font-weight: 900; color: var(--text); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 32px; }
.section-center { text-align: center; }
.section-center .section-sub { margin-left: auto; margin-right: auto; max-width: 580px; }

/* ── Story cards (magazine style) ── */
.story-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.story-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.story-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.story-card-cover { height: 148px; display: flex; align-items: center; justify-content: center; font-size: 3rem; }
.story-card-cover.c1 { background: linear-gradient(135deg, #fdecea, #f8c5bb); }
.story-card-cover.c2 { background: linear-gradient(135deg, #eaf1f8, #c5d9f0); }
.story-card-cover.c3 { background: linear-gradient(135deg, #fdf5e6, #f5dca8); }
.story-card-cover.c4 { background: linear-gradient(135deg, #edf7ed, #b8e0b8); }
.story-card-cover.c5 { background: linear-gradient(135deg, #f3eafc, #d8b8f5); }
.story-card-body { padding: 22px; }
.story-tag { display: inline-block; background: var(--coral-light); color: var(--coral); font-size: .72rem; font-weight: 700; padding: 2px 9px; border-radius: 10px; margin-bottom: 10px; letter-spacing: .04em; text-transform: uppercase; }
.story-tag.blue { background: var(--blue-light); color: var(--blue); }
.story-card h3 { font-size: 1.02rem; font-weight: 700; line-height: 1.4; margin-bottom: 8px; }
.story-card h3 a { color: var(--text); }
.story-card h3 a:hover { color: var(--coral); text-decoration: none; }
.story-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.6; }
.story-card-link { display: inline-block; margin-top: 14px; font-size: .86rem; font-weight: 600; color: var(--coral); }

/* ── Featured box ── */
.featured-box { background: linear-gradient(135deg, #fff5f3, #f0f7ff); border: 2px solid var(--coral); border-radius: var(--radius); padding: 36px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; }
.featured-box h3 { font-size: 1.45rem; font-weight: 900; color: var(--coral-dark); margin-bottom: 10px; }
.featured-box p { color: var(--text-muted); margin-bottom: 16px; }
.featured-price { font-size: 2rem; font-weight: 900; color: var(--coral); }
.featured-price-old { font-size: 1rem; color: var(--text-light); text-decoration: line-through; margin-right: 8px; }
.badge { display: inline-block; font-size: .73rem; font-weight: 700; padding: 3px 10px; border-radius: 10px; }
.badge-coral { background: var(--coral-light); color: var(--coral); }
.badge-blue { background: var(--blue-light); color: var(--blue); }
.badge-hot { background: var(--coral); color: #fff; }
.badge-wrap { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 14px; }

/* ── CTA strips ── */
.cta-strip { background: var(--coral-light); border: 1px solid #f0b8ad; border-left: 4px solid var(--coral); border-radius: var(--radius-sm); padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin: 32px 0; }
.cta-strip p { font-weight: 600; font-size: .97rem; margin: 0; }
.cta-banner { background: linear-gradient(135deg, #2c1f1c, var(--coral-dark)); border-radius: var(--radius); padding: 48px 40px; text-align: center; color: #fff; }
.cta-banner h2 { font-size: 1.75rem; font-weight: 900; margin-bottom: 10px; }
.cta-banner p { opacity: .88; margin-bottom: 26px; font-size: 1.02rem; }

/* ── Article layout ── */
.article-layout { display: grid; grid-template-columns: 1fr 290px; gap: 44px; align-items: start; }
.article-body h2 { font-size: 1.4rem; font-weight: 800; margin: 38px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--coral-light); }
.article-body h3 { font-size: 1.1rem; font-weight: 700; margin: 24px 0 8px; }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 16px; }
.article-body li { margin-bottom: 6px; }
.article-body table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: .92rem; }
.article-body table th { background: var(--coral); color: #fff; padding: 11px 14px; text-align: left; }
.article-body table td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.article-body table tr:nth-child(even) td { background: var(--coral-light); }
.article-intro { font-size: 1.08rem; color: var(--text-muted); border-left: 4px solid var(--coral); padding-left: 18px; margin-bottom: 26px; line-height: 1.7; }

/* ── Sidebar ── */
.sidebar { position: sticky; top: 82px; }
.sidebar-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.sidebar-box h4 { font-size: .88rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 13px; }
.sidebar-box ul { list-style: none; padding: 0; }
.sidebar-box ul li { padding: 5px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.sidebar-box ul li:last-child { border-bottom: none; }
.sidebar-cta { background: linear-gradient(135deg, var(--coral-light), var(--blue-light)); border: 2px solid var(--coral); border-radius: var(--radius); padding: 22px; text-align: center; }
.sidebar-cta h4 { font-size: 1rem; font-weight: 800; color: var(--coral-dark); margin-bottom: 8px; }
.sidebar-cta p { font-size: .86rem; color: var(--text-muted); margin-bottom: 14px; }
.sidebar-cta .price { font-size: 1.5rem; font-weight: 900; color: var(--coral); margin-bottom: 12px; }

/* ── Note / Alert ── */
.note { background: var(--coral-light); border-left: 4px solid var(--coral); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; padding: 14px 18px; font-size: .92rem; margin: 18px 0; }
.note strong { color: var(--coral-dark); }
.note-blue { background: var(--blue-light); border-left-color: var(--blue); }
.note-blue strong { color: var(--blue-dark); }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.step-num { width: 34px; height: 34px; background: var(--coral); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.step h3 { font-size: .97rem; font-weight: 700; margin-bottom: 6px; }
.step p { font-size: .87rem; color: var(--text-muted); }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); }
.faq-q { width: 100%; background: none; border: none; padding: 16px 20px; text-align: left; font-size: .97rem; font-weight: 600; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--text); }
.faq-q::after { content: '+'; font-size: 1.3rem; color: var(--coral); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { display: none; padding: 0 20px 16px; color: var(--text-muted); font-size: .92rem; line-height: 1.7; }
.faq-item.open .faq-a { display: block; }

/* ── Reviews ── */
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; }
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.review-stars { color: #f0a500; font-size: .95rem; margin-bottom: 8px; }
.review-card p { font-size: .91rem; color: var(--text-muted); font-style: italic; margin-bottom: 10px; }
.review-author { font-size: .82rem; font-weight: 700; color: var(--text-muted); }

/* ── Related ── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.related-link { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; font-size: .88rem; font-weight: 600; color: var(--coral); display: block; transition: box-shadow .2s; }
.related-link:hover { box-shadow: var(--shadow); text-decoration: none; }
.related-link span { display: block; font-size: .78rem; font-weight: 400; color: var(--text-muted); margin-top: 3px; }

/* ── Page header ── */
.page-header { background: linear-gradient(135deg, #2c1f1c 0%, var(--coral-dark) 100%); color: #fff; padding: 50px 0 38px; }
.page-header h1 { font-size: clamp(1.45rem, 3.2vw, 2.2rem); font-weight: 900; margin-bottom: 10px; }
.page-header p { opacity: .88; font-size: 1.02rem; max-width: 620px; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.divider { height: 1px; background: var(--border); margin: 36px 0; }
.check { color: #27ae60; font-weight: 700; }
.cross { color: #c0392b; }

/* ── Footer ── */
.site-footer { background: #1e1410; color: rgba(255,255,255,.72); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px; }
.footer-logo { color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; gap: 9px; margin-bottom: 10px; }
.footer-logo .logo-icon { background: var(--coral); width: 32px; height: 32px; font-size: 1rem; }
.footer-about p { font-size: .87rem; line-height: 1.7; }
.footer-col h5 { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 13px; text-transform: uppercase; letter-spacing: .05em; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a { color: rgba(255,255,255,.68); font-size: .86rem; transition: color .2s; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: rgba(255,255,255,.45); }
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-box { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .header-inner { flex-direction: column; height: auto; padding: 12px 0; gap: 8px; }
  .site-nav { justify-content: center; }
  .hero { padding: 44px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; text-align: center; }
  .trust-bar-inner { gap: 18px; }
}

/* Free budget tool */
.budget-tool{display:grid;grid-template-columns:1.05fr .95fr;gap:28px;align-items:start}.budget-panel,.budget-result{background:#fff;border:1px solid var(--border);border-radius:var(--radius);padding:28px;box-shadow:var(--shadow)}.budget-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.budget-field label{display:block;font-size:.85rem;font-weight:700;margin-bottom:5px}.budget-field input{width:100%;padding:11px 12px;border:1px solid var(--border);border-radius:7px;font:inherit}.result-number{font-size:2rem;font-weight:900;color:var(--coral);margin:6px 0}.result-list{list-style:none!important;padding:0!important}.result-list li{display:flex;justify-content:space-between;border-bottom:1px solid var(--border);padding:9px 0}.source-note{font-size:.86rem;color:var(--text-muted);border-left:3px solid var(--blue);padding-left:12px}.tool-promo{background:linear-gradient(135deg,#fff5f3,#eef7ff)}@media(max-width:760px){.budget-tool,.budget-grid{grid-template-columns:1fr}}
