/* Общие стили внутренних страниц (Полезное, Решения) — в стилистике главной */
:root {
  --bg: #0b0a09;
  --ink: #f3efe7;
  --muted: #8f8a82;
  --faint: #4a4641;
  --line: rgba(243, 239, 231, .1);
  --card: rgba(243, 239, 231, .035);
  --accent: #ff5a1f;
  --pad: clamp(20px, 4.4vw, 72px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
body { font-family: Onest, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-weight: 400; overflow-x: hidden; min-height: 100svh;
  background: radial-gradient(60% 45% at 85% 0%, rgba(255,90,31,.16), transparent 70%), var(--bg); background-attachment: fixed; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--accent); color: #0b0a09; }
img { display: block; max-width: 100%; height: auto; }
.grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .08; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.wrap { position: relative; z-index: 2; }

/* шапка */
header { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px var(--pad); }
.mark { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.mark i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px 2px rgba(255,90,31,.6); }
.mark .wm span { color: var(--muted); font-weight: 400; }
.nav { display: flex; gap: 26px; font-size: 14px; color: var(--muted); }
.nav a { transition: color .3s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

main { padding: clamp(24px, 6vh, 72px) var(--pad) clamp(60px, 10vh, 120px); max-width: 1280px; }

.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.crumbs a { border-bottom: 1px solid var(--faint); transition: border-color .3s, color .3s; }
.crumbs a:hover { color: var(--ink); border-color: var(--accent); }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--faint); }
h1 { font-weight: 300; font-size: clamp(40px, 6.4vw, 104px); line-height: .96; letter-spacing: -.045em; }
h1 em, h2 em { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent); padding-right: .04em; }
h2 { font-weight: 300; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.lead { margin-top: 28px; max-width: 620px; font-size: clamp(16px, 1.35vw, 20px); line-height: 1.6; color: var(--muted); font-weight: 300; }
.lead strong { color: var(--ink); font-weight: 400; }
.label { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 15px 26px; border-radius: 999px; font: inherit; font-weight: 500; font-size: 16px;
  cursor: pointer; border: 1px solid transparent; transition: background .4s var(--ease), color .4s var(--ease), border-color .4s, transform .4s var(--ease); white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.solid { background: var(--ink); color: #0b0a09; }
.btn.solid:hover { background: var(--accent); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--faint); }
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn:active { transform: scale(.97); }

.tag { display: inline-block; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); }
.tag.fill { background: var(--accent); color: #0b0a09; }

/* блок «нужен сайт» */
.promo { margin-top: clamp(56px, 9vh, 110px); padding: clamp(28px, 4vw, 56px); border-radius: 28px; border: 1px solid var(--line);
  background: radial-gradient(70% 120% at 100% 100%, rgba(255,90,31,.22), transparent 70%), var(--card);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.promo p { margin-top: 16px; color: var(--muted); line-height: 1.6; font-weight: 300; max-width: 560px; }

footer { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px var(--pad) calc(26px + env(safe-area-inset-bottom));
  font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
footer a:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 10; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #0b0a09; padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  .nav { gap: 18px; }
  .nav .hide-sm { display: none; }
  .promo { grid-template-columns: 1fr; }
  .promo .btn { width: 100%; }
}
@media print {
  .grain, header, footer, .promo, .actions, .toast { display: none !important; }
  html, body { background: #fff; color: #000; }
}

/* ---------- страница материала: обложка + действия ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 360px); gap: clamp(32px, 5vw, 80px); align-items: start; }
.actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.meta { margin-top: 16px; font-size: 13px; color: var(--muted); }
.cover { position: relative; display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,90,31,.06); transform: rotate(1.5deg); transition: transform .8s var(--ease); }
.cover:hover { transform: rotate(0) translateY(-6px); }
.cover::after { content: "Открыть PDF"; position: absolute; left: 50%; bottom: 18px; transform: translate(-50%, 10px); opacity: 0;
  background: var(--ink); color: #0b0a09; font-size: 14px; font-weight: 500; padding: 10px 18px; border-radius: 999px; transition: opacity .4s, transform .4s var(--ease); }
.cover:hover::after { opacity: 1; transform: translate(-50%, 0); }

main section { margin-top: clamp(56px, 9vh, 110px); }
.sec-head { margin-bottom: 28px; }
.sec-head p { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 560px; font-weight: 300; margin-top: 12px; }
.note { margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--faint); max-width: 760px; }

/* карточки с пунктами */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.card { padding: 28px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.card h3 { font-weight: 400; font-size: 19px; letter-spacing: -.01em; line-height: 1.3; }
.card h3 .n { font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; color: var(--accent); font-size: 1.35em; margin-right: 8px; }
.card p, .card li { color: var(--muted); font-weight: 300; font-size: 15px; line-height: 1.6; }
.card p { margin-top: 10px; }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 9px; }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; border: 1.5px solid var(--accent); }
.card .big { display: block; font-size: clamp(30px, 3vw, 40px); font-weight: 300; letter-spacing: -.03em; color: var(--ink); margin-bottom: 6px; }

/* сетка ссылок-карточек (Полезное, Решения) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 20px; }
.item { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--card);
  transition: border-color .5s, transform .6s var(--ease), box-shadow .6s var(--ease); }
.item:hover { border-color: rgba(255,90,31,.45); transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(255,90,31,.35); }
.item .pic { aspect-ratio: 1200 / 630; overflow: hidden; border-bottom: 1px solid var(--line); background: #141210; }
.item .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.item:hover .pic img { transform: scale(1.04); }
.item .body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.item .kind { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.item h2, .item h3 { font-weight: 300; font-size: 26px; line-height: 1.1; letter-spacing: -.03em; }
.item p { color: var(--muted); font-weight: 300; line-height: 1.6; font-size: 15px; }
.item .more { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.item .more svg { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.item:hover .more svg { transform: translateX(4px); }
.item .price { font-size: 15px; color: var(--ink); }
.item .price b { font-weight: 500; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cover { max-width: 340px; }
}
@media (max-width: 760px) {
  .actions .btn { flex: 1 1 100%; }
}
