* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: #f8fafc;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

header {
  background: #0f172a;
  color: #fff;
}

.topbar-wrap {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #0f172a;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.brand-logo-link {
  line-height: 0;
}

.brand-logo {
  display: block;
  max-height: 44px;
  max-width: 220px;
  width: auto;
  height: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-weight: 600;
}

.site-nav a.active,
.site-nav a:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 36px;
  border: 1px solid #334155;
  border-radius: 8px;
  background: #0f172a;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #e2e8f0;
}

.hero {
  padding: 64px 0 50px;
  position: relative;
  overflow: hidden;
  color: #fff;
}

.hero-home {
  min-height: 560px;
  display: flex;
  align-items: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(15, 23, 42, 0.72),
    rgba(30, 64, 175, 0.62)
  );
  z-index: 1;
}

.hero-bg-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}

.hero-inner {
  position: relative;
  display: inline-block;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

.hero p {
  margin: 0;
  max-width: 700px;
}

.hero-share-row {
  position: absolute;
  bottom: 0px;
  right: 0;
}

main {
  flex: 1;
  padding: 40px 0 56px;
}

.breadcrumbs {
  margin: 0 0 18px;
}

.breadcrumbs-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: #475569;
  font-size: 0.9rem;
}

.breadcrumbs-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumbs-item + .breadcrumbs-item::before {
  content: ">";
  color: #94a3b8;
}

.breadcrumbs a {
  color: #1d4ed8;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
  color: #334155;
  font-weight: 600;
}

.section-title {
  font-size: 1.6rem;
  margin: 28px 0 16px;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 18px;
}

.gallery-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.activity-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  margin-bottom: 0;
}

.gallery-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.activity-card .activity-img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}

.gallery-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-content > .cta-link {
  align-self: flex-end;
  width: auto;
  margin-top: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.team-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  display: block;
  max-width: 100%;
}

.team-card h3 {
  margin: 4px 0 0;
}

.team-phones {
  margin: 0;
  padding-left: 18px;
}

.team-phones li + li {
  margin-top: 4px;
}

.team-email {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: none;
}

.team-email:hover {
  text-decoration: underline;
}

.rich-text img {
  max-width: 100%;
  height: auto;
}

.contact-map {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 12px;
}

.contact-map-inline {
  margin-top: 14px;
}

.contact-details {
  display: grid;
  gap: 8px;
}

.contact-item {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-item::before {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #eff6ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  font-size: 13px;
  line-height: 1;
}

.contact-item-address::before {
  content: "📍";
}

.contact-item-phone::before {
  content: "☎";
}

.contact-item-email::before {
  content: "✉";
}

.contact-item-time::before {
  content: "🕒";
}

.contact-item-client-account::before,
.contact-item-payment-account::before {
  content: "🏦";
}

.contact-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.rich-text p:first-child {
  margin-top: 0;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1d4ed8;
  margin: 8px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

th,
td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

th {
  background: #e2e8f0;
}

tr:last-child td {
  border-bottom: none;
}

form {
  display: grid;
  gap: 12px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

button,
.danger-btn {
  background: #1d4ed8;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  font-weight: 700;
}

button:hover {
  background: #1e40af;
}

.cta-link {
  display: inline-block;
  margin-top: 10px;
  text-decoration: none;
  background: #1d4ed8;
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.cta-link:hover {
  background: #1e40af;
}

.cta-link.alt {
  background: #334155;
}

.no-top-margin {
  margin-top: 0;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.small-btn {
  padding: 6px 10px;
  font-size: 0.88rem;
  margin-top: 0;
}

.post-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.post-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.post-meta-row .meta {
  margin: 0;
}

.fb-icon-link {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #1877f2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fb-icon-link svg {
  width: 18px;
  height: 18px;
  fill: #fff;
}

.fb-icon-link:hover {
  background: #0d65d9;
}

.next-btn {
  margin-left: auto;
}

.blog-read-more {
  display: table;
  margin-top: auto;
  margin-left: auto;
}

.pagination-wrap {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.meta {
  color: #475569;
  font-size: 0.92rem;
}

.notice {
  padding: 12px 14px;
  border-radius: 8px;
  margin: 12px 0;
}

.notice-success {
  background: #dcfce7;
  color: #166534;
}

.notice-error {
  background: #fee2e2;
  color: #991b1b;
}

footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 18px 0;
  font-size: 0.95rem;
}

.footer-content {
  display: grid;
  gap: 14px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.footer-links-grid > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-item {
  color: #e2e8f0;
  text-decoration: none;
}

.footer-link-item:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-copy {
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid #334155;
  font-size: 0.82rem;
  color: #94a3b8;
}

.scroll-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: #1d4ed8;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.scroll-top-btn.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #1e40af;
}


@media (max-width: 700px) {
  .breadcrumbs-list {
    font-size: 0.84rem;
    gap: 6px;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .search-toggle {
    margin-left: 0;
  }

  .site-nav {
    display: none;
    width: 100%;
    margin-left: 0;
  }

  .site-nav.open {
    display: block;
  }

  .site-nav ul {
    margin-top: 10px;
    flex-direction: column;
    gap: 10px;
  }

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

/* ── Search ─────────────────────────────────────────────── */
.search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid #334155;
  border-radius: 8px;
  color: #e2e8f0;
  cursor: pointer;
  padding: 6px 8px;
  flex-shrink: 0;
  transition: border-color 0.15s, color 0.15s;
}

.search-toggle:hover {
  border-color: #94a3b8;
  color: #fff;
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 80px;
  animation: search-fade-in 0.15s ease;
}

.search-overlay[hidden] {
  display: none;
}

@keyframes search-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.search-overlay-inner {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  width: min(680px, 94%);
  max-height: calc(100vh - 120px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: search-slide-in 0.15s ease;
}

@keyframes search-slide-in {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
}

.search-input-icon {
  flex-shrink: 0;
  color: #94a3b8;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #1f2937;
  background: transparent;
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-close {
  background: none;
  border: none;
  font-size: 1rem;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.1s;
}

.search-close:hover {
  color: #1f2937;
}

.search-results {
  overflow-y: auto;
  padding: 8px 0;
}

.search-result-item {
  display: block;
  padding: 10px 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.1s;
  border-bottom: 1px solid #f1f5f9;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item:focus {
  background: #f8fafc;
  outline: none;
}

.search-result-type {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 4px;
  padding: 1px 6px;
  margin-bottom: 2px;
}

.search-result-type-page {
  background: #eff6ff;
  color: #1d4ed8;
}

.search-result-type-post {
  background: #f0fdf4;
  color: #15803d;
}

.search-result-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px;
}

.search-result-url {
  font-size: 0.72rem;
  color: #64748b;
  margin: 0 0 3px;
  word-break: break-all;
}

.search-result-snippet {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.9rem;
}

.search-loading {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

