/*
Theme Name: VipRusStroy Custom
Theme URI: https://example.com/
Author: Ваше имя
Description: Кастомная тема — изменённый футер, увеличенные шрифты, переработанный вывод постов, улучшенный сайдбар и шапка.
Version: 1.2
License: GNU General Public License v2 or later
Text Domain: viprusstroy-custom
*/

:root{
  --site-width: 1200px; /* увеличена общая ширина */
  --accent: #1a73be;
  --text: #111217;
  --muted: #555;
  --bg: #ffffff;
  --card-bg: #ffffff;
}

/* Базовый сброс и типография */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size:18px;
  line-height:1.65;
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* Заголовки */
h1{font-size:36px;}
h2{font-size:30px;}
h3{font-size:24px;}
h4{font-size:21px;}
h5{font-size:19px;}
h6{font-size:18px;}

/* Сетка */
.site {
  max-width:var(--site-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 260px 1fr; /* контент шире */
  gap: 2rem;
  min-height:100vh;
  padding: 28px;
}

/* Сайдбар */
.sidebar {
  background: #0e1215;
  color: #fff;
  padding: 24px;
  border-radius: 6px;
  position: sticky;
  top: 20px;
  height: fit-content;
}
.sidebar a{ color: #fff; text-decoration: none; }
.sidebar a:hover{ text-decoration: underline; }

.widget-title {
  font-size: 20px;
  margin-bottom: 0.5em;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
}

/* Ссылки в сайдбаре */
.sidebar ul{list-style:none; margin:0; padding:0;}
.sidebar li{margin-bottom:10px;}
.sidebar li a{
  display:block;
  padding:6px 10px;
  border:1px solid #444;
  border-radius:4px;
  font-size:17px;
  background:rgba(255,255,255,0.05);
}
.sidebar li a:hover{
  background:var(--accent);
  border-color:var(--accent);
  color:#fff;
}

/* Шапка (название и описание) */
.site-branding{
  margin-bottom:24px;
  text-align:center;
}
.site-title{
  font-size:30px;
  margin:0;
}
.site-title a{
  color:#fff;
  text-decoration:none;
}
.site-title a:hover{
  color:var(--accent);
}
.site-description{
  margin-top:6px;
  font-size:17px;
  color:#ddd;
  font-style:italic;
}

/* Контент */
.content {
  background: transparent;
  font-size:18px;
}

/* Посты */
.post-list { display: grid; gap: 26px; }
.post-item {
  border-radius: 8px;
  background: var(--card-bg);
  padding: 12px 12px 18px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}

.post-item .entry-title { font-size: 22px; margin-bottom: 10px; }
.post-item .entry-title a { color: var(--text); text-decoration: none; }
.post-item .entry-title a:hover{ color: var(--accent); text-decoration: underline; }

.post-media { margin-bottom: 12px; position: relative; }
.post-media .post-thumbnail {
  display:block;
  position:relative;
  width:100%;
  height:0;
  padding-bottom:56.25%;
  overflow:hidden;
  border-radius:6px;
  background-color:#f1f1f1;
  background-position:center;
  background-size:cover;
}
.post-thumbnail img{
  position:absolute; top:0; left:0;
  width:100%; height:100%; object-fit:cover;
}
.post-thumbnail .no-thumb{
  position:absolute; top:0; left:0;
  width:100%; height:100%;
  background:#f1f1f1 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 630'%3E%3Ctext x='50%25' y='50%25' fill='%23999' font-size='36' font-family='Arial' dominant-baseline='middle' text-anchor='middle'%3EНет изображения%3C/text%3E%3C/svg%3E") center/60% no-repeat;
}

.thumb-overlay{
  position:absolute; left:0; right:0; bottom:0;
  padding:10px 12px;
  background: rgba(0,0,0,0.45);
  color:#fff;
  display:flex;
  justify-content:space-between;
  font-size:15px;
  border-bottom-left-radius:6px;
  border-bottom-right-radius:6px;
}

.entry-excerpt{
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
  text-overflow:ellipsis;
  margin-top:10px;
  color:var(--muted);
  font-size:18px; /* увеличено */
}

/* Контент полной новости */
.entry-content{
  font-size:18px;
  line-height:1.7;
}

/* Пагинация */
.pagination, .nav-links{
  font-size:18px;
  margin:20px 0;
  display:flex;
  justify-content:center;
  gap:10px;
}
.pagination a, .pagination span,
.nav-links a, .nav-links span{
  padding:6px 12px;
  border:1px solid #ddd;
  border-radius:4px;
}

/* Футер */
.site-footer{
  width:100%;
  padding:20px;
  text-align:center;
  background:#f9f9f9;
  border-top:1px solid #ddd;
}
.site-footer .site-info{
  max-width: var(--site-width);
  margin:0 auto;
  font-size:16px;
  color:#666;
}


/* Респонсив */
@media (max-width: 900px){
  .site { grid-template-columns: 1fr; padding:16px; }
  .sidebar { order:2; }
  .content { order:1; }
}
