/* ==========================================================================
   RAILMASTERS KFT. - ARCHITECTURAL & CIVIL ENGINEERING STYLESHEET
   100% LOCAL ASSETS - ZERO EXTERNAL DEPENDENCIES
   ========================================================================== */

:root {
  --white: #ffffff;
  --bg-light: #f4f6f9;
  --bg-subtle: #f8fafc;
  --navy: #0e3e9b;
  --navy-dark: #0a2d73;
  --navy-wordmark: #1a327a;
  --red: #e31e24;
  --red-hover: #c5161c;
  --red-line: #ef373e;
  --ink: #1c2430;
  --ink-body: #3b4453;
  --ink-muted: #647084;
  --border: #dce2ec;

  --font-sans: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Cascadia Mono', 'Consolas', 'Courier New', monospace;

  --radius: 3px;
  --transition: 0.2s ease;
}

/* 1. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--ink-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  z-index: 2000;
  transition: top var(--transition);
}

.skip-link:focus {
  top: 12px;
}

/* 2. COMMON TYPOGRAPHY, DIVIDERS & BUTTONS */
.section {
  padding: 84px 0;
}

.section-header-center {
  text-align: center;
  margin-bottom: 48px;
}

.section-heading {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-heading--navy { color: var(--navy); }
.section-heading--dark { color: var(--ink); }
.section-heading--white { color: var(--white); }

.section-subheading {
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 18px;
}

.section-subheading--red { color: var(--red); }

.section-lead {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--ink-muted);
  font-size: 1rem;
}

.accent-rule {
  width: 48px;
  height: 3px;
  background-color: var(--red-line);
  margin: 18px 0 24px;
}

.accent-rule--hero {
  width: 64px;
  margin: 22px 0;
}

.accent-rule--center {
  margin: 16px auto 0;
}

.accent-rule--sm {
  width: 36px;
  height: 2px;
  margin: 14px 0 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}

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

.btn-primary:hover {
  background-color: var(--red-hover);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.78);
  color: var(--white);
}

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

.btn-sm {
  padding: 9px 18px;
  font-size: 0.875rem;
}

.btn-block {
  width: 100%;
}

/* 3. STICKY HEADER & NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.site-logo-img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--navy-wordmark);
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.56rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--red-line);
  margin-top: 2px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 0;
  position: relative;
  transition: color var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--red);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background-color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-muted);
  transition: border-color var(--transition);
}

.lang-switch:hover {
  border-color: var(--navy);
}

.lang-opt.active {
  color: var(--navy);
}

.lang-sep {
  color: var(--border);
}

.hamburger-btn {
  display: none;
  background: none;
  border: none;
  width: 28px;
  height: 20px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--ink);
  transition: transform var(--transition), opacity var(--transition);
}

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

/* 4. HERO SECTION (FULL INITIAL VIEWPORT) */
.hero-section {
  position: relative;
  min-height: calc(100vh - 78px);
  min-height: calc(100svh - 78px);
  height: calc(100vh - 78px);
  height: calc(100svh - 78px);
  display: flex;
  align-items: center;
  background-color: #131c2e;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(13, 24, 46, 0.78) 0%,
    rgba(13, 24, 46, 0.56) 55%,
    rgba(13, 24, 46, 0.36) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 20px;
  padding-bottom: 56px;
}

.hero-title {
  font-size: clamp(2.25rem, 4.8vw, 3.85rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: 0.03em;
  color: var(--white);
}

.hero-subtitle {
  max-width: 610px;
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 30px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-scroll-cue {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.hero-scroll-cue:hover {
  color: var(--white);
}

.scroll-cue-line {
  width: 1px;
  height: 24px;
  background-color: rgba(255, 255, 255, 0.65);
}

/* 5. RÓLUNK & TARGET AUDIENCE (ALTERNATING 50/50 SPLIT) */
.about-section {
  background-color: var(--white);
}

.split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.split-row:last-child {
  border-bottom: none;
}

.split-text {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 64px 56px 64px 24px;
}

.split-row:nth-child(2) .split-text {
  justify-content: flex-start;
  padding: 64px 24px 64px 56px;
}

.split-text-inner {
  width: 100%;
  max-width: 520px;
}

.split-text-inner p {
  font-size: 0.98rem;
  color: var(--ink-body);
  margin-bottom: 18px;
}

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

.signature-block {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 3px solid var(--red-line);
}

.signature-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.signature-role {
  display: block;
  font-size: 0.875rem;
  font-family: var(--font-mono);
  color: var(--ink-muted);
}

.split-media {
  position: relative;
  min-height: 440px;
  background-color: var(--bg-light);
  overflow: hidden;
}

.split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.audience-list {
  list-style: none;
  margin: 18px 0 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.audience-list li {
  position: relative;
  padding-left: 18px;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 2px;
  background-color: var(--red);
}

/* 6. PURE-CSS ARCHITECTURAL DIVIDER & TEVÉKENYSÉGEK 3x3 GRID */
.blueprint-band {
  height: 104px;
  background-color: var(--bg-light);
  background-image:
    linear-gradient(to right, rgba(14, 62, 155, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 62, 155, 0.07) 1px, transparent 1px);
  background-size: 32px 32px;
  border-top: 1px solid var(--border);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.activity-tile {
  padding: 46px 40px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.activity-tile--intro {
  background-color: var(--navy);
  color: var(--white);
  justify-content: center;
}

.intro-copy {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1rem;
  max-width: 340px;
}

.activity-tile--light {
  background-color: var(--white);
  color: var(--ink-body);
  border-right: 1px solid var(--border);
}

.activity-tile--navy {
  background-color: var(--navy);
  color: var(--white);
}

.activity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.activity-num {
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.activity-tile--light .activity-num {
  color: var(--navy);
}

.activity-tile--navy .activity-num {
  color: var(--white);
}

.activity-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.activity-tile--light .activity-icon {
  color: var(--navy);
  opacity: 0.85;
}

.activity-tile--navy .activity-icon {
  color: var(--white);
  opacity: 0.85;
}

.activity-title {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.activity-tile--light .activity-title {
  color: var(--navy);
}

.activity-tile--navy .activity-title {
  color: var(--white);
}

.activity-desc {
  font-size: 0.92rem;
  line-height: 1.65;
}

.activity-tile--light .activity-desc {
  color: var(--ink-body);
}

.activity-tile--navy .activity-desc {
  color: rgba(255, 255, 255, 0.88);
}

/* 7. HELYSZÍNI FOTÓGALÉRIA (3x3) */
.gallery-section {
  background-color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  background-color: var(--ink);
}

.gallery-item {
  position: relative;
  aspect-ratio: 4 / 3;
  padding: 0;
  border: none;
  background: var(--ink);
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-item:hover img {
  transform: scale(1.03);
  filter: brightness(1.06);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 38, 0.92);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-figure {
  max-width: 960px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-figure img {
  max-width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: var(--radius);
}

.lightbox-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox-counter {
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.65);
  flex-shrink: 0;
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  font-size: 1.6rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color var(--transition);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--red);
  border-color: var(--red);
}

.lightbox-close { top: 20px; right: 24px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* 8. PARTNEREINK */
.partners-section {
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

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

.partner-card {
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-height: 148px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.partner-card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(14, 62, 155, 0.08);
}

.partner-logo-img {
  max-height: 88px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* 10. KAPCSOLAT (2-COLUMN SPLIT, NO WATERMARK / NO EMBEDS) */
.contact-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}

.contact-info-panel {
  background-color: var(--navy);
  color: var(--white);
  display: flex;
  justify-content: flex-end;
  padding: 68px 52px 68px 24px;
}

.contact-info-inner {
  width: 100%;
  max-width: 440px;
}

.contact-company {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 22px;
}

.company-details {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.detail-item dt {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ff7b7f;
  margin-bottom: 2px;
}

.detail-item dd {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--white);
}

.mono-val {
  font-family: var(--font-mono);
}

.phone-link {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.phone-link:hover {
  color: #ffd5d6;
}

.contact-form-panel {
  background-color: var(--white);
  padding: 68px 24px 68px 52px;
}

.contact-form-inner {
  width: 100%;
  max-width: 560px;
}

.form-heading {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 22px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink);
}

.form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(14, 62, 155, 0.14);
}

.error-msg {
  font-size: 0.78rem;
  color: var(--red);
  display: none;
}

.form-group.error .form-control {
  border-color: var(--red);
}

.form-group.error .error-msg {
  display: block;
}

.form-submit-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.form-feedback {
  padding: 9px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  background-color: #eef3fb;
  border: 1px solid #bfd0ef;
  border-radius: var(--radius);
}

/* 11. FOOTER */
.site-footer {
  background-color: var(--navy-dark);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 52px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background-color: var(--white);
  padding: 4px;
  border-radius: var(--radius);
}

.footer-company {
  display: block;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-tagline {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.65);
}

.site-footer h4 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-nav a,
.footer-details a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
  transition: color var(--transition);
}

.footer-nav a:hover,
.footer-details a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-details p {
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.62);
}

/* 12. RAILMASTERS AI ASSISTANT */
[hidden] {
  display: none !important;
}

.ai-assistant {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1800;
}

.ai-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--navy);
  color: var(--white);
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10, 45, 115, 0.28);
  transition: background-color var(--transition), transform var(--transition);
}

.ai-launcher:hover {
  background-color: var(--navy-dark);
}

.ai-launcher-icon {
  flex-shrink: 0;
}

.ai-panel {
  position: fixed;
  right: 24px;
  bottom: 78px;
  width: 376px;
  max-width: calc(100vw - 24px);
  height: 520px;
  max-height: calc(100vh - 110px);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 14px 36px rgba(15, 23, 38, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.ai-header {
  background-color: var(--navy);
  color: var(--white);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.ai-header-id {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.ai-header-logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  background-color: var(--white);
  padding: 3px;
  border-radius: var(--radius);
  flex-shrink: 0;
}

.ai-title {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.2;
}

.ai-status {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
}

.ai-header-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.ai-hdr-btn {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  cursor: pointer;
  transition: background-color var(--transition), border-color var(--transition);
}

.ai-hdr-btn:hover {
  background: var(--red);
  border-color: var(--red);
}

.ai-hdr-close {
  font-size: 1.25rem;
  line-height: 1;
}

.ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  background-color: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-msg {
  max-width: 88%;
  padding: 10px 13px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  line-height: 1.55;
  white-space: pre-line;
  word-wrap: break-word;
}

.ai-msg--bot {
  align-self: flex-start;
  background-color: var(--white);
  color: var(--ink);
  border: 1px solid var(--border);
  border-left: 2px solid var(--navy);
}

.ai-msg--user {
  align-self: flex-end;
  background-color: var(--navy);
  color: var(--white);
}

.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.ai-action-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 9px;
  border: 1px solid var(--navy);
  color: var(--navy);
  background-color: var(--bg-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.ai-action-btn:hover {
  background-color: var(--navy);
  color: var(--white);
}

.ai-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 14px;
  background-color: var(--white);
  border: 1px solid var(--border);
  border-left: 2px solid var(--navy);
  border-radius: var(--radius);
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--navy);
  animation: aiDotPulse 1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) { animation-delay: 0.16s; }
.ai-typing span:nth-child(3) { animation-delay: 0.32s; }

@keyframes aiDotPulse {
  0%, 80%, 100% { opacity: 0.25; transform: scale(0.85); }
  40% { opacity: 1; transform: scale(1); }
}

.ai-quick-chips {
  padding: 8px 12px;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

.ai-chip {
  font-size: 0.76rem;
  font-weight: 500;
  padding: 4px 9px;
  background-color: var(--bg-light);
  color: var(--ink-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background-color var(--transition);
}

.ai-chip:hover {
  background-color: var(--white);
  border-color: var(--navy);
  color: var(--navy);
}

.ai-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  background-color: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.ai-input {
  flex: 1;
  min-width: 0;
  padding: 9px 11px;
  font-size: 0.875rem;
  color: var(--ink);
  background-color: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.ai-input:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(14, 62, 155, 0.14);
}

.ai-send-btn {
  padding: 9px 14px;
  background-color: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color var(--transition);
}

.ai-send-btn:hover {
  background-color: var(--red-hover);
}

/* 13. RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .split-row {
    grid-template-columns: 1fr;
  }

  .split-row--reverse-mobile .split-media {
    order: 2;
  }

  .split-row--reverse-mobile .split-text {
    order: 1;
  }

  .split-text,
  .split-row:nth-child(2) .split-text {
    justify-content: center;
    padding: 52px 24px;
  }

  .split-text-inner {
    max-width: 720px;
  }

  .split-media {
    min-height: 340px;
    max-height: 460px;
  }

  .activities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-split {
    grid-template-columns: 1fr;
  }

  .contact-info-panel,
  .contact-form-panel {
    justify-content: center;
    padding: 52px 24px;
  }

  .contact-info-inner,
  .contact-form-inner {
    max-width: 680px;
  }

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

@media (max-width: 680px) {
  .header-inner {
    height: 68px;
  }

  .hamburger-btn {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    right: -100%;
    width: 260px;
    height: calc(100vh - 68px);
    background-color: var(--white);
    border-left: 1px solid var(--border);
    padding: 28px 24px;
    visibility: hidden;
    transition: right var(--transition), visibility var(--transition);
    box-shadow: -8px 0 24px rgba(15, 23, 38, 0.08);
  }

  .nav-menu.active {
    right: 0;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  .hero-section {
    min-height: calc(100vh - 68px);
    min-height: calc(100svh - 68px);
    height: auto;
    padding: 64px 0 88px;
  }

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

  .activity-tile {
    padding: 36px 24px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .form-row,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .ai-assistant {
    right: 14px;
    bottom: 14px;
  }

  .ai-panel {
    left: 12px;
    right: 12px;
    bottom: 68px;
    width: auto;
    height: 70svh;
  }
}
