body, html {
  max-width: 100%;
  height: 100%;
}

@font-face {
  font-family: firstFont; 
  src: url(Fonts/first/Comfortaa-SemiBold.ttf);
  src: url(Fonts/first/Comfortaa-Medium.ttf);
  src: url(Fonts/first/Comfortaa-Light.ttf);
  src: url(Fonts/first/Comfortaa-Regular.ttf);
}

@font-face {
  font-family: secondFont;
  src: url(Fonts/second/Montserrat-Black.ttf);
  src: url(Fonts/second/Montserrat-BlackItalic.ttf);
  src: url(Fonts/second/Montserrat-SemiBold.ttf);
  src: url(Fonts/second/Montserrat-Bold.ttf);
  src: url(Fonts/second/Montserrat-ExtraBold.ttf);
  src: url(Fonts/second/Montserrat-Regular.ttf);
}

@font-face {
  font-family: firstFontBold;
  src: url(Fonts/first/Comfortaa-Bold.ttf);
  font-weight: bold;
}

@font-face {
  font-family: secondFontBold;
  src: url(Fonts/second/Montserrat-Medium.ttf);
  font-weight: bold;
}

@font-face {
  font-family: secondFontBlack;
  src: url(Fonts/second/Montserrat-Black.ttf);
}

body {
  font-family: firstFont;
  font-family: secondFont;
  font-size: 14px;
  padding: 0 0 0 0;
  margin: 0;
  overflow-x: hidden;
  background-color: #2A4B7C;
}

header {
  max-width: 100%;
}

footer {
  max-height: 100%;
  background-color: #142339;
}

h1, h2 {
  margin: 0;
}

h4 {
  margin-top: 8px;
  margin-bottom: 5px;
}

img {
  max-width: 100%;
  height: auto;
}

header, div, img {
  box-sizing: border-box;
}

/* HEADER */
.header_container {
  box-shadow: 3px 3px 10px 2px rgba(0,0,0,0.3);
  margin: 15px 15px;
  height: 88px;
  border-radius: 10px;
  background-color: #142339;
}

.header_mobile {
  background-color: #142339;
  display: none;
  padding-bottom: 5px;
}

.mobile_container {
  display: grid;
  grid-template-columns: 1fr auto; 
}

.mobile_container a {
  text-decoration-line: none;
  color: #fff;
}

.logo_mobile {
  font-family: firstFontBold;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.mobile_menu_container {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.mobile_menu_container #links {
  display: none;
}

#links {
 width: 100%;
}

.mobile_menu_container a {
  padding: 10px 0 10px 20px;
  color: #fff;
  text-decoration: none;
  font-size: 17px;
  font-family: secondFont;
  display: inline-block;
  background-color:  #142339;
  width: 100%;
  text-transform: uppercase;
}

.nav_list {
  text-decoration: none;
  text-transform: uppercase;
  list-style: none;
  padding-top: 31px;
  padding-right: 30px;
  position: absolute;
  color: white;
  justify-self: end;
  display: block;
}

.nav_list a {
  display: inline-block;
  margin-left: 10px;
  font-family: secondFontBold;
  font-size: 18px;
  vertical-align: middle;
  font-weight: bolder;
}

.nav_list a:hover {
  text-decoration-line: underline;
}

 .menu_icon {
  position: absolute;
  display: none;
  width: 80px;
  justify-self: end;
  margin: 10px 10px;
}

.menu_icon_mobile {
  display: none;
  width: 30px;
}

.item1 {
  display: grid;
  grid-template-columns: auto 1fr; 
  position: relative;
  border-radius: 10px;
  box-shadow: 3px 3px 10px 2px rgba(0,0,0,0.3);
}

.item1 a {
  text-decoration-line: none;
  color: #fff;
}

.logo {
  font-family: firstFontBold;
  position: absolute;
  color: white;
  font-size: 15px;
  text-transform: uppercase;
  padding-top: 10px;
  padding-left: 10px;
  display: block;
  transition-property: all;
  transition-duration: 5s;
  -webkit-transition-property: all;
  -webkit-transition-duration: 5s;
}

 .logo:hover  {
  padding-left: 60px;
 }
 .logo:hover h2 {
  display: none;
 }
 .logo:hover div::after {
  content: "на главную";
  font-size: 1.5em;
 }

.logo:hover .fa-dot-circle-o {
  color: rgba(255,117,26,0.8);
  text-shadow: 1px 3px 3px rgba(255,117,26,0.8);
}

 #name, #name2 {
   text-transform: lowercase;
   font-size: 1em;
   font-family: secondFontBlack;
   color: #fff;
   background-color: ;
   border: 4px solid #fff;
   border-radius: 15px;
   text-align: center;
 } 

  #name2 {
  border: 3px solid #fff;
  border-radius: 20px;
 }

.drop_container {
  position: relative;
  display: inline-block;
}

.drop_content {
  position: absolute;
  display: none;
  background-color: #142339;
  margin-left: 3px;
  height: auto;
  z-index: 1;
  border-radius: 10px;
}

.drop_content a  {
  text-transform: none;
  font-size: 17px;
  font-family: secondFontBold;
  text-align: left;
  color: #fff;
  text-decoration: none;
  padding: 3px 10px 5px 10px;
  margin: 3px; 
  font-weight: bolder;
  display: block;
}

 .drop_container:hover .drop_content {
  display: block;
}

.drop_container:hover .drop_btn {
  font-family: firstFontBold;
  font-size: 25px;
  font-weight: bold;
  text-decoration-line: none;
}

.drop_btn {
 position: relative;
}

.drop_btn a:hover {
  font-size: 25px;
}

.drop_content a:hover {
  font-family: secondFontBold;
  font-size: 17px;
  border-radius: 10px;
  background-color: #fff;
  color: #142339;
  text-decoration-line: none;
}



/* CONTENT */

.content_container {
  display: grid;
  padding-bottom: 20px;
}

.question {
  padding-bottom: 15px;
  overflow: hidden;
  margin-top: 5px;
  background-color: #fff;
  border-radius: 0px 20px 20px 0px;
  margin-right: 2px;
  margin-bottom: 15px;
}

.question2 {
  border-radius: 0px 20px 20px 0px;
  margin-right: 2px;
  background-color: #fff;
  padding-bottom: 15px;
  margin-top: 20px;
}

.question p, .question2 p {
  font-size: 16px;
  font-family: secondFont;
}

.answer {
  border-radius: 20px 0px 0px 20px;
  background-color: #fff;
  margin-left: 2px;
  padding-bottom: 15px;
  margin-top: 5px;
}

.answer p {
  font-size: 16px;
  font-family: secondFont;
}

.article {
  font-size: 14px;
  font-family: secondFont;
  padding-top: 15px;
  background-color: #fff;
  padding-left: auto;
  margin-left: auto;
  padding-right: auto;
  margin-right: auto;
}

.article a {
  color: #111;
  text-decoration-line: underline;
  text-decoration-style: dotted;
  text-decoration-color: #ff751a;
}

#article_title, #article_title3, #article_title4 {
  font-size: 25px;
  font-family: firstFontBold;
  color: #ff751a;
  text-align: center;
  align-self: center;
}

 #article_title2 {
  font-size: 45px;
  font-family: secondFont;
  text-shadow: 1px 1px #142339;
  align-self: center;
  color: #fff;
  justify-self: center;
}

.cover {
  margin-top: 10px; 
  justify-self: center;
  text-align: center; 
}

.cover img {
  border-radius: 10px;
  box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
  width: 350px;
  overflow: hidden;
}

.picture {
  display: none;
}

.inner_quote2 {
 border-top: 1.5px dashed #142339;
 border-bottom: 1.5px dashed #142339;
 color: #142339;
}

.inner_quote2 p {
  font-family: firstFont;
}

.inner_quote3 {
  padding-top: 0px;
  padding-bottom: 5px;
  color: #142339;
  font-size: 16px;
  font-family: secondFont;
  line-height: 140%;
}

.inner_end {
  text-align: center;
  font-size: 30px;
  letter-spacing: 10px;
  color: #ff751a;
  margin-left: 10px;
}

.first_letter {
  font-size: 25px;
  display: inline-block;
  padding: 0 5px;
  background-color: #ff751a;
  border-radius: 5px;
  color: #fff;
}

.author {
  font-size: 15px;
  font-family: firstFontBold;
  color: #111;
  text-align: right; 
}

.article_list, .article_list2 {
  padding-left: 15px;
  font-size: 16px;
  margin-top: -5px;
}

.article_list2 {
  list-style: none;
  padding-left: 0px;
}

.article_list li, .article_list2 li {
  padding-top: 5px;
  font-size: 16px;
}

.article_sublist {
  padding-left: 15px;
  list-style: none;
}


/* FOOTER */

.footer_container {
  padding-top: 20px;
  padding-bottom: 20px;
  display: grid;
  grid-template-columns: auto auto;
  background-color: #142339;
}

.footer_contact {
  font-family: secondFont;
  font-size: 15px;
  color: #fff;
  display: grid;
  grid-template-columns: 350px auto;
  margin-left: 15px;
  margin-right: 25px;
}

.attention {
  font-family: secondFont;
  font-size: 15px;
  color: #eee;
  padding-top: 3px;
  padding-bottom: 3px;
  text-align: center;
  align-self: center;
  background-color: #111;
  border-radius: 10px;
}

.footer_nav {
  margin-left: 0px;
}
 
.footer_list {
  list-style: none;
  font-family: firstFont;
  text-align: left;
  padding-left: 25px;

}

.footer_list2 {
  list-style: none;
  text-align: right;
  align-self: center;
}

.footer_list a {
  padding: 5px 10px;
  font-size: 15px;
  color: #F3E0BE;
  text-decoration-line: none;
  text-transform: uppercase;
}

.footer_list a:hover {
  text-decoration-line: underline;
}

.footer_list li {
  display: inline-block;
  padding-top: 5px;
}

.footer_list2 li {
  padding: 5px 10px;
  font-family: secondFont;
}


/* Responsive header */
@media  (max-width: 1197px)  {
  .nav_list {
    padding-top: 28px;
  } 
  .nav_list a {
    font-size: 15px;
  }
   .logo {
    font-size: 13px;
  }
   #name {
    font-size: 0.96em;
  }
  .drop_container:hover .drop_btn {
    font-size: 20px;
  }
  .drop_btn {
    font-size: 20px;
  }
  .nav_list a:hover {
    font-size: 20px;
  }
  .drop_content a {
    font-size: 15px;
  }
  .drop_content a:hover {
    font-size: 15px;
  }
  .drop_content {
    margin-left: 3px;
  }
  .header_container {
   height: 78px;
  }
}

@media (max-width: 990px) {
  .nav_list {
    display: none;
  }
  .menu_icon {
    display: block;
  }
  .item1 {
    grid-template-columns: 1fr;
  }
  .header_container {
    margin-bottom: 20px;
    margin-top: 10px;
    margin-right: 10px;
    margin-left: 10px;
  }
}

@media (max-width: 499px) {
  .header_mobile {
    display: block;
    padding-bottom: 10px;
    background-color: none;
    box-shadow: 4px 4px 11px 3px rgba(0,0,0,0.3);
  }
  .item1 {
    margin-top: -10px;
  }
  .logo {
    display: none;
  }
  .menu_icon {
    display: none;
  }
  .menu_icon_mobile {
    display: block;
  }
  .logo_mobile {
    font-size: 12px;
  }
  #name2 {
    font-size: 0.95em;
  }
  .header_container {
    height: auto;
    margin-right: 0px;
    margin-left: 0px;
    margin-bottom: 0px;
    box-shadow: none;
  }
  .mobile_menu_container {
    border-radius: 0px;
 }
 .picture {
    display: block;
    width: auto;
 }
}

@media (max-width: 400px) {
  .logo_mobile {
    text-align: left;
  }
}

@media (min-width: 2000px) {
  .logo {
    font-size: 23px;
  }
  #name {
    font-size: 1em;
    border-radius: 25px;
    border: 6px solid #fff;
  }
  .nav_list a {
    font-size: 23px;
    margin-left: 25px;
  }
  .nav_list {
    padding-top: 48px;
    padding-right: 48px;
  }
  .drop_content a, .drop_content a:hover {
    font-size: 20px
  }
  .drop_content a {
    margin: 0;
  }
  .drop_container:hover .drop_btn {
    font-size: 30px;
  }
  .drop_content {
    margin-left: 23px;
  } 
  .header_container {
    border-radius: 15px;
    width: 2000px;
    height: 128px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Responsive content */
@media (min-width: 800px) {
.article {
  width: 800px;
  padding-left: auto;
  margin-left: auto;
  padding-right: auto;
  margin-right: auto;
 }  
.question, .answer {
  overflow: hidden;
 }
}

@media (max-width: 868px) {
 .question, .question2 {
  border-radius: 0px 15px 15px 0px;
  margin-right: 1px;
}
 .answer {
  border-radius: 15px 0px 0px 15px;
  margin-left: 1px;
}
 .article {
  border-radius: 20px;
  padding-left: 15px;
  padding-right: 15px; 
 }
  #article_title2 {
  font-size: 35px;
 }
}

@media (max-width: 1114px) {
  #article_title,  #article_title3, #article_title4 {
  font-size: 20px;  
  }
} 

@media (max-width: 499px) {
 .cover img {
  display: none;
 }
 #article_title,  #article_title3, #article_title4 {
  margin-top: -5px;
  margin-bottom: -5px;
 }
 
 #article_title2 {
  font-size: 30px;
 }
}

@media (min-width: 2000px) {
   .content_container {
    width: 2000px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* Responsive footer */
@media (max-width: 1279px) {
  .footer_container {
    grid-template-columns: auto;
  }
  .footer_contact {
    grid-template-columns: 350px auto;
    margin-right: 15px;
  }
  .footer_nav {
    justify-self: center;
    align-self: center;
  }
  .footer_list {
    text-align: center;
  }
  .footer_list2 {
    padding-left: 5px;
    padding-right: 5px;
  }
  .attention {
    align-self: center;
    margin-left: 10px;
    margin-top: 15px;
  }
}

@media (max-width: 800px) {
  .footer_container {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .footer_list {
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
  }  
  .footer_contact {
    grid-template-columns: 350px auto;
  }
  .attention {
    margin-top: 0px;
  }
}

@media (max-width: 650px) {
  .attention {
    text-align: center;
    padding: 0px 0px;
  }
  .footer_contact {
    grid-template-columns: 1fr auto;
    margin-left: 5px;
    margin-right: 5px;
  }
  .footer_list2 {
    text-align: right;
  }
}

@media (max-width: 599px) {
  .footer_container {
    grid-template-columns: auto;
    grid-template-rows: auto auto;
  }
  .footer_list {
    border-bottom: 1px dashed #fff;
    padding-bottom: 20px;
    margin-top: 7px;
  }
  .footer_list li {
    padding-top: 6px;
  }
  .footer_nav {
    text-align: center;
  }
  .footer_contact {
    text-align: center;
    grid-template-columns: auto;
    margin-right: 15px;
  }
  .footer_list2 {
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
    margin-left: 0;
  }
  .attention {
    text-align: center;
    margin-top: 5px;
  }
}

@media (max-width: 320px) {
  .footer_contact {
    font-size: 13.5px;
  }
  .attention {
    padding: 3px;
  }
}

@media (min-width: 2000px) {
  .footer_container {
    width: 2000px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer_list a {
    font-size: 18px;
    text-align: center;
  }
  .footer_list {
    padding-top: 5px;
    justify-content: center;
  }

  .footer_contact {
    font-size: 18px;
    grid-template-columns: 450px auto;
  }
  .attention {
    font-size: 18px;
    padding: 0 8px;
  }
  .item_photo {
    align-self: center;
    margin-right: 20px;
  }
  .intro {
    margin-right: 20px;
  }
}