:root {
  --header-height: 0px;
  --nav-height: 0px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  padding-top: calc(var(--header-height) + var(--nav-height));
}

body {
  font-family: 'Montserrat', Inter, Arial, sans-serif;
  line-height: 1.6;
  color: #222;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}


.header-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}


.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 90px;
  max-width: 100%;
}

.header-info {
  display: flex;
  gap: 32px;
  align-items: center;
}

.header-text {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-text span {
  display: block;
  font-size: 18px;
  line-height: 1.4;
  color: #007bff;
}

.contact-info {
  text-align: right;
  font-size: 14px;
  line-height: 1.5;
  font-family: 'Montserrat', sans-serif;
}

.contact-info span {
  display: block;
}

.contact-info .phone {
  font-weight: 600;
  color: #e10600;
}

.header-divider {
  height: 4px;
  background: linear-gradient(90deg, #e10600 0%, #4facfe 50%, #c0c0c0 100%);
  animation: shimmer 6s linear infinite;
  background-size: 400% 100%;
}

@keyframes shimmer {
  0% {
    background-position: -100% 0;
  }

  100% {
    background-position: 100% 0;
  }
}

.mobile-menu-btn {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1005;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;

  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.header.show-burger~main .nav {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}


.header.show-burger .mobile-menu-btn {
  opacity: 1;
  transform: translateY(0);
}


.header.show-burger~main .nav.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}



.nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 1001;

  display: flex;
  justify-content: center;
  flex-wrap: nowrap;

  background: linear-gradient(90deg, #4facfe, #007bff);
  background-size: 200% 100%;
  animation: navGradient 8s infinite;

  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.nav-grid-2x2 {
  display: flex;
  gap: 2px;
}

@keyframes navGradient {

  0%,
  100% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }
}

.nav a {
  color: white;
  text-decoration: none;
  padding: 19.2px 32.4px;
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  white-space: nowrap;
  transition: background-color 0.3s;
}

.nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.hero {
  background: url('/static/assets/images/v1030-064.jpg') center/cover;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 128px 32px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  color: #007bff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-logo {
  width: 280px;
  height: 280px;
  max-width: 100%;
  margin: 20px 0;
}

.cta-button {
  background-color: #e10600;
  color: white;
  padding: 12.8px 25.6px;
  border-radius: 12px;
  text-decoration: none;
  margin-top: 19.2px;
  display: inline-block;
  transition: background-color 0.3s;
}

.cta-button:hover {
  background-color: #c50500;
}

.section-divider {
  height: 8px;
  background-color: #007bff;
}


.about-section {
  padding: 64px 32px;
}

.about-section h2 {
  font-size: 44.8px;
  font-weight: 700;
  color: #007bff;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

.subtitle {
  text-align: center;
  margin-bottom: 16px;
  font-size: 18px;
}

.description {
  text-align: center;
  margin-bottom: 32px;
  font-size: 16px;
}

.timeline-section {
  padding: 96px 0;
}

.timeline {
  list-style: none;
  border-left: 4px solid #007bff;
  padding-left: 32px;
  max-width: 800px;
  margin: 0 auto;
}

.timeline li {
  margin: 32px 0;
  position: relative;
  text-align: left;
}

.timeline .year {
  color: #e10600;
  font-weight: 700;
  margin-right: 6.4px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 64px;
}

.feature-card {
  background: white;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  opacity: 1;
  transform: translateY(0);
}

.feature-card h3 {
  color: #e10600;
  font-size: 18.72px;
  font-weight: 700;
  margin-bottom: 9.6px;
  line-height: 1.5;
}

.feature-card p {
  font-size: 16px;
  line-height: 1.5;
}

.section-header {
  padding: 64px 32px;
  text-align: center;
}

.section-header h2 {
  font-size: 44.8px;
  font-weight: 700;
  color: #007bff;
  line-height: 1.2;
}

.staff-section {
  padding: 96px 32px;
}

.staff-section h2 {
  font-size: 44.8px;
  font-weight: 700;
  color: #007bff;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.staff-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  text-align: center;
  overflow: hidden;
}

.staff-photo {
  width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
  border-radius: 12px 12px 0 0;
}

.staff-card h3 {
  color: #007bff;
  font-size: 18.72px;
  font-weight: 700;
  margin: 16px 0 6.4px;
  line-height: 1.5;
}

.staff-card p {
  font-size: 22.4px;
  line-height: 1.5;
  padding-bottom: 32px;
}

.contact-section {
  padding: 64px 32px;
}

.contact-section h2 {
  font-size: 44.8px;
  font-weight: 700;
  color: #007bff;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

.contact-info-block {
  margin-bottom: 32px;
}

.contact-info-block p {
  margin-bottom: 16px;
  font-size: 16px;
}

.contact-form {
  max-width: 512px;
  margin: 32px auto;
  display: grid;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 16px;
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  padding: 12.8px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  width: 100%;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.submit-btn {
  background-color: #e10600;
  color: white;
  padding: 12.8px 25.6px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  cursor: pointer;
  margin-top: 6.4px;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #c50500;
}

.success-message {
  color: #008000;
  text-align: center;
  margin-top: 12.8px;
  display: none;
}

.footer {
  background-color: #007bff;
  color: white;
  text-align: center;
  padding: 32px;
}

.footer a {
  color: #ccc;
  text-decoration: underline;
}

.floating-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #e10600;
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12.8px 19.2px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  z-index: 1001;
  transition: background-color 0.3s;
}

.floating-btn:hover {
  background-color: #c50500;
}

.floating-btn img {
  height: 24px;
  width: auto;
}

.floating-btn span {
  font-size: 14px;
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 576px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 32px;
  cursor: pointer;
  color: #666;
}

.modal h3 {
  font-size: 18.72px;
  font-weight: 700;
  margin-bottom: 24px;
}

.modal-form {
  display: grid;
  gap: 16px;
}

@media (max-width: 768px) {
  /* body {
    padding-top: 180px;
  } */

  .nav>a:first-child,
  .nav>a:last-child {
    display: none;
  }


  .nav {
    display: block;
    width: 100%;
  }

  .nav-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(41, 149, 255, 0.2);
    width: 100%;
    max-width: none;
  }

  .nav-grid-2x2 a {
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 16px; */
    background: inherit;
    color: white;
    text-transform: uppercase;
    font-size: 14px;
    padding: 8px 0;
    font-weight: 600;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    white-space: normal;
    box-sizing: border-box;
  }

  .header-container {
    flex-direction: column;
    height: auto;
    padding: 16px 16px 0;
    gap: 15px;
    position: relative;
  }

  .logo img {
    height: 80px;
  }

  .header-info {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-top: 60px;
  }

  .contact-info {
    text-align: right;
    align-self: flex-end;
    font-size: 15px;
  }


  .header-text {
    position: static;
    transform: none;
    text-align: center;
    font-family: 'Work Sans', sans-serif;
    font-style: italic;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    height: 50px;
  }

  .header-text span {
    font-size: 16px;
    line-height: 1.3;
    color: #007bff;
  }

  .hero {
    padding: 32px 16px 64px;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 28px;
    margin-bottom: 16px;
  }

  .hero-logo {
    width: 200px;
    height: 200px;
  }

  .about-section h2,
  .section-header h2,
  .staff-section h2,
  .contact-section h2 {
    font-size: 32px;
    margin-bottom: 32px;
  }

  .about-section,
  .staff-section,
  .contact-section {
    padding: 32px 16px;
  }

  .section-header {
    padding: 32px 16px;
  }

  .timeline-section {
    padding: 48px 0;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline li {
    margin: 24px 0;
    font-size: 14px;
  }

  .features-grid,
  .staff-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .feature-card,
  .staff-card {
    padding: 24px;
  }

  .staff-photo {
    height: 250px;
  }

  .contact-form {
    margin: 24px 0;
  }

  .floating-btn {
    bottom: 16px;
    right: 16px;
    padding: 12px 16px;
  }

  .floating-btn span {
    font-size: 12px;
  }

  .modal {
    padding: 24px;
    margin: 16px;
  }

  .modal-close {
    top: 12px;
    right: 16px;
    font-size: 24px;
  }
}

/* @media (max-width: 480px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero-logo {
    width: 150px;
    height: 150px;
  }

  .about-section h2,
  .section-header h2,
  .staff-section h2,
  .contact-section h2 {
    font-size: 28px;
  }

  .timeline {
    padding-left: 12px;
  }

  .timeline li {
    font-size: 13px;
  }

  .floating-btn span {
    display: none;
  }

  .floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    padding: 16px;
  }
} */