/* ==========================================================================
   WINNER — основная тема (поверх Bootstrap 2 и engine.css)
   ========================================================================== */
:root {
  --ink: #14181d;
  --text: #2a3138;
  --muted: #667180;
  --line: #e1e5ea;
  --bg: #eef0f2;
  --card: #ffffff;
  --accent: #d84a38;
  --accent-dark: #b93a2a;
  --steel: #455868;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(20, 24, 29, .06), 0 6px 18px rgba(20, 24, 29, .06);
  --font-text: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Oswald", "Arial Narrow", Impact, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-padding-top: 64px; }

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--font-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover, a:focus { color: var(--accent-dark); text-decoration: underline; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { color: var(--ink); margin: 0; text-shadow: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10000;
  padding: 10px 16px; background: var(--ink); color: #fff; border-radius: 0 0 8px 8px;
}
.skip:focus { top: 0; color: #fff; text-decoration: none; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ---------- Верхняя полоса ---------- */
.topbar { background: var(--ink); color: #c9d0d8; font-size: 13px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; min-height: 36px; gap: 12px; }
.topbar a { color: #c9d0d8; }
.topbar a:hover { color: #fff; }

/* ---------- Шапка ---------- */
.site-head { background: #fff; border-bottom: 1px solid var(--line); }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { margin: 0; line-height: 0; flex: 0 1 auto; }
.logo a { display: inline-block; }
.logo img { width: auto; height: 92px; max-width: 100%; }
.site-head__tools { display: flex; align-items: center; gap: 20px; flex: 1 1 auto; justify-content: flex-end; }

.search { display: flex; flex: 1 1 320px; max-width: 420px; margin: 0; }
.search input[type="search"] {
  flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 14px;
  border: 1px solid var(--line); border-right: 0; border-radius: 8px 0 0 8px;
  background: #f7f8fa; box-shadow: none; font: 15px var(--font-text); color: var(--ink);
  -webkit-appearance: none; appearance: none;
}
.search input[type="search"]:focus { background: #fff; border-color: var(--steel); outline: none; box-shadow: 0 0 0 3px rgba(69, 88, 104, .18); }
.search button {
  height: 42px; padding: 0 18px; border: 0; border-radius: 0 8px 8px 0;
  background: var(--ink); color: #fff; font: 600 14px var(--font-text); cursor: pointer;
  transition: background .15s;
}
.search button:hover { background: var(--accent-dark); }

.social { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.social li { margin: 0; }
.social a { display: block; width: 32px; height: 32px; border-radius: 50%; overflow: hidden; line-height: 0; opacity: .9; transition: opacity .15s, transform .15s; }
.social a:hover { opacity: 1; transform: translateY(-2px); }
.social img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Меню ---------- */
.nav-main { background: var(--ink); position: sticky; top: 0; z-index: 900; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.menu { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.menu li { margin: 0; }
.menu a {
  display: block; padding: 14px 11px; color: #e6eaee;
  font: 500 14px/1 var(--font-head); letter-spacing: .04em; text-transform: uppercase;
  border-bottom: 3px solid transparent; transition: background .15s, border-color .15s;
}
.menu a:hover, .menu a:focus { background: #20262d; color: #fff; text-decoration: none; }
.menu a[aria-current="page"] { color: #fff; border-bottom-color: var(--accent); }
.nav-toggle {
  display: none; width: 100%; padding: 14px 0; margin: 0; border: 0; background: none; color: #fff;
  font: 500 15px/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase; text-align: left; cursor: pointer;
}
.nav-toggle::after { content: ""; float: right; width: 9px; height: 9px; margin-top: 2px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.nav-toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 6px; }

/* ---------- Каркас страницы ---------- */
.page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding-top: 28px; padding-bottom: 40px; align-items: start; }
.main { min-width: 0; }
.side { min-width: 0; position: sticky; top: 64px; }

/* ---------- Слайдер ---------- */
.hero { margin-bottom: 36px; }
.hero .carousel { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--ink); }
.hero .carousel-inner { aspect-ratio: 16 / 9; background: var(--ink); }
.hero .item { height: 100%; }
.hero .carousel-inner:not(:has(.active)) > .item:first-child { display: block; }
.hero .slide-link { display: block; height: 100%; }
.hero .item img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero .carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0; width: auto; padding: 56px 72px 24px 24px;
  background: linear-gradient(to top, rgba(10, 12, 15, .92), rgba(10, 12, 15, 0));
}
.hero .carousel-caption .carousel-title { margin: 0; color: #fff; font: 600 clamp(20px, 3.2vw, 34px)/1.15 var(--font-head); letter-spacing: .01em; text-transform: uppercase; }
.carousel-title a { color: #fff; }
.carousel-title a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.hero .carousel-control {
  top: 50%; width: 44px; height: 44px; margin-top: -22px; padding: 0;
  font: 400 30px/38px var(--font-text); color: #fff; background: rgba(20, 24, 29, .55);
  border: 0; border-radius: 50%; opacity: .85; transition: background .15s, opacity .15s;
}
.hero .carousel-control:hover { background: var(--accent); opacity: 1; text-decoration: none; color: #fff; }
.hero .carousel-control.left { left: 14px; }
.hero .carousel-control.right { right: 14px; }

/* ---------- Блоки разделов ---------- */
.block { margin-bottom: 36px; }
.block__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.block__head::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.block__head h2 { order: -1; padding-left: 12px; border-left: 4px solid var(--accent); font: 600 24px/1.1 var(--font-head); letter-spacing: .03em; text-transform: uppercase; }
.block__head h2 a { color: var(--ink); }
.block__head h2 a:hover { color: var(--accent-dark); text-decoration: none; }

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }

/* ---------- Карточки ---------- */
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.card__media { display: block; position: relative; aspect-ratio: 16 / 10; background: #dfe3e8; overflow: hidden; line-height: 0; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { flex: 1 1 auto; padding: 16px 18px 6px; }
.card__title { margin: 0 0 8px; font: 700 18px/1.3 var(--font-text); }
.card__title a { color: var(--ink); }
.card__title a:hover { color: var(--accent-dark); text-decoration: none; }
.card__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 12px 18px 16px; color: var(--muted); font-size: 13px; }
.card__cat { margin-right: auto; font-weight: 600; }
.card__cat a { color: var(--steel); }
.card__cat a:hover { color: var(--accent-dark); }
.card__views { display: inline-flex; align-items: center; gap: 5px; }
.card__rate:empty { display: none; }
.i { width: 16px; height: 16px; fill: currentColor; flex: none; }

.card--row { flex-direction: row; margin-bottom: 20px; }
.card--row .card__media { flex: 0 0 38%; aspect-ratio: auto; min-height: 190px; }
.card--row .card__body { padding: 18px 20px 4px; }
.card--row > .card__body { display: flex; flex-direction: column; }
.card--row .card__text { flex: 1; }
.card--row .card__foot { padding: 12px 0 16px; }
.card--compact .card__title { font-size: 15px; }

/* ---------- Список / сортировка / хлебные крошки ---------- */
.listing { min-width: 0; }
.sortbar { margin: 0 0 18px; padding: 10px 14px; background: var(--card); border-radius: var(--radius); font-size: 13px; color: var(--muted); box-shadow: var(--shadow); }
.sortbar a { margin-right: 10px; }
.crumbs { margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.crumbs a { color: var(--steel); }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 28px 0 8px; clear: both; }
.pager__pages { display: flex; flex-wrap: wrap; gap: 6px; }
.pager a, .pager span span, .pager__btn { display: inline-block; min-width: 40px; padding: 9px 14px; border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 14px; text-align: center; box-shadow: var(--shadow); }
.pager a:hover { background: var(--ink); color: #fff; text-decoration: none; }
.pager__pages > span { background: var(--accent); color: #fff; padding: 9px 14px; border-radius: 8px; font-weight: 600; font-size: 14px; }
.pager__pages > span span { background: none; box-shadow: none; padding: 0; min-width: 0; color: inherit; }

/* ---------- Статья ---------- */
.article { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 36px 28px; margin-bottom: 28px; }
.article__title { font: 600 clamp(26px, 4vw, 40px)/1.15 var(--font-head); letter-spacing: .01em; }
.article__meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 14px 0 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.article__meta a { color: var(--steel); }
.article__body { font-size: 18px; line-height: 1.75; color: #222a31; overflow-wrap: break-word; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2, .article__body h3 { margin: 1.6em 0 .6em; font-family: var(--font-head); font-weight: 600; line-height: 1.2; }
.article__body h2 { font-size: 28px; }
.article__body h3 { font-size: 22px; }
.article__body ul, .article__body ol { margin: 0 0 1.1em 1.3em; }
.article__body img { border-radius: 6px; }
.article__body a.highslide { display: inline-block; }
.article__body blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--accent); color: var(--text); font-size: 1.05em; }
.article__body iframe[src*="youtube"], .article__body iframe[src*="youtu.be"], .article__body iframe[src*="vimeo"], .article__body iframe[src*="rutube"] { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; }
.article__body table { max-width: 100%; display: block; overflow-x: auto; }
.article__body::after { content: ""; display: block; clear: both; }

.article__rate { margin: 24px 0 0; display: flex; align-items: center; gap: 12px; }
.article__rate-label { font-weight: 700; color: var(--ink); }
.article__rate a { line-height: 0; }

.tags { margin: 24px 0 0; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0; }
.tags__label { font-size: 14px; font-weight: 700; margin-right: 6px; color: var(--ink); }
.tags a { display: inline-block; margin: 0 8px 8px 0; padding: 5px 12px; border-radius: 999px; background: #eef1f4; color: var(--steel); font-size: 14px; }
.tags a:hover { background: var(--ink); color: #fff; text-decoration: none; }

.related { margin-bottom: 28px; }
.related__title { margin-bottom: 14px; padding-left: 12px; border-left: 4px solid var(--accent); font: 600 22px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.rel { display: flex; gap: 16px; padding: 14px; margin-bottom: 12px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.rel__media { flex: 0 0 160px; aspect-ratio: 16 / 10; border-radius: 6px; overflow: hidden; line-height: 0; background: #dfe3e8; }
.rel__media img { width: 100%; height: 100%; object-fit: cover; }
.rel__title { margin: 0 0 6px; font: 700 17px/1.3 var(--font-text); }
.rel__title a { color: var(--ink); }
.rel__text { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

/* ---------- Боковая колонка ---------- */
.widget { margin-bottom: 24px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; overflow: hidden; }
.widget--fb { padding: 0; min-height: 0; }
.widget__title { margin-bottom: 14px; padding-left: 10px; border-left: 4px solid var(--accent); font: 600 20px/1.1 var(--font-head); text-transform: uppercase; letter-spacing: .03em; }
.widget .row-fluid { margin-bottom: 12px; }

/* ---------- Реклама ---------- */
.ad { min-height: 100px; margin: 0 0 28px; text-align: center; overflow: hidden; }
.side .ad { margin-bottom: 24px; }

/* ---------- Подвал ---------- */
.site-foot { background: var(--ink); color: #aab3bd; padding: 28px 0 36px; font-size: 13px; line-height: 1.6; }
.site-foot__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.site-foot p { margin: 0 0 8px; max-width: 920px; }
.site-foot a { color: #e6eaee; }
.social--foot a { width: 34px; height: 34px; }

/* ---------- DLE: служебные блоки, формы, предупреждения ---------- */
.well { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.alert { border-radius: var(--radius); }
input[type="text"], input[type="password"], input[type="email"], textarea { border-radius: 8px; }
.btn.red, .btn.red:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-shadow: none; }
.btn.red:hover { background: var(--accent-dark); }
.ratebox2 ul, .ratebox3 ul { margin: 0; }
.comment { margin-bottom: 14px; }

/* ---------- Адаптив ---------- */
@media (min-width: 768px) and (max-width: 1199px) {
  .menu a { padding: 14px 8px; font-size: 13px; }
}

@media (max-width: 1023px) {
  .page { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .side { position: static; }
  .widget--fb { display: flex; justify-content: center; }
  .site-head__tools .social { display: none; }
}

@media (max-width: 767px) {
  body { padding: 0; font-size: 16px; }
  .site-head__in { flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
  .logo { text-align: center; }
  .logo img { height: 64px; }
  .site-head__tools { justify-content: stretch; }
  .search { max-width: none; flex: 1; }

  .nav-toggle { display: block; }
  .menu { display: none; flex-direction: column; padding-bottom: 8px; }
  .menu.is-open { display: flex; }
  .menu a { padding: 13px 4px; border-bottom: 1px solid #252c34; border-left: 3px solid transparent; }
  .menu a[aria-current="page"] { border-bottom-color: #252c34; border-left-color: var(--accent); padding-left: 10px; }

  .grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero .carousel-inner { aspect-ratio: 4 / 3; }
  .hero .carousel-caption { padding: 40px 16px 16px; }
  .hero .carousel-caption .carousel-title { font-size: 19px; }
  .hero .carousel-control { display: none; }
  .block__head h2 { font-size: 21px; }

  .card--row { flex-direction: column; }
  .card--row .card__media { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
  .card--row .card__body { padding: 16px 18px 4px; }
  .card--row .card__foot { padding: 12px 0 16px; }

  .article { padding: 20px 16px 18px; border-radius: 0; margin-left: -16px; margin-right: -16px; }
  .article__body { font-size: 17px; }
  .rel { flex-direction: column; }
  .rel__media { flex: none; width: 100%; }
  .site-foot__row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .card:hover .card__media img { transform: none; }
}

/* Боковая колонка и статья: нейтральные ссылки */
.side a, .widget a { color: var(--ink); }
.side a:hover, .widget a:hover { color: var(--accent-dark); }
.article__body a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #b8c1ca; }
.article__body a:hover { color: var(--accent-dark); text-decoration-color: currentColor; }

/* ==========================================================================
   Классический вид WINNER: чёрный занавес, белая «коробка», тёмные полосы
   ========================================================================== */
body { background: #0d0d0f url(../img/6841.jpg) center top / cover no-repeat fixed; }
.boxed { max-width: 1200px; margin: 0 auto; background: #fff; box-shadow: 0 0 50px rgba(0, 0, 0, .65); }
.boxed .wrap { max-width: none; padding-left: 25px; padding-right: 25px; }

.topbar, .site-foot { background: #555 url(../img/darkdenim3.png); }
.topbar { color: #e4e4e4; }
.site-head { border-bottom: 0; }
.site-head__in { padding-top: 18px; padding-bottom: 18px; }
.logo img { width: 440px; height: auto; max-width: 100%; }

.nav-main { background: #2b2f34; border-bottom: 3px solid #d84a38; }
.menu a { border-bottom: 0; }
.menu a:hover, .menu a:focus { background: #d84a38; }
.menu a[aria-current="page"] { background: #1c1f23; box-shadow: inset 0 -3px 0 #d84a38; }

.page { padding-top: 30px; }
.block__head h2 { padding: 8px 18px 8px 14px; background: #555; border-left: 4px solid #d84a38; border-radius: 0; font-size: 20px; }
.block__head h2 a, .block__head h2 a:hover { color: #fff; }
.block__head::after { background: #555; height: 2px; opacity: .25; }
.widget__title, .related__title { padding: 8px 14px; background: #555; border-left: 4px solid #d84a38; color: #fff; font-size: 18px; }
.related__title { display: inline-block; }

.card, .rel, .article, .widget, .sortbar { border-radius: 4px; box-shadow: none; border: 1px solid #e3e5e8; }
.card:hover { border-color: #c9ced4; }
.card__title a:hover { color: #d84a38; }
.hero .carousel { border-radius: 4px; box-shadow: none; }
.hero .carousel-title a { color: #fff; }

.side a, .side a:visited, .widget a, .widget a:visited { color: #2b2f34 !important; }
.side a:hover, .widget a:hover { color: #d84a38 !important; }

.site-foot { color: #d6d6d6; }
.site-foot a { color: #fff; }

@media (max-width: 767px) {
  .boxed .wrap { padding-left: 16px; padding-right: 16px; }
  .logo img { width: 300px; }
  .article { margin-left: 0; margin-right: 0; border-radius: 4px; }
}

/* Пагинация: одинаковые плоские кнопки (без двойной рамки у «Назад/Вперёд») */
.pager a, .pager__btn, .pager__pages > span {
  display: inline-block; min-width: 40px; padding: 9px 16px; margin: 0;
  border: 1px solid #d5d9de; border-radius: 4px; background: #fff; box-shadow: none;
  color: #2b2f34; font: 600 14px/1.2 var(--font-text); text-align: center; text-decoration: none;
}
.pager a:hover { background: #555; border-color: #555; color: #fff; text-decoration: none; }
.pager a > .pager__btn, .pager a > span {
  display: inline; min-width: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: inherit; font: inherit;
}
.pager__pages > span { background: #555; border-color: #555; color: #fff; }
.pager__pages > span span { padding: 0; border: 0; background: none; min-width: 0; color: inherit; }
