/* ====== StroikaFox — единый файл стилей ====== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Inter:wght@400;500;600;700&display=swap');

:root{
  --bg:#f5f3ef;
  --surface:#ffffff;
  --ink:#15181d;
  --ink-2:#3a4049;
  --muted:#6b7280;
  --line:#e7e3da;
  --brand:#ff6a1a;        /* строительный оранжевый */
  --brand-2:#1f3b8b;      /* инженерный синий */
  --accent:#ffd166;
  --shadow:0 10px 30px rgba(20,24,32,.08);
  --shadow-hover:0 18px 50px rgba(20,24,32,.14);
  --radius:18px;
  --radius-sm:12px;
  --maxw:1240px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:'Inter',system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block;border-radius:var(--radius-sm)}
a{color:var(--brand-2);text-decoration:none;transition:color .2s}
a:hover{color:var(--brand)}

h1,h2,h3,h4{font-family:'Manrope',sans-serif;line-height:1.25;color:var(--ink);margin:0 0 .6em}
h1{font-size:clamp(28px,4vw,46px);font-weight:800;letter-spacing:-.02em}
h2{font-size:clamp(22px,2.6vw,32px);font-weight:700;margin-top:1.6em}
h3{font-size:clamp(18px,2vw,22px);font-weight:700;margin-top:1.4em}
p{margin:0 0 1.1em;color:var(--ink-2)}
ul,ol{padding-left:1.2em;color:var(--ink-2)}
li{margin:.35em 0}

.container{max-width:var(--maxw);margin:0 auto;padding:0 24px}

/* ====== Header ====== */
.site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(245,243,239,.85);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--line);
}
.header-inner{
  display:flex;align-items:center;justify-content:space-between;
  padding:18px 0;
}
.logo{display:flex;align-items:center;gap:10px;font-family:'Manrope';font-weight:800;font-size:22px;color:var(--ink)}
.logo-mark{
  width:38px;height:38px;border-radius:10px;
  background:linear-gradient(135deg,var(--brand),#ff8a3d);
  display:grid;place-items:center;color:#fff;font-weight:800;
  box-shadow:0 6px 18px rgba(255,106,26,.35);
}
.nav{display:flex;gap:6px;flex-wrap:wrap}
.nav a{
  padding:10px 14px;border-radius:10px;color:var(--ink-2);font-weight:500;font-size:15px;
}
.nav a:hover{background:#fff;color:var(--ink);box-shadow:var(--shadow)}
.nav .cta{background:var(--ink);color:#fff}
.nav .cta:hover{background:var(--brand);color:#fff}

/* ====== Hero ====== */
.hero{
  margin:32px 0 12px;
  border-radius:28px;overflow:hidden;position:relative;
  background:
    linear-gradient(120deg,rgba(31,59,139,.85),rgba(20,24,32,.55)),
    url('https://images.unsplash.com/photo-1503387762-592deb58ef4e?auto=format&fit=crop&w=1600&q=80') center/cover;
  color:#fff;
  padding:80px 48px;
  box-shadow:var(--shadow);
}
.hero h1{color:#fff;max-width:780px}
.hero p{color:rgba(255,255,255,.86);max-width:680px;font-size:18px}
.hero-badges{display:flex;gap:10px;flex-wrap:wrap;margin-top:22px}
.hero-badges span{
  padding:8px 14px;border:1px solid rgba(255,255,255,.25);
  border-radius:999px;font-size:13px;backdrop-filter:blur(6px);background:rgba(255,255,255,.08);
}

/* ====== Section heading ====== */
.section-head{display:flex;align-items:end;justify-content:space-between;margin:48px 0 22px;gap:20px;flex-wrap:wrap}
.section-head h2{margin:0}
.section-head .sub{color:var(--muted);font-size:15px;max-width:520px}

/* ====== Cards grid ====== */
.grid{
  display:grid;grid-template-columns:repeat(3,1fr);gap:26px;
}
@media(max-width:980px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:620px){.grid{grid-template-columns:1fr}}

.card{
  background:var(--surface);border-radius:var(--radius);overflow:hidden;
  box-shadow:var(--shadow);transition:transform .25s ease, box-shadow .25s ease;
  display:flex;flex-direction:column;
}
.card:hover{transform:translateY(-4px);box-shadow:var(--shadow-hover)}
.card .thumb{aspect-ratio:16/10;overflow:hidden}
.card .thumb img{width:100%;height:100%;object-fit:cover;border-radius:0;transition:transform .6s ease}
.card:hover .thumb 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;color:var(--brand);text-transform:uppercase;letter-spacing:.08em;margin-bottom:8px}
.card h3{margin:0 0 8px;font-size:20px}
.card p{font-size:15px;color:var(--muted);margin:0 0 16px}
.card .more{margin-top:auto;font-weight:600;color:var(--brand-2)}
.card .more::after{content:" →";transition:margin .2s}
.card:hover .more::after{margin-left:6px}

/* ====== Article layout ====== */
.layout{display:grid;grid-template-columns:1fr 320px;gap:40px;margin:36px 0 60px}
@media(max-width:960px){.layout{grid-template-columns:1fr}}

.article{
  background:var(--surface);border-radius:var(--radius);
  padding:40px clamp(22px,4vw,56px);box-shadow:var(--shadow);
}
.article .meta{color:var(--muted);font-size:14px;margin-bottom:6px}
.article figure{margin:24px 0}
.article figure img{width:100%;aspect-ratio:16/9;object-fit:cover}
.article figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:8px}
.article blockquote{
  margin:24px 0;padding:18px 22px;border-left:4px solid var(--brand);
  background:#fff7f1;border-radius:10px;color:var(--ink);font-style:italic;
}
.article ul li::marker{color:var(--brand)}

.sidebar{display:flex;flex-direction:column;gap:24px;position:sticky;top:96px;align-self:start}
.side-card{
  background:var(--surface);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow);
}
.side-card h4{margin:0 0 14px;font-size:16px;text-transform:uppercase;letter-spacing:.06em;color:var(--ink)}
.side-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:10px}
.side-list a{display:block;padding:10px 12px;border-radius:10px;color:var(--ink);font-weight:500;font-size:14.5px;transition:background .2s}
.side-list a:hover{background:#f5f3ef;color:var(--brand)}

/* ====== Ads ====== */
.ad{
  margin:22px 0;
  border:1px dashed var(--line);
  background:linear-gradient(180deg,#fff,#fafaf6);
  border-radius:var(--radius-sm);
  padding:18px 20px;text-align:center;color:var(--muted);font-size:13px;
}
.ad strong{display:block;color:var(--ink);font-family:'Manrope';font-weight:700;margin-bottom:4px}

/* ====== Footer ====== */
.site-footer{
  margin-top:60px;background:#15181d;color:#cfd3da;padding:54px 0 28px;
}
.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:32px}
@media(max-width:780px){.footer-grid{grid-template-columns:1fr}}
.site-footer h4{color:#fff;font-size:15px;text-transform:uppercase;letter-spacing:.08em;margin-bottom:14px}
.site-footer a{color:#cfd3da}
.site-footer a:hover{color:var(--brand)}
.footer-bottom{
  margin-top:36px;padding-top:20px;border-top:1px solid #2a2e36;
  display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;color:#8d94a0;font-size:13px;
}

/* ====== Intro block on home ====== */
.intro{
  display:grid;grid-template-columns:1.2fr 1fr;gap:30px;align-items:center;
  background:var(--surface);border-radius:var(--radius);padding:32px;box-shadow:var(--shadow);margin-top:30px;
}
@media(max-width:820px){.intro{grid-template-columns:1fr}}
.intro h2{margin-top:0}
.intro img{aspect-ratio:4/3;object-fit:cover;width:100%}
