html, body {
  background: #F8F9FA;
  padding: 0;
  margin: 0;
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
  color: #333;
  line-height: 1.8;
}

#header{
display: block;
position: relative;
width:100%;
margin: 20px auto 0px auto;
}

div.name{
position:relative;
width:210px;
margin: auto 25px auto 15%;
float: left;
}

div.name div{
position:relative;
left:215px;
width: 35px;
    height: 17px;
    background: #333;
    -moz-border-radius: 50px;
    -webkit-border-radius: 50px;
    border-radius: 50px;
}

div.name span:nth-child(1){
color: #00598C;
}

div.name a{
display:block;
text-decoration:none;
color: #007B5E;
font-size:2.1em;
font-weight:bold;
}


ul.menu {
  display: flex;
  width: 100%;
  justify-content: center;
  background: #007B5E;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  clear: both;
}

ul.menu li {
  list-style: none;
  margin: 0 10px;
}

ul.menu li a {
  color: #FFF;
  text-transform: uppercase;
  padding: 10px 15px;
  display: block;
  transition: background 0.3s;
  border-radius: 5px;
  text-decoration: none;
}

ul.menu li a:hover {
  background: #005A40;
}
div.lessons{
width: 100%;
min-height: 150px;
padding:20px 0px;
clear: both;
overflow: hidden;
}

div.lessons:after { content: ""; display: block; clear: both; }

img.intro {
  float: left;
  width: 200px;
  height: 150px;
  margin-right: 20px;
}

img.screen{
display: block;
margin: 0px auto 20px auto;
max-width: 100%;
border: 0px;
}

img.formulaintro{
float:left; width: 258px; height: 215px; margin-right: 20px;
}
img.analysesintro{
float:left; width: 300px; height: 250px; margin-right: 20px;
}

img.intro-datacharts{
width: 328px;
height: 200px;
float: left;
margin-right: 20px;
}
#content ol{
margin-left:50px;
margin-bottom:12px;
}
#content ul{
margin-left:50px;
margin-bottom:12px;
}
div.articles ol {
  padding: 10px;
  list-style: none;
  counter-reset: point;
}
div.articles ul {
  list-style-type: none;
}

div.articles li {
  margin-bottom: 8px;
  background-color: #FAFAFF;
  padding: 0px 5px;
    padding-top: 0px;
    padding-left: 5px;
}
div.articles ol li {
  margin-bottom: 10px;
  position: relative;
  border: 1px solid #CECECE;
  padding: 3px 10px 7px 10px;
  list-style: none;
}
div.articles ol li:before {
content: counter(point); 
	counter-increment: point 1;
	font-size: 15px;
	position: absolute;
	left: 0px;
	top: -1px;
	background: #FF4400;
	width: 25px;
	padding: 1px 0;
	color: #fff;
	text-align: center;
	margin:0px 8px 0px -32px;
	border: 1px solid #CC4400;
}
div.articles ul li {
  list-style-position: inside;
  padding-top: 2px;
  background-color: #FCFCFC;
  padding-left: 8px;
}

div.articles ul li::before {
  background: #0099CC;
  width: 10px;
  height: 10px;
  content: "";
  float: left;
  margin: 10px 8px 0px 0px;
}

div.articles table{
border: 0px;
border-collapse: separate;
border-spacing: 0px;
overflow-x: auto;
margin: 20px auto;
}
div.articles table td{
border-bottom: 1px solid #C0C0C0;
padding: 7px 20px;
}

div.articles table tr:nth-child(1) {
    background: #31869B;
    font-weight: bold;
	color: #FFF;
	text-shadow:0px 1px 1px black;
	text-align: center;
} 
div.articles table tr:nth-child(2n) {
    background: #EDEDED;
} 

span.i{
font-style:italic;
font-size:95%;
}
span.b{
font-weight:bold;
}
span.u{
text-decoration:underline;
}

#wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

#content {
  background: #FFFFFF;
  padding: 20px 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  font-size: 1.1em;
}

#content a.pagerub{
display: inline-block;
padding: 8px 15px;
color: #FFF; 
background: #E53D00;
margin: 5px 3px 2px 0px;
}

#content a.pagerub:hover{
border:0px;
background: #FF4400;
}

#content span.select{
display: inline-block;
padding: 8px 17px;
color: #FFF; 
background: #F1CDB7;
font-weight: bold;
margin: 5px 3px 2px 0px;
}

a {
  color: #025DC1;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease-in-out;
}

a:hover {
  color: #0080FF;
}


h1, h2 {
  text-align: center;
  color: #EC5300;
  text-transform: uppercase;
  font-weight: 500;
}

h1 {
  font-size: 1.8em;
  margin-bottom: 15px;
}

h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
}

h3 { text-align: center; }

a.button {
  display: inline-block;
  background: #FF5722;
  color: white;
  padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  transition: background 0.3s;
}

a.button:hover {
  background: #E64A19;
}

#footer {
    background: #222; 
    color: #ccc;
    text-align: center;
    padding: 20px 10px;
    position: relative;
}

#footer .nav {
    list-style: none;
    padding: 0;
    margin: 0 0 15px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

#footer .nav li {
    margin: 5px 10px;
}

#footer .nav a {
    color: #d7e9e9;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

#footer .nav a:hover {
    color: #1db954;
}

#footer p {
    margin: 10px 0;
    font-size: 14px;
}

#footer .smap, #footer .pp, #footer .cu {
    color: #AAA;
    text-decoration: none;
    margin: 0 10px;
    transition: color 0.3s ease;
}

#footer .smap:hover, #footer .pp:hover, #footer .cu:hover {
    color: #1db954;
}

#footer .up {
    display: inline-block;
    cursor: pointer;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

#footer .up:hover {
    background: #1db954;
}

.wrappsearch {
    margin-top: 10px;
}

.wrappsearch .search {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    background: #444;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background 0.3s;
}

.wrappsearch .search:hover {
    background: #1db954;
}

div.lang{
position: absolute;
top: 15px;
right: 2%;
width: 170px;
float: right;
z-index: 1000;
}

div.lang a{
display: block;
width: 40px;
height: 40px;
border: 2px solid #E5E5E5;
border-radius: 50%;
color: #000;
text-align: center;
font-size: 15px;
padding: 2px;
text-decoration: none;
text-transform: uppercase;
float: left;
margin: 10px;
line-height: 2.5;
font-weight: 100;
}

div.lang a:hover{
background: #F3F3F3;
}

blockquote {
  background: #F5FBF6;
  border-left: 5px solid #53B46C;
  margin: 1.5em 10px;
  padding: 0.5em 10px;
  word-wrap: break-word;
}
iframe {
  display: block;
  margin: 20px auto 20px auto;
  max-width: 100%;
  text-align: center;
}

p.txtc{
text-align: center;
}

p.txtc img{
display: block;
margin: 0px auto 20px auto;
border: 0px;
width: 100px;
height: 95px;
}

div.under{
width: 100%;
margin: 30px auto;
text-align: center;
}

input.formula{
display: block;
width:80%;
margin: 0 auto;
padding: 5px;
border: 1px solid #C0C0C0;
outline: 0px none;
background: transparent -moz-linear-gradient(center top , #FFF, #EEE 1px, #FFF 25px) repeat scroll 0% 0%;
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);	
color:#013D7D;
}

/* TG Button */
.tg-button {
  display: inline-block;
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  box-shadow: 0 10px 25px rgba(37, 117, 252, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tg-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 117, 252, 0.55);
}

.related-section {
    margin-top: 150px; /* Безопасный отступ от AdSense */
    padding: 20px;
    background: #f9f9f9;
    border-radius: 16px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.section-title {
    font-size: 20px;
    color: #333;
    margin-bottom: 12px;
    font-weight: bold;
}

.section-link {
    display: block;
    margin: 0 auto 12px;
}

.section-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.related-section p {
    font-size: 16px;
    color: #555;
    margin-bottom: 16px;
}

.section-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073e6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    transition: background 0.3s;
}

.section-btn:hover {
    background: #005bb5;
}

@media (max-width: 768px) {

#header {margin: 100px auto 0px auto;}

  ul.menu {
    flex-direction: column;
    text-align: center;
  }

  ul.menu li {
    margin: 5px 0;
  }

  #wrapper {
    padding: 10px;
  }

  #content {
    padding: 15px;
  }

  ul.nav {
    text-align: center;
  }


related-section {
        padding: 16px;
    }

    .section-title {
        font-size: 18px;
    }

    .related-section p {
        font-size: 15px;
    }
}