:root {
  --layout-blue-dark: #1a4d8c;
  --layout-blue-mid: #2271b3;
  --layout-blue-light: #4db8e8;
  --layout-teal: #0abf9e;
  --layout-text-dark: #1c2f4a;
  --layout-bg-light: #eaf5fc;
}

.topbar {
  background: var(--layout-blue-dark);
  color: #fff;
  font-size: 13px;
  padding: 8px 40px;
  display: flex;
  justify-content: space-between;
}

nav {
  background: #fff;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--layout-text-dark);
  text-decoration: none;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--layout-blue-mid);
  border-color: var(--layout-blue-mid);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 5px;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
}

.nav-hamburger:hover {
  background: var(--layout-bg-light);
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: var(--layout-blue-dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

footer {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #3a9fce 0%, #1a6faa 60%, #135591 100%);
  color: #fff;
  padding: 80px 40px 40px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23eaf5fc' d='M0,40L80,50C160,60,320,80,480,70C640,60,800,20,960,10C1120,0,1280,20,1360,30L1440,40L1440,0L0,0Z'/%3E%3C/svg%3E") no-repeat top / cover;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.footer-col ul li a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}

.footer-col ul li a::before {
  content: "◎ ";
  font-size: 10px;
  margin-right: 1px;
}

.footer-col ul li a:hover {
  color: #fff;
}

.footer-book-link {
  gap: 6px;
}

.footer-book-link::before {
  content: none;
}

.footer-book-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-book-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-icon {
  width: 42px;
  height: 42px;
  background: var(--layout-teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.contact-item span {
  font-size: 13px;
  color: #a8d8ef;
  font-weight: 600;
}

.footer-map {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.footer-map img {
  width: 220px;
  height: auto;
  object-fit: contain;
  opacity: 0.88;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3)) brightness(1.12);
}

.footer-bottom {
  text-align: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    padding: 6px 16px;
    text-align: center;
  }

  nav {
    padding: 10px 16px;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    padding: 10px 0 16px;
    z-index: 99;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 24px;
    border-bottom: 1px solid #eaf5fc;
  }

  .nav-links li:last-child a {
    border-bottom: none;
  }

  .footer-inner {
    flex-direction: column;
    gap: 40px;
    padding: 0;
  }

  footer {
    padding: 80px 24px 40px;
  }

  .footer-map {
    order: 3;
    width: 100%;
  }

  .footer-map img {
    width: 160px;
  }
}

@media (max-width: 480px) {
  footer {
    padding: 70px 16px 32px;
  }

  .footer-col h4 {
    font-size: 15px;
  }

  .footer-bottom {
    font-size: 12px;
    margin-top: 32px;
  }
}
