/* ===========================================================================
   Круглое.Рус — тема на основе оригинального Gantry 5 Phoenix.
   Палитра: чёрный фон #000, золотой акцент #f6c167, оранжевый #ec5a1c.
   Шрифт: Akrobat (если установлен) → системный sans-serif.
   =========================================================================== */

:root {
  --accent:        #f6c167;   /* золотой — ссылки, кнопки, акценты */
  --accent-2:      #ec5a1c;   /* оранжево-красный — вторичный акцент */
  --bg:            #0d0d0d;   /* основной фон */
  --bg-soft:       #161616;   /* фон карточек/секций */
  --bg-soft-2:     #1d1d1d;   /* фон при наведении */
  --line:          #2a2a2a;   /* границы */
  --text:          #c9c9c9;   /* основной текст */
  --text-dim:      #8a8a8a;   /* приглушённый текст */
  --heading:       #ffffff;   /* заголовки */
  --radius:        10px;
  --maxw:          1200px;
}

/* Локальный шрифт Akrobat, если перенесён в /fonts/akrobat/ */
@font-face {
  font-family: 'Akrobat';
  src: url('/fonts/akrobat/Akrobat-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Akrobat';
  src: url('/fonts/akrobat/Akrobat-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Akrobat', 'Segoe UI', 'Fira Sans', Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: #ffd587; }

h1, h2, h3, h4 { color: var(--heading); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; }

img { max-width: 100%; height: auto; display: block; }

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

/* ---- Кнопки ---- */
.btn {
  display: inline-block; padding: 10px 22px; border-radius: var(--radius);
  background: var(--accent); color: #1a1a1a !important; font-weight: 700;
  border: none; cursor: pointer; transition: background .15s, transform .1s;
}
.btn:hover { background: #ffd587; transform: translateY(-1px); }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent) !important; }
.btn-outline:hover { background: var(--accent); color: #1a1a1a !important; }

/* =========================== ШАПКА =========================== */
.site-top {
  background: #000; border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.site-top .container { display: flex; align-items: center; gap: 16px; padding: 8px 16px; }
.site-search { flex: 1; display: flex; }
.site-search input {
  flex: 1; padding: 9px 14px; border-radius: var(--radius) 0 0 var(--radius);
  border: 1px solid var(--line); background: var(--bg-soft); color: var(--text);
}
.site-search button {
  border-radius: 0 var(--radius) var(--radius) 0; padding: 9px 18px;
  border: none; background: var(--accent); color: #1a1a1a; font-weight: 700; cursor: pointer;
}
.site-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.site-tags a { background: var(--bg-soft); padding: 3px 10px; border-radius: 20px; font-size: 13px; color: var(--text-dim); }
.site-tags a:hover { background: var(--accent); color: #1a1a1a; }

.site-header { background: #000; border-bottom: 2px solid var(--accent); }
.site-header .container { display: flex; align-items: center; gap: 24px; padding: 14px 16px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand .logo-mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--accent); color: #000; font-weight: 800; font-size: 26px;
  display: flex; align-items: center; justify-content: center;
}
.brand .logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand .logo-text strong { color: #fff; font-size: 22px; }
.brand .logo-text span { color: var(--text-dim); font-size: 12px; }

/* ---- Главное меню ---- */
.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.main-nav a { display: block; padding: 10px 14px; color: #fff; font-weight: 600; border-radius: var(--radius); }
.main-nav a:hover, .main-nav li.active > a { background: var(--accent); color: #000; }
/* выпадающее подменю */
.main-nav li ul {
  position: absolute; top: 100%; left: 0; min-width: 200px; flex-direction: column;
  background: var(--accent); border-radius: var(--radius); padding: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4); display: none; z-index: 50;
}
.main-nav li:hover > ul { display: flex; }
.main-nav li ul a { color: #000; }
.main-nav li ul a:hover { background: #000; color: #fff; }

/* мобильный бургер */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: #fff; font-size: 22px; padding: 6px 12px; border-radius: var(--radius); cursor: pointer; }

/* =========================== СЛАЙДЕР =========================== */
.hero { position: relative; }
.hero-slide {
  position: relative; min-height: 60vh; display: flex; align-items: center;
  background-size: cover; background-position: center;
}
.hero-slide::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.25)); }
.hero-slide .hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; padding: 40px 16px; }
.hero-slide h2 { font-size: 44px; color: #fff; max-width: 600px; }
.hero-slide p { font-size: 18px; color: #eee; max-width: 540px; margin-bottom: 22px; }

/* =========================== РАСКЛАДКА =========================== */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; padding: 28px 0; }
.layout.full { grid-template-columns: 1fr; }
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

/* =========================== БЛОКИ КОНТЕНТА =========================== */
.block { margin-bottom: 34px; }
.block-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; border-left: 4px solid var(--accent); padding-left: 12px; }
.block-head h2 { font-size: 24px; margin: 0; }
.block-head .more { font-size: 14px; color: var(--text-dim); }
.block-head .more:hover { color: var(--accent); }

/* сетка карточек */
.cards { display: grid; gap: 18px; }
.cards.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cards.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards.cols-4 { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 760px)  { .cards.cols-3, .cards.cols-4 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 480px)  { .cards.cols-2, .cards.cols-3, .cards.cols-4 { grid-template-columns: 1fr; } }

/* карточка */
.card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; transition: transform .12s, border-color .12s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card .thumb { aspect-ratio: 16/10; background: var(--bg-soft-2) center/cover no-repeat; display: block; }
.card .thumb.placeholder { display: flex; align-items: center; justify-content: center; color: #333; font-size: 40px; }
.card .card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card .card-title { font-size: 16px; color: #fff; font-weight: 700; line-height: 1.25; }
.card .card-title a { color: #fff; }
.card .card-title a:hover { color: var(--accent); }
.card .card-meta { font-size: 12px; color: var(--text-dim); margin-top: auto; }
.card .card-excerpt { font-size: 13px; color: var(--text-dim); }

/* широкая горизонтальная карточка (для лент в 1 колонку) */
.card.row { flex-direction: row; }
.card.row .thumb { width: 200px; aspect-ratio: auto; flex-shrink: 0; }
@media (max-width: 560px) { .card.row { flex-direction: column; } .card.row .thumb { width: 100%; aspect-ratio: 16/10; } }

/* =========================== САЙДБАР =========================== */
.sidebar .widget { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 22px; overflow: hidden; }
.sidebar .widget-head { background: #000; color: #fff; padding: 12px 16px; font-weight: 700; border-bottom: 2px solid var(--accent); }
.sidebar .widget-body { padding: 14px 16px; }
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { border-bottom: 1px solid var(--line); }
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget li a { display: block; padding: 9px 0; color: var(--text); }
.sidebar .widget li a:hover { color: var(--accent); padding-left: 6px; }

/* опрос */
.poll-option { margin-bottom: 10px; }
.poll-option .bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.poll-option .bar span { display: block; height: 100%; background: var(--accent); }

/* =========================== ХЛЕБНЫЕ КРОШКИ =========================== */
.breadcrumbs { font-size: 13px; color: var(--text-dim); padding: 14px 0; }
.breadcrumbs a { color: var(--text-dim); }
.breadcrumbs a:hover { color: var(--accent); }

/* =========================== СТАТЬЯ =========================== */
.article-full h1 { font-size: 32px; }
.article-meta { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.article-body { font-size: 17px; line-height: 1.75; }
.article-body img { border-radius: var(--radius); margin: 14px 0; }
.article-body a { text-decoration: underline; }

/* =========================== ПОДВАЛ =========================== */
.site-footer { background: #000; border-top: 2px solid var(--accent); margin-top: 40px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; padding: 40px 16px; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 460px) { .footer-cols { grid-template-columns: 1fr; } }
.footer-cols h4 { color: var(--accent); font-size: 16px; margin-bottom: 14px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li a { color: var(--text-dim); display: block; padding: 5px 0; }
.footer-cols li a:hover { color: #fff; }
.site-copy { border-top: 1px solid var(--line); text-align: center; padding: 18px; color: var(--text-dim); font-size: 13px; }

/* =========================== ПАГИНАЦИЯ =========================== */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; list-style: none; padding: 24px 0; margin: 0; justify-content: center; }
.pagination a, .pagination span { display: block; padding: 8px 14px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); }
.pagination .active span { background: var(--accent); color: #000; border-color: var(--accent); }

/* =========================== АДАПТИВ ШАПКИ =========================== */
@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .main-nav { display: none; flex-basis: 100%; margin-left: 0; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; }
  .main-nav li ul { position: static; display: flex; }
  .site-header .container { flex-wrap: wrap; }
  .site-top .container { flex-wrap: wrap; }
}
