/* theme/tokens.css */
:root {
  --deep-sapphire: #0E1F3A;
  --royal-sapphire: #1B3A6B;
  --cool-white: #FFFFFF;
  --soft-mist: #F4F7FB;

  --navy: var(--deep-sapphire);
  --gold: var(--royal-sapphire);
  --white: var(--cool-white);
  --soft: var(--soft-mist);
  --ink: var(--deep-sapphire);
  --muted: #5F6F86;
  --line: #DDE6F1;
  --success: #065F46;
  --danger: #B42318;
  --shadow: 0 22px 60px rgba(14, 31, 58, 0.12);
  --radius: 8px;
  --container: 1120px;
}

/* theme/base.css */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

p,
ul,
ol {
  margin-top: 0;
}

ul,
ol {
  padding-left: 22px;
}

li + li {
  margin-top: 7px;
}

/* theme/layout.css */
.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

section {
  padding: 82px 0;
}

.soft {
  background: var(--soft);
}

.section-head {
  max-width: 790px;
  margin: 0 auto 38px;
  text-align: center;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0;
}

h2 {
  color: var(--navy);
  font-size: 42px;
  line-height: 1.16;
  margin-bottom: 14px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft-mist);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--royal-sapphire);
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  section {
    padding: 62px 0;
  }

  h2 {
    font-size: 32px;
  }
}

/* theme/header.css */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: 100%;
  padding: 18px 20px 10px;
  background: transparent;
}

.site-header__inner {
  width: min(1280px, 100%);
  min-height: 88px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 22px 0 26px;
  border: 1px solid rgba(14, 31, 58, 0.08);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(7, 26, 51, 0.08);
  backdrop-filter: blur(18px);
}

.site-header__brand-group {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 1 auto;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  white-space: nowrap;
}

.brand-logo img {
  display: block;
  width: auto;
  height: 54px;
  max-width: 192px;
  object-fit: contain;
}

.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  color: var(--deep-sapphire);
  font-size: 14px;
  font-weight: 650;
}

.site-header__menu-input,
.site-header__menu-toggle,
.site-header__cta-short {
  display: none;
}

.site-nav__link {
  position: relative;
  color: rgba(14, 31, 58, 0.78);
  transition: color 160ms ease, transform 160ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--deep-sapphire);
}

.site-nav__link:hover {
  transform: translateY(-1px);
}

.site-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--royal-sapphire);
  transform: translateX(-50%);
  opacity: 0.55;
}

.site-header__cta {
  min-height: 52px;
  flex: 0 0 auto;
  padding: 14px 20px;
  border-radius: 16px;
}

.site-header__cta span {
  font-size: 17px;
  line-height: 1;
}

@media (max-width: 1080px) {
  .site-header__inner {
    gap: 20px;
    padding: 0 18px 0 22px;
  }

  .site-header__brand-group {
    gap: 14px;
  }

  .site-nav {
    gap: 20px;
  }

}

@media (max-width: 920px) {
  .site-header {
    padding: 14px 14px 8px;
  }

  .site-header__inner {
    min-height: 72px;
    position: relative;
    padding: 0 16px;
    border-radius: 24px;
  }

  .site-header__brand-group {
    flex: 1 1 auto;
  }

  .site-nav {
    display: none;
  }

  .site-header__menu-toggle {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(14, 31, 58, 0.1);
    border-radius: 14px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--deep-sapphire);
    box-shadow: 0 10px 24px rgba(7, 26, 51, 0.08);
    cursor: pointer;
  }

  .site-header__menu-toggle span {
    width: 17px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .site-header__menu-input:checked ~ .site-header__menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header__menu-input:checked ~ .site-header__menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header__menu-input:checked ~ .site-header__menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header__menu-input:checked ~ .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    gap: 4px;
    margin-left: 0;
    padding: 12px;
    border: 1px solid rgba(14, 31, 58, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 46px rgba(7, 26, 51, 0.12);
    backdrop-filter: blur(18px);
  }

  .site-header__menu-input:checked ~ .site-nav .site-nav__link {
    padding: 11px 12px;
    border-radius: 12px;
  }

  .site-header__menu-input:checked ~ .site-nav .site-nav__link:hover,
  .site-header__menu-input:checked ~ .site-nav .site-nav__link.is-active {
    background: rgba(37, 99, 235, 0.07);
  }

  .site-nav__link.is-active::after {
    display: none;
  }

  .site-header__cta {
    min-height: 40px;
    padding: 9px 12px;
    border-radius: 13px;
    font-size: 13px;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    min-height: 68px;
  }

  .brand-logo img {
    height: 42px;
    max-width: 146px;
  }

  .site-header__cta {
    min-height: 38px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 5px;
  }

  .site-header__cta-full {
    display: none;
  }

  .site-header__cta-short {
    display: inline;
  }

  .site-header__cta span:last-child {
    font-size: 14px;
  }

  .site-header__menu-toggle {
    width: 38px;
    height: 38px;
    border-radius: 13px;
  }
}

@media (max-width: 410px) {
  .site-header {
    padding-inline: 10px;
  }

  .site-header__inner {
    padding: 0 12px;
  }

  .brand-logo img {
    height: 38px;
    max-width: 128px;
  }

  .site-header__cta {
    padding-inline: 9px;
  }
}

/* theme/buttons.css */
.btn {
  min-height: 46px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #0B63FF 0%, #0839B8 44%, #06154A 100%);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(6, 21, 74, 0.26), 0 2px 0 rgba(255, 255, 255, 0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(6, 21, 74, 0.32), 0 2px 0 rgba(255, 255, 255, 0.1) inset;
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.42);
}

.btn-dark {
  background: var(--navy);
  color: var(--white);
}

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

/* theme/cards.css */
.card {
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: 0 12px 32px rgba(10, 22, 40, 0.05);
}

.tag {
  display: inline-flex;
  width: max-content;
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(27, 58, 107, 0.12);
  color: var(--deep-sapphire);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

/* theme/forms.css */
label {
  display: block;
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 7px;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  border: 1px solid #D9DEE8;
  border-radius: var(--radius);
  padding: 11px 13px;
  background: var(--white);
  color: var(--ink);
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 168, 76, 0.14);
}

/* theme/footer.css */
.site-footer {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 34px;
  background:
    radial-gradient(circle at 14% 12%, rgba(37, 99, 235, 0.08), transparent 32%),
    radial-gradient(circle at 88% 30%, rgba(91, 70, 210, 0.06), transparent 28%),
    linear-gradient(180deg, var(--white) 0%, var(--soft-mist) 100%);
  color: var(--deep-sapphire);
}

.site-footer__shell {
  position: relative;
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 44px 44px 36px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFF 100%);
  box-shadow: 0 24px 80px rgba(37, 99, 235, 0.1);
}

.site-footer__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 0%, rgba(37, 99, 235, 0.08), transparent 28%),
    radial-gradient(circle at 96% 92%, rgba(27, 58, 107, 0.08), transparent 26%);
}

.site-footer__grid,
.site-footer__bottom {
  position: relative;
  z-index: 1;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.55fr) repeat(4, minmax(118px, 0.72fr)) minmax(230px, 1.16fr);
  gap: 26px;
  align-items: start;
}

.site-footer__brand p,
.site-footer__newsletter p {
  color: #51627A;
  font-size: 13px;
  line-height: 1.68;
  margin-bottom: 0;
}

.site-footer__logo {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
}

.site-footer__logo img {
  display: block;
  width: 205px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.site-footer__trust-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.site-footer__trust-row {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--deep-sapphire);
  font-size: 13px;
  font-weight: 760;
}

.site-footer__trust-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.08);
  color: #2563EB;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.site-footer svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.site-footer__column,
.site-footer__newsletter {
  min-width: 0;
}

.site-footer__column h2,
.site-footer__newsletter h2,
.site-footer__newsletter h3 {
  color: var(--deep-sapphire);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.2;
  font-weight: 850;
  letter-spacing: 0;
  margin: 0 0 20px;
}

.site-footer__column h2::after,
.site-footer__newsletter h2::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  border-radius: 999px;
  background: #C9A24A;
}

.site-footer__column a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: fit-content;
  color: #51627A;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  padding: 7px 0;
  transition: color 160ms ease, transform 160ms ease;
}

.site-footer__column a::before {
  content: "\203A";
  color: rgba(27, 58, 107, 0.42);
  font-size: 15px;
  line-height: 1;
  flex: 0 0 auto;
  transition: color 160ms ease;
}

.site-footer__column a:hover {
  color: #2563EB;
  transform: translateX(2px);
}

.site-footer__column a:hover::before {
  color: #2563EB;
}

.site-footer__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 46px;
  gap: 8px;
  margin-top: 18px;
  padding: 6px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.08);
}

.site-footer__form input {
  min-height: 42px;
  border: 0;
  box-shadow: none;
  background: transparent;
  color: var(--deep-sapphire);
  font-size: 13px;
}

.site-footer__form input:focus {
  box-shadow: none;
}

.site-footer__form button {
  width: 46px;
  min-height: 42px;
  border: 0;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 15% 10%, rgba(255, 255, 255, 0.18), transparent 30%),
    linear-gradient(135deg, #0B63FF 0%, #0839B8 44%, #06154A 100%);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(6, 21, 74, 0.24);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.site-footer__form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(6, 21, 74, 0.3);
}

.site-footer__socials {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.site-footer__newsletter h3 {
  margin: 28px 0 0;
}

.site-footer__socials a {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.84);
  color: var(--royal-sapphire);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.1);
  transition: transform 160ms ease, color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.site-footer__socials a:hover {
  transform: translateY(-2px);
  background: #2563EB;
  color: var(--white);
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 38px;
  padding-top: 24px;
  border-top: 1px solid rgba(37, 99, 235, 0.12);
  color: #5F6F86;
  font-size: 12px;
  font-weight: 700;
}

.site-footer__bottom-trust {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
  flex-wrap: wrap;
  color: var(--deep-sapphire);
}

.site-footer__bottom-trust span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 24px;
  border-left: 1px solid rgba(37, 99, 235, 0.12);
  white-space: nowrap;
}

.site-footer__bottom-trust svg {
  width: 22px;
  height: 22px;
  color: #C97F16;
}

.site-footer__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1120px) {
  .site-footer__grid {
    grid-template-columns: minmax(260px, 1.4fr) repeat(2, minmax(160px, 1fr));
  }

  .site-footer__newsletter {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .site-footer {
    padding: 60px 14px 30px;
  }

  .site-footer__shell {
    padding: 34px 24px;
    border-radius: 26px;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 18px;
  }

  .site-footer__brand,
  .site-footer__newsletter {
    grid-column: 1 / -1;
  }

  .site-footer__newsletter {
    margin-top: 2px;
  }

  .site-footer__column h2 {
    margin-bottom: 14px;
  }

  .site-footer__column a {
    width: 100%;
    padding: 6px 0;
  }

  .site-footer__logo img {
    width: 186px;
  }

  .site-footer__form {
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .site-footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .site-footer__bottom-trust {
    justify-content: center;
  }

  .site-footer__bottom-trust span {
    min-height: auto;
    padding: 8px 14px;
    border-left: 0;
  }
}
