:root {
  --zata-ink: #111820;
  --zata-slate: #44505f;
  --zata-muted: #6b7280;
  --zata-surface: #f5f7fa;
  --zata-white: #ffffff;
  --zata-accent: #f57c00;
  --zata-accent-dark: #d96500;
  --zata-border: rgba(17, 24, 32, 0.12);
  --zata-shadow: 0 24px 70px rgba(17, 24, 32, 0.12);
}

body {
  color: var(--zata-slate);
  font-size: 16px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main h1,
main h2,
main h3,
main h4,
main h5,
main h6 {
  letter-spacing: -0.025em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

main p,
main li {
  overflow-wrap: break-word;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 124, 0, 0.55);
  outline-offset: 3px;
}

.zata-skip-link {
  position: fixed;
  z-index: 2000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--zata-white);
  color: var(--zata-ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.zata-skip-link:focus {
  transform: translateY(0);
}

.mil-top-panel {
  height: 88px;
  border-bottom: 1px solid rgba(17, 24, 32, 0.08);
  box-shadow: 0 10px 32px rgba(17, 24, 32, 0.08);
}

.mil-top-panel .mil-logo {
  flex: 0 0 auto;
  width: 181px;
  height: 48px;
  background-image: url(../img/logo/logo-dark.png);
  background-position: left center;
  background-size: contain;
}

.mil-top-panel .mil-navigation nav ul li {
  margin-right: 28px;
}

.mil-top-panel .mil-navigation nav ul li a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.mil-top-panel .mil-navigation nav ul li.zata-languages {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto;
  margin-right: 18px;
}

.mil-top-panel .zata-language {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  padding: 5px;
  border: 1px solid var(--zata-border);
  border-radius: 50%;
  background: var(--zata-white);
}

.mil-top-panel .zata-language img {
  display: block;
  border-radius: 50%;
}

.mil-top-panel .zata-partner-logo {
  display: flex;
  align-items: center;
  margin-right: 0;
}

.mil-menu-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 24, 32, 0.06);
}

.home-page .mil-banner {
  overflow: hidden;
  min-height: 720px;
  height: min(900px, 100svh);
  background: var(--zata-ink);
}

.home-page .mil-banner .swiper-slide {
  overflow: hidden;
}

.home-page .mil-banner .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 15, 22, 0.9) 0%, rgba(10, 15, 22, 0.68) 48%, rgba(10, 15, 22, 0.2) 100%);
  pointer-events: none;
}

.home-page .mil-banner .mil-background-image {
  transform: scale(1.01);
}

.home-page .mil-banner .mil-banner-content {
  z-index: 2;
  padding-top: 120px;
}

.zata-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: #ffd39f;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.zata-hero-eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--zata-accent);
}

.zata-hero-title {
  width: min(900px, 100%);
  max-width: 100%;
  margin-bottom: 38px;
  font-size: clamp(42px, 5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  overflow-wrap: anywhere;
}

.zata-hero-title > .mil-uppercase {
  display: block;
  max-width: 820px;
  text-wrap: balance;
}

.zata-hero-description {
  display: block;
  width: min(800px, 100%);
  max-width: 100%;
  margin-top: 22px;
  color: #ff9b2f;
  font-family: "Sora", sans-serif;
  font-size: clamp(18px, 1.45vw, 25px);
  font-weight: 600;
  line-height: 1.48;
  letter-spacing: -0.02em;
  text-transform: none;
  text-wrap: balance;
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-page .mil-button {
  min-height: 52px;
  border-radius: 999px;
}

.zata-trust {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  padding: 0 15px;
}

.zata-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  max-width: 1140px;
  margin: 0 auto;
  border: 1px solid var(--zata-border);
  border-radius: 18px;
  background: var(--zata-white);
  box-shadow: var(--zata-shadow);
}

.zata-trust-item {
  display: grid;
  grid-template-columns: 50px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 136px;
  padding: 28px 32px;
  border-right: 1px solid var(--zata-border);
}

.zata-trust-item:last-child {
  border-right: 0;
}

.zata-trust-icon {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: 14px;
  background: rgba(245, 124, 0, 0.1);
  color: var(--zata-accent-dark);
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

.zata-trust-item strong {
  display: block;
  margin-bottom: 5px;
  color: var(--zata-ink);
  font-family: "Syne", sans-serif;
  font-size: 17px;
}

.zata-trust-item p {
  margin: 0;
  color: var(--zata-muted);
  font-size: 13px;
  line-height: 1.5;
}

.home-page .mil-services {
  padding-top: 150px;
}

.home-page .zata-intro {
  max-width: 980px;
}

.home-page .mil-courses {
  background: var(--zata-surface);
}

.home-page .mil-card .mil-cover-frame {
  border-radius: 16px;
  background: #e7ebf0;
  box-shadow: 0 12px 34px rgba(17, 24, 32, 0.1);
}

.home-page .mil-card h4 {
  color: var(--zata-ink);
  font-size: clamp(20px, 2vw, 26px);
}

.home-page .mil-slider-nav button {
  border: 0;
  background: transparent;
}

/* Public page typography and content rhythm */
.mil-banner-sm {
  min-height: 500px;
}

.mil-banner-sm h1,
.mil-banner-sm h2 {
  max-width: 1040px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
}

.mil-breadcrumbs {
  flex-wrap: wrap;
  row-gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.mil-button,
.mil-link,
.mil-slider-nav span {
  letter-spacing: 0.015em;
}

.zata-rich-content {
  color: #344152;
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.82;
}

.zata-rich-content p,
.zata-rich-content ul,
.zata-rich-content ol,
.zata-rich-content table,
.zata-rich-content blockquote {
  margin-bottom: 24px;
}

.zata-rich-content h2,
.zata-rich-content h3,
.zata-rich-content h4 {
  margin: 38px 0 16px;
  color: var(--zata-ink);
  line-height: 1.25;
}

.zata-rich-content img,
.zata-rich-content iframe,
.zata-rich-content video {
  max-width: 100%;
  height: auto;
  border-radius: 16px;
}

.zata-rich-content a {
  color: var(--zata-accent-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.zata-article-content {
  max-width: 780px;
}

.zata-reference-intro {
  max-width: 850px;
  margin-bottom: 36px;
  text-align: left;
}

.mil-blog .mil-card {
  padding: 34px;
  border: 1px solid var(--zata-border);
  border-radius: 18px;
  background: var(--zata-white);
  box-shadow: 0 14px 42px rgba(17, 24, 32, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.mil-blog .mil-card:hover {
  border-color: rgba(245, 124, 0, 0.42);
  box-shadow: 0 20px 52px rgba(17, 24, 32, 0.12);
  transform: translateY(-3px);
}

.mil-blog .mil-card h4 {
  font-size: clamp(23px, 2.4vw, 32px);
  line-height: 1.25;
}

.mil-blog .mil-card .mil-card-text p,
.mil-blog .zata-article-content {
  color: #44505f;
  font-size: 16px;
  line-height: 1.8;
}

.zata-contact-info .col-xl-4 > .mil-mb-60 {
  height: calc(100% - 60px);
  padding: 32px;
  border: 1px solid var(--zata-border);
  border-radius: 18px;
  background: var(--zata-white);
  box-shadow: 0 14px 42px rgba(17, 24, 32, 0.07);
}

.mil-footer-content .mil-logo {
  width: 181px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.zata-consultation .mil-banner-content {
  padding: 140px 0 110px;
}

.zata-consultation .mil-background-image {
  filter: grayscale(35%);
}

.zata-consultation .mil-overlay {
  background: linear-gradient(90deg, rgba(12, 18, 26, 0.96), rgba(12, 18, 26, 0.76));
}

.zata-contact-panel {
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.zata-contact-panel textarea {
  min-height: 120px;
  resize: vertical;
}

.zata-contact-panel input,
.zata-contact-panel textarea {
  width: 100%;
}

.zata-contact-panel .alert-success {
  display: block;
  margin-top: 18px;
  padding: 12px 15px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
}

.zata-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.home-page .mil-hover-card {
  height: 100%;
  border-radius: 16px;
  background: var(--zata-white);
}

.home-page .mil-hover-card h4 {
  margin-bottom: 16px;
}

.home-page .mil-hover-card time {
  display: block;
  margin-bottom: 10px;
  color: var(--zata-muted);
  font-size: 13px;
}

.mil-dark-bg {
  background: #0d141c;
}

/* Legal / payment compliance pages */
.zata-payment-assurance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
}

.zata-payment-assurance img {
  display: block;
  width: min(456px, 100%);
  height: auto;
}

.zata-legal-card {
  max-width: 980px;
  margin: 0 auto 60px;
  padding: 64px;
  color: #26313d;
  background: #fff;
  border: 1px solid rgba(20, 32, 46, 0.09);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(10, 19, 29, 0.12);
}

.zata-legal-card h2 {
  margin: 46px 0 18px;
  color: #111820;
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.25;
}

.zata-legal-card h2:first-of-type {
  margin-top: 0;
}

.zata-legal-card h3 {
  margin: 28px 0 14px;
  color: #111820;
  font-size: 21px;
}

.zata-legal-card p,
.zata-legal-card li,
.zata-legal-card dd,
.zata-legal-card dt {
  font-family: "Sora", sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.zata-legal-card p {
  margin-bottom: 18px;
}

.zata-legal-card ul,
.zata-legal-card ol {
  margin: 0 0 24px;
  padding-left: 24px;
}

.zata-legal-card li {
  margin-bottom: 10px;
}

.zata-legal-card a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.zata-legal-updated {
  display: inline-flex;
  margin-bottom: 24px !important;
  padding: 7px 12px;
  color: #4d5a69;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 13px !important;
}

.zata-legal-notice {
  margin: 28px 0;
  padding: 22px 24px;
  color: #1e293b;
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 12px 12px 0;
  font-family: "Sora", sans-serif;
  font-size: 15px;
  line-height: 1.7;
}

.zata-legal-company {
  margin: 20px 0 30px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
}

.zata-legal-company > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.35fr) 1fr;
  border-bottom: 1px solid #e2e8f0;
}

.zata-legal-company > div:last-child {
  border-bottom: 0;
}

.zata-legal-company dt,
.zata-legal-company dd {
  margin: 0;
  padding: 13px 16px;
}

.zata-legal-company dt {
  font-weight: 600;
  color: #111820;
  background: #f8fafc;
}

.zata-withdrawal-form {
  margin: 22px 0;
  padding: 26px;
  background: #f8fafc;
  border: 1px dashed #94a3b8;
  border-radius: 14px;
}

.zata-withdrawal-form p:last-child,
.zata-legal-related:last-child {
  margin-bottom: 0;
}

@supports (content-visibility: auto) {
  .home-page > section:not(.zata-trust) {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }
}

@media screen and (max-width: 1200px) {
  .mil-top-panel .mil-navigation {
    max-height: calc(100vh - 88px);
    overflow-y: auto;
  }

  .mil-top-panel .mil-navigation nav ul li.zata-languages {
    justify-content: center;
    margin: 8px 0 15px;
  }

  .mil-top-panel .zata-partner-logo {
    justify-content: center;
  }
}

@media screen and (max-width: 992px) {
  .zata-trust-grid {
    grid-template-columns: 1fr;
  }

  .zata-trust-item {
    border-right: 0;
    border-bottom: 1px solid var(--zata-border);
  }

  .zata-trust-item:last-child {
    border-bottom: 0;
  }

  .zata-contact-panel {
    margin-bottom: 70px;
  }
}

@media screen and (max-width: 768px) {
  .mil-top-panel {
    height: 76px;
  }

  .mil-top-panel .mil-logo {
    width: 158px;
    height: 42px;
  }

  .home-page .mil-banner {
    min-height: 680px;
    height: 100svh;
  }

  .home-page .mil-banner .mil-banner-content {
    padding: 132px 0 96px;
  }

  .home-page .mil-banner .swiper-slide::after {
    background: linear-gradient(180deg, rgba(10, 15, 22, 0.7), rgba(10, 15, 22, 0.9));
  }

  .zata-hero-title {
    margin-bottom: 30px;
    font-size: clamp(34px, 10vw, 48px);
    line-height: 1.05;
  }

  .zata-hero-description {
    margin-top: 18px;
    font-size: clamp(17px, 4.6vw, 20px);
    line-height: 1.5;
    text-wrap: pretty;
  }

  .zata-hero-eyebrow {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.5;
    letter-spacing: 0.11em;
  }

  .mil-banner-sm {
    min-height: 420px;
  }

  .mil-banner-sm h1,
  .mil-banner-sm h2 {
    font-size: clamp(34px, 10vw, 46px);
  }

  .mil-blog .mil-card,
  .zata-contact-info .col-xl-4 > .mil-mb-60 {
    padding: 24px;
  }

  .zata-trust {
    margin-top: -28px;
  }

  .zata-trust-item {
    grid-template-columns: 44px 1fr;
    min-height: 118px;
    padding: 24px;
  }

  .zata-trust-icon {
    width: 44px;
    height: 44px;
  }

  .home-page .mil-services {
    padding-top: 110px;
  }

  .zata-consultation .mil-banner-content {
    padding: 110px 0 50px;
  }

  .zata-contact-panel {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .zata-payment-assurance {
    align-items: flex-start;
    flex-direction: column;
  }

  .zata-legal-card {
    padding: 32px 22px;
    border-radius: 16px;
  }

  .zata-legal-company > div {
    grid-template-columns: 1fr;
  }

  .zata-legal-company dd {
    padding-top: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html,
  body {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
