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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

.container {
  max-width: 1440px;
  margin: auto;
  padding: 0 20px;
  overflow: hidden;
}

h1,
h2,
h3 {
  margin-bottom: 1rem;
  color: #2c3e50;
}

h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2rem;
  position: relative;
  padding-bottom: 10px;
}

h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: #c91e22;
}

p {
  margin-bottom: 1rem;
}

a {
  color: #c91e22;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

section {
  padding: 60px 0;
}

.main-header {
  background-color: #ffffff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
}

.main-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
}

.logo span {
  display: block;
  font-size: 0.7rem;
  color: #777;
  margin-top: -5px;
}

.main-nav ul {
  list-style: none;
  display: flex;
}

.main-nav ul li {
  margin-left: 20px;
}

.main-nav ul li a {
  color: #333;
  font-weight: 500;
  transition: color 0.3s ease;
  font-size: 1rem;
}

.main-nav ul li a:hover,
.main-nav ul li a.active {
  color: #c91e22;
  text-decoration: none;
}

.contact-info {
  text-align: right;
  font-size: 1rem;
}
.contact-info .location {
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}
.contact-info .phone {
  display: block;
  color: #333;
  font-weight: 500;
}
.contact-info .phone i,
.contact-info .location i {
  color: #c91e22;
  margin-right: 5px;
}

.hero {
  height: 750px;
  color: #fff;
  position: relative;
  padding: 0 20px;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("./images/2.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-content-container {
  max-width: 1440px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: start;
  text-align: center;
  margin: 0 auto;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #fff;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  background-color: #c91e22;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  text-decoration: none;
  text-transform: uppercase;
  font-weight: bold;
}

.btn:hover {
  background-color: #c0392b;
  transform: translateY(-2px);
  text-decoration: none;
}

#why-register {
  background-color: #fff;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.benefit-item {
  background: #f9f9f9;
  padding: 25px 30px;
  border-radius: 8px;
  text-align: center;
  border-left: 4px solid #c91e22;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.benefit-item i {
  font-size: 2.5rem;
  color: #c91e22;
  margin-bottom: 1rem;
}

.benefit-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}
.benefit-item p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 0;
}

.cta-expertise {
  background-color: #2c3e50;
  color: #fff;
  padding: 40px;
  border-radius: 8px;
  text-align: center;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  grid-template-rows: 1fr;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 0 auto;
}
.cta-expertise-content {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 20px;
}
.cta-expertise img {
  max-width: 300px;
}
.cta-expertise-text {
  text-align: left;
}

.cta-expertise h3 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.cta-expertise p {
  font-size: 1rem;
  margin-bottom: 0;
  max-width: 450px;
}

.expertise-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  width: 100%;
  max-width: 600px;
}

.expertise-form input[type="text"],
.expertise-form input[type="tel"] {
  padding: 20px;
  border: 1px solid #ccc;
  border-radius: 5px;
  flex-grow: 1;
  min-width: 150px;
  font-size: 1.1rem;
}

.expertise-form input::placeholder {
  font-size: 1.1rem;
}

.expertise-form button {
  margin-top: 0;
}

#about {
  background-color: #f9f9f9;
}
.about-content {
  display: flex;
  gap: 40px;
  align-items: flex-start;
}

.benefits-title {
  font-size: 2rem;
}

.sevice-title {
  font-size: 2rem;
}

.about-title {
  font-size: 2rem;
}
.about-text {
  flex: 2;
  font-size: 1rem;
}
.about-advantages {
  flex: 1;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.about-advantages h3 {
  font-size: 1.5rem;
  color: #c91e22;
  margin-bottom: 1rem;
  text-align: center;
}
.about-advantages ul {
  list-style: none;
}
.about-advantages li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
  font-size: 1rem;
}
.about-advantages li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: #c91e22;
  position: absolute;
  left: 0;
  top: 2px;
}

#services {
  background-color: #ffffff;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, max-content);
  gap: 25px;
  margin-bottom: 40px;
}

.service-item {
  background: #f9f9f9;
  padding: 45px 15px;
  text-align: center;
  border-radius: 8px;
  border-bottom: 4px solid #c91e22;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}
.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.service-item .icon {
  width: 50px;
  height: 50px;
  line-height: 60px;
  border-radius: 50%;
  background-color: #c91e22;
  color: #fff;
  font-size: 2rem;
  margin: 0 auto 15px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
}

.service-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0;
  color: #333;
}

.service-details {
  display: none;
  margin-top: 30px;
  padding: 15px;
  background-color: #eee;
  border-radius: 5px;
  text-align: left;
  font-size: 1rem;
}

.contact-title {
  font-size: 2rem;
}

.certificate-title {
  font-size: 2rem;
}

.cta-consultation {
  background-color: #c91e22;
  color: #fff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  margin-top: 40px;
}

.title-accent {
  color: #c91e22;
}

.cta-consultation img {
  max-width: 150px;
  float: right;
  margin-left: 20px;
  transform: scaleX(-1);
}
.cta-consultation-content {
  max-width: 60%;
  text-align: left;
}

.cta-consultation h3 {
  color: #fff;
  font-size: 2rem;
}

.cta-consultation p {
  font-size: 1.2rem;
}

.consultation-form {
  margin-top: 20px;
  display: flex;
  justify-content: flex-start;
  gap: 10px;
}

.consultation-form input[type="tel"] {
  padding: 20px;
  border: 1px solid #fff;
  border-radius: 5px;
  width: 250px;
  font-size: 1.1rem;
}

.consultation-form input::placeholder {
  font-size: 1.1rem;
}
.consultation-form button {
  background-color: #2c3e50;
}
.consultation-form button:hover {
  background-color: #34495e;
}

#contact {
  background-color: #f9f9f9;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.contact-item {
  text-align: center;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.contact-item i {
  font-size: 2rem;
  color: #c91e22;
  margin-bottom: 1rem;
}

.contact-item a i {
  font-size: 1.2rem;
}

.contact-item h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.contact-item p,
.contact-item a {
  color: #555;
  line-height: 1.8;
  font-size: 1rem;
}
.contact-item a:hover {
  color: #c91e22;
}

.certificate-image {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.certificate-image img {
  width: 50%;
  max-width: 1024px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-footer {
  background-color: #2c3e50;
  color: #ccc;
  padding: 40px 0 20px 0;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: #fff;
  margin-bottom: 1rem;
  border-bottom: 1px solid #c91e22;
  padding-bottom: 5px;
  display: inline-block;
}

.footer-col img {
  background-color: #fff;
  padding: 5px;
  border-radius: 8px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 8px;
}

.footer-col a {
  color: #ccc;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
}
.footer-col p i {
  color: #c91e22;
  margin-right: 8px;
  width: 15px;
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 0.85rem;
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.main {
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

@media (max-width: 768px) {
  .main-header .container {
    flex-direction: column;
    gap: 10px;
  }
  .benefits-grid {
    grid-template-rows: repeat(6, 1fr);
    grid-template-columns: 1fr;
  }
  .cta-expertise {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, fit-content);
  }
  .cta-expertise img {
    justify-self: center;
  }
  .services-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(8, max-content);
  }
  .main-nav {
    display: none;
  }
  .main-nav ul {
    justify-content: center;
    padding-top: 10px;
  }
  .contact-info {
    text-align: center;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .cta-expertise-content {
    flex-direction: column;
    text-align: center;
  }
  .cta-expertise-text {
    text-align: center;
  }
  .expertise-form {
    flex-direction: column;
    align-items: stretch;
  }
  .about-content {
    flex-direction: column;
  }
  .cta-consultation img {
    display: none;
  }
  .cta-consultation-content {
    max-width: 100%;
    text-align: center;
  }
  .cta-consultation-content h3 {
    font-size: 1.6rem;
  }
  .consultation-form {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
  }
  .consultation-form input[type="tel"] {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-col h4 {
    display: block;
  }
  .cta-expertise img {
    display: none;
  }
}
