:root {
  --blue: #1e40af;
  --blue-hover: #1d4ed8;
  --cyan: #0ea5e9;
  --cyan-hover: #0284c7;
  --nav-fg: #0f172a;
  --nav-muted: #475569;
  --text: #111;
  --text-muted: #444;
  --border: rgba(0, 0, 0, 0.1);
  --radius: 12px;
  --shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  --font: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  overflow-x: hidden;
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: var(--cyan);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.hamburger-btn {
  display: none;
  position: fixed;
  top: max(14px, env(safe-area-inset-top, 0px));
  left: max(14px, env(safe-area-inset-left, 0px));
  z-index: 2001;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.hamburger-btn.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger-btn.is-open span:nth-child(2) {
  opacity: 0;
}
.hamburger-btn.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(300px, 88vw);
  height: 100vh;
  height: 100dvh;
  max-height: -webkit-fill-available;
  background: #fff;
  z-index: 2000;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.mobile-drawer.is-open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: max(1rem, env(safe-area-inset-top, 0px)) max(1.1rem, env(safe-area-inset-right, 0px)) 1rem
    max(1.1rem, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 700;
  flex-shrink: 0;
}

.drawer-close {
  border: none;
  background: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: #333;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -0.35rem -0.25rem -0.35rem 0;
  padding: 0 0.25rem;
}

.drawer-nav {
  padding: 0.75rem 0 max(1.25rem, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.drawer-link {
  display: block;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  color: #111;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.drawer-link:hover {
  background: #f1f5f9;
  color: var(--blue);
}

.drawer-section-title {
  padding: 0.75rem 1.25rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.drawer-section-title--sub {
  padding-top: 0.15rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #94a3b8;
}

.drawer-link-ansokan-hub {
  font-weight: 700;
}

.drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1999;
}

.drawer-backdrop.is-visible {
  display: block;
  touch-action: none;
}

@media (max-width: 1024px) {
  html {
    scroll-padding-top: max(5rem, calc(env(safe-area-inset-top, 0px) + 3.75rem));
  }

  .hamburger-btn {
    display: flex;
  }
  .top-nav {
    display: grid !important;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding-top: max(14px, env(safe-area-inset-top, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: 14px;
    padding-left: max(58px, calc(48px + env(safe-area-inset-left, 0px)));
    pointer-events: none;
  }
  .nav-balance-left,
  .nav-center-shell {
    display: none !important;
  }
  .top-nav .nav-right {
    grid-column: 2;
    justify-self: end;
    flex: unset !important;
    width: auto !important;
    max-width: min(240px, calc(100vw - 5.5rem - env(safe-area-inset-left, 0px)));
    pointer-events: auto;
  }
  .user-menu-toggle {
    max-width: min(220px, 52vw);
    font-size: 0.82rem;
    padding: 5px 6px;
  }
  .user-menu-avatar {
    width: 28px;
    height: 28px;
  }
  .top-nav a.nav-login-link {
    padding: 8px 12px;
    font-size: 0.92rem;
    white-space: nowrap;
  }
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: max(14px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 14px
    max(16px, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1990;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 8px 24px rgba(15, 23, 42, 0.06);
}

.nav-balance-left {
  flex: 0 0 clamp(130px, 22vw, 260px);
  min-height: 1px;
  pointer-events: none;
}

.nav-center-shell {
  flex: 1;
  min-width: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-center {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  max-width: 100%;
  pointer-events: auto;
}

.nav-right {
  flex: 0 0 clamp(130px, 22vw, 260px);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  pointer-events: auto;
}

.top-nav a,
.top-nav button.dropdown-toggle {
  background: transparent;
  border: none;
  padding: 8px 4px;
  color: var(--nav-fg);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
  line-height: 1;
}

.top-nav a:hover,
.top-nav button.dropdown-toggle:hover {
  color: var(--blue);
  text-decoration: none;
}

.top-nav a.nav-login-link {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  line-height: 1.2;
}

.top-nav a.nav-login-link:hover {
  border-color: rgba(30, 64, 175, 0.35);
  color: var(--blue);
  text-decoration: none;
}

.top-nav a.current-page {
  position: relative;
  color: var(--nav-fg);
}

.top-nav a.current-page::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown > .dropdown-toggle::after {
  content: "▾";
  margin-left: 6px;
  font-size: 0.9em;
  transition: transform 0.3s ease;
}

.dropdown.is-open > .dropdown-toggle::after {
  transform: rotate(180deg);
}

.top-nav button.dropdown-toggle.current-page {
  position: relative;
  color: var(--nav-fg);
}

.top-nav button.dropdown-toggle.current-page::before {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(0);
  width: max-content;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  backdrop-filter: blur(10px);
  z-index: 1000;
}

.dropdown.is-open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown-menu a {
  display: block;
  padding: 12px 20px;
  color: #111;
  text-align: center;
  white-space: nowrap;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-weight: 500;
  font-size: 0.95rem;
}

.dropdown-menu a:last-child {
  border-bottom: none;
}

.dropdown-menu a:hover {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  text-decoration: none;
  color: var(--blue);
}

.top-nav a.nav-administrator {
  padding: 8px 4px;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
}

.top-nav a.nav-administrator:hover {
  color: var(--blue);
  text-decoration: none;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.user-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 6px;
  margin: 0;
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  color: var(--nav-fg);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  line-height: 1.2;
  cursor: pointer;
  max-width: min(280px, 36vw);
  transition: background 0.2s, border-color 0.2s;
}

.user-menu-toggle:hover {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.18);
}

.user-menu-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(15, 23, 42, 0.12);
}

.user-menu-label {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu-toggle::after {
  content: "▾";
  margin-left: 2px;
  font-size: 0.75em;
  opacity: 0.85;
  flex-shrink: 0;
}

.user-menu.is-open .user-menu-toggle::after {
  transform: rotate(180deg);
  display: inline-block;
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  backdrop-filter: blur(10px);
  z-index: 1200;
}

.user-menu.is-open .user-menu-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.user-menu-logout {
  display: block;
  padding: 12px 20px;
  color: #dc2626 !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  text-decoration: none;
}

.user-menu-logout:hover {
  background: #fef2f2;
  color: #b91c1c !important;
  text-decoration: none;
}

.drawer-user-block {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 1.25rem 0.75rem;
}

.drawer-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(0, 0, 0, 0.12);
}

.drawer-user-label {
  font-weight: 600;
  color: #111;
  font-size: 0.95rem;
  line-height: 1.35;
  word-break: break-word;
}

.drawer-link.drawer-link-admin {
  margin: 0;
  padding: 12px 1.25rem !important;
  text-align: left;
  font-weight: 600 !important;
  letter-spacing: 0.02em;
  background: transparent !important;
  color: var(--blue) !important;
  border: none;
  box-shadow: none;
}

.drawer-link.drawer-link-admin:hover {
  background: rgba(30, 64, 175, 0.06) !important;
  color: var(--blue-hover) !important;
}

.drawer-link.drawer-logout {
  color: #dc2626 !important;
  font-weight: 700;
}

.drawer-link.drawer-logout:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

.hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-container {
  position: absolute;
  inset: 0;
}

.gallery-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  z-index: 0;
}

.gallery-image.active {
  opacity: 1;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-image {
    transition-duration: 0.35s;
  }
}

.hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  max-width: 90%;
  padding: 20px;
  margin-top: 2.5rem;
}

.hero-title {
  font-size: clamp(2rem, 8vw, 3.75rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  line-height: 1.15;
}

.hero-subtitle {
  font-size: clamp(1rem, 4vw, 1.35rem);
  font-weight: 300;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
  max-width: 36rem;
  margin: 0 auto 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn--primary {
  background: var(--cyan);
  color: #fff;
  box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.hero-btn--primary:hover {
  background: var(--cyan-hover);
  transform: translateY(-2px);
}

.hero-btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(6px);
}

.hero-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.gallery-indicators {
  position: absolute;
  bottom: max(28px, calc(env(safe-area-inset-bottom, 0px) + 16px));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.indicator.active,
.indicator:hover {
  background: #fff;
  transform: scale(1.1);
}

.section-divider {
  height: 56px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.section-divider::after {
  content: "";
  display: block;
  width: min(90%, 1200px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.about-section,
.goals-section {
  background: #fff;
  padding: clamp(60px, 10vw, 100px) 20px clamp(72px, 12vw, 120px);
}

.about-container,
.goals-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

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

.about-image {
  width: 100%;
  height: clamp(280px, 50vh, 640px);
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.about-content h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 18px;
  color: #111;
  font-weight: 800;
}

.about-content p {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.85;
  color: #333;
  margin-bottom: 0.85rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-content ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
  font-size: clamp(1.05rem, 2.2vw, 1.15rem);
  line-height: 1.7;
  color: #333;
}

.about-content li {
  margin-bottom: 0.45rem;
}

.about-content li::marker {
  color: var(--blue);
}

@media (max-width: 900px) {
  .about-container,
  .goals-container {
    grid-template-columns: 1fr;
  }
  .about-image {
    height: clamp(220px, 42vh, 400px);
    order: -1;
  }
  .goals-container .about-image {
    order: 0;
  }
}

.team-section {
  background: #fff;
  padding: 72px 20px 100px;
}

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

.section-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #111;
  text-align: center;
  margin: 0 auto 36px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.team-card {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.team-photo {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
  border: 3px solid #000;
  background: #e5e7eb;
}

.team-name {
  margin-top: 14px;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  font-weight: 700;
  color: #111;
}

.team-title {
  margin-top: 6px;
  font-size: clamp(0.9rem, 2vw, 1.02rem);
  color: #444;
}

@media (max-width: 1100px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.services-section {
  background: #fff;
  padding: 48px 20px 100px;
}

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

.services-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gap);
}

.services-row-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(200px, 260px));
  gap: var(--gap);
  justify-content: center;
  width: 100%;
}

.services-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 260px));
  gap: var(--gap);
  justify-content: center;
  width: 100%;
}

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  max-width: 260px;
  width: 100%;
  justify-self: center;
}

.service-card-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
  border-radius: 10px;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 28px 18px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transition: transform 0.2s, box-shadow 0.2s;
  max-width: 260px;
  width: 100%;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.09);
}

.service-photo-wrap {
  width: clamp(100px, 12vw, 140px);
  height: clamp(100px, 12vw, 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 6px auto;
}

.service-photo-wrap--wide {
  width: clamp(130px, 15vw, 180px);
  height: clamp(100px, 12vw, 140px);
}

.service-photo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.service-photo--card {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  border: 2px solid rgba(30, 64, 175, 0.12);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.service-photo--card-wide {
  object-fit: cover;
}

.service-letter {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
  border-radius: 12px;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--blue);
  border: 2px solid rgba(30, 64, 175, 0.2);
}

.service-name {
  margin-top: 12px;
  padding: 12px 0 4px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: #111;
}

@media (max-width: 900px) {
  .services-row-3 {
    grid-template-columns: repeat(2, 1fr);
    max-width: 560px;
  }
  .services-row-2 {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}

@media (max-width: 520px) {
  .services-row-3 {
    grid-template-columns: 1fr;
  }
}

.member-section {
  background: #f8fafc;
  padding: 48px 20px 64px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.member-section .section-heading {
  margin-bottom: 12px;
}

.member-section p {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  color: #555;
}

.contact-section-srk {
  position: relative;
  background: linear-gradient(135deg, #1e3a5f 0%, #0f172a 50%, #1e293b 100%);
  padding: 80px 20px 120px;
}

.contact-section-srk::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.contact-container {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-heading-box {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 16px 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.contact-heading-box .section-heading {
  margin-bottom: 0;
}

.contact-heading-box p {
  margin-top: 8px;
  color: #555;
  font-size: 0.95rem;
  text-align: center;
}

.contact-form-srk {
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #111;
  font-size: 0.95rem;
}

.req {
  color: #dc2626;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  background: #fff;
  font: inherit;
}

.form-field textarea {
  min-height: 180px;
  resize: vertical;
}

.form-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.btn-submit-srk {
  background: var(--cyan);
  color: #fff;
  border: none;
  padding: 14px 28px;
  min-width: 240px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1.05rem;
  font-family: inherit;
  transition: background 0.2s;
}

.btn-submit-srk:hover {
  background: var(--cyan-hover);
}

.form-status-srk {
  margin-top: 14px;
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4rem;
}

.form-status-srk.is-ok {
  color: #059669;
  font-weight: 600;
}

.form-status-srk.is-err {
  color: #dc2626;
  font-weight: 600;
}

.form-hint-srk {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 0;
}

.ansokan-page {
  padding: 1.25rem 16px 3rem;
}

.ansokan-form .form-field textarea {
  min-height: 104px;
}

.form-fieldset-srk {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 16px 18px 8px;
  margin-bottom: 18px;
  background: #fff;
}

.form-fieldset-srk legend {
  padding: 0 6px;
  font-weight: 700;
  font-size: 0.95rem;
}

.checkbox-row-srk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.93rem;
  line-height: 1.45;
  color: #334155;
}

.checkbox-row-srk input {
  width: auto;
  margin-top: 4px;
  flex-shrink: 0;
}

.checkbox-row-srk a {
  color: var(--blue, #1e40af);
  text-decoration: underline;
}

.ansokan-type-grid-public {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.ansokan-type-card-public {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  background: #fafafa;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius);
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.ansokan-type-card-public:hover {
  border-color: rgba(14, 165, 233, 0.45);
  box-shadow: 0 8px 22px rgba(14, 165, 233, 0.12);
  transform: translateY(-2px);
}

.ansokan-type-card-public__title {
  font-weight: 800;
  font-size: 1.05rem;
}

.ansokan-type-card-public__hint {
  font-size: 0.88rem;
  color: #64748b;
}

.member-resource-hero {
  max-width: 800px;
  margin: 0 auto 1.75rem;
  text-align: center;
}

.member-resource-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.1rem);
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.member-resource-hero p {
  color: #64748b;
  font-size: 1rem;
  line-height: 1.55;
  margin: 0;
}

.member-resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 1.15rem;
  max-width: 1100px;
  margin: 0 auto;
}

.member-event-card,
.member-doc-tile {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.member-event-card:hover,
.member-doc-tile:hover {
  border-color: rgba(14, 165, 233, 0.35);
  box-shadow: 0 10px 28px rgba(14, 165, 233, 0.1);
}

.member-event-card__meta {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0ea5e9;
  margin-bottom: 0.5rem;
}

.member-event-card h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.65rem;
  line-height: 1.3;
}

.member-event-card__row {
  font-size: 0.92rem;
  color: #475569;
  margin: 0.25rem 0;
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.member-event-card__row strong {
  color: #334155;
  font-weight: 600;
}

.member-event-card__body {
  font-size: 0.93rem;
  color: #475569;
  line-height: 1.5;
  margin-top: 0.75rem;
  white-space: pre-wrap;
}

.member-empty-state {
  text-align: center;
  max-width: 28rem;
  margin: 2rem auto;
  padding: 2rem 1.5rem;
  background: #f8fafc;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: var(--radius);
  color: #64748b;
  font-size: 0.98rem;
  line-height: 1.5;
}

.member-doc-tile h2 {
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
}

.member-doc-tile h2 a {
  color: #0f172a;
  text-decoration: none;
}

.member-doc-tile h2 a:hover {
  color: var(--blue);
}

.member-doc-tile p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.site-footer-srk {
  background: #fff;
  padding: 48px 20px 28px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-inner-srk {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-brand-srk {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.footer-inner-srk p,
.footer-inner-srk a {
  font-size: 0.92rem;
  color: #555;
}

.footer-links-srk {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-links-srk a:hover {
  color: var(--blue);
}

.footer-copy-srk {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 768px) {
  .footer-inner-srk {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .user-menu-label {
    display: none;
  }
  .user-menu-toggle {
    padding: 6px;
  }
}

@media (max-width: 480px) {
  .about-section,
  .goals-section,
  .services-section,
  .team-section,
  .member-section {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }

  .contact-section-srk {
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-bottom: max(5rem, calc(4rem + env(safe-area-inset-bottom, 0px)));
  }

  .contact-form-srk {
    padding: 1.15rem 1rem;
  }

  .btn-submit-srk {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .site-footer-srk {
    padding-left: max(20px, env(safe-area-inset-left, 0px));
    padding-right: max(20px, env(safe-area-inset-right, 0px));
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px));
  }

  .service-card-link {
    max-width: min(260px, 100%);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

body.page-document {
  background: #f8fafc;
}

.doc-page {
  padding: calc(72px + 2rem) 20px 4rem;
}

.doc-inner {
  max-width: 44rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: clamp(1.75rem, 4vw, 2.75rem);
}

.doc-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.doc-kicker {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nav-muted);
  margin-bottom: 0.5rem;
}

.doc-header h1 {
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 800;
  color: var(--nav-fg);
  line-height: 1.2;
  margin-bottom: 0.35rem;
}

.doc-meta {
  font-size: 0.95rem;
  color: var(--nav-muted);
}

.doc-block {
  margin-bottom: 1.75rem;
}

.doc-block h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--nav-fg);
  margin-bottom: 0.65rem;
  margin-top: 0.25rem;
}

.doc-chapter h2 {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.doc-chapter:first-of-type h2 {
  border-top: none;
  padding-top: 0;
}

.doc-prose p {
  font-size: 1.02rem;
  line-height: 1.75;
  color: #334155;
  margin-bottom: 0.85rem;
}

.doc-prose p:last-child {
  margin-bottom: 0;
}

.doc-list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
  color: #334155;
  line-height: 1.7;
}

.doc-list li {
  margin-bottom: 0.4rem;
}

.doc-list li::marker {
  color: var(--cyan);
}

.doc-rules {
  margin: 0.35rem 0 0;
  padding-left: 1.35rem;
  color: #334155;
  line-height: 1.72;
  counter-reset: docrule;
  list-style: none;
}

.doc-rules > li {
  position: relative;
  margin-bottom: 0.65rem;
  padding-left: 0.15rem;
}

.doc-rules > li::before {
  counter-increment: docrule;
  content: counter(docrule) ".";
  position: absolute;
  left: -1.35rem;
  font-weight: 700;
  color: var(--nav-muted);
  font-size: 0.9em;
}

.doc-sublist {
  margin: 0.5rem 0 0.65rem;
  padding-left: 1.25rem;
  list-style: disc;
  color: #334155;
}

.doc-sublist li {
  margin-bottom: 0.25rem;
}

.doc-dl dt {
  font-weight: 700;
  color: var(--nav-fg);
  margin-top: 1rem;
  font-size: 1rem;
}

.doc-dl dt:first-child {
  margin-top: 0.5rem;
}

.doc-dl dd {
  margin: 0.35rem 0 0;
  padding: 0;
  color: #334155;
  line-height: 1.7;
}

.doc-approval {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  margin: 2rem -0.5rem 0;
  padding: 1.25rem 1.25rem 1.5rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.doc-signoff {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
  font-size: 0.95rem;
  color: var(--nav-muted);
}

.doc-contact {
  margin-top: 0.75rem;
  line-height: 1.65;
}

.doc-prose a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-prose a:hover {
  color: var(--cyan-hover);
}

.doc-back {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  font-size: 0.95rem;
  color: var(--nav-muted);
}

.doc-back a {
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
}

.doc-back a:hover {
  text-decoration: underline;
}

.member-area-section {
  padding: clamp(2rem, 5vw, 3.5rem) max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-right, 0px))
    clamp(2rem, 5vw, 3.5rem) max(clamp(1rem, 4vw, 2rem), env(safe-area-inset-left, 0px));
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.member-area-inner {
  max-width: 56rem;
  margin: 0 auto;
}

.member-area-intro {
  text-align: center;
  color: var(--text-muted);
  margin: 0 auto 2rem;
  max-width: 36rem;
  font-size: 1.02rem;
}

.member-subsection {
  margin-bottom: 2rem;
  padding: 1.25rem 1.35rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  scroll-margin-top: 88px;
}

.member-subheading {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 0 0.5rem;
}

.member-subtext {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.member-doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.member-doc-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.member-doc-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.member-doc-link {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
  font-size: 1rem;
}

.member-doc-link:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.member-doc-desc {
  font-size: 0.88rem;
  color: var(--nav-muted);
}

.member-event-signup {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  font-size: 0.92rem;
}

.member-event-signup__stats {
  margin-bottom: 0.85rem;
}

.member-event-signup__stat-line {
  margin: 0.25rem 0;
  color: var(--nav-muted, #475569);
}

.member-event-signup__list {
  margin: 0.75rem 0;
}

.member-event-signup__list--muted {
  opacity: 0.85;
}

.member-event-signup__list-title {
  font-weight: 700;
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
}

.member-event-signup__job-block {
  margin: 0.75rem 0 0;
}

.member-event-signup__job-block:first-of-type {
  margin-top: 0.4rem;
}

.member-event-signup__job-block-title {
  font-weight: 700;
  margin: 0 0 0.3rem;
  font-size: 0.9rem;
  color: #0f172a;
}

.member-event-signup__ul {
  margin: 0;
  padding-left: 1.15rem;
}

.member-event-signup__ul li {
  margin: 0.35rem 0;
}

.member-event-signup__name {
  font-weight: 600;
  color: #0f172a;
}

.member-event-signup__name em {
  font-style: normal;
  font-weight: 700;
  color: #b45309;
}

.member-event-signup__reason {
  display: block;
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.15rem;
  margin-left: 0;
}

.member-event-signup__actions {
  margin-top: 0.9rem;
}

.member-event-signup__btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.member-event-signup__job-grid {
  margin-top: 0.35rem;
}

.member-event-signup__pick-intro,
.member-event-signup__change-hint {
  margin: 0 0 0.55rem;
  font-size: 0.86rem;
  color: var(--nav-muted, #64748b);
  line-height: 1.45;
}

.member-event-signup__current-job {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  color: #0f172a;
}

.member-event-signup__change-head {
  width: 100%;
  flex-basis: 100%;
  margin: 0.85rem 0 0.15rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  border: 0;
  background: none;
}

.member-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #f8fafc;
  color: #0f172a;
  cursor: pointer;
  font-family: inherit;
}

.member-btn:hover:not(:disabled) {
  background: #e2e8f0;
}

.member-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.member-btn--primary {
  background: var(--cyan, #0ea5e9);
  border-color: transparent;
  color: #fff;
}

.member-btn--primary:hover:not(:disabled) {
  background: var(--cyan-hover, #0284c7);
  color: #fff;
}

.member-btn--ghost {
  background: transparent;
  border-color: rgba(15, 23, 42, 0.2);
}

.member-event-signup__msg {
  margin: 0 0 0.6rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #f1f5f9;
  font-size: 0.86rem;
}

.member-event-signup__msg--err {
  background: #fef2f2;
  color: #b91c1c;
}

.member-event-signup__hint {
  margin: 0;
  font-size: 0.86rem;
  color: #64748b;
}

.suk-late-modal {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.suk-late-modal[hidden] {
  display: none !important;
}

.suk-late-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.suk-late-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: #fff;
  border-radius: 14px;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.25);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.suk-late-modal__title {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.suk-late-modal__intro {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #64748b;
}

.suk-late-modal__label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
  margin-bottom: 0.35rem;
}

.suk-late-modal__req {
  color: #dc2626;
}

.suk-late-modal__textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font: inherit;
  font-size: 0.92rem;
  line-height: 1.45;
  resize: vertical;
  min-height: 6.5rem;
  background: #f8fafc;
}

.suk-late-modal__textarea:focus {
  outline: none;
  border-color: var(--cyan, #0ea5e9);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.22);
  background: #fff;
}

.suk-late-modal__counter {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
  text-align: right;
}

.suk-late-modal__error {
  margin: 0.6rem 0 0;
  font-size: 0.86rem;
  color: #b91c1c;
  font-weight: 600;
}

.suk-late-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.1rem;
}

.suk-late-modal__actions .member-btn--primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
