/* =========================================================
   SensoDays · Program de parteneriat arhitecți & designeri
   Culori preluate exclusiv de pe sensodays.ro
   ========================================================= */

:root {
  /* Teal (fundaluri închise, text) */
  --c-950: #012021;
  --c-900: #023436;
  --c-800: #1c484b;
  --c-700: #355e5f;
  --c-500: #85a3a1;

  /* Albastru SensoDays */
  --blue-700: #0d546f;
  --cyan: #15a8de;
  --cyan-light: #72cae9;
  /* Butoane: albastrul SensoDays puțin mai adânc, ca textul alb să treacă AA (4,8:1) */
  --cta: #0f7ba3;
  --cta-hover: #0d6a8c;

  /* Griuri */
  --g-400: #afbabc;
  --g-300: #cfd6d7;
  --g-200: #dfe3e4;
  --g-150: #e7ebeb;
  --g-50: #f3f5f5;
  --white: #ffffff;

  /* Stări formular (roșul folosit de sensodays.ro pentru erori) */
  --err: oklch(0.577 0.245 27.325);
  --err-bg: oklch(0.971 0.013 17.38);

  --text: var(--c-950);
  --text-muted: var(--c-700);
  --focus: var(--blue-700);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 8px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --nav-h: 72px;
  --gutter: clamp(16px, 4vw, 48px);
  --container: 1320px;
  --section-y: clamp(72px, 9vw, 136px);
}

@media (min-width: 1680px) {
  :root { --container: 1480px; }
}

@media (max-width: 767px) {
  :root {
    --nav-h: 60px;
    /* Pe telefon secțiunile stau mai aproape una de alta */
    --section-y: 52px;
  }
}

/* ---------- Reset & bază ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  /* Deasupra paginii (nav + hero deschise) fundalul e alb; sub footer, body::before e închis.
     Așa, la tragere peste margini (overscroll) nu apare nicio bandă de altă culoare. */
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  overflow-x: clip;
  overscroll-behavior: none;
}

body {
  margin: 0;
  min-width: 320px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 50% 0 0;
  z-index: -1;
  background: var(--c-950);
  pointer-events: none;
}

main { background: var(--white); }

@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4, p, figure, blockquote { margin: 0; }

a { color: inherit; }

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

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.section--dark,
.footer,
.float-cta,
.stack-card--dark,
.project--cta { --focus: var(--cyan-light); }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right));
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--c-950);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.link {
  color: var(--blue-700);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}
.link--light { color: var(--white); }
.section--dark .link { color: var(--cyan-light); }

@media (hover: hover) and (pointer: fine) {
  .link:hover { color: var(--c-950); }
  .link--light:hover,
  .section--dark .link:hover { color: var(--cyan-light); }
}

/* ---------- Butoane ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.005em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: scale(0.98); }

.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn__icon {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}

.btn--primary { background: var(--cta); color: var(--white); }
.btn--dark { background: var(--c-900); color: var(--white); }
.btn--ghost-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.32);
  color: var(--white);
}
.btn--ghost-dark {
  background: transparent;
  border-color: rgba(2, 52, 54, 0.32);
  color: var(--c-900);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--cta-hover); }
  .btn--dark:hover { background: var(--c-800); }
  .btn--ghost-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
  .btn--ghost-dark:hover { background: rgba(2, 52, 54, 0.05); border-color: var(--c-900); }
  .btn:hover .btn__icon { transform: translateX(3px); }
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Titluri de secțiune ---------- */
.section { padding-block: var(--section-y); }
.section--tint { background: var(--g-50); }
.section--dark { background: var(--c-950); color: var(--white); }

.section-head {
  display: grid;
  gap: 16px;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.section-title {
  font-size: clamp(1.875rem, 1.15rem + 2.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-desc {
  max-width: 52ch;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.section--dark .section-desc { color: var(--g-300); }

.section-head--center {
  justify-items: center;
  text-align: center;
}
.section-head--center .section-title { max-width: 22ch; }

@media (min-width: 1024px) {
  .section-head--split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
    gap: 64px;
  }
  .section-head--split .section-title { max-width: 16ch; }
  .section-head--split .section-desc { justify-self: end; max-width: 44ch; }
}

/* =========================================================
   NAVIGAȚIE
   ========================================================= */
/* Transparentă peste hero; primește fundal abia după ce începi să derulezi (.is-scrolled, din JS) */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0);
  box-shadow: inset 0 -1px 0 rgba(1, 32, 33, 0), 0 10px 30px -22px rgba(1, 32, 33, 0);
  transition:
    transform 0.4s var(--ease-out),
    background-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
  will-change: transform;
}

.nav.is-scrolled {
  background-color: rgba(255, 255, 255, 0.97);
  /* linie interioară în loc de border: nava rămâne exact cât --nav-h, fără bandă deasupra hero-ului */
  box-shadow: inset 0 -1px 0 rgba(1, 32, 33, 0.08), 0 10px 30px -22px rgba(1, 32, 33, 0.35);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .nav.is-scrolled {
    background-color: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    backdrop-filter: saturate(1.4) blur(14px);
  }
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}

.nav__logo {
  display: inline-flex;
  margin: -10px;
  padding: 10px;
  border-radius: var(--radius);
}
.nav__logo img { width: auto; height: 22px; }

@media (max-width: 767px) {
  .nav__inner { justify-content: center; }
  .nav__cta { display: none; }
  .nav__logo img { height: 20px; }
  .nav.is-hidden { transform: translateY(-100%); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  /* Hero-ul urcă sub navigație, ca fundalul lui să se vadă prin nav-ul transparent */
  margin-top: calc(var(--nav-h) * -1);
  padding-block: calc(var(--nav-h) + clamp(24px, 4vw, 40px)) clamp(56px, 6vw, 72px);
  background:
    radial-gradient(70% 70% at 0% 0%, rgba(114, 202, 233, 0.16), transparent 70%),
    radial-gradient(60% 70% at 100% 100%, rgba(231, 235, 235, 0.9), transparent 70%),
    var(--g-50);
  color: var(--text);
}

.hero__grid {
  display: grid;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

/* container-type: titlul se dimensionează după lățimea coloanei, ca să încapă pe 2 rânduri */
.hero__content {
  container-type: inline-size;
  max-width: 720px;
}

.hero__title {
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.042em;
}

.hero__line { display: inline; }

@supports (font-size: 1cqi) {
  @media (min-width: 600px) {
    /* rândul cel mai lung măsoară ~15,5em; 15,8 lasă o mică marjă de siguranță */
    .hero__title { font-size: min(calc(100cqi / 15.8), 4.5rem); }
    .hero__line { display: block; white-space: nowrap; }
  }
}

.hero__lead {
  max-width: 44ch;
  margin: clamp(18px, 2vw, 24px) 0 clamp(28px, 3vw, 36px);
  color: var(--text-muted);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 16px clamp(24px, 3.5vw, 48px);
  margin: clamp(32px, 3.5vw, 44px) 0 0;
  padding: clamp(22px, 2.4vw, 28px) 0 0;
  border-top: 1px solid rgba(1, 32, 33, 0.12);
  list-style: none;
}

.stat__value {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text);
  font-size: clamp(1.375rem, 1.05rem + 1.1vw, 2.125rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.stat__g { width: 0.62em; height: 0.62em; margin-left: 3px; }

.stat__label {
  display: block;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.35;
}

.hero__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-lg);
  background: var(--g-150);
  box-shadow: 0 32px 64px -36px rgba(1, 32, 33, 0.45);
  isolation: isolate;
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% 50%;
}

/* Umbrire jos-stânga, acolo unde stă recenzia */
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(1, 32, 33, 0) 40%, rgba(1, 32, 33, 0.5) 64%, rgba(1, 32, 33, 0.9) 100%),
    linear-gradient(90deg, rgba(1, 32, 33, 0.35) 0%, rgba(1, 32, 33, 0) 60%);
  pointer-events: none;
}

.hero-review {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(20px, 3vw, 40px);
  left: clamp(20px, 3vw, 40px);
  z-index: 1;
  max-width: 440px;
  color: var(--white);
}

.hero-review__stars { display: flex; gap: 3px; }
.hero-review__stars svg { width: 17px; height: 17px; fill: var(--white); }

.hero-review__slides {
  display: grid;
  margin-top: 12px;
}

.hero-review__slide {
  grid-area: 1 / 1;
  align-self: end;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0s linear 0.6s;
}

.hero-review__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.6s var(--ease) 0.15s, transform 0.6s var(--ease) 0.15s, visibility 0s;
}

.hero-review__slide p {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  font-weight: 500;
  line-height: 1.5;
  text-wrap: pretty;
}

.hero-review__slide footer {
  margin-top: 10px;
  color: var(--g-300);
  font-size: 0.875rem;
}
.hero-review__slide footer::after { content: " · Recenzie Google"; color: var(--g-400); }

.hero-review__nav {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}

.hero-review__dot {
  display: flex;
  align-items: center;
  width: 32px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-review__dot span {
  position: relative;
  display: block;
  overflow: hidden;
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.32);
}

.hero-review__dot span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
}

.hero-review__dot.is-active span::after { transform: scaleX(1); }
.hero-review.is-auto .hero-review__dot.is-active span::after {
  animation: review-progress var(--review-ms, 5500ms) linear forwards;
}
.hero-review.is-paused .hero-review__dot.is-active span::after { animation-play-state: paused; }

@keyframes review-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__media { aspect-ratio: 5 / 4; }
}

@media (min-width: 1024px) {
  .hero { padding-block: calc(var(--nav-h) + 24px) 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
  .hero__media {
    aspect-ratio: auto;
    height: clamp(600px, calc(100svh - var(--nav-h) - 64px), 920px);
  }
  /* Recenzia stă în stânga imaginii, cu spațiu față de margini */
  .hero-review {
    right: auto;
    bottom: clamp(28px, 2.8vw, 44px);
    left: clamp(28px, 2.8vw, 44px);
    width: min(400px, calc(100% - 56px));
  }
}

@media (min-width: 1024px) and (max-width: 1279px) {
  .hero .btn--lg { padding-inline: 20px; font-size: 1rem; }
}

@media (max-width: 767px) {
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stat__value { font-size: 1.25rem; }
  .stat__label { font-size: 0.8125rem; }

  /* Pe telefon tot conținutul hero-ului este centrat */
  .hero__content { text-align: center; }
  .hero__lead { margin-inline: auto; }
  .stat__value { justify-content: center; }

  /* Două linii subțiri despart cele trei cifre */
  .hero__stats { gap: 0; }
  .stat { padding-inline: 10px; }
  .stat + .stat { border-left: 1px solid rgba(1, 32, 33, 0.14); }
}

@media (max-width: 389px) {
  .stat__value { font-size: 1.125rem; }
  .stat__label { font-size: 0.75rem; }
}

/* =========================================================
   MARQUEE (logouri + recenzii)
   ========================================================= */
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee.is-ready .marquee__track {
  animation: marquee var(--marquee-duration, 60s) linear infinite;
}
.marquee--reverse.is-ready .marquee__track { animation-direction: reverse; }
.marquee.is-paused .marquee__track,
.marquee.is-held .marquee__track { animation-play-state: paused; }

@media (hover: hover) and (pointer: fine) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- Branduri ---------- */
.brands {
  padding-block: clamp(48px, 6vw, 88px);
  background: var(--white);
}

.brands__title {
  margin-bottom: clamp(28px, 3.5vw, 44px);
  color: var(--text);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.logo {
  --logo-scale: 1.35;
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding-inline: clamp(26px, 3.2vw, 52px);
}

/* Logourile sunt recolorate în teal SensoDays direct în fișierele SVG */
.logo img {
  width: auto;
  /* --h = mărimea optică a fiecărui logo (din HTML), --logo-scale = mărirea generală */
  height: calc(var(--h, 32px) * var(--logo-scale));
  opacity: 0.9;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover img { opacity: 1; transform: scale(1.04); }
}

@media (max-width: 767px) {
  .logo { --logo-scale: 1.1; height: 76px; padding-inline: 24px; }
}

/* =========================================================
   BENEFICII: fotografie + cifre mari + listă pe 2 coloane
   ========================================================= */
.partner {
  display: grid;
  grid-template-areas:
    "head"
    "media"
    "list";
  gap: clamp(28px, 4vw, 40px);
}

.partner__head { grid-area: head; display: grid; gap: 16px; }
.partner__head .section-title { max-width: 16ch; }

.partner__media {
  grid-area: media;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--g-150);
}

.partner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 45% 55%;
}

.partner__media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  gap: 2px;
  padding: 72px clamp(20px, 2.4vw, 28px) clamp(18px, 2.2vw, 24px);
  background: linear-gradient(180deg, rgba(1, 32, 33, 0), rgba(1, 32, 33, 0.88));
  color: var(--white);
}
.partner__media figcaption strong { font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.01em; }
.partner__media figcaption span { color: var(--g-300); font-size: 0.875rem; }

/* Lista de beneficii */
.partner__list {
  grid-area: list;
  display: grid;
  gap: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.partner__item {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.partner__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--c-900);
  color: var(--cyan-light);
  transition: transform 0.35s var(--ease-out), background-color 0.3s var(--ease);
}

.partner__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (hover: hover) and (pointer: fine) {
  .partner__item:hover .partner__icon { transform: translateY(-2px); background: var(--blue-700); }
}

.partner__title {
  padding-top: 4px;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

.partner__text {
  max-width: 38ch;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
}

@media (min-width: 640px) {
  .partner__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .partner__media { aspect-ratio: 16 / 10; }
}

/* Desktop: fotografia pe toată înălțimea, conținutul în dreapta */
@media (min-width: 1024px) {
  .partner {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "media head"
      "media list";
    grid-template-rows: auto 1fr;
    column-gap: clamp(48px, 6vw, 96px);
    row-gap: clamp(32px, 3.4vw, 44px);
  }
  .partner__media {
    aspect-ratio: auto;
    min-height: 100%;
  }
}

/* =========================================================
   PROIECTE
   ========================================================= */
.stack {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

/* Card proiect: titlu sus, apoi clădirea și interiorul în formatul lor natural (3:2), fără tăieturi mari */
.stack-card {
  display: flex;
  flex-direction: column;
  padding: 8px;
  border-radius: var(--radius-lg);
  box-shadow: 0 -10px 30px -22px rgba(1, 32, 33, 0.3);
}

.stack-card--dark { background: var(--c-900); color: var(--white); }
.stack-card--light { background: var(--g-150); color: var(--text); }

.stack-card__body {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px 40px;
  padding: 14px 10px 16px;
}

.stack-card__title {
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.stack-card__meta {
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.005em;
}
.stack-card--dark .stack-card__meta { color: var(--cyan-light); }
.stack-card--light .stack-card__meta { color: var(--blue-700); }

.stack-card__text {
  max-width: 40ch;
  font-size: clamp(0.9375rem, 0.92rem + 0.15vw, 1.0625rem);
  line-height: 1.5;
}
.stack-card--dark .stack-card__text { color: var(--g-300); }
.stack-card--light .stack-card__text { color: var(--text-muted); }

.stack-card__photos {
  display: grid;
  gap: 8px;
}

.stack-card__photo {
  overflow: hidden;
  aspect-ratio: 3 / 2;
  margin: 0;
  border-radius: 6px;
  background: var(--c-800);
}

.stack-card--light .stack-card__photo { background: var(--g-200); }

.stack-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
  .stack-card__photo:hover img { transform: scale(1.04); }
}

@media (min-width: 640px) {
  .stack-card__photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .stack-card { padding: 10px; }
  .stack-card__photos { gap: 10px; }
  .stack-card__body { padding: clamp(18px, 1.8vw, 24px) clamp(12px, 1.4vw, 18px) clamp(18px, 1.8vw, 22px); }
  .stack-card__text { text-align: right; }
}

/* Cardurile se suprapun la derulare, la fel pe telefon și pe desktop */
@media (min-height: 640px) {
  .stack-card {
    position: sticky;
    top: calc(var(--nav-h) + 20px + var(--i, 0) * 20px);
  }
}

@media (max-width: 767px) and (min-height: 640px) {
  .stack-card { top: calc(var(--nav-h) + 12px + var(--i, 0) * 10px); }
}

.projects__more-title {
  margin: clamp(56px, 7vw, 104px) 0 clamp(20px, 2.4vw, 32px);
  font-size: clamp(1.375rem, 1.1rem + 0.9vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
}

/* „Și lista continuă”: mozaic de fotografii + bandă de înscriere */
.gallery {
  display: grid;
  gap: clamp(12px, 1.4vw, 16px);
}

.gallery__track {
  display: contents;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-lg);
  background: var(--g-150);
  isolation: isolate;
}

.gallery__figure { height: 100%; margin: 0; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(1, 32, 33, 0) 42%, rgba(1, 32, 33, 0.35) 62%, rgba(1, 32, 33, 0.86) 100%);
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  right: clamp(16px, 1.8vw, 24px);
  bottom: clamp(14px, 1.6vw, 22px);
  left: clamp(16px, 1.8vw, 24px);
  z-index: 1;
  color: var(--white);
}

.gallery__name {
  font-size: clamp(1rem, 0.94rem + 0.3vw, 1.1875rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: -0.015em;
}

.gallery__meta {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.875rem;
  line-height: 1.4;
}

.gallery__item--feature .gallery__name { font-size: clamp(1.375rem, 1.1rem + 1vw, 2rem); letter-spacing: -0.03em; }
.gallery__item--feature .gallery__meta { font-size: clamp(0.875rem, 0.84rem + 0.2vw, 1rem); }

@media (hover: hover) and (pointer: fine) {
  .gallery__item:hover img { transform: scale(1.05); }
}

/* Banda de înscriere: fotografie din showroom, text pe partea întunecată */
.gallery__cta {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  gap: clamp(18px, 2vw, 24px);
  overflow: hidden;
  padding: clamp(28px, 3.2vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--c-950);
  color: var(--white);
  isolation: isolate;
}

.gallery__cta-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
  transition: transform 1.4s var(--ease-out);
}

.gallery__cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* fotografia rămâne liberă sus, umbra intră doar sub text */
  background: linear-gradient(
    180deg,
    rgba(1, 32, 33, 0.06) 0%,
    rgba(1, 32, 33, 0) 22%,
    rgba(1, 32, 33, 0.52) 48%,
    rgba(1, 32, 33, 0.88) 100%
  );
}

@media (hover: hover) and (pointer: fine) {
  .gallery__cta:hover .gallery__cta-bg { transform: scale(1.04); }
}

.gallery__cta-title {
  max-width: 16ch;
  font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.125rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.gallery__cta-text {
  max-width: 36ch;
  margin-top: 10px;
  color: var(--g-300);
  font-size: clamp(0.9375rem, 0.9rem + 0.2vw, 1.0625rem);
  line-height: 1.5;
}

/* Mobil: fotografiile într-un carusel orizontal, banda de înscriere dedesubt */
@media (max-width: 599px) {
  .gallery { display: block; }
  .gallery__track {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding: 0 var(--gutter);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .gallery__track::-webkit-scrollbar { display: none; }
  .gallery__item {
    flex: 0 0 84%;
    aspect-ratio: 4 / 3;
    scroll-snap-align: start;
  }
  .js .gallery__track .reveal { opacity: 1; transform: none; }
  .gallery__cta { margin-top: 16px; min-height: 310px; }
  .gallery__cta-bg { object-position: 62% 50%; }
  /* pe telefon textul ocupă mai mult din card, așa că umbra începe mai sus */
  .gallery__cta::before {
    background: linear-gradient(
      180deg,
      rgba(1, 32, 33, 0.05) 0%,
      rgba(1, 32, 33, 0) 14%,
      rgba(1, 32, 33, 0.52) 30%,
      rgba(1, 32, 33, 0.9) 100%
    );
  }
}

/* Tabletă: 2 coloane, Fratelli pe toată lățimea */
@media (min-width: 600px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery__item--feature { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .gallery__cta { grid-column: 1 / -1; min-height: 260px; }
}

/* Desktop: 3 × 4, fără celule goale
   F F T
   F F B
   R H O
   A C C  */
@media (min-width: 1024px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gallery__item--feature {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
  }
  .gallery__cta {
    grid-column: span 2;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    min-height: 0;
  }
  .gallery__cta::before {
    background: linear-gradient(90deg, rgba(1, 32, 33, 0.94) 0%, rgba(1, 32, 33, 0.78) 48%, rgba(1, 32, 33, 0.2) 100%);
  }
  .gallery__cta .btn { flex: none; }
}

/* =========================================================
   CATEGORII (inspirat de „What we do”)
   ========================================================= */
.services__grid {
  display: grid;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.services__media {
  display: none;
  position: relative;
  overflow: hidden;
  aspect-ratio: 8 / 9;
  border-radius: var(--radius-lg);
  background: var(--g-150);
  box-shadow: 0 32px 64px -40px rgba(1, 32, 33, 0.45);
}

.services__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.6s var(--ease), transform 1.4s var(--ease-out);
}

.services__img.is-active {
  opacity: 1;
  transform: none;
}

.svc { border-bottom: 1px solid var(--g-300); }

.svc__heading { font-size: inherit; }

.svc__trigger {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 20px);
  width: 100%;
  min-height: clamp(72px, 7vw, 84px);
  padding: 14px 0;
  border: 0;
  background: none;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.svc__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--c-900);
}

.svc__icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svc__title {
  flex: 1;
  font-size: clamp(1.1875rem, 1rem + 0.55vw, 1.5rem);
  font-weight: 500;
  line-height: 1.34;
  letter-spacing: -0.02em;
  transition: color 0.25s var(--ease);
}

/* + care devine – la deschidere */
.svc__toggle {
  position: relative;
  flex: none;
  width: 24px;
  height: 24px;
}

.svc__toggle::before,
.svc__toggle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 24px;
  height: 1.5px;
  margin-top: -0.75px;
  border-radius: 1px;
  background: var(--c-950);
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}
.svc__toggle::after { transform: rotate(90deg); }
.svc.is-open .svc__toggle::after { transform: rotate(0deg); opacity: 0; }

@media (hover: hover) and (pointer: fine) {
  .svc:not(.is-open) .svc__trigger:hover .svc__title { color: var(--blue-700); }
}

.svc__panel { display: grid; }
.svc__inner { overflow: hidden; }

.svc__inner p {
  max-width: 52ch;
  padding: 0 clamp(0px, 3vw, 44px) 26px 0;
  color: var(--text-muted);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
}

.svc__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  margin-bottom: 24px;
  border-radius: var(--radius);
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
}

.js .svc__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.5s var(--ease-out), visibility 0s linear 0.5s;
}

.js .svc.is-open .svc__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.5s var(--ease-out), visibility 0s;
}

@media (min-width: 1024px) {
  .services__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .services__media { display: block; }
  .svc__img { display: none; }
}

/* =========================================================
   RECENZII
   ========================================================= */
.rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  color: var(--text-muted);
  font-size: 1rem;
}
.rating strong { color: var(--text); font-weight: 600; }
.rating__g { width: 22px; height: 22px; }

.reviews__rows {
  display: grid;
  gap: clamp(12px, 1.4vw, 20px);
}

.review-card {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 16px;
  width: clamp(284px, 28vw, 420px);
  margin-right: clamp(12px, 1.4vw, 20px);
  padding: clamp(22px, 2vw, 30px);
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  background: var(--g-50);
}
.review-card:nth-child(even) { background: var(--white); }

.review-card__stars {
  width: 96px;
  height: 17px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 116 20'%3E%3Cg fill='%230d546f'%3E%3Cpath id='s' d='M10 0l2.58 5.22 5.76.84-4.17 4.06.98 5.74L10 13.14 4.85 15.86l.98-5.74L1.66 6.06l5.76-.84z'/%3E%3Cuse href='%23s' x='24'/%3E%3Cuse href='%23s' x='48'/%3E%3Cuse href='%23s' x='72'/%3E%3Cuse href='%23s' x='96'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center / contain;
}

.review-card__text {
  flex: 1;
  color: var(--text);
  font-size: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  line-height: 1.6;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.review-card__author::after {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-left: auto;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M23.49 12.27c0-.79-.07-1.54-.19-2.27H12v4.51h6.47a5.57 5.57 0 0 1-2.4 3.58v3h3.86c2.26-2.09 3.56-5.17 3.56-8.82Z'/%3E%3Cpath fill='%2334A853' d='M12 24c3.24 0 5.95-1.08 7.93-2.91l-3.86-3c-1.08.72-2.45 1.16-4.07 1.16-3.13 0-5.78-2.11-6.73-4.96H1.29v3.09A12 12 0 0 0 12 24Z'/%3E%3Cpath fill='%23FBBC05' d='M5.27 14.29A7.2 7.2 0 0 1 4.89 12c0-.8.14-1.57.38-2.29V6.62H1.29A12 12 0 0 0 0 12c0 1.94.47 3.76 1.29 5.38l3.98-3.09Z'/%3E%3Cpath fill='%23EA4335' d='M12 4.75c1.77 0 3.35.61 4.6 1.8l3.42-3.42A11.5 11.5 0 0 0 12 0 12 12 0 0 0 1.29 6.62l3.98 3.09C6.22 6.86 8.87 4.75 12 4.75Z'/%3E%3C/svg%3E") no-repeat center / contain;
}

.avatar {
  display: grid;
  flex: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--c-900);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* =========================================================
   FAQ
   ========================================================= */
.faq__grid {
  display: grid;
  gap: 40px;
}

.faq__head .section-desc { margin-top: 16px; }
.faq__cta { margin-top: 28px; }

/* Pe telefon titlul, textul și butonul stau centrate deasupra întrebărilor */
@media (max-width: 767px) {
  .faq__head { text-align: center; }
  .faq__head .section-title { margin-inline: auto; }
  .faq__head .section-desc { max-width: 44ch; margin-inline: auto; }
}

@media (min-width: 1024px) {
  .faq__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 80px;
    align-items: start;
  }
  .faq__head { position: sticky; top: calc(var(--nav-h) + 40px); }
}

.accordion {
  display: grid;
  gap: 12px;
}

.acc-item {
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.acc-item.is-open {
  border-color: var(--g-300);
  box-shadow: 0 12px 32px -20px rgba(1, 32, 33, 0.35);
}

.acc-item__heading { font-size: inherit; }

.acc-item__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  min-height: 68px;
  padding: 18px clamp(18px, 2vw, 26px);
  border: 0;
  border-radius: var(--radius-lg);
  background: none;
  color: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: left;
  cursor: pointer;
}

.acc-item__icon {
  position: relative;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--g-50);
  transition: background-color 0.3s var(--ease), transform 0.4s var(--ease-out);
}

.acc-item__icon::before,
.acc-item__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--c-950);
  transition: transform 0.4s var(--ease-out);
}
.acc-item__icon::after { transform: rotate(90deg); }

.acc-item.is-open .acc-item__icon { background: var(--cta); transform: rotate(180deg); }
.acc-item.is-open .acc-item__icon::before,
.acc-item.is-open .acc-item__icon::after { background: var(--white); }
.acc-item.is-open .acc-item__icon::after { transform: rotate(0deg); }

@media (hover: hover) and (pointer: fine) {
  .acc-item:not(.is-open):hover { border-color: var(--g-300); }
  .acc-item:not(.is-open) .acc-item__trigger:hover .acc-item__icon { background: var(--g-150); }
}

.acc-item__panel { display: grid; }
.acc-item__inner { overflow: hidden; }
.acc-item__inner p {
  max-width: 62ch;
  padding: 0 clamp(18px, 2vw, 26px) 22px;
  color: var(--text-muted);
  line-height: 1.6;
}

.js .acc-item__panel {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s linear 0.45s;
}
.js .acc-item.is-open .acc-item__panel {
  grid-template-rows: 1fr;
  visibility: visible;
  transition: grid-template-rows 0.45s var(--ease-out), visibility 0s;
}

/* =========================================================
   FORMULAR
   ========================================================= */
.signup { background: var(--white); }

.signup__head .section-title { max-width: 20ch; }

.signup__perks {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.signup__perks li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 500;
}

@media (max-width: 599px) {
  /* bifele aliniate una sub alta, blocul rămâne centrat */
  .signup__perks {
    flex-direction: column;
    align-items: flex-start;
    width: fit-content;
    margin-inline: auto;
  }
}

.signup__perks svg {
  flex: none;
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--cta);
  fill: none;
  stroke: var(--white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pe telefon tot blocul de sus se aliniază la stânga, ca formularul de dedesubt */
@media (max-width: 767px) {
  .signup__head {
    justify-items: start;
    text-align: left;
    gap: 14px;
  }
  .signup__head .section-title { max-width: none; }
  .signup__head .section-desc { max-width: none; }
  .signup__perks {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-inline: 0;
    gap: 10px;
  }
}

.signup__grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}

.signup__media {
  display: none;
  position: relative;
  overflow: hidden;
  min-height: 100%;
  margin: 0;
  border-radius: var(--radius-lg);
  background: var(--g-150);
}

.signup__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 40% 50%;
}

@media (min-width: 1024px) {
  .signup__grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    min-height: clamp(600px, 70vh, 660px);
  }
  .signup__media { display: block; }
  .form-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

.form-card {
  --focus: var(--blue-700);
  --card-pad: clamp(22px, 4vw, 56px);
  padding: var(--card-pad);
  border: 1px solid var(--g-200);
  border-radius: var(--radius-lg);
  background: var(--white);
  color: var(--text);
  box-shadow: 0 28px 60px -40px rgba(1, 32, 33, 0.4);
}

.form-card .link { color: var(--blue-700); }

.form-card__head { margin-bottom: clamp(28px, 3vw, 40px); }

.form-card__title {
  font-size: clamp(1.5rem, 1.25rem + 0.7vw, 1.875rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.form-card__text {
  max-width: 56ch;
  margin-top: 6px;
  color: var(--text-muted);
  font-size: clamp(0.9375rem, 0.92rem + 0.1vw, 1rem);
  line-height: 1.5;
}

.form {
  display: grid;
  gap: clamp(24px, 2.6vw, 32px);
}

.form__grid {
  display: grid;
  gap: clamp(20px, 2.2vw, 28px) 20px;
}

@media (min-width: 640px) {
  .form__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.field {
  display: grid;
  align-content: start;
  gap: 8px;
}

.field__label {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.field__req {
  color: var(--err);
  font-weight: 600;
}

.field__control { position: relative; }

.field__input {
  width: 100%;
  min-height: 58px;
  padding: 0 44px 0 18px;
  border: 1px solid var(--g-200);
  border-radius: var(--radius);
  background: var(--g-50);
  color: var(--text);
  font-size: 1rem; /* 16px: iOS nu mai face zoom la focus */
  line-height: 1.3;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field__input::placeholder { color: rgba(53, 94, 95, 0.78); opacity: 1; }

@media (hover: hover) and (pointer: fine) {
  .field__input:hover { border-color: var(--g-400); }
}

.field__input:focus,
.field__input:focus-visible {
  outline: none;
  background: var(--white);
  border-color: var(--blue-700);
  box-shadow: 0 0 0 4px rgba(21, 168, 222, 0.28);
}

.field__select { padding-right: 48px; cursor: pointer; }
.field__select.is-empty { color: rgba(53, 94, 95, 0.9); }
.field__select option { color: var(--text); }

.field__chevron,
.field__ok {
  position: absolute;
  top: 50%;
  right: 14px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.field__chevron {
  stroke: var(--c-700);
  stroke-width: 2;
  transform: translateY(-50%);
}

.field__ok {
  stroke: var(--blue-700);
  stroke-width: 2.5;
  opacity: 0;
  transform: translateY(-50%) scale(0.5);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--ease-out);
}

.field.is-valid .field__ok { opacity: 1; transform: translateY(-50%) scale(1); }

.field.is-invalid .field__input {
  border-color: var(--err);
  background: var(--err-bg);
}
.field.is-invalid .field__input:focus { box-shadow: 0 0 0 4px oklch(0.637 0.237 25.331 / 0.18); }

.field__msg {
  display: none;
  gap: 6px;
  align-items: flex-start;
  color: var(--err);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
}

.field__msg::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center / contain no-repeat;
}

.field.is-invalid .field__msg,
.field.has-hint .field__msg { display: flex; }

.field.has-hint:not(.is-invalid) .field__msg { color: var(--blue-700); }

.field__suggest {
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue-700);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 4px;
}

.form__submit { position: relative; flex: none; min-width: 240px; }
.form__footer .form__legal { flex: 1 1 260px; }
.form.is-loading .form__submit-icon { display: none; }

.spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.form.is-loading .spinner { display: inline-block; }
.form.is-loading .form__submit { pointer-events: none; opacity: 0.85; }

@keyframes spin { to { transform: rotate(360deg); } }

.form__status {
  color: var(--err);
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
}
.form__status:empty { display: none; }

.form__legal {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.form__legal svg {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Pe partener.sensodays.ro confirmarea de trimitere vine de la platformă (.lp-success).
   Eroarea de trimitere o afișăm noi sub buton, așa că o ascundem pe a platformei. */
.has-own-feedback .lp-err { display: none !important; }


/* Titluri: echilibrăm rândurile, ca să nu rămână un cuvânt singur la final */
.hero__title,
.section-title,
.partner__title,
.stack-card__title,
.gallery__name,
.gallery__cta-title,
.form-card__title,
.acc-item__trigger { text-wrap: balance; }

.form-card__text { text-wrap: pretty; }


/* Laptop mic (1024-1199): coloane puțin mai late, ca titlurile să nu rămână cu un cuvânt pe ultimul rând */
@media (min-width: 1024px) and (max-width: 1199px) {
  .faq__grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 56px; }
  .partner__list { column-gap: 20px; }
  .partner__item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .partner__icon { width: 44px; height: 44px; }
  .partner__icon svg { width: 20px; height: 20px; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  padding-block: clamp(48px, 6vw, 72px) calc(28px + env(safe-area-inset-bottom));
  background: var(--c-950);
  color: var(--g-300);
  font-size: 0.9375rem;
}

.footer__grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__logo { display: inline-flex; margin: -8px; padding: 8px; border-radius: var(--radius); }
.footer__logo img { width: auto; height: 24px; }

.footer__contact {
  display: grid;
  gap: 6px;
  font-style: normal;
  line-height: 1.5;
}

.footer__contact .link { justify-self: start; font-weight: 600; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  color: var(--g-400);
  font-size: 0.875rem;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  .footer__contact { text-align: right; }
  .footer__contact .link { justify-self: end; }
}

/* =========================================================
   CTA FLOTANT (mobil)
   ========================================================= */
.float-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  padding: 0 max(16px, env(safe-area-inset-right)) calc(14px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  pointer-events: none;
  opacity: 0;
  transform: translateY(calc(100% + 16px));
  transition: transform 0.45s var(--ease-out), opacity 0.3s var(--ease);
}

.float-cta .btn { box-shadow: 0 14px 34px -10px rgba(1, 32, 33, 0.6), 0 0 0 1px rgba(1, 32, 33, 0.08); }

.float-cta.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: none;
}

@media (min-width: 768px) {
  .float-cta { display: none; }
}

/* =========================================================
   MOBIL: butoane pe toată lățimea, unul sub altul
   ========================================================= */
@media (max-width: 767px) {
  .btn { width: 100%; }
  .btn-group { flex-direction: column; }
  .footer__bottom { flex-direction: column; }
}

/* =========================================================
   ANIMAȚII DE APARIȚIE
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js .reveal--scale { transform: translate3d(0, 28px, 0) scale(0.97); }

.js .reveal.is-in {
  opacity: 1;
  transform: none;
}

.js [data-split] .word {
  display: inline-block;
  opacity: 0;
  filter: blur(8px);
  transform: translate3d(0, 0.35em, 0);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out), filter 0.9s var(--ease-out);
  transition-delay: calc(var(--w, 0) * 45ms);
}

.js [data-split].is-in .word {
  opacity: 1;
  filter: blur(0);
  transform: none;
}

.js .hero__img {
  transform: scale(1.08);
  transition: transform 2s var(--ease-out);
}
.js .hero__media.is-in .hero__img { transform: scale(1); }

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

  .js .reveal,
  .js .reveal--scale,
  .js [data-split] .word,
  .js .hero__img,
  .js .cat img {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .marquee {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
    scrollbar-width: thin;
  }
  .marquee .marquee__track { animation: none !important; }

  .hero-review__slide,
  .acc-item__panel,
  .nav,
  .float-cta { transition-duration: 0.01ms !important; }
}

/* =========================================================
   TELEFON: distanțe mai mici între secțiuni
   ========================================================= */
@media (max-width: 767px) {
  .section-head { margin-bottom: 28px; }
  .brands { padding-block: 34px; }
  .hero { padding-bottom: 40px; }
  .projects__more-title { margin-top: 40px; margin-bottom: 18px; }
  .footer { padding-block: 40px calc(24px + env(safe-area-inset-bottom)); }
}
