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

:root {
  --yellow: #f9d829;
  --dark: #1a1a1a;
  --gray: #666;
  --light-gray: #f5f5f5;
  --white: #fff;
  --border: #ddd;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.2rem 4%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--dark);
}

.logo img {
  width: 45px;
  height: 45px;
}

.logo-text {
  font-size: 1.1rem;
  font-weight: 700;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--dark);
}

.hero {
  margin-top: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 90vh;
  background: var(--white);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8% 0 4%;
  background: var(--white);
}

.hero-badge {
  display: inline-block;
  background: var(--yellow);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  width: fit-content;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 2.5rem;
  max-width: 500px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-yellow {
  background: var(--yellow);
  color: var(--dark);
}

.btn-yellow:hover {
  background: var(--dark);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-outline:hover {
  background: var(--dark);
  color: var(--white);
}

.hero-image {
  position: relative;
  background: var(--light-gray);
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stats-bar {
  background: var(--dark);
  padding: 3rem 4%;
}

.stats-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item {
  color: var(--white);
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--yellow);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  opacity: 0.9;
}

.mission {
  padding: 8rem 4%;
  background: var(--white);
}

.mission-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.section-badge {
  display: inline-block;
  background: var(--yellow);
  padding: 0.4rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.section-title {
  font-family: "Playfair Display", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.section-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.mission-image {
  height: 550px;
  border-left: 8px solid var(--yellow);
}

.mission-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.programs {
  padding: 8rem 4%;
  background: var(--light-gray);
}

.programs-container {
  max-width: 1400px;
  margin: 0 auto;
}

.programs-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.program-card {
  background: var(--white);
  padding: 3rem;
  border-top: 4px solid var(--yellow);
  transition: transform 0.3s;
}

.program-card:hover {
  transform: translateY(-5px);
}

.program-duration {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 1.5rem;
}

.program-title {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.program-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--gray);
}

.rector {
  padding: 8rem 4%;
  background: var(--yellow);
}

.rector-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 6rem;
  align-items: start;
}

.rector-image {
  height: 500px;
  border: 8px solid var(--dark);
}

.rector-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rector-info {
  padding-top: 2rem;
}

.rector-name {
  font-family: "Playfair Display", serif;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.rector-position {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.titles-header {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
}

.titles-list {
  list-style: none;
}

.titles-list li {
  padding: 0.8rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--dark);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.titles-list li:before {
  content: "•";
  position: absolute;
  left: 0;
  font-size: 1.5rem;
  font-weight: bold;
}

.services {
  padding: 8rem 4%;
  background: var(--white);
}

.services-container {
  max-width: 1400px;
  margin: 0 auto;
}

.services-header {
  max-width: 600px;
  margin-bottom: 4rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem 2rem;
  border: 2px solid var(--border);
  transition: all 0.3s;
}

.service-card:hover {
  border-color: var(--yellow);
  background: var(--yellow);
}

.service-title {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.4;
}

.contact {
  padding: 8rem 4%;
  background: var(--light-gray);
}

.contact-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 6rem;
}

.contact-info {
  padding-top: 2rem;
}

.contact-item {
  margin-bottom: 2.5rem;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  color: var(--gray);
}

.contact-text {
  font-size: 1.05rem;
  line-height: 1.6;
}

.contact-form {
  background: var(--white);
  padding: 3rem;
  border-top: 4px solid var(--yellow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--border);
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--yellow);
}

footer {
  background: var(--dark);
  color: var(--white);
  padding: 5rem 4% 2rem;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  max-width: 350px;
}

.footer-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.footer-links a:hover {
  text-decoration: 1px solid underline;
  text-underline-offset: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.5);
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 400px;
  height: 100vh;
  background: var(--white);
  z-index: 1001;
  padding: 2rem;
  transition: right 0.3s;
}

.mobile-menu.active {
  right: 0;
}

.mobile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 2px solid var(--yellow);
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-links {
  list-style: none;
}

.mobile-links li {
  margin-bottom: 1.5rem;
}

.mobile-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 600;
}

@media (max-width: 1024px) {
  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .hero-content {
    padding: 4rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .hero-image {
    min-height: 400px;
  }

  .mission-container,
  .rector-container,
  .contact-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .programs-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-container {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: var(--white);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 3rem 2.5rem;
  text-align: center;
  border-top: 8px solid var(--yellow);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.4s ease-out;
  z-index: 10000;
}

@keyframes modalSlideIn {
  0% {
    transform: translateY(-50px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 2rem;
  color: var(--gray);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: var(--dark);
  transform: rotate(90deg);
  background: var(--light-gray);
  border-radius: 50%;
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: var(--yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: iconPulse 0.6s ease-out;
}

@keyframes iconPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.modal-icon svg {
  color: var(--dark);
}

.modal-title {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.modal-text {
  font-size: 1.05rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-info {
  background: var(--light-gray);
  padding: 1.5rem;
  margin-bottom: 2rem;
  border-left: 4px solid var(--yellow);
}

.modal-info-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1rem;
}

.modal-info-item:last-child {
  margin-bottom: 0;
}

.modal-info-item strong {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dark);
  font-weight: 700;
}

.modal-info-item span {
  font-size: 0.95rem;
  color: var(--gray);
}

.modal-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-modal-primary,
.btn-modal-secondary {
  padding: 1rem 2rem;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: "Inter", sans-serif;
  display: inline-block;
}

.btn-modal-primary {
  background: var(--dark);
  color: var(--white);
}

.btn-modal-primary:hover {
  background: var(--yellow);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn-modal-secondary {
  background: transparent;
  color: var(--dark);
  border: 2px solid var(--dark);
}

.btn-modal-secondary:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-yellow .btn-loading {
  display: none;
}

.btn-yellow:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 768px) {
  .modal-content {
    padding: 2.5rem 1.5rem;
    width: 95%;
  }

  .modal-title {
    font-size: 1.8rem;
  }

  .modal-text {
    font-size: 1rem;
  }

  .modal-actions {
    flex-direction: column;
  }

  .btn-modal-primary,
  .btn-modal-secondary {
    width: 100%;
  }

  .modal-close {
    top: 1rem;
    right: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-icon {
    width: 60px;
    height: 60px;
  }

  .modal-icon svg {
    width: 40px;
    height: 40px;
  }

  .modal-title {
    font-size: 1.5rem;
  }
}
