/* Terra — tokeni templata, scopovani na .sec-terra-footer. */

/* ============================================================
   DESIGN TOKENS — Template 12 "Terra"
   Niche variant: K — holistic / biological dentistry
   >>> NEW variant, not in the original style guide. Rules and
       reasoning live in the BUILDER-LOG, §4h. <<<

   Register: materials and evidence, not philosophy. The risk in
   this segment is overclaiming, so the copy is built around what
   can be shown — and around one sentence that refuses a claim.

   First TWO-TONE template in the series: bronze is primary and
   accent at once, graphite carries the text, everything else is
   a cool neutral. Add a third colour and this stops being this
   template.
   ============================================================ */

.sec-terra-footer {
  /* ---------- Color ---------- */
  --c-bg:          #F2F4F4;   /* cool white, faint green-grey */
  --c-bg-alt:      #E7ECEC;
  --c-white:       #FFFFFF;
  --c-surface:     #D6E0E0;   /* cool ceramic fill */

  /* Bronze on a COOL neutral. Bronze on a warm cream is exactly the
     "cream + terracotta" look the style guide rules out; the cold
     ground is what separates the two. */
  --c-primary:     #7A4A1E;   /* 6.7:1 on --c-bg, white on it 7.4:1 */
  --c-primary-dk:  #57330F;
  --c-primary-lt:  #C08A54;
  --c-primary-08:  rgba(122, 74, 30, 0.08);
  --c-primary-16:  rgba(122, 74, 30, 0.16);

  --c-ink:         #232A2C;   /* graphite — headings, 13:1 */
  --c-text:        #2B3335;
  --c-text-muted:  #55605F;   /* 6.6:1 on --c-bg */
  --c-on-dark:     #EDF1F1;
  --c-on-dark-mu:  rgba(237, 241, 241, 0.74);

  --c-line:        rgba(35, 42, 44, 0.12);
  --c-line-strong: rgba(35, 42, 44, 0.22);
  --c-line-dark:   rgba(237, 241, 241, 0.22);

  --c-whatsapp:    #0E7C6F;   /* deeper than the brand green so white
                                 text on it clears AA at 5.1:1 */
  --c-whatsapp-dk: #0B6357;
  --c-star:        #A9772C;

  /* ---------- Elevation — flat by default, this page is a lab ---------- */
  --sh-xs: 0 1px 2px rgba(20, 30, 32, 0.05);
  --sh-sm: 0 3px 12px -6px rgba(20, 30, 32, 0.16);
  --sh-md: 0 12px 30px -14px rgba(20, 30, 32, 0.24);
  --sh-lg: 0 24px 50px -20px rgba(20, 30, 32, 0.30);
  --sh-xl: 0 40px 84px -30px rgba(20, 30, 32, 0.36);

  /* ---------- Radius ---------- */
  --r-xs:  6px;
  --r-sm:  10px;
  --r-md:  14px;
  --r-lg:  20px;
  --r-xl:  28px;
  --r-2xl: 40px;
  --r-pill: 999px;
  --r-circle: 50%;

  /* Gallery tiles: 12px, inside the 10–15px band the brief asks for. */
  --r-gallery: 12px;

  /* L-frame: how far the bronze rule sits off the media edge. */
  --lframe: 14px;

  /* ---------- Spacing — 8px base ---------- */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:  16px;
  --sp-4:  24px;
  --sp-5:  32px;
  --sp-6:  48px;
  --sp-7:  64px;
  --sp-8:  96px;
  --sp-9: 128px;

  --section-y: clamp(68px, 8.5vw, 120px);
  --gutter:    clamp(20px, 5vw, 48px);
  --maxw:      1220px;

  /* ---------- Typography ---------- */
  --ff-display: "Newsreader", Georgia, "Times New Roman", serif;
  --ff-body:    "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --fs-xs:   0.8125rem;
  --fs-sm:   0.9375rem;
  --fs-base: 1rem;
  --fs-md:   1.0625rem;
  --fs-lg:   clamp(1.125rem, 0.42vw + 1.05rem, 1.28rem);
  --fs-h4:   clamp(1.25rem, 0.7vw + 1.08rem, 1.5rem);
  --fs-h3:   clamp(1.5rem, 1.1vw + 1.22rem, 2rem);
  --fs-h2:   clamp(2.0625rem, 2.6vw + 1.4rem, 3.375rem);
  --fs-h1:   clamp(2.5rem, 3.8vw + 1.4rem, 4.375rem);

  --lh-tight: 1.06;
  --lh-snug:  1.16;
  --lh-body:  1.62;

  --ls-tight: -0.015em;   /* a serif needs far less negative tracking */
  --ls-label:  0.18em;

  /* ---------- Motion ---------- */
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-fast: 160ms;
  --t-base: 300ms;
  --t-slow: 700ms;

  /* ---------- Layout ---------- */
  --header-h: 78px;
  --z-header: 100;
  --z-mobilebar: 90;
  --z-menu: 95;
  --z-lightbox: 200;
}

@media (max-width: 900px) { .sec-terra-footer { --header-h: 64px; --lframe: 10px; } }

/* Terra — reset i zajedničke primitive (base.css). */

/* ============================================================
   BASE — Template 12 "Terra"
   Signature: the L-frame (.u-lframe — a bronze rule set off two
   sides of a media block) and the round seal (.u-seal). Both are
   drawn with borders and radii, no extra elements, no images.
   ============================================================ */

.sec-terra-footer *, .sec-terra-footer *::before, .sec-terra-footer *::after { box-sizing: border-box; }

.sec-terra-footer {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

.sec-terra-footer {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--ff-body);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}

.sec-terra-footer img, .sec-terra-footer svg, .sec-terra-footer video { display: block; max-width: 100%; }
.sec-terra-footer img { height: auto; }

.sec-terra-footer h1, .sec-terra-footer h2, .sec-terra-footer h3, .sec-terra-footer h4 {
  font-family: var(--ff-display);
  font-weight: 400;          /* a serif carries weight without bolding */
  color: var(--c-ink);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-snug);
  margin: 0;
  text-wrap: balance;
}
.sec-terra-footer h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); }
.sec-terra-footer h2 { font-size: var(--fs-h2); line-height: 1.1; }
.sec-terra-footer h3 { font-size: var(--fs-h3); }
.sec-terra-footer h4 { font-size: var(--fs-h4); font-weight: 500; }

.sec-terra-footer p { margin: 0; text-wrap: pretty; }
.sec-terra-footer ul, .sec-terra-footer ol { margin: 0; padding: 0; list-style: none; }

.sec-terra-footer a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
.sec-terra-footer button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

.sec-terra-footer :focus-visible { outline: 3px solid var(--c-primary); outline-offset: 3px; border-radius: var(--r-xs); }
.sec-terra-footer :focus:not(:focus-visible) { outline: none; }
.sec-terra-footer ::selection { background: var(--c-primary-16); color: var(--c-ink); }

/* ---------- Layout primitives ---------- */

.sec-terra-footer .u-container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.sec-terra-footer .u-section { position: relative; padding-block: var(--section-y); }
.sec-terra-footer .u-section--alt { background: var(--c-bg-alt); }

.sec-terra-footer .u-sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}

.sec-terra-footer .u-skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 999;
  transform: translateY(-200%);
  background: var(--c-ink); color: var(--c-white);
  padding: 12px 22px; border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: 700;
}
.sec-terra-footer .u-skip-link:focus { transform: translateY(0); }

/* ============================================================
   DARK SCOPE — .u-dark on any section on the graphite. Fixes
   headings, paragraphs and labels in one place. (BUILDER-LOG §4.)
   ============================================================ */
.sec-terra-footer .u-dark { color: var(--c-on-dark); }
.sec-terra-footer .u-dark h1, .sec-terra-footer .u-dark h2, .sec-terra-footer .u-dark h3, .sec-terra-footer .u-dark h4 { color: var(--c-on-dark); }
.sec-terra-footer .u-dark p { color: var(--c-on-dark-mu); }
/* bronze is 3.4:1 on graphite — too low for a 13px label, so on dark the
   label takes the light bronze */
.sec-terra-footer .u-dark .u-label { color: var(--c-primary-lt); }
.sec-terra-footer .u-dark .u-head p { color: var(--c-on-dark-mu); }

/* ---------- Eyebrow + section head ---------- */

.sec-terra-footer .u-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-primary);
}
.sec-terra-footer .u-label::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  flex: none;
}

.sec-terra-footer .u-head > * + * { margin-top: var(--sp-3); }
.sec-terra-footer .u-head--center { text-align: center; margin-inline: auto; }
.sec-terra-footer .u-head--center .u-label { justify-content: center; }
.sec-terra-footer .u-head h2 { max-width: 20ch; }
.sec-terra-footer .u-head--center h2 { margin-inline: auto; }
.sec-terra-footer .u-head p { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 60ch; }
.sec-terra-footer .u-head--center p { margin-inline: auto; }

/* ---------- L-frame (signature device) ---------- */

/* A bronze rule along two sides of a media block, offset by --lframe.
   Drawn on a ::before of the wrapper, so the picture itself is never
   bordered and the rule can sit outside it. Set --lframe-x/-y to flip
   which corner it hugs. */
.sec-terra-footer .u-lframe { position: relative; }
.sec-terra-footer .u-lframe::before {
  content: "";
  position: absolute;
  inset: var(--lframe-y, calc(var(--lframe) * -1)) auto auto var(--lframe-x, calc(var(--lframe) * -1));
  width: 42%; height: 46%;
  border-top: 2px solid var(--c-primary);
  border-left: 2px solid var(--c-primary);
  border-radius: var(--r-md) 0 0 0;
  pointer-events: none;
}
/* mirrored: the rule hugs the bottom-right instead */
.sec-terra-footer .u-lframe--br::before {
  inset: auto auto var(--lframe-y, calc(var(--lframe) * -1)) auto;
  right: var(--lframe-x, calc(var(--lframe) * -1));
  left: auto;
  border-top: 0; border-left: 0;
  border-bottom: 2px solid var(--c-primary);
  border-right: 2px solid var(--c-primary);
  border-radius: 0 0 var(--r-md) 0;
}

/* ---------- Seal (signature device) ---------- */

.sec-terra-footer .u-seal {
  display: grid; place-items: center;
  width: var(--seal-size, 104px); height: var(--seal-size, 104px);
  border-radius: var(--r-circle);
  border: 1px solid var(--c-primary);
  color: var(--c-primary);
  text-align: center;
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.35;
  background: var(--seal-bg, transparent);
}
.sec-terra-footer .u-seal strong {
  display: block;
  font-family: var(--ff-display);
  font-size: 1.375rem; font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--c-ink);
}
.sec-terra-footer .u-seal--solid { --seal-bg: var(--c-white); border-color: var(--c-line); }

/* ---------- Pills ---------- */

.sec-terra-footer .u-pill {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 38px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--pill-bg, var(--c-white));
  color: var(--pill-fg, var(--c-ink));
  border: 1px solid var(--pill-bd, var(--c-line));
  font-size: var(--fs-sm); font-weight: 500;
}
.sec-terra-footer .u-pill--bronze { --pill-bg: var(--c-primary-08); --pill-bd: transparent; --pill-fg: var(--c-primary-dk); }
.sec-terra-footer .u-pill--cool { --pill-bg: var(--c-surface); --pill-bd: transparent; --pill-fg: var(--c-ink); }
.sec-terra-footer .u-pill--ghost {
  --pill-bg: rgba(237, 241, 241, 0.12);
  --pill-bd: var(--c-line-dark);
  --pill-fg: var(--c-on-dark);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.sec-terra-footer .u-pill svg { width: 17px; height: 17px; flex: none; }

/* ---------- Stars ---------- */

.sec-terra-footer .u-stars { display: inline-flex; gap: 2px; }
.sec-terra-footer .u-stars svg { width: 17px; height: 17px; color: var(--c-star); }
.sec-terra-footer .u-stars--lg svg { width: 21px; height: 21px; }
.sec-terra-footer .u-stars .is-off { color: var(--c-line-strong); }

/* ---------- Buttons ---------- */

.sec-terra-footer .u-btn {
  --btn-bg: var(--c-primary);
  --btn-fg: var(--c-white);
  --btn-bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px;
  padding: 15px 30px;
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--ff-body);
  font-size: var(--fs-md); font-weight: 500;
  line-height: 1.1;
  text-align: center;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease-out),
              box-shadow var(--t-base) var(--ease-out),
              background-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease),
              border-color var(--t-fast) var(--ease);
}
.sec-terra-footer .u-btn svg { flex: none; width: 20px; height: 20px; }
.sec-terra-footer .u-btn:hover { transform: translateY(-2px); }
.sec-terra-footer .u-btn:active { transform: translateY(0); transition-duration: 70ms; }

.sec-terra-footer .u-btn--solid { box-shadow: var(--sh-sm); }
.sec-terra-footer .u-btn--solid:hover { --btn-bg: var(--c-primary-dk); box-shadow: var(--sh-md); }

.sec-terra-footer .u-btn--ink { --btn-bg: var(--c-ink); --btn-fg: var(--c-white); }
.sec-terra-footer .u-btn--ink:hover { --btn-bg: #121819; }

.sec-terra-footer .u-btn--line { --btn-bg: transparent; --btn-fg: var(--c-ink); --btn-bd: var(--c-line-strong); }
.sec-terra-footer .u-btn--line:hover { --btn-bd: var(--c-primary); --btn-bg: var(--c-white); }

.sec-terra-footer .u-btn--white { --btn-bg: var(--c-white); --btn-fg: var(--c-ink); box-shadow: var(--sh-md); }
.sec-terra-footer .u-btn--white:hover { --btn-bg: var(--c-bg-alt); }

.sec-terra-footer .u-btn--ghost { --btn-bg: rgba(237, 241, 241, 0.1); --btn-fg: var(--c-on-dark); --btn-bd: var(--c-line-dark); }
.sec-terra-footer .u-btn--ghost:hover { --btn-bg: rgba(237, 241, 241, 0.2); --btn-bd: rgba(237, 241, 241, 0.55); }

.sec-terra-footer .u-btn--wa { --btn-bg: var(--c-whatsapp); --btn-fg: #fff; box-shadow: var(--sh-sm); }
.sec-terra-footer .u-btn--wa:hover { --btn-bg: var(--c-whatsapp-dk); box-shadow: var(--sh-md); }

.sec-terra-footer .u-btn--lg { min-height: 62px; padding: 19px 34px; font-size: var(--fs-lg); }
.sec-terra-footer .u-btn--block { width: 100%; }

/* ---------- Scroll reveal ---------- */

/* Hidden start state gated on .has-js (set by app.js) so a script
   failure can never leave a blank hole where content should be. */
.sec-terra-footer.has-js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.sec-terra-footer.has-js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .sec-terra-footer { scroll-behavior: auto; }
  .sec-terra-footer *, .sec-terra-footer *::before, .sec-terra-footer *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .sec-terra-footer.has-js [data-reveal] { opacity: 1; transform: none; }
}

@media print {
  .sec-terra-footer .site-head, .sec-terra-footer .mobile-bar, .sec-terra-footer .cta, .sec-terra-footer .slices { display: none !important; }
  .sec-terra-footer { background: #fff; }
}

/* ============================================================
   MEDIA SLOTS — every image slot also takes a <video>

   Each slot rule is written as `:is(img,video)`, so swapping the
   tag is the whole job — sizing, crop and radius stay identical:

     image tag:  src="_shared/img/hero-bg.svg" width="2400" height="1500" alt="..."
     video tag:  src="_shared/video/hero.mp4" poster="_shared/img/hero-bg.svg"
                 width="2400" height="1500" data-inline muted loop playsinline
                 aria-label="..."

   `data-inline` hands the element to app.js, which plays it only
   while it is on screen, pauses it when the tab is hidden, adds a
   pause control (WCAG 2.2.2) and skips autoplay entirely under
   prefers-reduced-motion — the poster stays in that case.
   ============================================================ */

.sec-terra-footer video { width: 100%; height: auto; }

.sec-terra-footer .has-inline-video { position: relative; }

.sec-terra-footer .u-mediactl {
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-sm);
  color: var(--c-text);
  font-size: var(--fs-xs); font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-base) var(--ease);
}
.sec-terra-footer .u-mediactl:hover { background: #fff; }
.sec-terra-footer .u-mediactl__ic { position: relative; width: 12px; height: 12px; flex: none; }
.sec-terra-footer .u-mediactl__ic::before, 
.sec-terra-footer .u-mediactl__ic::after {
  content: "";
  position: absolute; top: 0;
  width: 4px; height: 12px;
  border-radius: 1px;
  background: currentColor;
}
.sec-terra-footer .u-mediactl__ic::before { left: 0; }
.sec-terra-footer .u-mediactl__ic::after { right: 0; }

.sec-terra-footer .u-mediactl[aria-pressed="true"] .u-mediactl__ic::before {
  left: 1px;
  width: 0; height: 0;
  border-radius: 0;
  background: none;
  border-left: 11px solid currentColor;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.sec-terra-footer .u-mediactl[aria-pressed="true"] .u-mediactl__ic::after { opacity: 0; }

.sec-terra-footer .u-mediactl--compact { padding: 0; width: 44px; justify-content: center; }
.sec-terra-footer .u-mediactl--compact .u-mediactl__tx { display: none; }

/* Sekcija footer. */

/* ============================================================
   SECTION: FOOTER
   A large serif wordmark, four columns, legal bar. The material
   list appears one last time on the way out: on this site it is
   the product.
   ============================================================ */

.sec-terra-footer .ftr {
  position: relative;
  padding-block: clamp(56px, 7vw, 96px) var(--sp-5);
  background: var(--c-ink);
  /* room for the sticky mobile action bar */
  padding-bottom: calc(var(--sp-5) + 78px);
}

.sec-terra-footer .ftr__word {
  display: block;
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--c-line-dark);
}
.sec-terra-footer .ftr__word span {
  display: block;
  font-family: var(--ff-display);
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.01em;
  color: var(--c-on-dark);
}
.sec-terra-footer .ftr__word small {
  display: block;
  margin-top: 10px;
  font-size: var(--fs-sm);
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--c-primary-lt);
}

.sec-terra-footer .ftr__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 0.9fr 0.9fr;
  gap: clamp(28px, 3.5vw, 56px);
  padding-block: var(--sp-6);
}

.sec-terra-footer .ftr__col h3 {
  font-family: var(--ff-body);
  font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: var(--ls-label); text-transform: uppercase;
  color: var(--c-primary-lt);
  margin-bottom: var(--sp-4);
}

.sec-terra-footer .ftr__tel {
  display: inline-flex; align-items: center;
  min-height: 46px;
  font-family: var(--ff-display);
  font-size: 1.625rem; font-weight: 400;
  color: var(--c-on-dark);
}
.sec-terra-footer .ftr__tel:hover { color: var(--c-primary-lt); }

.sec-terra-footer .ftr__mail {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
  word-break: break-word;
}
.sec-terra-footer .ftr__mail:hover { color: var(--c-primary-lt); }

.sec-terra-footer .ftr__contact address {
  margin-top: var(--sp-3);
  font-style: normal;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
  line-height: 1.7;
}

.sec-terra-footer .ftr__dir {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-primary-lt);
}
.sec-terra-footer .ftr__dir span { transition: transform var(--t-base) var(--ease-out); }
.sec-terra-footer .ftr__dir:hover span { transform: translateX(4px); }

.sec-terra-footer .ftr__hours {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
}
.sec-terra-footer .ftr__hours th {
  text-align: left; font-weight: 400;
  padding: 6px 16px 6px 0;
  border-bottom: 1px solid var(--c-line-dark);
}
.sec-terra-footer .ftr__hours td {
  text-align: right;
  padding: 6px 0;
  border-bottom: 1px solid var(--c-line-dark);
  font-variant-numeric: tabular-nums;
}
.sec-terra-footer .ftr__hours tr:last-child :is(th, td) { border-bottom: 0; }

.sec-terra-footer .ftr__hint {
  margin-top: var(--sp-3);
  font-size: var(--fs-xs);
  color: var(--c-on-dark-mu);
}

.sec-terra-footer .ftr__mats { display: grid; gap: 8px; }
.sec-terra-footer .ftr__mats li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
}
.sec-terra-footer .ftr__mats li::before {
  content: "";
  width: 5px; height: 5px;
  margin-top: 9px;
  border-radius: var(--r-circle);
  background: var(--c-primary-lt);
}

.sec-terra-footer .ftr__links { display: grid; gap: 2px; }
.sec-terra-footer .ftr__links a {
  display: inline-flex; align-items: center;
  min-height: 44px;
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
}
.sec-terra-footer .ftr__links a:hover { color: var(--c-on-dark); }

/* ---------- Legal bar ---------- */

.sec-terra-footer .ftr__bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3) var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-line-dark);
  font-size: var(--fs-sm);
  color: var(--c-on-dark-mu);
}
.sec-terra-footer .ftr__legal { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.sec-terra-footer .ftr__legal a { display: inline-flex; align-items: center; min-height: 44px; }
.sec-terra-footer .ftr__legal a:hover { color: var(--c-on-dark); }

.sec-terra-footer .ftr__social { display: flex; gap: 8px; }
.sec-terra-footer .ftr__social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: var(--r-circle);
  border: 1px solid var(--c-line-dark);
  color: var(--c-on-dark);
  transition: border-color var(--t-fast) var(--ease);
}
.sec-terra-footer .ftr__social a:hover { border-color: var(--c-primary-lt); }
.sec-terra-footer .ftr__social svg { width: 19px; height: 19px; }

.sec-terra-footer .ftr__top-btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px;
  margin-left: auto;
  font-size: var(--fs-sm);
  color: var(--c-on-dark);
  border-bottom: 1px solid var(--c-line-dark);
}
.sec-terra-footer .ftr__top-btn:hover { border-bottom-color: var(--c-primary-lt); }
.sec-terra-footer .ftr__top-btn svg { width: 17px; height: 17px; }

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .sec-terra-footer .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sec-terra-footer .ftr { padding-bottom: calc(var(--sp-5) + 88px); }
}
@media (max-width: 620px) {
  .sec-terra-footer .ftr__grid { grid-template-columns: 1fr; }
  .sec-terra-footer .ftr__bar { flex-direction: column; align-items: flex-start; }
  .sec-terra-footer .ftr__top-btn { margin-left: 0; }
}