/* smart-reklama.com — статическая версия (11.2026). Без библиотек и шрифтов со стороны. */
:root {
  --ink: #2b2f33;
  --ink-2: #4a5056;
  --muted: #7b8289;
  --line: #e7e9ec;
  --soft: #f7f8fa;
  --accent: #1f93c2;
  --accent-ink: #fff;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--sans); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.25; color: var(--ink); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .6rem; }
h2 { font-size: 1.6rem; margin: 2rem 0 .8rem; }
h3 { font-size: 1.3rem; margin: 1.6rem 0 .6rem; }
h4 { font-size: 1.1rem; margin: 1.3rem 0 .5rem; }
[id] { scroll-margin-top: 90px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
main.wrap { padding-top: 2.5rem; padding-bottom: 3rem; min-height: 60vh; }

/* шапка */
.site-head { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 10; }
.head-row { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 600; letter-spacing: .02em; }
.logo:hover { text-decoration: none; }
.menu { display: flex; gap: 2rem; }
.menu a { color: var(--ink-2); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.menu a[aria-current] { color: var(--accent); }
.menu-toggle, .menu-btn { display: none; }
@media (max-width: 720px) {
  .menu-btn { display: block; width: 40px; height: 40px; position: relative; cursor: pointer; }
  .menu-btn span, .menu-btn span::before, .menu-btn span::after {
    content: ""; position: absolute; left: 9px; right: 9px; height: 2px; background: var(--ink);
  }
  .menu-btn span { top: 19px; } .menu-btn span::before { top: -7px; left: 0; right: 0; } .menu-btn span::after { top: 7px; left: 0; right: 0; }
  .menu { display: none; position: absolute; left: 0; right: 0; top: 72px; background: #fff; flex-direction: column;
          gap: 0; border-bottom: 1px solid var(--line); }
  .menu a { padding: .9rem 20px; border-top: 1px solid var(--line); }
  .menu-toggle:checked ~ .menu { display: flex; }
}

/* лента */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 3rem; }
@media (max-width: 900px) { .with-side { grid-template-columns: 1fr; } }
.card { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 1.5rem; padding: 0 0 2.2rem; margin: 0 0 2.2rem;
        border-bottom: 1px solid var(--line); }
.card:last-of-type { border-bottom: 0; }
.card h2 { margin: 0 0 .3rem; font-size: 1.45rem; }
.card h2 a { color: var(--ink); }
.card-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.card p { margin: .4rem 0; color: var(--ink-2); }
@media (max-width: 640px) { .card { grid-template-columns: 1fr; gap: .8rem; } }
.meta { color: var(--muted); font-size: .85rem; margin: 0 0 1rem; }
.meta a { color: var(--muted); }
.more { display: inline-block; margin-top: .4rem; font-size: .95rem; }
.more::after { content: " →"; }
.pager { display: flex; gap: .4rem; margin-top: 1rem; }
.pager a { min-width: 2.4rem; padding: .35rem .7rem; text-align: center; border: 1px solid var(--line); border-radius: 4px; }
.pager a[aria-current] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.side h2 { font-size: 1.1rem; margin: 0 0 .8rem; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.side ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.side li { padding: .3rem 0; }
.side li span { color: var(--muted); font-size: .85rem; }
.side-cta { background: var(--soft); padding: 1.2rem; border-radius: 6px; }
.side-cta p { margin: 0 0 .8rem; font-size: .95rem; }

/* статья и страницы */
.post, .page { max-width: 780px; margin: 0 auto; }
.product { max-width: 900px; margin: 0 auto; }
.prose p, .prose li { color: var(--ink-2); }
.prose img { display: block; margin: 1.2rem 0; border-radius: 4px; }
.prose blockquote { margin: 1.2rem 0; padding: .6rem 1.2rem; border-left: 3px solid var(--accent); background: var(--soft); }
.prose table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: .95rem; display: block; overflow-x: auto; }
.prose td, .prose th { border: 1px solid var(--line); padding: .45rem .6rem; vertical-align: top; }
.prose iframe { max-width: 100%; }
.cols { display: grid; gap: 1.5rem 2rem; margin: 1rem 0; grid-template-columns: var(--cols); }
.cols > * { min-width: 0; }
.cols .col > :first-child { margin-top: 0; }
.cols img { margin: 0; }
@media (max-width: 720px) { .cols { grid-template-columns: 1fr; } }
details { background: var(--soft); border-radius: 4px; margin: .5rem 0; }
summary { cursor: pointer; padding: .8rem 1rem; color: var(--accent); list-style: none; position: relative; padding-right: 2.5rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 1rem; top: .75rem; color: var(--muted); }
details[open] summary::after { content: "−"; }
details > div { padding: 0 1rem 1rem; }
.btn { display: inline-block; padding: .7rem 1.4rem; border: 1px solid var(--accent); border-radius: 4px; color: var(--accent);
       background: #fff; font-size: .95rem; }
.btn:hover { background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.cta { margin: 2.5rem auto 0; max-width: 780px; padding: 1.4rem 1.6rem; background: var(--soft); border-radius: 6px;
       display: flex; gap: 1rem; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta p { margin: 0; font-family: var(--serif); font-size: 1.2rem; }

/* комментарии */
.comments { margin-top: 3rem; }
.comments ul { list-style: none; padding: 0; margin: 0; }
.comments li { padding: 1rem 0; border-top: 1px solid var(--line); }
.comments li li { margin-left: 1.5rem; border-top: 0; padding-bottom: 0; }
.c-head { margin: 0 0 .3rem; font-size: .95rem; }
.c-head time { color: var(--muted); font-size: .85rem; margin-left: .4rem; }
.comments p { margin: .3rem 0; color: var(--ink-2); }

/* магазин */
.lead { color: var(--ink-2); max-width: 760px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 1.5rem; }
.tile { display: flex; flex-direction: column; gap: .5rem; color: var(--ink); }
.tile img { aspect-ratio: 1; object-fit: cover; border-radius: 4px; background: var(--soft); }
.tile b { font-weight: 500; }
.price { color: var(--accent); font-size: 1.3rem; font-weight: 600; }
.tile .price { font-size: 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); }
.product-top { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 2rem; margin-bottom: 2rem; }
.product-img { width: 100%; border-radius: 4px; }
.note { color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .product-top { grid-template-columns: 1fr; } }

/* подвал */
.site-foot { background: var(--soft); color: var(--ink-2); font-size: .9rem; }
.foot-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 3rem; padding-top: 1.6rem; padding-bottom: 1.6rem; }
.foot-row p { margin: 0; }
.foot-links { grid-column: 1 / -1; color: var(--muted); font-size: .85rem; }
@media (max-width: 720px) { .foot-row { grid-template-columns: 1fr; } }
.cookie { position: fixed; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line);
          padding: .7rem 20px; font-size: .85rem; color: var(--ink-2); text-align: center; z-index: 20; }
.cookie button { margin-left: .6rem; padding: .25rem .9rem; border: 0; border-radius: 3px; background: var(--accent);
                 color: #fff; cursor: pointer; }
