:root {
  --transition-1: 0.25s ease;
  --transition-2: 0.5s ease-in-out;
}

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

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img,
ion-icon,
a,
button,
time,
span {
  display: block;
}

button {
  font: inherit;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

input,
textarea {
  display: block;
  width: 100%;
  background: none;
  font: inherit;
}

::selection {
  background: #1abc9c;
  color: #000;
}

:focus {
  outline-color: #1abc9c;
}

html {
  font-family: Poppins;
}

body {
  background-color: #0c1e21;
  max-height: 100vh;
}

.sidebar,
article {
  background-color: #0c1e21;
  border-radius: 20px;
  padding: 15px;
  border: solid 1px #ecf0f1;
  z-index: 1;
}

.separator {
  width: 100%;
  height: 1px;
  background: #1abc9c;
  margin: 16px 0;
}

.icon-box {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 16px;
  color: #ecf0f1;
  border: solid 1px #ecf0f1;
  z-index: 1;
}

.icon-box::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
}

article {
  display: none;
}

article.active {
  display: block;
  animation: fade 0.5s ease backwards;
}

@keyframes fade {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.h2,
.h3,
.h4 {
  color: #ecf0f1;
  text-transform: capitalize;
}

.h2 {
  font-size: 24px;
}

.h3 {
  font-size: 18px;
}

.h4 {
  font-size: 18px;
}



.article-title {
  position: relative;
  padding-bottom: 7px;
}

.article-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 3px;
  background: #1abc9c;
  border-radius: 3px;
}



main {
  margin: 15px 12px;
  margin-bottom: 30px;
  min-width: 259px;
}

.sidebar {
  margin-bottom: 15px;
  max-height: 112px;
  overflow: hidden;
  transition: var(--transition-2);
}

.sidebar.active {
  max-height: 405px;
}

.sidebar-info {
  position: relative;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
}

.avatar-box {
  border-radius: 20px;
  border: solid 1px #ecf0f1;
}

.info-content .name {
  color: #ecf0f1;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.25px;
  margin-bottom: 10px;
}

.info-content .title {
  color: #000;
  font-size: 10px;
  font-weight: 600;
  width: max-content;
  padding: 3px 12px;
  border-radius: 8px;
  background: #1abc9c;
}

.info_more-btn .fa-circle-xmark {
  display: none;
}

.info_more-btn.active .fa-bars {
  display: none;
}

.info_more-btn.active .fa-circle-xmark {
  display: inline-block;
}


.info_more-btn {
  position: absolute;
  top: -15px;
  right: -15px;
  border-radius: 0 15px;
  font-size: 13px;
  color: #1abc9c;
  padding: 10px;
  transition: var(--transition-1);
  z-index: 1;
}


.info_more-btn:hover,
.info_more-btn:focus {
  color: #ecf0f1;
}

.info_more-btn span {
  display: none;
}

.sidebar-info_more {
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-2);
}

.sidebar.active .sidebar-info_more {
  opacity: 1;
  visibility: visible;
}

.contacts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.contact-item {
  min-width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-info {
  max-width: calc(100% - 46px);
  width: calc(100% - 46px);
}

.contact-title {
  color: #1abc9c;
  font-size: 16px;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.contact-info :is(.contact-link, time, address) {
  color: #ecf0f1;
  font-size: 14px;
}

.contact-info address {
  font-style: normal;
}

.social-list {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 15px;
  padding-bottom: 4px;
  padding-left: 7px;
}

.social-item .social-link {
  color: #ecf0f1;
  font-size: 18px;
}

.social-item .social-link:hover {
  color: #ecf0f1;
}

.home .article-title {
  margin-bottom: 15px;
}

.home-text {
  color: #ecf0f1;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.home-text p {
  margin-bottom: 15px;
}

.service {
  margin-bottom: 35px;
}

.service-title {
  margin-bottom: 20px;
  font-weight: 400;
}

.service-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-item {
  position: relative;
  padding: 20px;
  border-radius: 14px;
  border: solid 1px #ecf0f1;
  z-index: 1;
}

.service-item::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  z-index: -1;
}

.service-icon-box {
  margin-bottom: 10px;
  font-size: 30px;
  color: #ecf0f1;
}

.service-icon-box img {
  margin: auto;
}

.service-content-box {
  text-align: center;
}

.service-item-title {
  margin-bottom: 7px;
  color: #1abc9c;
}

.service-item-text {
  color: #ecf0f1;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
}
.footer p{
color: #ecf0f1;
    text-align: center; 
    width: 100%;
    font-size:10px;
    margin-bottom: 20px;
}



@media (min-width: 300px) {

  .social-list {
    justify-content: center;
  }
  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 18px;
    padding: 30px;
  }
  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }
  .service-content-box {
    text-align: left;
  }
  .footer {
        position: static;
    }
}

@media (min-width: 580px) {

  .sidebar,
  article {
    width: 520px;
    margin-inline: auto;
    padding: 30px;
  }
  .article-title {
    font-weight: 400;
    padding-bottom: 15px;
  }
  .article-title::after {
    width: 120px;
    height: 5px;
  }
  .icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    font-size: 18px;
  }
  main {
    margin-top: 60px;
    margin-bottom: 30px;
  }
  .sidebar {
    max-height: 180px;
    margin-bottom: 30px;
  }
  .sidebar.active {
    max-height: 584px;
  }
  .sidebar-info {
    gap: 25px;
  }
  .avatar-box {
    border-radius: 30px;
  }
  .avatar-box img {
    width: 120px;
  }
  .info-content .name {
    margin-bottom: 15px;
  }
  .info-content .title {
    padding: 5px 18px;
  }
  .info_more-btn {
    top: -30px;
    right: -30px;
    padding: 10px 15px;
  }
  .info_more-btn span {
    display: block;
    font-size: 10px;
  }
  .info_more-btn ion-icon {
    display: none;
  }
  .separator {
    margin: 32px 0;
  }
  .contacts-list {
    gap: 20px;
  }
  .contact-info {
    max-width: calc(100% - 64px);
    width: calc(100% - 64px);
  }
  .home .article-title {
    margin-bottom: 20px;
  }
  .home-text {
    margin-bottom: 40px;
  }
  .service-item {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 18px;
    padding: 30px;
  }
  .service-icon-box {
    margin-bottom: 0;
    margin-top: 5px;
  }
  .service-content-box {
    text-align: left;
  }
}

@media (min-width: 768px) {
  .sidebar,
  article {
    width: 700px;
  }
  
  .contacts-list {
    grid-template-columns: 1fr 1fr;
    gap: 30px 15px;
  }
}

@media (min-width: 1024px) {

  .sidebar,
  article {
    width: 950px;
    border: solid 1px #ecf0f1;
  }
  
  main {
    margin-bottom: 30px;
  }
  .main-content {
    position: relative;
    width: max-content;
    margin: auto;
  }
  .home .article-title {
    font-size: 24px;
    padding-bottom: 20px;
  }
  .home-text {
    margin-bottom: 50px;
  }
  .service-list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 25px;
  }
}

@media (min-width: 1250px) {

  .sidebar,
  article {
    width: auto;
  }
  article {
    min-height: 100%;
  }
  
  main {
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 25px;
  }
  .main-content {
    min-width: 75%;
    width: 75%;
    margin: 0;
  }
  .sidebar {
    position: sticky;
    top: 60px;
    max-height: max-content;
    height: 100%;
    margin-bottom: 0;
    padding-top: 60px;
    z-index: 1;
  }

  .sidebar-info {
    flex-direction: column;
  }
  .avatar-box img {
    width: 150px;
  }
  .info-content .name {
    white-space: nowrap;
    text-align: center;
  }
  .info-content .title {
    margin: auto;
  }
  .info_more-btn {
    display: none;
  }
  .sidebar-info_more {
    opacity: 1;
    visibility: visible;
  }
  .contacts-list {
    grid-template-columns: 1fr;
  }
  .contact-info .co
  .contact-info :is(.contact-link) {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .contact-info :is(.contact-link, time, address) {
    --fs-7: 13px;
    font-weight: 300;
  }
  .separator:last-of-type {
    margin: 15px 0;
    opacity: 0;
  }
  .social-list {
    justify-content: center;
  }
}
