:root {
  --red: #e30613;
  --ink: #07101f;
  --muted: #68717d;
  --line: #edf0f4;
  --soft: #f7f8fa;
  --dark: #07101f;
  --radius: 6px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
}

* { box-sizing: border-box; }
body { margin: 0; background: #f4f5f7; min-width: 1180px; }
button { border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }

.topbar { height: 40px; background: #07101f; color: #fff; font-size: 12px; }
.topbar-inner { width: 1260px; height: 100%; margin: 0 auto; display: flex; align-items: center; gap: 28px; }
.topbar b { font-size: 14px; }
.socials { margin-left: auto; display: flex; gap: 12px; opacity: .9; }
.search { display: flex; align-items: center; width: 190px; height: 40px; padding-left: 14px; background: #0d1828; color: #c5ccd6; }
.search button { margin-left: auto; width: 40px; height: 40px; background: var(--red); color: #fff; font-size: 18px; }

.web-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 18px rgba(7, 16, 31, .05); }
.web-header-inner { width: 1260px; height: 94px; margin: 0 auto; display: grid; grid-template-columns: 150px 1fr auto auto; align-items: center; gap: 24px; }
.web-logo { width: 125px; }
.web-header nav { display: flex; align-items: center; gap: 30px; }
.web-header nav button { position: relative; height: 94px; font-size: 14px; font-weight: 900; text-transform: uppercase; }
.web-header nav button.active { color: var(--red); }
.web-header nav button.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 24px; height: 2px; background: var(--red); }
.live { height: 36px; padding: 0 18px; border-radius: 4px; background: var(--dark); color: #fff; font-weight: 900; text-transform: uppercase; }
.live span { display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--red); }
.menu { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 4px; font-size: 24px; }

.page-shell { position: relative; width: 1536px; margin: 0 auto; display: grid; grid-template-columns: 138px 1fr 138px; gap: 14px; }
.web-main { width: 1240px; margin: 0 auto; padding: 12px 0 60px; }
.side-rail { padding-top: 12px; }
.side-rail.left { padding-left: 6px; }
.side-rail.right { padding-right: 6px; }
.skyscraper { width: 124px; height: 552px; border-radius: 4px; background: url("../assets/web-side-pronet.jpg") center / cover no-repeat; }
.side-card { margin-top: 42px; padding: 22px 18px; border-radius: var(--radius); background: #fff; box-shadow: 0 8px 20px rgba(7, 16, 31, .04); }
.side-card h3 { margin: 0 0 16px; font-size: 14px; text-transform: uppercase; }
.side-card button { display: block; width: 100%; padding: 8px 0; text-align: left; color: #202938; }

.home-grid { display: grid; grid-template-columns: 900px 310px; gap: 24px; }
.hero-desktop { position: relative; height: 370px; overflow: hidden; border-radius: var(--radius); background: url("../assets/web-article-rain.jpg") center / cover no-repeat; color: #fff; }
.hero-desktop::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.84)); }
.hero-copy { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 24px; }
.hero-copy span, .badge, .card-img b, .compact-card span { display: inline-flex; padding: 5px 9px; border-radius: 3px; background: var(--red); color: #fff; font-size: 11px; font-weight: 900; text-transform: uppercase; }
.hero-copy h1 { margin: 14px 0 8px; font-size: 24px; line-height: 1.2; }
.hero-copy p { margin: 0 0 20px; }
.hero-copy button { min-height: 36px; padding: 0 16px; border-radius: 4px; background: var(--red); color: #fff; font-weight: 900; text-transform: uppercase; }
.hero-arrow { position: absolute; z-index: 3; top: 44%; width: 38px; height: 38px; border-radius: 50%; background: rgba(0,0,0,.4); color: #fff; font-size: 34px; }
.hero-arrow.left { left: 16px; } .hero-arrow.right { right: 16px; }

.popular-panel { padding: 18px; border-radius: var(--radius); background: #fff; }
.popular-panel.dark { background: #07101f; color: #fff; }
.popular-panel h2, .weather-panel h2 { margin: 0 0 18px; font-size: 18px; text-transform: uppercase; }
.popular-panel article { display: grid; grid-template-columns: 24px 82px 1fr; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid rgba(128,139,153,.22); }
.popular-panel article > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 3px; background: var(--red); color: #fff; font-weight: 900; }
.popular-img { height: 58px; border-radius: 4px; background-size: cover; background-position: center; }
.popular-img.remote { background-image: url("../assets/popular-remote.jpg"); }
.popular-img.bank { background-image: url("../assets/web-card-bank.jpg"); }
.popular-img.flags { background-image: url("../assets/web-card-flags.jpg"); }
.popular-img.traffic { background-image: url("../assets/web-card-traffic.jpg"); }
.popular-img.gas { background-image: url("../assets/web-card-gas.jpg"); }
.popular-panel h3 { margin: 0 0 5px; font-size: 13px; line-height: 1.35; }
.popular-panel small, .popular-panel time { margin-right: 16px; color: #8d96a4; font-size: 11px; }
.all-popular { width: 100%; height: 36px; margin-top: 12px; border-radius: 4px; background: #fff3f4; color: var(--red); font-weight: 900; text-transform: uppercase; }

.wide-ad { border-radius: var(--radius); background-size: cover; background-position: center; }
.wide-ad.kontakt { width: 870px; height: 65px; margin: 14px 0 12px 16px; background-image: url("../assets/web-kontakt.jpg"); }
.wide-ad.bank-blue { height: 85px; margin-top: 14px; background-image: url("../assets/web-bank-blue.jpg"); }
.small-ad { border-radius: var(--radius); background-size: cover; background-position: center; }
.bank-small { height: 179px; background-image: url("../assets/web-bank-small.jpg"); }
.peugeot { height: 132px; background-image: url("../assets/web-peugeot-side.jpg"); }

.content-row { display: grid; grid-template-columns: 228px 660px 310px; gap: 18px; }
.left-stack, .right-stack { display: grid; gap: 14px; align-content: start; }
.weather-panel { padding: 20px; border-radius: var(--radius); background: #07101f; color: #fff; }
.weather-panel p { color: #c5ccd6; }
.weather-now { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin: 18px 0; }
.weather-now strong { font-size: 34px; }
.weather-now i { font-size: 38px; font-style: normal; }
.weather-meta, .days { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.12); color: #cbd3df; font-size: 11px; }
.days { grid-template-columns: repeat(4, 1fr); }
.weather-panel button { width: 100%; height: 38px; margin-top: 8px; color: #fff; border-top: 1px solid rgba(255,255,255,.12); text-transform: uppercase; }

.section-line { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.section-line h2 { margin: 0; padding-left: 12px; border-left: 3px solid var(--red); font-size: 18px; text-transform: uppercase; }
.section-line div { display: flex; gap: 6px; }
.section-line button { height: 36px; padding: 0 13px; border-radius: 4px; background: var(--soft); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.section-line button.active { background: var(--red); color: #fff; }
.latest-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.compact-card { background: #fff; border-radius: var(--radius); overflow: hidden; }
.compact-img { height: 110px; background-size: cover; background-position: center; }
.compact-card span { margin: 10px 10px 0; }
.compact-card time { float: right; margin: 12px 10px 0 0; color: var(--muted); font-size: 11px; }
.compact-card h3 { clear: both; margin: 14px 10px 8px; font-size: 14px; line-height: 1.35; }
.compact-card p { margin: 0 10px 16px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.rain, .compact-img.rain { background-image: url("../assets/web-card-rain.jpg"); }
.traffic, .compact-img.traffic { background-image: url("../assets/web-card-traffic.jpg"); }
.flags, .compact-img.flags { background-image: url("../assets/web-card-flags.jpg"); }
.gas, .compact-img.gas { background-image: url("../assets/web-card-gas.jpg"); }
.mountain, .compact-img.mountain { background-image: url("../assets/web-card-mountain.jpg"); }
.bank, .compact-img.bank { background-image: url("../assets/web-card-bank.jpg"); }

.authors-panel { border-radius: var(--radius); background: #fff; overflow: hidden; }
.authors-panel header { display: flex; align-items: center; justify-content: space-between; padding: 0 14px; height: 42px; background: var(--red); color: #fff; }
.authors-panel h2 { margin: 0; font-size: 17px; text-transform: uppercase; }
.authors-panel header button { font-size: 11px; }
.authors-panel article { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.authors-panel article div { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #f0d8d5; color: var(--red); font-weight: 900; }
.authors-panel small { display: block; color: var(--muted); font-size: 12px; }
.authors-panel em { color: #a3aab5; font-style: normal; font-size: 24px; }

.category-layout, .article-layout { display: grid; grid-template-columns: 170px 1fr 310px; gap: 24px; padding-top: 20px; }
.category-main, .article-web { background: #fff; padding: 24px; border-radius: var(--radius); }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.category-main h1 { margin: 0 0 20px; font-size: 25px; }
.category-filters { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.category-filters button, .category-filters select { height: 36px; padding: 0 14px; border: 0; border-radius: 4px; background: #fff; font-weight: 800; text-transform: uppercase; }
.category-filters button.active { background: var(--red); color: #fff; }
.category-filters select { margin-left: auto; border: 1px solid var(--line); color: var(--muted); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card-img { position: relative; height: 176px; background-size: cover; background-position: center; }
.card-img span { position: absolute; left: 12px; bottom: 10px; color: #fff; font-size: 11px; }
.card-img b { position: absolute; right: 12px; bottom: 8px; }
.card-body { padding: 14px; }
.card-body h2 { margin: 0 0 10px; font-size: 17px; line-height: 1.35; }
.card-body p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; }
.card-body footer { display: flex; gap: 28px; color: var(--muted); font-size: 12px; }
.card-body footer button { margin-left: auto; color: #9ba3af; }

.article-share, .article-right, .category-right { display: grid; gap: 14px; align-content: start; }
.article-web h1 { margin: 16px 0 12px; font-size: 30px; line-height: 1.35; }
.article-web .lead { margin: 0 0 20px; color: #303947; }
.author-line { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--muted); }
.author-line img { width: 42px; }
.author-line button { margin-left: 8px; font-weight: 900; }
.article-image { height: 337px; border-radius: var(--radius); background: url("../assets/web-article-rain.jpg") center / cover no-repeat; }
.share-row { display: flex; gap: 8px; margin: 22px 0; }
.share-row button { min-width: 110px; height: 28px; border-radius: 3px; background: #2f5ca8; color: #fff; font-size: 12px; }
.share-row button:nth-child(2) { background: #52a7df; }
.share-row button:nth-child(3) { background: #28a745; }
.share-row button:nth-child(4) { background: #239bd8; }
.share-row button:nth-child(n+5) { min-width: 36px; background: var(--soft); color: var(--ink); }
.article-web p { line-height: 1.7; }
blockquote { margin: 24px 0 0; padding: 24px 32px; border-radius: var(--radius); background: #fff1f2; color: #5b6470; }

@media (max-width: 1300px) {
  body { min-width: 0; }
  .topbar-inner, .web-header-inner { width: min(100% - 32px, 1120px); }
  .topbar-inner { gap: 18px; }
  .topbar-inner span:nth-child(n+3):nth-child(-n+4),
  .topbar-inner b:nth-of-type(n+4),
  .socials { display: none; }
  .page-shell { width: min(100% - 32px, 1120px); grid-template-columns: 1fr; }
  .web-header-inner { grid-template-columns: 116px minmax(0, 1fr) auto auto; gap: 14px; }
  .web-logo { width: 108px; }
  .web-header nav { gap: 16px; min-width: 0; overflow: hidden; }
  .web-header nav button { font-size: 12px; }
  .web-header nav button:nth-last-child(-n+2) { display: none; }
  .live { padding: 0 14px; }
  .side-rail { display: none; }
  .web-main { width: 100%; }
  .home-grid { grid-template-columns: minmax(0, 1fr) 300px; }
  .hero-desktop { height: 340px; }
  .wide-ad.kontakt { width: 100%; margin-left: 0; }
  .content-row { grid-template-columns: 220px minmax(0, 1fr); }
  .right-stack { display: none; }
  .category-layout, .article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .category-side, .article-share { display: none; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}
