/* Legacy Builder JDP — Professional bilingual website
   Palette: #2B2B2B, #B8860B, #F68530, #F5F5F5, #FFFFFF
   Typography: Montserrat + Open Sans
*/

:root {
  --ink: #171717;
  --charcoal: #2b2b2b;
  --charcoal-2: #202020;
  --paper: #f5f5f5;
  --white: #ffffff;
  --muted: #6e6e6e;
  --line: rgba(43, 43, 43, 0.14);
  --line-light: rgba(255, 255, 255, 0.16);
  --gold: #b8860b;
  --orange: #f68530;
  --orange-deep: #dc681d;
  --accent-gradient: linear-gradient(135deg, var(--gold), var(--orange));
  --font-display: "Montserrat", Arial, sans-serif;
  --font-body: "Open Sans", Arial, sans-serif;
  --container: min(1180px, calc(100% - 40px));
  --header-height: 86px;
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 20px 60px rgba(0, 0, 0, 0.16);
  --radius: 18px;
  --radius-sm: 10px;
  --transition: 220ms ease;
}

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

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

body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

button {
  cursor: pointer;
}

svg {
  width: 1.2em;
  height: 1.2em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.section {
  padding: 108px 0;
}

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

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: #ffc087;
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--accent-gradient);
}

.eyebrow.dark {
  color: var(--orange-deep);
}

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--font-display);
  line-height: 1.12;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(2rem, 4vw, 3.45rem);
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 10px;
}

p {
  margin-top: 0;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

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

.btn:focus-visible,
.nav-link:focus-visible,
.language-btn:focus-visible,
.menu-toggle:focus-visible,
.credit-card:focus-visible {
  outline: 3px solid rgba(246, 133, 48, 0.45);
  outline-offset: 4px;
}

.btn-primary {
  color: var(--white);
  background: var(--accent-gradient);
  box-shadow: 0 10px 28px rgba(246, 133, 48, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 16px 36px rgba(246, 133, 48, 0.34);
}

.btn-outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(20, 20, 20, 0.22);
  backdrop-filter: blur(7px);
}

.btn-outline:hover {
  border-color: var(--orange);
  color: #ffd0aa;
}

.btn-lg {
  min-height: 54px;
  padding-inline: 25px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  min-height: var(--header-height);
  border-bottom: 1px solid var(--line-light);
  background: rgba(17, 17, 17, 0.8);
  backdrop-filter: blur(16px);
  transition: background var(--transition), box-shadow var(--transition), min-height var(--transition);
}

.site-header.scrolled {
  min-height: 72px;
  background: rgba(17, 17, 17, 0.96);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.18);
}

.header-inner {
  min-height: inherit;
  display: grid;
  grid-template-columns: 180px 1fr auto;
  align-items: center;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 170px;
}

.brand img {
  width: 100%;
  height: auto;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--font-display);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: color var(--transition);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -10px;
  height: 2px;
  background: var(--orange);
  transition: right var(--transition);
}

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

.nav-link.active::after,
.nav-link:hover::after {
  right: 0;
}

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

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.35);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
}

.language-btn {
  border: 0;
  padding: 0;
  color: rgba(255, 255, 255, 0.5);
  background: transparent;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.language-btn.active {
  color: var(--orange);
}

.header-quote {
  min-height: 42px;
  padding-inline: 17px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  transition: transform var(--transition), opacity var(--transition);
}

.hero {
  position: relative;
  min-height: 840px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url("../assets/images/hero.webp");
  background-size: cover;
  background-position: 67% center;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 10, 10, 0.96) 0%, rgba(10, 10, 10, 0.82) 32%, rgba(10, 10, 10, 0.36) 62%, rgba(10, 10, 10, 0.18) 100%),
    linear-gradient(0deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0) 44%);
}

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

.hero-copy {
  max-width: 740px;
}

.hero h1 {
  margin-bottom: 26px;
  font-size: clamp(2.5rem, 5.4vw, 5.3rem);
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 strong {
  color: var(--orange);
  font-weight: 800;
}

.hero-lead {
  max-width: 650px;
  margin-bottom: 34px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

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

.hero-trust {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  border-top: 1px solid var(--line-light);
  background: rgba(23, 23, 23, 0.88);
  backdrop-filter: blur(15px);
}

.trust-grid {
  min-height: 150px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px 28px;
  border-right: 1px solid var(--line-light);
}

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

.trust-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(246, 133, 48, 0.45);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.trust-item strong {
  display: block;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.trust-item p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.45;
}

.about-section {
  background: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 82px;
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 570px;
}

.about-visual::before {
  content: "";
  position: absolute;
  inset: 30px -24px -24px 30px;
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: var(--radius);
}

.about-visual img {
  position: relative;
  width: 100%;
  height: 570px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.about-badge {
  position: absolute;
  right: -34px;
  bottom: 42px;
  width: 210px;
  padding: 22px;
  color: var(--white);
  border-radius: 10px;
  background: var(--charcoal);
  box-shadow: var(--shadow-md);
}

.badge-mark {
  display: block;
  margin-bottom: 7px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.section-copy > p:not(.eyebrow) {
  color: #5d5d5d;
  font-size: 1.04rem;
}

.mission-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.mission-vision article {
  padding: 24px;
  border-left: 3px solid var(--orange);
  background: #f8f8f8;
}

.mission-vision h3 {
  margin-bottom: 8px;
  font-size: 1rem;
  text-transform: uppercase;
}

.mission-vision p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-section {
  color: var(--white);
  background:
    radial-gradient(circle at 95% 0%, rgba(246, 133, 48, 0.12), transparent 28%),
    #171717;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-heading.centered .eyebrow {
  justify-content: center;
}

.section-heading.centered p:last-child {
  max-width: 620px;
  margin-inline: auto;
}

.section-heading > p:last-child {
  color: rgba(255, 255, 255, 0.64);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.service-card {
  position: relative;
  min-height: 365px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  background: #222;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-7px);
  border-color: rgba(246, 133, 48, 0.44);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
  transition: transform 500ms ease, filter 500ms ease;
}

.service-card:hover img {
  transform: scale(1.045);
  filter: saturate(1) contrast(1.05);
}

.service-card-body {
  padding: 22px 20px 24px;
}

.service-card-body > span {
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
}

.service-card h3 {
  min-height: 48px;
  margin: 8px 0 11px;
  font-size: 1rem;
  text-transform: uppercase;
}

.service-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.process-section {
  background: var(--paper);
}

.process-section .section-heading {
  color: var(--charcoal);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-block: 1px solid var(--line);
}

.process-step {
  position: relative;
  padding: 42px 30px;
  border-right: 1px solid var(--line);
}

.process-step:last-child {
  border-right: 0;
}

.process-step > span {
  display: block;
  margin-bottom: 42px;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
}

.process-step > span::after {
  content: "";
  display: inline-block;
  width: 52px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: rgba(43, 43, 43, 0.25);
}

.process-step h3 {
  font-size: 1.08rem;
  text-transform: uppercase;
}

.process-step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

.gallery-section {
  color: var(--white);
  background: #202020;
}

.section-heading.split {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 70px;
  align-items: end;
}

.section-heading.split p:last-child {
  margin-bottom: 6px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 300px;
  gap: 18px;
}

.gallery-item {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-wide {
  grid-column: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) saturate(0.9);
  transition: transform 700ms ease, filter 700ms ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: brightness(1) saturate(1);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.86), transparent);
}

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.gallery-item strong,
.gallery-item span {
  display: block;
}

.gallery-item strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
  text-transform: uppercase;
}

.gallery-item span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}

.gallery-note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.77rem;
  text-align: right;
}

.why-section {
  background: var(--white);
}

.why-grid {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: 90px;
  align-items: start;
}

.why-copy {
  position: sticky;
  top: 130px;
}

.why-copy .eyebrow {
  color: var(--orange-deep);
}

.why-copy p:not(.eyebrow) {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  gap: 10px;
  margin-top: 12px;
  color: var(--orange-deep);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.why-list article {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.why-list article:first-child {
  border-top: 1px solid var(--line);
}

.why-list article > span {
  color: rgba(43, 43, 43, 0.25);
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
}

.why-list h3 {
  font-size: 1.1rem;
  text-transform: uppercase;
}

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

.contact-section {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: #171717;
}

.contact-media {
  position: absolute;
  inset: 0 0 0 57%;
  background:
    linear-gradient(90deg, #171717 0%, transparent 28%),
    linear-gradient(0deg, rgba(23, 23, 23, 0.72), rgba(23, 23, 23, 0.18)),
    url("../assets/images/tools-cta.webp") center / cover no-repeat;
  opacity: 0.52;
}

.contact-grid {
  position: relative;
  z-index: 2;
  min-height: 760px;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 90px;
  align-items: center;
  padding-block: 100px;
}

.contact-copy {
  max-width: 520px;
}

.contact-copy h2 {
  font-size: clamp(2.3rem, 4.7vw, 4.5rem);
}

.contact-copy > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.68);
}

.contact-details {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.contact-details a {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
}

.contact-details svg {
  width: 22px;
  height: 22px;
  color: var(--orange);
}

.contact-details small {
  display: block;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(37, 37, 37, 0.86);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(15px);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.contact-form .full,
.form-status,
.form-note {
  grid-column: 1 / -1;
}

.form-row label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  font-weight: 700;
}

.form-row input,
.form-row textarea,
.form-row select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 7px;
  color: var(--white);
  background: rgba(10, 10, 10, 0.5);
  padding: 13px 14px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-row select option {
  color: var(--ink);
  background: var(--white);
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus,
.form-row select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(246, 133, 48, 0.12);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: #ffd0aa;
  font-size: 0.85rem;
}

.form-note {
  margin: -8px 0 0;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.75rem;
}

.credits-section {
  position: relative;
  padding: 120px 0 130px;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 133, 48, 0.14), transparent 26%),
    radial-gradient(circle at 90% 100%, rgba(184, 134, 11, 0.12), transparent 30%),
    #111;
}

.credits-section::before {
  content: "LEGACY";
  position: absolute;
  right: -30px;
  top: 20px;
  color: rgba(255, 255, 255, 0.025);
  font-family: var(--font-display);
  font-size: clamp(8rem, 18vw, 18rem);
  font-weight: 800;
  line-height: 1;
}

.credits-heading {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin-bottom: 54px;
}

.credits-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.credit-card {
  position: relative;
  min-height: 370px;
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 26px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.credit-card:hover {
  transform: translateY(-8px);
  border-color: rgba(246, 133, 48, 0.52);
  background: linear-gradient(145deg, rgba(246, 133, 48, 0.1), rgba(255, 255, 255, 0.025));
}

.credit-label {
  position: absolute;
  top: 28px;
  left: 42px;
  color: rgba(255, 255, 255, 0.42);
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trebol-mark,
.engineer-mark {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  color: var(--orange);
  border: 1px solid rgba(246, 133, 48, 0.5);
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
}

.trebol-mark span {
  font-size: 3rem;
  line-height: 1;
}

.credit-card h3 {
  margin: 0 0 14px;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
}

.credit-card p {
  max-width: 520px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, 0.62);
}

.credit-link {
  color: #ffc087;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  color: var(--white);
  background: #080808;
}

.footer-top {
  min-height: 210px;
  display: grid;
  grid-template-columns: 210px 1fr auto;
  gap: 50px;
  align-items: center;
}

.footer-brand {
  width: 190px;
}

.footer-message {
  display: grid;
  gap: 5px;
}

.footer-message strong {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2vw, 1.65rem);
}

.footer-message span {
  color: var(--orange);
}

.footer-contact {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-bottom {
  min-height: 72px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.78rem;
}

.footer-bottom p {
  margin: 0;
}

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

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1120px) {
  .header-inner {
    grid-template-columns: 160px 1fr auto;
    gap: 20px;
  }

  .main-nav {
    gap: 18px;
  }

  .header-quote {
    display: none;
  }

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

  .credit-card {
    grid-template-columns: 78px 1fr;
    padding: 38px 30px;
  }

  .trebol-mark,
  .engineer-mark {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
  }

  .section {
    padding: 84px 0;
  }

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

  .brand {
    width: 150px;
  }

  .menu-toggle {
    display: block;
    order: 3;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto;
    max-height: 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    overflow: hidden;
    background: rgba(17, 17, 17, 0.98);
    transition: max-height 350ms ease;
  }

  .main-nav.open {
    max-height: 440px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .nav-link {
    padding: 17px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    text-align: center;
  }

  .nav-link::after {
    display: none;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero {
    min-height: 900px;
  }

  .hero-content {
    padding-bottom: 260px;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(10, 10, 10, 0.94), rgba(10, 10, 10, 0.52)),
      linear-gradient(0deg, rgba(10, 10, 10, 0.82), transparent 50%);
  }

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

  .trust-item {
    min-height: 112px;
    border-bottom: 1px solid var(--line-light);
  }

  .trust-item:nth-child(2) {
    border-right: 0;
  }

  .about-grid,
  .why-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .about-visual {
    min-height: auto;
  }

  .about-visual img {
    height: 460px;
  }

  .why-copy {
    position: static;
  }

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

  .gallery-large {
    grid-row: span 1;
  }

  .gallery-wide {
    grid-column: span 1;
  }

  .contact-media {
    inset: 0;
    opacity: 0.18;
  }

  .contact-grid {
    min-height: auto;
    padding-block: 90px;
  }

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

  .footer-top {
    grid-template-columns: 180px 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    text-align: left;
    padding-bottom: 38px;
  }
}

@media (max-width: 680px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .section {
    padding: 70px 0;
  }

  h2 {
    font-size: 2.15rem;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher {
    padding: 7px 8px;
  }

  .brand {
    width: 126px;
  }

  .hero {
    min-height: 940px;
  }

  .hero-media {
    background-position: 61% center;
  }

  .hero-content {
    padding-top: 118px;
    padding-bottom: 380px;
  }

  .hero h1 {
    font-size: 2.6rem;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

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

  .trust-item {
    min-height: 92px;
    border-right: 0;
  }

  .about-grid {
    gap: 48px;
  }

  .about-visual img {
    height: 390px;
  }

  .about-visual::before {
    inset: 18px -10px -16px 18px;
  }

  .about-badge {
    right: 16px;
    bottom: 20px;
    width: min(210px, 75%);
  }

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

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

  .service-card {
    min-height: auto;
  }

  .service-card img {
    height: 230px;
  }

  .service-card h3 {
    min-height: auto;
  }

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

  .process-step {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .process-step:last-child {
    border-bottom: 0;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .why-list article {
    grid-template-columns: 56px 1fr;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 26px 20px;
  }

  .form-row.full,
  .contact-form .full,
  .form-status,
  .form-note {
    grid-column: auto;
  }

  .credit-card {
    min-height: 420px;
    grid-template-columns: 1fr;
    align-content: center;
    padding: 72px 28px 34px;
  }

  .credit-label {
    left: 28px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-block: 48px 30px;
  }

  .footer-contact {
    padding-bottom: 0;
  }

  .footer-bottom {
    min-height: 110px;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    text-align: center;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
