/*
  Layout wrapper shared by every header/section/footer:
  <header|section|footer> > .container > .header|section|footer-inner > content
  Breakpoint tiers: 1340px (container edge: 1280 + 30 + 30), 1024px, 767px.
*/
.container {
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 30px;

  @media (max-width: 767px) {
    padding: 0 18px;
  }
}

/* Language switch: Spanish is in the markup, English is applied by
   assets/js/i18n.js. Legal pages carry both texts as blocks. */
html[data-lang="en"] [data-lang-block="es"],
html:not([data-lang="en"]) [data-lang-block="en"] {
  display: none;
}

/* ==========================================================================
   HEADER
   Sticky (CONVENTIONS §19): fixed + main padding-top + scroll-padding.
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--color-background);
  border-bottom: 1px solid var(--color-line);
}

main {
  padding-top: var(--header-height, 72px);
}

html {
  scroll-padding-top: var(--header-height, 72px);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  display: flex;
  flex: none;
}

.logo img {
  display: block;
  height: 44px;
  width: auto;

  @media (max-width: 767px) {
    height: 36px;
  }
}

.nav {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-left: auto;
}

.nav a:not(.button) {
  position: relative;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
}

.nav a:not(.button)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: var(--color-main-2);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out-expo);
}

.nav a:not(.button):hover {
  color: var(--color-main-2);
}

.nav a:not(.button):hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* The drawer's own WhatsApp CTA only shows inside the mobile drawer */
.nav-cta {
  display: none;
}

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

.lang-switch {
  display: flex;
  border: 1px solid var(--color-line-2);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch button {
  border: 0;
  padding: 6px 12px;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--color-main-1);
  color: var(--color-background);
}

.header-wa {
  min-height: 42px;
  padding: 0 18px;
  font-size: 15px;
}

.header-wa-icon {
  display: none;
}

.nav-overlay,
.nav-close {
  display: none;
}

@media (max-width: 1024px) {
  .header-inner {
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 105;
    background: rgba(18, 24, 38, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
  }

  .nav-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 110;
    width: min(380px, 88vw);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 24px 30px 30px;
    background: var(--color-background);
    box-shadow: -12px 0 36px rgba(18, 24, 38, 0.16);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out-expo);
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-close {
    display: flex;
    align-self: flex-end;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    background: none;
    border: 1px solid var(--color-line-2);
    border-radius: 4px;
    font-size: 22px;
    color: var(--color-text);
    cursor: pointer;
  }

  .nav a:not(.button) {
    padding: 18px 0;
    border-bottom: 1px solid var(--color-line);
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  .nav a:not(.button)::after {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
    width: 100%;
    margin-top: 30px;
  }
}

@media (max-width: 767px) {
  .header-actions {
    gap: 6px;
  }

  .lang-switch button {
    padding: 6px 9px;
  }

  .header-wa {
    width: 42px;
    padding: 0;
  }

  .header-wa .live-dot,
  .header-wa-label {
    display: none;
  }

  .header-wa-icon {
    display: block;
    font-size: 22px;
  }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */

/* ----- Shared section heads ----- */

.how-head,
.services-head,
.work-title-wrap,
.tips-title-wrap,
.faq-head,
.contact-title-wrap,
.zone-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ----- Hero ----- */

.hero {
  padding-top: 90px;
  padding-bottom: 120px;

  @media (max-width: 1340px) {
    padding-top: 60px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 36px;
    padding-bottom: 60px;
  }
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 90px;
  align-items: end;

  @media (max-width: 1340px) {
    gap: 60px;
  }

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 680px;

  @media (max-width: 767px) {
    gap: 24px;
  }
}

.hero-lede {
  max-width: 520px;
  font-size: 21px;
  text-wrap: pretty;

  @media (max-width: 767px) {
    font-size: 18px;
  }
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px 36px;
  padding-top: 6px;
}

.hero-call {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  color: var(--color-text);
}

.hero-call .eyebrow {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--color-muted);
}

.hero-call strong {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.hero-call:hover strong {
  color: var(--color-main-2);
}

.hero-media {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
  justify-self: end;

  @media (max-width: 1024px) {
    justify-self: start;
  }
}

.hero-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--color-background-2);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-zoom 20s ease-out forwards;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo img { animation: none; }
}

.hero-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 18px 24px;
  background: var(--color-main-2);
}

.hero-badge strong {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 18px;
  color: var(--color-background);
}

.hero-badge .eyebrow {
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--color-background);
}

/* ----- How it works ----- */

.how-section {
  padding-top: 90px;
  padding-bottom: 90px;
  background: var(--color-background-2);

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.how-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;

  @media (max-width: 767px) {
    gap: 36px;
  }
}

.how-head {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
}

.how-head h2 {
  font-size: 36px;
  line-height: 1.05;
  letter-spacing: -0.02em;

  @media (max-width: 767px) {
    font-size: 28px;
  }
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px 30px;
  border-left: 1px solid var(--color-line-2);

  @media (max-width: 1024px) {
    padding: 6px 24px;
  }
}

.step-num {
  font-family: var(--font-title);
  font-weight: 800;
  font-style: italic;
  font-size: 42px;
  line-height: 1;
  color: var(--color-main-2);
}

.step p {
  font-size: 16px;
}

/* ----- Services ----- */

.services-section {
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.services-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 60px;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

.services-head {
  position: sticky;
  top: calc(var(--header-height, 72px) + 42px);
  max-width: 380px;

  @media (max-width: 1024px) {
    position: static;
    max-width: 560px;
  }
}

.services-list {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid var(--color-line);
}

.service-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 6px 24px;
  padding: 36px 24px 36px 0;
  border-top: 1px solid var(--color-line);
  transition: background-color 0.35s ease, padding 0.5s var(--ease-out-expo);

  @media (max-width: 767px) {
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 6px 12px;
    padding: 30px 0;
  }
}

.service-row:hover {
  background: var(--color-background-2);
  padding-left: 24px;

  @media (max-width: 767px) {
    background: transparent;
    padding-left: 0;
  }
}

.service-num {
  padding-top: 9px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.1em;
  color: var(--color-main-2);
}

.service-row .content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-row p {
  max-width: 560px;
  text-wrap: pretty;
}

.service-tags {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

/* ----- Work (dark) ----- */

.work-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--color-background-3);

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.work-section h2 {
  color: var(--color-background);
}

.work-section .eyebrow {
  color: var(--color-main-2-light);
}

.work-inner {
  display: flex;
  flex-direction: column;
  gap: 42px;

  @media (max-width: 767px) {
    gap: 30px;
  }
}

.work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.work-title-wrap {
  max-width: 620px;
}

.work-ig {
  padding-bottom: 6px;
  border-bottom: 2px solid var(--color-main-2);
  font-weight: 600;
  color: var(--color-background);
}

.work-ig span {
  font-size: 17px;
  font-weight: 600;
}

.work-ig:hover {
  color: var(--color-main-2-light);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 12px;

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 240px;
  }

  @media (max-width: 767px) {
    grid-auto-rows: 180px;
    gap: 6px;
  }
}

.work-item {
  position: relative;
  overflow: hidden;
  background: #1C2433;
}

.work-item--tall {
  grid-row: span 2;
}

.work-item--wide {
  grid-column: span 2;
}

.work-item:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.work-item:nth-child(4) { grid-column: 4; grid-row: 1 / span 2; }
.work-item:nth-child(5) { grid-column: 2 / span 2; grid-row: 2; }

@media (max-width: 1024px) {
  /* Two even columns; the wide shot closes the grid at full width */
  .work-item:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .work-item:nth-child(5) {
    grid-column: 1 / -1;
  }
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out-expo);
}

.work-item:hover img {
  transform: scale(1.04);
}

.work-item figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 12px;
  background: var(--color-background-3);
  font-size: 15px;
  letter-spacing: 0.12em;
  color: var(--color-background);
  pointer-events: none;

  @media (max-width: 767px) {
    padding: 6px 9px;
    font-size: 13px;
  }
}

.work-note {
  font-size: 14px;
  color: #9AA3B2;
}

/* ----- About ----- */

.about-section {
  padding-top: 120px;
  padding-bottom: 120px;

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 90px;
  align-items: center;

  @media (max-width: 1340px) {
    gap: 60px;
  }

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

.about-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 560px;
  background: var(--color-background-2);
}

/* Offset blue frame behind the photo - a quiet nod to the brand colour */
.about-photo::before {
  content: '';
  position: absolute;
  inset: 24px -24px -24px 24px;
  border: 2px solid var(--color-main-2);
  pointer-events: none;

  @media (max-width: 767px) {
    inset: 12px -12px -12px 12px;
  }
}

.about-photo img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 560px;
}

.about-content p {
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.about-sign {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-style: italic;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--color-main-2);
}

.about-sign::before {
  content: '';
  width: 36px;
  height: 2px;
  background: currentColor;
}

/* ----- Before I arrive (tips) ----- */

.tips-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--color-background-2);

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.tips-inner {
  display: flex;
  flex-direction: column;
  gap: 48px;

  @media (max-width: 767px) {
    gap: 36px;
  }
}

.tips-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
}

.tips-title-wrap {
  max-width: 640px;
}

/* Blue warning badge next to the eyebrow - flags this as the "urgent" section */
.tips-tag {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tips-badge {
  position: relative;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  background: var(--color-main-2);
  border-radius: 4px;
}

.tips-badge i {
  font-size: 22px;
  line-height: 1;
  color: var(--color-background);
}

/* Soft blue ring pulsing out of the badge, like a ripple of water */
.tips-badge::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--color-main-2);
  border-radius: 4px;
  animation: tips-ripple 2.6s ease-out infinite;
}

@keyframes tips-ripple {
  0% { transform: scale(1); opacity: 0.6; }
  70%, 100% { transform: scale(1.5); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .tips-badge::after { animation: none; }
}

.tips-head > p {
  max-width: 380px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  background: var(--color-line-2);
  border: 2px solid var(--color-line-2);

  @media (max-width: 1024px) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
  }
}

.tip {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 30px;
  background: var(--color-background);
  transition: background-color 0.3s ease;

  @media (max-width: 767px) {
    padding: 24px;
  }
}

.tip-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  background: rgba(31, 91, 216, 0.08);
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.tip-icon i {
  font-size: 24px;
  line-height: 1;
  color: var(--color-main-2);
  transition: color 0.3s ease, transform 0.5s var(--ease-out-expo);
}

.tip:hover .tip-icon {
  background: var(--color-main-2);
}

.tip:hover .tip-icon i {
  color: var(--color-background);
  transform: translateY(-2px);
}

.tip .eyebrow {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.tip p {
  font-size: 16px;
}

.tips-after {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 24px;
}

.tips-after > span[data-i18n] {
  font-weight: 500;
  color: var(--color-text);
}

.tips-after-icon {
  display: flex;
  margin-right: -12px;
}

.tips-after-icon i {
  font-size: 22px;
  line-height: 1;
  color: var(--color-main-2);
}

/* ----- Why me ----- */

.why-section {
  padding-top: 120px;
  padding-bottom: 90px;

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 60px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 42px;
  }
}

.why-inner {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.why-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px 48px;
  align-items: baseline;
  padding: 36px 0;
  border-top: 1px solid var(--color-line);

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    padding: 30px 0;
  }
}

.why-row h3 {
  font-size: 64px;
  letter-spacing: -0.035em;
  line-height: 1;

  @media (max-width: 1024px) {
    font-size: 48px;
  }

  @media (max-width: 767px) {
    font-size: 36px;
  }
}

.why-row p {
  max-width: 520px;
  font-size: 18px;
  text-wrap: pretty;
}

/* ----- Service area ----- */

.zone-section {
  padding-bottom: 120px;

  @media (max-width: 1340px) {
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-bottom: 60px;
  }
}

.zone-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: stretch;

  @media (max-width: 1340px) {
    gap: 48px;
  }

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.zone-content {
  gap: 24px;
  padding-top: 36px;
  border-top: 1px solid var(--color-line);
}

.zone-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.zone-label {
  font-size: 15px;
  letter-spacing: 0.16em;
  color: var(--color-muted);
}

.zone-base {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-main-2);
}

.zone-group p,
.zone-group p span {
  font-size: 16px;
}

.tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  padding: 6px 12px;
  border: 1px solid var(--color-line-2);
  font-size: 15px;
  color: var(--color-text);
}

.zone-map {
  position: relative;
  min-height: 420px;
  overflow: hidden;
  background: var(--color-background-2);
  border-top: 4px solid var(--color-main-2);

  @media (max-width: 767px) {
    min-height: 320px;
  }
}

.zone-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(1) contrast(1.05);
}

/* Placeholder until the visitor accepts cookies or asks for the map.
   The faint grid hints at a map without loading anything from Google. */
.map-consent {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background-color: var(--color-background-2);
  background-image:
    linear-gradient(rgba(31, 91, 216, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 91, 216, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
}

.map-consent i {
  font-size: 36px;
  line-height: 1;
  color: var(--color-main-2);
}

.map-consent strong {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.map-consent p {
  max-width: 320px;
  margin-bottom: 6px;
  font-size: 15px;
}

/* ----- FAQ ----- */

.faq-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--color-background-2);

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.faq-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 60px;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

.faq-head {
  max-width: 380px;

  @media (max-width: 1024px) {
    max-width: 560px;
  }
}

/* ----- Contact (blue) ----- */

.contact-section {
  padding-top: 120px;
  padding-bottom: 120px;
  background: var(--color-main-2);

  @media (max-width: 1340px) {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  @media (max-width: 767px) {
    padding-top: 60px;
    padding-bottom: 60px;
  }
}

.contact-section .eyebrow,
.contact-section h2,
.contact-section p,
.contact-section p span,
.contact-section a:not(.button) {
  color: var(--color-background);
}

.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 60px;
  align-items: end;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

.contact-title-wrap {
  gap: 24px;
}

.contact-title-wrap h2 {
  font-size: 104px;
  line-height: 0.94;
  letter-spacing: -0.04em;

  @media (max-width: 1340px) {
    font-size: 84px;
  }

  @media (max-width: 767px) {
    font-size: 54px;
  }
}

.contact-phone {
  width: fit-content;
  font-family: var(--font-title);
  font-weight: 800;
  font-style: italic;
  font-size: 68px;
  line-height: 1;
  letter-spacing: -0.03em;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 3px;
  transition: background-size 0.5s var(--ease-out-expo);

  @media (max-width: 1340px) {
    font-size: 54px;
  }

  @media (max-width: 767px) {
    font-size: 40px;
  }
}

.contact-phone:hover {
  background-size: 100% 3px;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-wa {
  width: 100%;
  min-height: 78px;
  justify-content: space-between;
  padding: 0 30px;
  font-size: 20px;
  white-space: normal;

  @media (max-width: 767px) {
    min-height: 66px;
    padding: 0 24px;
    font-size: 18px;
  }
}

.contact-wa i {
  font-size: 24px;
}

.contact-wa-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.contact-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--color-background);
}

.contact-meta-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 18px 0 0;
}

.contact-meta-col + .contact-meta-col {
  padding: 18px 0 0 18px;
  border-left: 1px solid var(--color-background);
}

.contact-meta .eyebrow {
  font-size: 15px;
  letter-spacing: 0.16em;
}

.contact-meta p {
  line-height: 1.45;
}

/* ----- Legal pages (privacy, cookies, terms) ----- */

.legal-hero {
  padding-top: 90px;
  background: var(--color-background-2);
  border-bottom: 1px solid var(--color-line);

  @media (max-width: 767px) {
    padding-top: 42px;
  }
}

.legal-hero-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.legal-back {
  width: fit-content;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
}

.legal-back i {
  order: -1;
}

.legal-back:hover i {
  transform: translateX(-4px);
}

.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 24px;
}

.legal-tabs a {
  margin-bottom: -1px;
  padding: 12px 18px;
  border: 1px solid var(--color-line);
  border-bottom: 0;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: #4A5260;
  transition: color 0.2s ease, background-color 0.2s ease;

  @media (max-width: 767px) {
    padding: 12px;
    font-size: 14px;
  }
}

.legal-tabs a:hover {
  color: var(--color-main-2);
}

.legal-tabs a[aria-current="page"] {
  background: var(--color-background);
  color: var(--color-text);
}

.legal-body {
  padding-top: 90px;
  padding-bottom: 120px;

  @media (max-width: 767px) {
    padding-top: 48px;
    padding-bottom: 60px;
  }
}

.legal-body-inner {
  display: grid;
  grid-template-columns: 260px minmax(0, 760px);
  gap: 48px 72px;
  align-items: start;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr;
  }
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-height, 72px) + 42px);
  display: flex;
  flex-direction: column;
  gap: 12px;

  @media (max-width: 1024px) {
    display: none;
  }
}

.legal-toc .eyebrow {
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.legal-toc nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.legal-toc a {
  font-size: 15px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--color-text);
}

.legal-toc a:hover {
  color: var(--color-main-2);
}

.legal-article {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.legal-intro {
  font-size: 18px;
  line-height: 1.65;
}

.legal-article section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
}

.legal-article h2 {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.02em;

  @media (max-width: 767px) {
    font-size: 22px;
  }
}

.legal-article h2 .eyebrow {
  flex: none;
  font-size: 18px;
  letter-spacing: 0.1em;
}

.legal-article p,
.legal-article li {
  line-height: 1.7;
  text-wrap: pretty;
}

.legal-article ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 24px;
}

.legal-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 30px;
  border-top: 1px solid var(--color-line);
}

.legal-contact strong {
  font-family: var(--font-title);
  font-size: 18px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  padding: 90px 0 0;
  background: var(--color-background-3);

  @media (max-width: 767px) {
    padding-top: 60px;
  }
}

.site-footer p,
.site-footer span,
.site-footer li {
  font-size: 15px;
  color: #C4CAD4;
}

.footer-inner {
  display: flex;
  flex-direction: column;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 48px 42px;
  padding-bottom: 60px;

  @media (max-width: 1024px) {
    grid-template-columns: 1fr 1fr;
  }

  @media (max-width: 767px) {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-bottom: 42px;
  }
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.footer-col-brand {
  gap: 24px;
  max-width: 400px;

  @media (max-width: 1024px) {
    grid-column: 1 / -1;
  }
}

.footer-col-brand .logo img {
  height: 48px;
}

.footer-description {
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
}

.footer-col-brand .button {
  min-height: 48px;
  padding: 0 18px;
  font-size: 15px;
}

.footer-col-brand .button span:not(.live-dot) {
  color: var(--color-background);
}

.footer-col h6.eyebrow {
  font-size: 15px;
  letter-spacing: 0.18em;
  color: var(--color-main-2-light);
}

.footer-nav,
.footer-contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.footer-nav a,
.footer-nav a span,
.footer-contacts a,
.footer-contacts a span {
  width: fit-content;
  font-size: 15px;
  color: var(--color-background);
}

.footer-contacts a:hover,
.footer-contacts a:hover span,
.footer-nav a:hover span {
  color: var(--color-main-2-light);
}

.footer-contacts .contact-item {
  align-items: flex-start;
}

.footer-contacts .contact-item i {
  margin-top: 3px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 30px;
  padding: 24px 0;
  border-top: 1px solid #2A3242;

  @media (max-width: 767px) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.footer-bottom p,
.footer-bottom span {
  font-size: 14px;
}

.legal-nav {
  display: flex;
  gap: 6px 24px;
  flex-wrap: wrap;
}

.legal-nav a,
.credit a {
  font-size: 14px;
  color: #C4CAD4;
  text-decoration: none;
}

.credit a {
  color: var(--color-background);
}

.legal-nav a:hover,
.credit a:hover {
  color: var(--color-background);
  text-decoration: underline;
}

/* ==========================================================================
   COOKIE CONSENT
   ========================================================================== */

.accept-cookies-block {
  position: fixed;
  left: 18px;
  bottom: 18px;
  max-width: 640px;
  padding: 24px;
  background: var(--color-main-1);
  border-left: 4px solid var(--color-main-2);
  box-shadow: 0 12px 36px rgba(18, 24, 38, 0.24);
  z-index: 999;
}

.accept-cookies-block .content-inner {
  display: flex;
  gap: 24px;
  align-items: center;
}

.accept-cookies-block .content-text p {
  font-size: 14px;
  line-height: 160%;
  color: #C4CAD4;
}

.accept-cookies-block .content-text a {
  color: var(--color-background);
  text-underline-offset: 2px;
}

.accept-cookies-block__btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.accept-cookies-block .button {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.accept-cookies-block .cookieAccept {
  background: var(--color-background);
  border-color: var(--color-background);
  color: var(--color-main-1);
}

.accept-cookies-block .cookieAccept:hover {
  background: var(--color-main-2-light);
  border-color: var(--color-main-2-light);
}

.accept-cookies-block .cookieReject {
  background: transparent;
  border-color: #4A5260;
  color: var(--color-background);
}

.accept-cookies-block .cookieReject:hover {
  border-color: var(--color-background);
}

@media (max-width: 767px) {
  .accept-cookies-block {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 18px;
  }

  .accept-cookies-block .content-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .accept-cookies-block__btns .button {
    flex: 1;
  }
}
