/*
Theme Name: BIGRUSSIA
Theme URI: http://localhost/wordpress10
Author: BIGRUSSIA
Description: Business Investment Guide to Russia. Макет журнала по снимку 6 июня 2023: красная шапка, три колонки, карточки статей.
Version: 1.0.3
Requires at least: 6.0
Text Domain: bigrussia
*/

@font-face {
  font-family: Logo;
  src: url("assets/biglogo.ttf") format("truetype");
  font-display: swap;
}

@font-face {
  font-family: Site;
  src: url("assets/site.ttf") format("truetype");
  font-display: swap;
}

:root {
  --red: #d71921;
  --red-dark: #a10209;
  --red-switch: #cc151d;
  --red-hover: #e11921;
  --link: #09659b;
  --ink: #222222;
  --muted: #3a3a3a;
  --grey: #f5f5f5;
  --line: #e5e5e5;
  --max: 1200px;
}

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

body {
  margin: 0;
  background: #fff;
  color: #333;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.45;
}

img { border: 0; max-width: 100%; height: auto; }
a { color: var(--link); }
button, input { font-family: inherit; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  background: #000;
  color: #fff;
  padding: 8px 12px;
  z-index: 100;
}
.skip-link:focus { top: 12px; }

.site-width {
  width: min(var(--max), calc(100% - 24px));
  margin: 0 auto;
}

.declare {
  font-family: Georgia, serif;
  font-size: 11px;
  font-variant: small-caps;
  letter-spacing: 3px;
  color: #333;
}

.top-line { background: #fff; }
.top-line-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 36px;
  padding-top: 8px;
}

.langlist {
  font-family: Arial, sans-serif;
  font-size: 16px;
  text-transform: uppercase;
  color: #666;
}
.langlist a {
  margin-left: 10px;
  color: inherit;
  font-weight: bold;
}

.red-line {
  background: var(--red);
  border-top: 1px solid var(--red-dark);
  border-bottom: 1px solid var(--red-dark);
  color: #fff;
  padding-top: 8px;
  overflow: visible;
}

.menu-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.site-logo,
.site-logo a {
  font-family: Logo, Georgia, serif;
  font-size: 56px;
  line-height: 50px;
  color: #fff;
  text-decoration: none;
  margin-top: 2px;
}

.topnav {
  display: flex;
  align-items: flex-start;
  margin-left: auto;
}

.socials {
  display: flex;
  gap: 12px;
  margin: 22px 10px 0 0;
}
.socials img { width: 26px; height: 27px; display: block; }

.switch {
  width: 120px;
  margin: 0 -2px;
}
.switch a {
  display: block;
  width: 120px;
  height: 70px;
  text-align: center;
  color: #fff;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 16px;
  background: var(--red-switch);
  border-left: 1px solid var(--red-dark);
  border-right: 1px solid var(--red-dark);
}
.switch a:hover { background: var(--red-hover); }
.switch img {
  width: 45px;
  height: 45px;
  margin: 5px 0 -8px;
}
.switch.selected {
  position: relative;
  z-index: 2;
}
.switch.selected a {
  background: var(--red-switch);
  border: 0;
}
.switch.selected::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid var(--red-switch);
}

.grey-line {
  background: var(--grey);
  color: #333;
  font-family: Verdana, sans-serif;
  font-size: 16px;
}
.grey-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 42px;
}
.brand-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
#bigrus_org {
  font-family: Site, Georgia, serif;
  font-size: 24px;
  color: #333;
  text-decoration: none;
  padding-right: 46px;
  background: url("assets/barrow.png") right center / 40px no-repeat;
  white-space: nowrap;
}
.brand-note { line-height: 1.3; }

input[type="search"] {
  width: 180px;
  height: 28px;
  border: 1px solid #e5e5e5;
  background: #fff;
  font-size: 16px;
  padding: 0 8px;
}

#mainframe {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 220px;
  column-gap: 14px;
  align-items: start;
  padding-bottom: 20px;
}

.tagline {
  grid-column: 1 / -1;
  margin: 12px 0;
}
.tagline a {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 16px;
  color: #000;
  text-decoration: none;
  margin-right: 28px;
}
.tagline a:hover { color: #990000; background: #eee; }

.sidebar {
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--grey);
  margin-top: 9px;
}
.sidebar.plain {
  background: none;
  border: 0;
  padding: 10px 0;
}
.side-head {
  padding-bottom: 10px;
  border-bottom: 1px solid #000;
  color: #000;
  font-family: Arial, sans-serif;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 13px;
}
.side-head a { color: #000; text-decoration: none; }
.side-head a:hover { color: var(--red); }
.sidebar ul { list-style: none; margin: 8px 0 0; padding: 0 0 0 8px; }
.sidebar li {
  font-family: Georgia, serif;
  font-weight: normal;
  font-size: 16px;
  text-transform: none;
  line-height: 1.5;
  border-bottom: 1px solid #ccc;
  margin-bottom: 5px;
}
.sidebar a { color: #000; text-decoration: none; }
.sidebar a:hover { color: var(--red); }

#often li,
#partner li {
  overflow: hidden;
  padding-bottom: 14px;
  font-size: 13px;
  line-height: 1.3;
  font-family: Georgia, serif;
}
#often .thumb {
  float: left;
  width: 50px;
  height: 50px;
  object-fit: cover;
  margin: 0 10px 0 0;
}
.mini-title {
  display: block;
  font-weight: bold;
  line-height: 1.15;
  margin-bottom: 4px;
}
#partner { padding-left: 0; }
#partner li:last-child,
#often li:last-child { border-bottom: 0; }

#center { padding-top: 9px; min-width: 0; }

.slider {
  position: relative;
  width: 100%;
  aspect-ratio: 700 / 310;
  background: #fff;
  overflow: hidden;
  margin-bottom: 12px;
}
.slider ul { list-style: none; margin: 0; padding: 0; height: 100%; }
.slider li {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.slider li.on { opacity: 1; z-index: 1; }
.slider img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.slider-nav {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 48px;
  border: 0;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.slider-nav.prev { left: 0; }
.slider-nav.next { right: 0; }

#postlist {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.list_item {
  position: relative;
  height: 250px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.list_item:hover { border-color: var(--red); }
.list_item:hover .post_hdr { color: var(--red); }

.post_top {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  top: 0;
  height: 30px;
  line-height: 30px;
  background: rgba(244, 244, 244, 0.6);
  font-family: Arial, sans-serif;
  font-size: 15px;
  font-weight: bold;
  text-transform: uppercase;
}
.post_top a {
  color: #222;
  text-decoration: none;
  margin-left: 10px;
}
.post_top a:hover { color: var(--red); }

.post_body {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.post_poster {
  display: block;
  height: 132px;
  background-size: cover;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-color: #eee;
}
.post_date,
.entry-date {
  display: block;
  margin: 4px 10px 0;
  color: #888;
  font-family: Arial, sans-serif;
  font-size: 12px;
  font-weight: normal;
}
.entry-date { margin: 0 0 12px; font-size: 14px; }
.post_hdr {
  display: block;
  margin: 8px 10px 0;
  color: #222;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.2;
  max-height: 2.4em;
  overflow: hidden;
}
.post_note {
  display: block;
  margin: 6px 10px 0;
  color: var(--muted);
  font-family: Georgia, serif;
  font-size: 14px;
  font-weight: normal;
  line-height: 1.3;
  max-height: 3.9em;
  overflow: hidden;
}

.list_item.is-thumb .post_poster { display: none; }
.list_item.is-thumb .post_thumb {
  float: left;
  width: 100px;
  height: 100px;
  margin: 46px 12px 0 10px;
  background-size: cover;
  background-position: center;
  background-color: #eee;
}

#postnav { text-align: center; padding: 18px 0 8px; clear: both; }
#postnav a { font-family: Georgia, serif; font-size: 18px; }

.entry-kicker {
  font-family: Arial, sans-serif;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  margin: 0 0 8px;
}
.entry-kicker a { color: #222; text-decoration: none; }
.entry-kicker a:hover { color: var(--red); }
.entry-title {
  font-family: Arial, sans-serif;
  font-size: 32px;
  line-height: 1.15;
  margin: 0 0 12px;
  color: #111;
}
.entry-image { margin: 0 0 14px; }
.entry-image img { width: 100%; height: auto; display: block; }
.entry-lead,
.entry-content {
  font-family: Georgia, serif;
  font-size: 18px;
  line-height: 1.55;
  color: #222;
}
.entry-lead { font-weight: bold; margin: 0 0 12px; }
.entry-content p { margin: 0 0 1em; }
.br-crumbs { font-family: Arial, sans-serif; font-size: 13px; color: #888; margin: 0 0 10px; }
.br-crumbs a { color: #09659B; text-decoration: none; }
.br-crumbs a:hover { color: var(--red); }
.br-related {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid #e4e4e4;
  font-family: Arial, sans-serif;
}
.br-related h2 {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.3;
  margin: 0 0 10px;
  color: #a10209;
}
.br-related ul { list-style: none; margin: 0; padding: 0; }
.br-related li { margin: 0 0 8px; font-size: 15px; line-height: 1.35; }
.br-related a { color: #09659B; text-decoration: none; }
.br-related a:hover { color: var(--red); }
.br-related-all { margin: 12px 0 0; font-size: 14px; }
.page-title {
  font-family: Arial, sans-serif;
  font-size: 28px;
  margin: 4px 0 14px;
}

.story-list { list-style: none; margin: 0; padding: 0; }
.story-list li {
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.story-list img { width: 72px; height: 54px; object-fit: cover; }
.story-list a { color: #111; text-decoration: none; font-family: Arial, sans-serif; font-weight: bold; }
.story-list a:hover { color: var(--red); }
.story-list span { display: block; font-family: Georgia, serif; font-weight: normal; font-size: 14px; color: #555; }

.calendar { width: 100%; border-collapse: separate; border-spacing: 4px; }
.calendar th {
  font-family: Arial, sans-serif;
  font-size: 13px;
  color: #999;
  font-weight: normal;
  text-align: center;
  padding-bottom: 6px;
}
.calendar td {
  height: 72px;
  vertical-align: top;
  background: #f0f0f0;
  color: #999;
  font-family: Arial, sans-serif;
  font-size: 14px;
  padding: 6px 8px;
}
.calendar td.today {
  color: var(--red);
  font-weight: bold;
  outline: 1px solid var(--red);
}
.calendar td.out { background: transparent; }
.cal-note { color: #555; font-size: 16px; }

.pager { display: flex; gap: 16px; justify-content: center; margin-top: 16px; }

.page-bottom { margin-top: 10px; }
.foot-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0 18px;
}
.foot-cols h2 {
  margin: 0 0 8px;
  padding-left: 16px;
  border-left: 1px solid var(--line);
  font-family: Arial, sans-serif;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
}
.foot-cols a {
  display: block;
  margin: 6px 0 6px 16px;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: normal;
  color: #000;
  text-decoration: none;
}
.foot-cols a:hover { color: #990000; }

.footer-red { background: var(--red); color: #fff; border: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 1fr 1fr;
  gap: 16px;
  padding: 14px 0 22px;
  align-items: end;
}
.footer-red .declare { color: #fff; }
.footer-red .site-logo { display: block; margin-top: 0; }
.site-tag,
.site-tag a {
  color: #fff;
  text-decoration: none;
  font-family: Georgia, serif;
  font-size: 16px;
  margin-top: 6px;
}
.footer-red .socials { margin: 0 0 14px; }
.store-badges { display: flex; gap: 8px; align-items: center; }
.store-badges img { height: 40px; width: auto; }

hr.soft {
  border: 0;
  border-bottom: 1px solid #a2b6cb;
  margin: 16px 0;
}

@media (max-width: 980px) {
  .site-logo,
  .site-logo a { font-size: 40px; line-height: 1; }
  .menu-line { flex-wrap: wrap; }
  .topnav { width: 100%; justify-content: flex-end; flex-wrap: wrap; }
  #mainframe { grid-template-columns: 1fr; }
  #left, #right, #center, .tagline { grid-column: 1; }
  #right { order: 3; }
  .footer-grid,
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .brand-note { display: none; }
}

@media (max-width: 700px) {
  #postlist { grid-template-columns: 1fr; }
  .switch { width: auto; }
  .switch a { width: 104px; font-size: 14px; }
  .footer-grid,
  .foot-cols,
  .grey-inner,
  .top-line-header { grid-template-columns: 1fr; display: flex; flex-wrap: wrap; }
  .list_item { height: auto; min-height: 250px; }
}


.pager .nav-links { display: flex; gap: 16px; justify-content: center; align-items: center; flex-wrap: wrap; }
.pager .page-numbers { color: #09659b; text-decoration: none; font-family: Georgia, serif; }
.pager .page-numbers.current { color: #111; font-weight: bold; }
.pager .page-numbers:hover { color: #d71921; }
