:root {
  --kd-ink: #0b2239;
  --kd-ink-soft: #263b55;
  --kd-muted: #62708a;
  --kd-navy: #06192b;
  --kd-blue: #0b3a5b;
  --kd-blue-soft: #0f5f8c;
  --kd-gold: #d5a72b;
  --kd-gold-soft: #f4d466;
  --kd-line: rgba(13, 52, 84, 0.13);
  --kd-surface: #ffffff;
  --kd-surface-soft: #f7faff;
  --kd-shadow: 0 24px 70px rgba(5, 24, 42, 0.14);
  --kd-shadow-soft: 0 16px 46px rgba(5, 24, 42, 0.1);
}

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

html {
  min-height: 100%;
  background: #f4f7fb;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--kd-ink);
  background:
    linear-gradient(180deg, rgba(6, 25, 43, 0.06) 0, rgba(6, 25, 43, 0) 330px),
    linear-gradient(135deg, #f9fbff 0%, #eef4fb 48%, #f8fbff 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.76;
  text-rendering: geometricPrecision;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(11, 58, 91, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 58, 91, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.58;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 62%);
}

::selection {
  background: rgba(244, 212, 102, 0.42);
  color: var(--kd-navy);
}

a {
  color: #0d5f91;
  font-weight: 800;
  text-decoration-color: rgba(213, 167, 43, 0.45);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    color 180ms ease,
    text-decoration-color 180ms ease,
    opacity 180ms ease;
}

a:hover {
  color: #083654;
  text-decoration-color: var(--kd-gold);
}

img {
  max-width: 100%;
}

.article-shell {
  position: relative;
  z-index: 1;
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(24px, 3.5vw, 44px) 0 clamp(48px, 6vw, 78px);
}

.article-shell article {
  isolation: isolate;
}

.back-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-height: 38px !important;
  margin: 0 0 clamp(14px, 2vw, 20px) !important;
  padding: 9px 14px !important;
  border: 1px solid rgba(11, 58, 91, 0.16) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  color: #12334e !important;
  box-shadow: 0 10px 28px rgba(5, 24, 42, 0.08) !important;
  -webkit-backdrop-filter: blur(14px) saturate(130%) !important;
  backdrop-filter: blur(14px) saturate(130%) !important;
  font-size: 0.86rem !important;
  font-weight: 850 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  position: relative !important;
  overflow: hidden !important;
  transform: translateZ(0) !important;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    color 220ms ease !important;
}

.back-link::before {
  content: "" !important;
  position: absolute !important;
  inset: 1px !important;
  width: auto !important;
  height: auto !important;
  border-radius: inherit !important;
  background: linear-gradient(135deg, rgba(244, 212, 102, 0.2), rgba(255, 255, 255, 0) 62%) !important;
  opacity: 0.72 !important;
  pointer-events: none !important;
  transition: opacity 220ms ease !important;
}

.back-link i {
  position: relative !important;
  z-index: 1 !important;
  display: inline-grid !important;
  width: 18px !important;
  height: 18px !important;
  place-items: center !important;
  border-radius: 999px !important;
  background: rgba(213, 167, 43, 0.16) !important;
  color: #8b6812 !important;
  font-family: inherit !important;
  font-size: 0 !important;
  font-style: normal !important;
  line-height: 1 !important;
  transition:
    transform 220ms ease,
    background 220ms ease,
    color 220ms ease !important;
}

.back-link i::before {
  content: "<" !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

.back-link:hover,
.back-link:focus-visible {
  background: rgba(255, 255, 255, 0.92) !important;
  border-color: rgba(213, 167, 43, 0.42) !important;
  color: #071d31 !important;
  box-shadow: 0 16px 38px rgba(5, 24, 42, 0.12) !important;
  transform: translateY(-2px) !important;
}

.back-link:hover::before,
.back-link:focus-visible::before {
  opacity: 1 !important;
}

.back-link:hover i,
.back-link:focus-visible i {
  background: rgba(244, 212, 102, 0.28) !important;
  color: #614606 !important;
  transform: translateX(-2px) !important;
}

.back-link:focus-visible {
  outline: 3px solid rgba(244, 212, 102, 0.36) !important;
  outline-offset: 3px !important;
}

.article-hero {
  position: relative;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(244, 212, 102, 0.08), transparent 34%),
    linear-gradient(160deg, #06192b 0%, #0a2f4b 54%, #0f5f8c 100%);
  color: #fff;
  box-shadow: var(--kd-shadow);
}

.article-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.article-hero img {
  width: 100%;
  height: clamp(260px, 34vw, 430px);
  min-height: 0;
  display: block;
  object-fit: cover;
  background:
    linear-gradient(135deg, rgba(244, 212, 102, 0.22), rgba(15, 95, 140, 0.18)),
    #0b3a5b;
  filter: saturate(1.04) contrast(1.02);
}

.article-hero-text {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4.2vw, 48px);
  background:
    linear-gradient(180deg, rgba(6, 25, 43, 0.04), rgba(6, 25, 43, 0.2)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

.article-label {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 14px;
  padding: 7px 12px;
  border: 1px solid rgba(244, 212, 102, 0.4);
  border-radius: 999px;
  background: rgba(244, 212, 102, 0.13);
  color: #ffe69d;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.58rem);
  font-weight: 900;
  line-height: 1.08;
  text-wrap: balance;
}

.article-intro {
  max-width: 720px;
  margin: clamp(14px, 2vw, 18px) 0 0;
  color: rgba(232, 243, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

.article-body {
  width: min(860px, 100%);
  margin: clamp(24px, 4vw, 38px) auto 0;
  padding: clamp(24px, 4vw, 46px);
  border: 1px solid var(--kd-line);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98)),
    var(--kd-surface);
  box-shadow: var(--kd-shadow-soft);
  color: var(--kd-ink-soft);
  font-size: clamp(1rem, 1.2vw, 1.055rem);
  line-height: 1.82;
}

.article-body > *:first-child {
  margin-top: 0;
}

.article-body > *:last-child {
  margin-bottom: 0;
}

.article-body p {
  margin: 0 0 1.08em;
}

.article-body h2,
.article-body h3 {
  color: var(--kd-ink);
  font-weight: 900;
  line-height: 1.28;
  text-wrap: balance;
}

.article-body h2 {
  margin: clamp(30px, 4vw, 42px) 0 12px;
  font-size: clamp(1.34rem, 2.8vw, 1.86rem);
}

.article-body h2::before {
  content: "";
  display: block;
  width: 44px;
  height: 3px;
  margin: 0 0 13px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--kd-gold-soft), rgba(213, 167, 43, 0.22));
}

.article-body h3 {
  margin: 22px 0 7px;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.article-body ul,
.article-body ol {
  margin: 0 0 1.15em;
  padding-left: 1.35rem;
}

.article-body li + li {
  margin-top: 0.45rem;
}

.price-table {
  width: 100%;
  margin: 18px 0 22px;
  border: 1px solid rgba(11, 58, 91, 0.13);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 14px 32px rgba(5, 24, 42, 0.08);
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(11, 58, 91, 0.11);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  background: linear-gradient(135deg, #071d31, #0b3a5b);
  color: #fff6d6;
  font-weight: 900;
}

.price-table tr:last-child td {
  border-bottom: 0;
}

.price-table tr:nth-child(even) td {
  background: rgba(11, 58, 91, 0.025);
}

.cta-box {
  position: relative;
  overflow: hidden;
  margin-top: clamp(28px, 4vw, 40px);
  padding: clamp(20px, 3.2vw, 30px);
  border: 1px solid rgba(244, 212, 102, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(244, 212, 102, 0.14), rgba(255, 255, 255, 0) 42%),
    linear-gradient(160deg, #071d31 0%, #0b3a5b 100%);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(5, 24, 42, 0.16);
}

.cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.cta-box strong {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff8dc;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  font-weight: 900;
  line-height: 1.35;
}

.cta-box p {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  color: rgba(235, 244, 255, 0.86);
}

.cta-box a:not(.cta-btn) {
  color: #ffe69d;
}

.cta-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 17px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, #f6d66d, #d5a72b);
  color: #071d31;
  box-shadow: 0 12px 28px rgba(213, 167, 43, 0.22);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    filter 200ms ease,
    background 200ms ease;
}

.cta-btn.secondary {
  background: rgba(255, 255, 255, 0.09);
  color: #fff8dc;
  box-shadow: none;
}

.cta-btn:hover,
.cta-btn:focus-visible {
  color: #071d31;
  filter: saturate(1.06);
  box-shadow: 0 16px 34px rgba(213, 167, 43, 0.3);
  transform: translateY(-2px);
}

.cta-btn.secondary:hover,
.cta-btn.secondary:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.cta-btn:focus-visible {
  outline: 3px solid rgba(244, 212, 102, 0.38);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .article-hero {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
    min-height: 430px;
  }

  .article-hero img {
    height: 100%;
    min-height: 430px;
  }

  .article-hero-text {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  body {
    line-height: 1.72;
  }

  .article-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 18px;
    padding-bottom: 42px;
  }

  .article-hero {
    border-radius: 22px;
  }

  .article-hero img {
    height: clamp(210px, 58vw, 310px);
  }

  .article-hero-text {
    padding: 22px;
  }

  h1 {
    font-size: clamp(1.72rem, 8vw, 2.42rem);
    line-height: 1.12;
  }

  .article-body {
    margin-top: 20px;
    padding: 22px;
    border-radius: 22px;
    font-size: 0.98rem;
  }

  .price-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cta-actions,
  .cta-btn {
    width: 100%;
  }
}

@media (max-width: 440px) {
  .article-shell {
    width: min(100% - 18px, 1040px);
  }

  .back-link {
    max-width: 100% !important;
  }

  .article-hero {
    border-radius: 18px;
  }

  .article-hero-text,
  .article-body {
    padding: 18px;
  }

  .article-label {
    font-size: 0.7rem;
  }

  .article-intro {
    font-size: 0.96rem;
  }

  .price-table th,
  .price-table td {
    padding: 12px;
  }
}

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

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