html, body{
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #f0f0f0;
  color: #777777;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
:root {
  --text-scale: 1.2;
  --lh-body: 1.5;
}
@media (min-width: 768px){
  h1,h2,h3,h4,h5,h6{margin: 20px 0 40px 0;}
  h1{font-size: calc(70px + 1vw);}
  h2{font-size: calc(65px + 1vw);}
  h3{font-size: calc(60px + 1vw);}
  h4{font-size: calc(55px + 1vw);}
  h5{font-size: calc(50px + 1vw);}
  h6{font-size: calc(45px + 1vw);}
  body{font-size: calc(35px + 1vw);}
  .helpme{width: 100%;height: auto;transition: opacity 0.3s ease;}
  .b_item p{margin-top: 0px;margin-bottom: 30px;}
  .form-items{display: flex;gap: 15px;}
  .paragraph {flex: 1;}  
}
@media (min-width: 1200px){
  h1,h2,h3,h4,h5,h6{margin: 10px 0 10px 0;}
  h1{font-size: calc(40px + 1vw);}
  h2{font-size: calc(35px + 1vw);}
  h3{font-size: calc(30px + 1vw);}
  h4{font-size: calc(25px + 1vw);}
  h5{font-size: calc(20px + 1vw);}
  h6{font-size: calc(15px + 1vw);}
  body{font-size: calc(10px + 1vw);}
  .helpme{width: 30%;height: auto;filter: grayscale(0%);}
  .b_item p{margin-top: 0px;margin-bottom: 10px;}
}
.helpme:hover {filter: grayscale(100%);}

h1:first-child {margin-top: 0;}
h1,h2,h3,h4,h5,h6{
  text-align:center;
  font-weight: 400;
}
a:link{
  color: #0099ff;
  text-decoration: none;
}
a:visited{
  color: #3f97bc;
  text-decoration: none;
}
a:hover{
  color: #ff6666;
  text-decoration: underline;
}
a:active{
  color: #669966;
}
a img{
  border: none;
}
.infoblock{
  text-align:center;
  background: #EBF8EF;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    12px 12px 24px rgba(163, 177, 198, 0.4), 
   -12px -12px 24px rgba(255, 255, 255, 0.9);
}

.menu {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin-bottom: 40px;
}

.item{
  flex: 1 0 30%;
  height: auto;
  min-width: 400px;
  max-width: 100%;
  border: #f0f0f0 solid 1px;
  text-align:center;
  cursor:pointer;
  font-size: calc(20px + 1vw);
}

.item img {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease; 
  filter: grayscale(0%);
}

.item img:hover  {
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.interview{margin-top: -20px;}
.interview p{text-align:left;font-weight: bold;margin: 40px 0 0 24px;}
.answer{
		margin: 20px 0;
    	padding: 24px;
    	background: #D2E3EA;
    	border-radius: 16px;
    	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.marks{font-style: italic;color:#B0BDB5;}

.b_menu{
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.b_item{
  flex: 1 0 30%;
  height: auto;
  min-width: 200px;
  max-width: 100%;
  text-align:left;
  cursor:pointer;
  font-size: calc(20px + 0.6vw);
}

.b_item a{color:#7098DB;}
.b_item a:hover{color:#868686;}


.container{
  text-align:left;
  display: flex;
  flex-direction: column;
  line-height: var(--lh-body);
  min-height: 100%;
}
.top{
  width: 100%;
  max-width: 100%;
}
.top img{
  width: 100%;
  height: auto;
  display: block;
}
.content{
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  flex: 1 0 auto; 
}
.content_img{
  float: left;
  margin-right: 7px;
}
.content_img_r{
  float: right;
  margin-left: 7px;
}
.content_img_centered{
  display: block;
  margin-left: auto;
  margin-right: auto
}
ul li{margin-bottom: 8px;}
ol li{margin-bottom: 8px;}

.formular {
  max-width: 100%;
  margin: 20px auto;
  padding: 10px;
  border: 1px solid #D9D9D9;
  border-radius: 8px;
  box-sizing: border-box;
}
.formular input,
.formular textarea,
.formular select
{
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 15px;
  border: 1px solid #66cc00;
  background-color: #ffffff;
  border-radius: 4px;
  box-sizing: border-box;
  color: #777777;
  font-size: 2rem;
}

.paragraph label {
  display: block;
  font-weight: bold;
  margin-bottom: 4px;
}

.consultation{
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
  border: none;
  cursor: pointer;
  background: url('https://triholog.com.ua/pictures/decor/consultation.png') no-repeat center / contain;
  aspect-ratio: 3 / 1;
  transition: opacity 0.3s ease;
}

.consultation:hover {opacity: 0.8;}

input::placeholder{color: #9ca3af;}
textarea::placeholder {color: #9ca3af;}

.bottom{
  margin-top: 20px;
  flex: 0 0 auto;
  background: #333333;
  color: #339900;
  padding: 20px;
}