:root {
  --blue: #202c47;
  --navy: #0b2448;
  --deep: #071b3a;
  --deepest: #041225;
  --orange: #fb9900;
  --orange-dark: #de8300;
  --text: #18243a;
  --muted: #66758f;
  --line: #e4eaf2;
  --soft: #f5f7fb;
  --white: #ffffff;
  --success: #147a46;
  --danger: #a93434;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow-sm: 0 10px 30px rgba(7, 27, 58, 0.08);
  --shadow: 0 22px 55px rgba(7, 27, 58, 0.13);
  --shadow-lg: 0 34px 90px rgba(4, 18, 37, 0.22);
  --header-h: 84px;
  --content: 1180px;
  --legal-content: 1000px;
  --page-pad: clamp(22px, 6vw, 80px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

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

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

::selection {
  color: var(--white);
  background: var(--orange);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--deep);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  font-weight: 800;
}

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

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  color: var(--white);
  background: linear-gradient(90deg, rgba(4, 18, 37, 0.96), rgba(32, 44, 71, 0.96));
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  background: linear-gradient(90deg, rgba(4, 18, 37, 0.99), rgba(32, 44, 71, 0.99));
  box-shadow: 0 12px 36px rgba(4, 18, 37, 0.2);
}

.header-inner {
  width: min(var(--content), calc(100% - 44px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  width: auto;
  height: 52px;
  padding: 6px 10px;
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.5vw, 32px);
  margin-left: auto;
}

.nav-menu a {
  position: relative;
  padding: 10px 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.94rem;
  font-weight: 750;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.22s ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible,
.nav-menu a[aria-current="page"] {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Shared type */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 13px;
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 30px;
  height: 3px;
  flex: 0 0 30px;
  border-radius: 99px;
  background: currentColor;
}

/* Home hero */
.hero {
  position: relative;
  min-height: 740px;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(270px, 0.65fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
  padding: 145px max(var(--page-pad), calc((100vw - var(--content)) / 2)) 125px;
  color: var(--white);
  background:
    radial-gradient(circle at 78% 18%, rgba(53, 91, 137, 0.55), transparent 34%),
    linear-gradient(120deg, var(--deepest) 0%, var(--deep) 48%, var(--blue) 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -190px;
  top: -240px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow:
    0 0 0 70px rgba(255, 255, 255, 0.025),
    0 0 0 140px rgba(255, 255, 255, 0.018);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/assets/img/logo-square.webp") right 7% center / min(37vw, 520px) no-repeat;
  opacity: 0.07;
  filter: saturate(0.8);
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 790px;
}

.hero .eyebrow {
  margin-bottom: 18px;
}

.hero h1 {
  max-width: 820px;
  margin: 0 0 25px;
  font-size: clamp(3rem, 5.25vw, 5.4rem);
  font-weight: 850;
  line-height: 0.99;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

.hero .lead {
  max-width: 720px;
  margin: 0;
  color: #dce6f4;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.72;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 850;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn.primary {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  box-shadow: 0 12px 30px rgba(251, 153, 0, 0.25);
}

.btn.primary:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
}

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

.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-card {
  justify-self: end;
  width: min(100%, 330px);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.06));
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(18px);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 19px;
}

.hero-card img {
  display: block;
  width: 118px;
  margin-bottom: 22px;
  padding: 8px;
  border-radius: 22px;
  background: var(--white);
}

.hero-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--white);
  font-size: 1.22rem;
}

.hero-card span {
  display: block;
  color: #d4deec;
}

/* Home pillars */
.pillars {
  position: relative;
  z-index: 4;
  width: min(var(--content), calc(100% - 44px));
  margin: -58px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.pillars article {
  min-width: 0;
  padding: 29px 27px;
  color: var(--white);
  background: var(--blue);
  border-right: 1px solid rgba(255, 255, 255, 0.09);
}

.pillars article:last-child {
  border-right: 0;
}

.pillars span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.pillars h3 {
  margin: 8px 0 9px;
  font-size: 1.12rem;
  line-height: 1.25;
}

.pillars p {
  margin: 0;
  color: #dbe4ef;
  font-size: 0.93rem;
  line-height: 1.58;
}

/* Home sections */
.section {
  scroll-margin-top: calc(var(--header-h) + 18px);
  padding: 96px var(--page-pad);
}

.section > .section-head,
.section > .grid,
.section > .service-list {
  width: min(var(--content), 100%);
  margin-right: auto;
  margin-left: auto;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head h2,
.about h2,
.contact h2 {
  margin: 0 0 18px;
  color: var(--deep);
  font-size: clamp(2.15rem, 3.5vw, 3.75rem);
  font-weight: 830;
  line-height: 1.08;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.section-head p:last-child {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.cards article {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 34px 30px 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.cards article::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 4px;
  border-radius: 0 0 4px 0;
  background: var(--orange);
  transition: width 0.22s ease;
}

.cards article:hover {
  transform: translateY(-5px);
  border-color: #d8e0ea;
  box-shadow: 0 24px 60px rgba(7, 27, 58, 0.14);
}

.cards article:hover::before {
  width: 100%;
}

.cards h3 {
  margin: 0 0 12px;
  color: var(--deep);
  font-size: 1.28rem;
  line-height: 1.3;
}

.cards p {
  margin: 0;
  color: var(--muted);
}

.alt {
  background: linear-gradient(180deg, #f7f9fc, #f3f6fa);
  border-top: 1px solid #eef1f5;
  border-bottom: 1px solid #eef1f5;
}

.service-list {
  display: grid;
  gap: 14px;
}

.service-list > div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) 1fr;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 23px 26px 23px 31px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--white);
  box-shadow: 0 8px 22px rgba(7, 27, 58, 0.045);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-list > div::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 0;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: var(--orange);
}

.service-list > div:hover {
  transform: translateX(4px);
  border-color: #d7dfe9;
}

.service-list strong {
  color: var(--deep);
  font-size: 1.08rem;
}

.service-list span {
  color: var(--muted);
}

.about {
  width: min(var(--content), calc(100% - (2 * var(--page-pad))));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(45px, 7vw, 80px);
  align-items: center;
  padding-right: 0;
  padding-left: 0;
}

.about p:not(.eyebrow) {
  color: #4d5f79;
}

.stats {
  display: grid;
  gap: 15px;
}

.stats > div {
  position: relative;
  overflow: hidden;
  padding: 25px 27px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: linear-gradient(135deg, var(--deep), var(--blue));
  box-shadow: var(--shadow-sm);
}

.stats > div::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -50px;
  top: -55px;
  border-radius: 50%;
  background: rgba(251, 153, 0, 0.12);
}

.stats b {
  display: block;
  margin-bottom: 4px;
  color: var(--orange);
  font-size: clamp(1.35rem, 2.2vw, 2.2rem);
  line-height: 1.16;
}

.stats span {
  color: #dce5ef;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(460px, 1fr);
  gap: clamp(45px, 7vw, 80px);
  align-items: start;
  padding-right: max(var(--page-pad), calc((100vw - var(--content)) / 2));
  padding-left: max(var(--page-pad), calc((100vw - var(--content)) / 2));
  color: var(--white);
  background:
    radial-gradient(circle at 16% 12%, rgba(251, 153, 0, 0.08), transparent 24%),
    linear-gradient(135deg, var(--deepest), var(--blue));
}

.contact h2 {
  color: var(--white);
}

.contact > div:first-child > p:not(.eyebrow) {
  max-width: 560px;
  color: #d7e1ee;
}

.contact-direct {
  margin-top: 30px;
  padding: 20px 22px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 16px;
  color: #dbe5f1;
  background: rgba(255, 255, 255, 0.055);
}

.contact-direct strong {
  display: block;
  margin-bottom: 6px;
  color: var(--white);
  font-size: 1.06rem;
}

.contact-direct a,
.contact-note a {
  color: var(--white);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 4px;
}

.contact-card {
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(10px);
}

.contact-form {
  display: grid;
  gap: 17px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label,
.captcha-box label,
.consent {
  color: var(--white);
  font-size: 0.91rem;
  font-weight: 720;
}

.form-field input,
.form-field select,
.form-field textarea,
.captcha-box input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  color: var(--deep);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  outline: none;
  background: var(--white);
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.07);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus,
.captcha-box input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(251, 153, 0, 0.16);
}

.captcha-box {
  display: grid;
  grid-template-columns: 1fr 150px;
  align-items: end;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
}

.captcha-question {
  display: grid;
  gap: 4px;
  color: var(--white);
}

.captcha-question strong {
  color: var(--orange);
}

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

.consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  line-height: 1.48;
}

.consent input {
  margin-top: 4px;
  accent-color: var(--orange);
}

.contact-note {
  margin: 0;
  color: #cbd8e8;
  font-size: 0.9rem;
}

.contact-form .btn {
  width: 100%;
  min-height: 53px;
  border: 0;
}

.form-alert {
  margin-bottom: 19px;
  padding: 16px 18px;
  border-radius: 14px;
  font-weight: 650;
  line-height: 1.45;
}

.form-alert strong {
  display: block;
  margin-bottom: 3px;
  font-size: 1rem;
}

.form-alert.success {
  color: #0e522f;
  border: 1px solid #afe1c7;
  background: #e4f7ec;
}

.form-alert.error {
  color: #771d1d;
  border: 1px solid #f0bcbc;
  background: #fff0f0;
}

/* Legal pages */
.legal-page,
.cgv-content {
  min-height: calc(100vh - 270px);
  padding: calc(var(--header-h) + 62px) var(--page-pad) 82px;
  background:
    linear-gradient(180deg, #f5f8fc 0, #fbfcfe 260px, var(--white) 520px);
}

.legal-container,
.cgv-content .container {
  width: min(var(--legal-content), 100%);
  margin: 0 auto;
}

.legal-hero,
.cgv-hero {
  position: relative;
  min-height: 0;
  margin: 0 0 34px;
  padding: 0 0 30px;
  color: var(--text);
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.legal-hero h1,
.cgv-hero h1 {
  max-width: 850px;
  margin: 0 0 16px;
  color: var(--deep);
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -0.048em;
  text-wrap: balance;
}

.legal-intro,
.cgv-hero .lead {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
  line-height: 1.72;
}

.legal-card,
.cgv-content .identity-card,
.cgv-content .toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.legal-card {
  padding: clamp(24px, 4vw, 38px);
}

.legal-prose p {
  margin: 0 0 16px;
  color: #41516a;
}

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

.legal-prose strong {
  color: var(--deep);
}

.legal-prose a {
  color: var(--blue);
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-underline-offset: 3px;
}

/* CGV */
.cgv-content .toc {
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 28px);
  background: linear-gradient(180deg, #f8fafc, #f3f6fa);
}

.cgv-content .toc h2,
.cgv-content .identity-card h2 {
  margin: 0 0 17px;
  color: var(--deep);
  font-size: 1.15rem;
  line-height: 1.25;
}

.cgv-content .toc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px 30px;
}

.cgv-content .toc-grid a {
  display: block;
  padding: 6px 0;
  color: #31415b;
  font-size: 0.89rem;
  line-height: 1.42;
  transition: color 0.2s ease, transform 0.2s ease;
}

.cgv-content .toc-grid a:hover,
.cgv-content .toc-grid a:focus-visible {
  color: var(--orange-dark);
  transform: translateX(3px);
}

.cgv-content .identity-card {
  margin: 0 0 35px;
  padding: clamp(22px, 3vw, 28px);
}

.cgv-content .identity-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 30px;
  margin: 0 0 16px;
}

.cgv-content .identity-card dl div {
  min-width: 0;
}

.cgv-content .identity-card dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cgv-content .identity-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}

.cgv-content .identity-card p {
  margin: 7px 0 0;
  color: var(--muted);
}

.cgv-content .legal-section {
  scroll-margin-top: calc(var(--header-h) + 24px);
  padding: 31px 0;
  border-top: 1px solid var(--line);
}

.cgv-content .legal-section h2 {
  margin: 0 0 15px;
  color: var(--deep);
  font-size: clamp(1.35rem, 2vw, 1.72rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
}

.cgv-content .legal-section h2 span {
  color: var(--orange);
}

.cgv-content .legal-section p {
  margin: 0 0 12px;
  color: #40506a;
}

.cgv-content .legal-section ul {
  display: grid;
  gap: 7px;
  margin: 10px 0 17px;
  padding: 0;
  list-style: none;
}

.cgv-content .legal-section li {
  position: relative;
  padding-left: 22px;
  color: #40506a;
}

.cgv-content .legal-section li::before {
  content: "";
  position: absolute;
  top: 0.71em;
  left: 2px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.cgv-content .back-top {
  display: inline-flex;
  margin-top: 24px;
  color: var(--deep);
  font-weight: 800;
}

.cgv-content .back-top:hover {
  color: var(--orange-dark);
}

/* Footer */
.site-footer {
  padding: 46px var(--page-pad);
  color: #cbd6e5;
  background: var(--deepest);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-inner {
  width: min(var(--content), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.footer-brand img {
  display: block;
  width: auto;
  height: 52px;
  padding: 6px 9px;
  object-fit: contain;
  border-radius: 11px;
  background: var(--white);
}

.footer-copy {
  margin: 0;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.footer-links a {
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 700;
}

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

/* Responsive */
@media (max-width: 980px) {
  :root {
    --header-h: 76px;
  }

  .header-inner {
    width: min(100% - 32px, var(--content));
  }

  .brand img {
    height: 46px;
  }

  .js .nav-toggle {
    display: block;
  }

  .js .nav-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(4, 18, 37, 0.985);
    box-shadow: 0 24px 55px rgba(4, 18, 37, 0.28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  }

  .js .nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .js .nav-menu a {
    padding: 11px 12px;
    border-radius: 10px;
  }

  .js .nav-menu a::after {
    display: none;
  }

  .js .nav-menu a:hover,
  .js .nav-menu a:focus-visible,
  .js .nav-menu a[aria-current="page"] {
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 128px;
    padding-bottom: 110px;
  }

  .hero-card {
    justify-self: start;
    width: min(100%, 440px);
  }

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

  .pillars article:nth-child(2) {
    border-right: 0;
  }

  .pillars article:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

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

  .about {
    width: min(var(--content), calc(100% - 44px));
    grid-template-columns: 1fr;
    padding-top: 82px;
    padding-bottom: 82px;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .stats b {
    font-size: 1.35rem;
  }

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

  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 680px) {
  :root {
    --page-pad: 22px;
  }

  html {
    scroll-padding-top: calc(var(--header-h) + 12px);
  }

  .hero {
    padding-top: 116px;
    padding-bottom: 92px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 4rem);
  }

  .hero-card {
    padding: 24px;
  }

  .pillars {
    width: calc(100% - 32px);
    margin-top: -42px;
    grid-template-columns: 1fr;
  }

  .pillars article,
  .pillars article:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  }

  .pillars article:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .cards article {
    min-height: 0;
  }

  .service-list > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .about {
    width: calc(100% - 44px);
    padding-top: 72px;
    padding-bottom: 72px;
  }

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

  .contact {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .form-row,
  .captcha-box {
    grid-template-columns: 1fr;
  }

  .legal-page,
  .cgv-content {
    padding-top: calc(var(--header-h) + 42px);
    padding-bottom: 60px;
  }

  .legal-hero h1,
  .cgv-hero h1 {
    font-size: clamp(2.25rem, 11vw, 3.35rem);
  }

  .cgv-content .toc-grid,
  .cgv-content .identity-card dl {
    grid-template-columns: 1fr;
  }

  .cgv-content .legal-section {
    padding: 25px 0;
  }

  .site-footer {
    padding-top: 38px;
    padding-bottom: 38px;
  }
}

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

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