/* ===== Базовая палитра и сброс ===== */
:root{
  --bg: #f4f5f8;
  --surface: #ffffff;
  --surface-2: #fafbfd;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e6e8ee;
  --brand: #ff5b1f;
  --brand-2: #ffa01c;
  --accent: #1f3a8a;
  --shadow-sm: 0 4px 14px rgba(15,23,42,.06);
  --shadow-md: 0 10px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 20px 60px rgba(15,23,42,.12);
  --radius: 16px;
  --radius-lg: 22px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.7;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;border-radius:14px}
a{color:var(--accent);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--brand)}
h1,h2,h3,h4{font-family:'Manrope','Inter',sans-serif;color:var(--ink);line-height:1.25;margin:0 0 .6em}
h1{font-size:clamp(28px,4vw,44px);font-weight:800;letter-spacing:-.02em}
h2{font-size:clamp(22px,2.6vw,30px);font-weight:700;letter-spacing:-.01em}
h3{font-size:20px;font-weight:700}
p{margin:0 0 1.1em;color:var(--ink-2)}
ul,ol{color:var(--ink-2);padding-left:1.2em}
li{margin-bottom:.4em}
.container{max-width:1240px;margin:0 auto;padding:0 24px}

/* ===== Header ===== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(255,255,255,.85);
  backdrop-filter:saturate(160%) blur(12px);
  border-bottom:1px solid var(--line);
}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:16px 24px}
.logo{display:flex;align-items:center;gap:12px;color:var(--ink)}
.logo-mark{
  width:42px;height:42px;border-radius:12px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;font-weight:800;font-family:'Manrope',sans-serif;
  display:grid;place-items:center;font-size:20px;
  box-shadow:var(--shadow-sm);
}
.logo-text{font-family:'Manrope',sans-serif;font-weight:800;font-size:20px;line-height:1.1;display:flex;flex-direction:column}
.logo-text small{font-weight:500;font-size:11px;color:var(--muted);letter-spacing:.02em;margin-top:2px}
.main-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:6px;flex-wrap:wrap}
.main-nav a{
  display:inline-block;padding:10px 14px;border-radius:10px;
  color:var(--ink-2);font-weight:500;font-size:14px;
  transition:background .2s,color .2s;
}
.main-nav a:hover{background:var(--surface-2);color:var(--brand)}
.main-nav a.active{background:var(--ink);color:#fff}

/* ===== Hero ===== */
.hero{
  margin:32px 0 40px;
  border-radius:var(--radius-lg);
  overflow:hidden;
  position:relative;
  background:linear-gradient(120deg,#0f172a 0%,#1e293b 60%,#1f3a8a 100%);
  color:#fff;
  box-shadow:var(--shadow-lg);
}
.hero-grid{display:grid;grid-template-columns:1.15fr 1fr;gap:40px;align-items:center;padding:56px}
.hero h1{color:#fff;font-size:clamp(30px,4.4vw,52px)}
.hero p{color:rgba(255,255,255,.8);font-size:18px;max-width:560px}
.hero-badge{
  display:inline-flex;align-items:center;gap:8px;
  background:rgba(255,91,31,.15);color:var(--brand-2);
  padding:8px 14px;border-radius:999px;font-weight:600;font-size:13px;
  border:1px solid rgba(255,160,28,.3);margin-bottom:18px;
}
.hero-cta{display:flex;gap:12px;margin-top:22px;flex-wrap:wrap}
.btn{
  display:inline-block;padding:14px 22px;border-radius:12px;
  font-weight:600;font-size:15px;transition:transform .2s,box-shadow .2s;
}
.btn-primary{background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;box-shadow:0 8px 22px rgba(255,91,31,.4)}
.btn-primary:hover{transform:translateY(-2px);color:#fff}
.btn-ghost{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.18)}
.btn-ghost:hover{background:rgba(255,255,255,.15);color:#fff}
.hero-image{border-radius:18px;overflow:hidden;box-shadow:var(--shadow-lg);aspect-ratio:4/3}
.hero-image img{width:100%;height:100%;object-fit:cover;border-radius:18px}

/* ===== Section title ===== */
.section-title{display:flex;align-items:end;justify-content:space-between;margin:48px 0 24px;gap:20px;flex-wrap:wrap}
.section-title h2{margin:0}
.section-title p{margin:0;color:var(--muted);max-width:520px}

/* ===== Cards grid ===== */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:26px}
.card{
  background:var(--surface);
  border-radius:var(--radius);
  overflow:hidden;
  box-shadow:var(--shadow-sm);
  transition:transform .25s ease, box-shadow .25s ease;
  display:flex;flex-direction:column;
  border:1px solid var(--line);
}
.card:hover{transform:translateY(-6px);box-shadow:var(--shadow-md)}
.card-img{aspect-ratio:16/10;overflow:hidden}
.card-img img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .5s ease}
.card:hover .card-img img{transform:scale(1.06)}
.card-body{padding:22px 22px 24px;display:flex;flex-direction:column;flex:1}
.card-tag{
  display:inline-block;font-size:12px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;
  color:var(--brand);margin-bottom:10px;
}
.card h3{margin:0 0 10px;font-size:19px;line-height:1.35}
.card h3 a{color:var(--ink)}
.card h3 a:hover{color:var(--brand)}
.card p{font-size:14.5px;color:var(--muted);margin:0 0 16px}
.card-meta{margin-top:auto;display:flex;justify-content:space-between;align-items:center;font-size:13px;color:var(--muted)}
.card-meta .read{color:var(--brand);font-weight:600}

/* ===== Intro section ===== */
.intro{
  background:var(--surface);border-radius:var(--radius-lg);
  padding:40px;box-shadow:var(--shadow-sm);border:1px solid var(--line);
  margin-bottom:40px;
}
.intro-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;margin-top:24px}
.intro-feature{padding:20px;background:var(--surface-2);border-radius:14px;border:1px solid var(--line)}
.intro-feature .icon{
  width:42px;height:42px;border-radius:10px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));
  color:#fff;display:grid;place-items:center;font-weight:800;margin-bottom:12px;
}
.intro-feature h4{margin:0 0 6px;font-size:16px}
.intro-feature p{margin:0;font-size:14px;color:var(--muted)}

/* ===== Article layout ===== */
.article-layout{
  display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:40px;
  margin:36px 0 60px;align-items:start;
}
.article{
  background:var(--surface);border-radius:var(--radius-lg);
  padding:44px;box-shadow:var(--shadow-sm);border:1px solid var(--line);
}
.article-meta{display:flex;gap:16px;color:var(--muted);font-size:13px;margin-bottom:14px;flex-wrap:wrap}
.article-meta .tag{color:var(--brand);font-weight:600;text-transform:uppercase;letter-spacing:.04em;font-size:12px}
.article h1{margin-bottom:20px}
.article .lead{font-size:18px;color:var(--ink);font-weight:500}
.article h2{margin-top:36px}
.article h3{margin-top:28px;color:var(--ink)}
.article figure{margin:28px 0}
.article figure img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:14px;box-shadow:var(--shadow-sm)}
.article figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:10px}
.article ul li::marker{color:var(--brand)}
.article blockquote{
  margin:28px 0;padding:20px 24px;
  background:var(--surface-2);border-left:4px solid var(--brand);
  border-radius:10px;color:var(--ink);font-style:italic;
}

/* ===== Sidebar ===== */
.sidebar{display:flex;flex-direction:column;gap:24px;position:sticky;top:90px}
.widget{
  background:var(--surface);border-radius:var(--radius);padding:24px;
  box-shadow:var(--shadow-sm);border:1px solid var(--line);
}
.widget h4{margin:0 0 16px;font-size:15px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.widget ul{list-style:none;padding:0;margin:0}
.widget li{margin-bottom:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.widget li:last-child{border-bottom:none;margin-bottom:0;padding-bottom:0}
.widget a{display:flex;gap:12px;align-items:flex-start;color:var(--ink);font-weight:500;font-size:14px;line-height:1.4}
.widget a .num{
  flex:0 0 28px;height:28px;border-radius:8px;
  background:linear-gradient(135deg,var(--brand),var(--brand-2));color:#fff;
  display:grid;place-items:center;font-size:12px;font-weight:700;
}
.widget a:hover{color:var(--brand)}

/* ===== Ads ===== */
.ad-block{
  margin:24px 0;padding:18px 22px;
  background:linear-gradient(135deg,#fff7ed,#fef3c7);
  border:1px dashed #f59e0b;border-radius:14px;
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  color:#78350f;font-size:13px;
}
.ad-block .ad-label{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:#92400e;font-weight:700}
.ad-block .ad-content{flex:1;font-weight:500}
.ad-header-wrap{margin:24px 0 0}
.ad-sidebar .ad-block{margin:0;flex-direction:column;align-items:flex-start;text-align:left}

/* ===== Footer ===== */
.site-footer{margin-top:60px;background:#0f172a;color:#cbd5e1}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1.4fr;gap:36px;padding:56px 24px 36px}
.site-footer h4{color:#fff;font-size:14px;text-transform:uppercase;letter-spacing:.08em;margin:0 0 14px}
.site-footer p{color:#94a3b8;font-size:14.5px}
.footer-logo{font-family:'Manrope',sans-serif;font-weight:800;font-size:22px;color:#fff;margin-bottom:12px}
.footer-links{list-style:none;padding:0;margin:0}
.footer-links li{margin-bottom:8px}
.footer-links a{color:#cbd5e1;font-size:14.5px}
.footer-links a:hover{color:var(--brand-2)}
.footer-bottom{border-top:1px solid #1e293b;padding:20px 0;font-size:13px;color:#64748b}
.footer-bottom .container{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero-grid{grid-template-columns:1fr;padding:36px}
  .cards{grid-template-columns:repeat(2,1fr)}
  .intro-grid{grid-template-columns:1fr 1fr}
  .article-layout{grid-template-columns:1fr}
  .sidebar{position:static}
  .footer-grid{grid-template-columns:1fr 1fr;padding:40px 24px 24px}
}
@media (max-width: 620px){
  .header-inner{flex-direction:column;align-items:flex-start;gap:12px}
  .main-nav ul{gap:4px}
  .main-nav a{padding:8px 10px;font-size:13px}
  .hero-grid{padding:28px;gap:24px}
  .cards{grid-template-columns:1fr}
  .intro{padding:24px}
  .intro-grid{grid-template-columns:1fr}
  .article{padding:24px}
  .footer-grid{grid-template-columns:1fr}
}
