@charset "utf-8";

:root {
  --bodyBg: #000000;
  --bodyColor: #f0f0f0;
  --contentBg: #1d1d21;
  --contentBg2: #20201f;
  --navBar: #333;
  --navBarA: #f2f2f2;
  --navBarHomeHoverBg: #221612;
  --navBarAHoverBg: #ddd;
  --navBarAHoverColor: #000;
  --navBarAActiveBg: #44331c;
  --navBarAActiveColor: #fff;
  --logoGold: #f9be5b;
  --textContentP: #fffaf1;
  --textGold: #cdba9a;
  --textQuote: #fff;
  --textFooter: #cdba9a;

  --citeBg: #2d2e2b;
  --citeColor: #f2edda;

  --brownBg: #6d3522;
}


@font-face {
  font-family: 'PTMono';
  src: url('/fonts/PTMono-Regular.ttf');
}

@font-face {
  font-family: 'OswaldRegular';
  src: url('/fonts/Oswald-Regular.ttf');
}

@font-face {
  font-family: "LoraMi";
  src: url('/fonts/Lora-MediumItalic.ttf');
}

* {
  box-sizing: border-box;
}

html {
  background-color: var(--bodyBg);
  color: var(--bodyColor);
}


/* откл. фильтры, чтобы старые браузеры и MIUI не инвертировали цвета из-за "принудительной тёмной темы" */
img,
svg {
  filter: none !important;
}

body {
  font-family: 'PTMono', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  line-height: 1.5;
  margin: 0 auto;
  max-width: 45rem;
  background-color: var(--bodyBg);
  color: var(--bodyColor);
  font-size: 100%;
  /* reset */
  font-size: 17px;
  overflow-x: hidden;
  overflow-y: scroll;

  outline: none;
}

.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

/* для предотвращения возможности выделения текста добавляем этот класс */
.no-select {
  -webkit-user-select: none;
  /* Safari, old Chrome */
  -moz-user-select: none;
  /* Firefox  */
  -ms-user-select: none;
  /* IE, Edge */
  user-select: none;
  /* default  */
}

.noScroll {
  overflow-y: hidden;
}

.page-header {
  filter: none !important;
  background-color: #000000;

  height: 250px;
  min-height: 22vh;
  max-height: 30vh;
  overflow: hidden;
  position: relative;
  /* Необходимо для позиционирования дочерних элементов */

  border: none;
  outline: none;
}

.headerimg {
  display: block;
  
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  
  margin: 0;
  padding: 0;

  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/*    ====    ====    ====    ====      */
/*   =    =  =    =  =    =  =    =     */
/*   =    =  =    =  =    =  =    =     */
/*    ====    ====    ====    ====      */
.iconbar {
  clear: both;
  /* на всякий сл., остановим обтекание, т.к. выше кнопка float right */
  display: flex;
  justify-content: center;
  gap: 0.7rem;
  width: 100%;
  margin: 0;
  padding: 0;
}

.iconbar-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* гориз */
  text-align: center;
  /* На случай многострочного текста */
  text-decoration: none;
  color: #b35932;
  padding: 8px 0;
  box-sizing: border-box;

  /* откл. подсветку-выделение при тапе, т.к. у нас есть рамка для focus */
  -webkit-tap-highlight-color: transparent;
  /* для мобильных браузеров */
  user-select: none;
  /* отключает выделение текста */
}

.iconbar-link:focus {
  outline: 2px solid #d18925;
  outline-offset: 2px;
}

.iconbar-icon {
  max-height: 4rem;
  max-height: min(20vw, 4rem);
  height: auto;
  object-fit: contain;
  /* Сохраняет пропорции изображения */
  margin-bottom: 0.1rem;
}

.iconbar-text {
  font-family: 'OswaldRegular', 'Roboto Condensed', 'Source Sans Pro Condensed', 'Open Sans Condensed', sans-serif;
  font-size: 1.1rem;
  line-height: 1;
  text-transform: uppercase;
}


/*   --=====================  Style the navbar =========================--    */
#main-nav {
  overflow: hidden;
  background-color: var(--navBar);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  box-shadow: 0 6px 11px #000;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;

  z-index: 10;
}

.navh {
  height: 2.1rem;
}

.sticky {
  position: fixed;
  top: 0;
  width: 100%;
  max-width: inherit;
  height: 2.1rem;
  overflow: hidden;
}

/* For smooth scrolling after sticking of navbar */
.sticky+.site-flex {
  padding-top: 2.1rem;
}

#main-nav a {
  font-family: 'OswaldRegular', 'Roboto Condensed', 'Source Sans Pro Condensed', 'Open Sans Condensed', sans-serif;
  color: var(--logoGold);
  text-align: center;
  margin-top: 0;
  padding: 0.75rem 0.75rem;
  text-decoration: none;
  font-size: 1rem;
  -webkit-transition: all 0.3s ease;
  -moz-transition: all 0.3s ease;
  -o-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#main-nav a:focus {
  outline: 3px solid #ead282;
  outline-offset: 1px;
  background-color:#6d3522;
}

#main-nav a:first-child {
  margin-right: 0;
  margin-bottom: 0;
  float: left;
  padding: 0.5rem 0.3rem 0 0.2rem;
}

#main-nav a:hover {
  background-color: var(--navBarAHoverBg);
  color: var(--navBarAHoverColor);
}

#main-nav a.active {
  background-color: var(--navBarAActiveBg);
  color: var(--navBarAActiveColor);
}

#main-nav a:first-child:hover {
  background-color:#6d3522;
}

#site-logo {
  padding: 0.5em 0 0 0;
}

.nav-img {
  height: 2rem;
  margin: 0;
  padding: 0.1rem 0.6rem 0.1rem 0.6rem;
  cursor: pointer;
}

.nav-link {
  display: none;
}

#burger,
#quote {
  display: block;
}

#mobile-nav {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 0;
  position: fixed;
  z-index: 555;
  top: 0;
  left: 0;
  background-color: #111;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 5rem;
}

#mobile-nav .closebtn {
  position: absolute;
  top: 2rem;
  right: 1rem;
  margin-left: 50px;
}

.nav-link-mobile {
  font-family: 'OswaldRegular', 'Roboto Condensed', 'Source Sans Pro Condensed', 'Open Sans Condensed', sans-serif;

  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  box-sizing: border-box;
  white-space: nowrap;
  /* запрещает перенос строк */

  padding: 1rem 1rem 1rem 1rem;
  margin-right: 2rem;
  text-decoration: none;
  text-align: right;
  font-size: 1.7rem;
  color: #818181;
  transition: 0.3s;
}

a.nav-link-mobile:hover {
  color: #f1f1f1;
}

.nav-link-mobile span {
  padding-right: 1rem;
}

.mobile-nav-icon {
  height: 3rem;
}


.site-flex {
  display: flex;
  flex-direction: column;
  align-content: start;
}

/* -----  C O N T E N T ----- */
.content,
.footer {
  background-color: var(--contentBg);
  margin: 0.5rem 0 0 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: 'OswaldRegular', 'Roboto Condensed', 'Source Sans Pro Condensed', 'Open Sans Condensed', sans-serif;

  font-weight: normal;
  text-align: center;
  font-size: 1.8rem;
  color: var(--textGold);
  padding: 1.1rem 0 0.5rem 0;
  margin: 0 auto;
  text-indent: 0;
  line-height: 1;
}

h2 {
  font-size: 1.6rem;
  margin: 1rem auto 1.2rem auto;
}

h3 {
  font-size: 1.2rem;
  margin-left: 1rem;
  text-align: left;
}

p {
  hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;
  -webkit-hyphens: auto;
}

.da-quote {
  font-family: 'LoraMi', 'Georgia Italic', 'Times New Roman Italic', 'Palatino Italic', serif;
  font-size: 1.1rem;
  text-align: right;
  display: block;
  margin: 0;
  padding: 0.2rem 1.3rem 1rem 1.3rem;
  color: var(--textGold);
}

a {
  color: var(--logoGold);
}

.content p {
  text-indent: 1rem;
  color: var(--textContentP);
  margin: 0.6rem 0.2rem 0.8rem 0.2rem;
}

.content ul {
  padding: 0 1rem 0 3rem;
  margin: 0;
}

.disclaimer {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0;
  padding: 0;
}

.disclaimer p {
  text-indent: 0;
  width: 80%;
  margin: 0;
  padding: 0;
}


/* ---------- P C   &    T A B L E T S ---------- */
/* Unless you have a legitimate reason to restrict the style sheets based on the resolution */
/* and not the size of the viewport, then just use min-width/max-width */
/*  and avoid min-device-width/max-device-width */
/*                              _______________________                               */
/* -------------------======== [                       ]========--------------------- */
/* -------------------======== [ FOR LANDSCAPE SCREENS ]========--------------------- */
/* -------------------======== [                       ]========--------------------- */
/* @media screen and (orientation:landscape){ */
@media only screen and (min-aspect-ratio: 4/3) {

  .page-header {
    height: 250px;
    min-height: max(150px, 22vh);
    max-height: min(400px, 28vh);
  }

  h1 {
    padding: 1.1rem 0 0.5rem 0;
    margin: 0 auto;
  }

  h2 {
    padding: 1.1rem 0 0.5rem 0;
    margin: 0 auto;
  }
  
  .nav-link {
    display: block;
  }

  /* for Logo to be on the left we're adding "margin-right:auto" on the flex child */
  #main-nav a:first-child {
    margin-right: auto;
  }

  .content, .footer {
    margin: 0.5rem 0 0 0;
  }

  .content p {
    margin: 0.6rem 1.6rem 0.8rem 2.1rem;
    padding: 0.5rem 0.5rem 0.5rem 0.7rem;
  }

  #mobile-nav,
  #burger {
    display: none;
  }


}

/* ---------- extra wide  ---------- */
@media only screen and (min-aspect-ratio: 17/9) {}


/* ---------- O L D    P H O N E S ---------- */
@media only screen and (max-width: 320px) {}