:root {
  --navy: #14245C;
  --navy-dark: #0B1640;
  --navy-soft: #1E3175;
  --accent: #F2B705;
  --text: #1A1F2E;
  --muted: #4A5266;
  --line: #E4E7EE;
  --line-strong: #C9CFDC;
  --bg-alt: #F5F6FA;
  --eyebrow: #8A6400;
  --on-dark: #D5DBEE;
  --radius: 14px;
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.1;
}

p {
  margin: 0;
}

a {
  color: var(--navy);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 100;
  background: #fff;
  padding: 8px 12px;
}

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

/* Butoane */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 22px;
  border-radius: 8px;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn--lg {
  padding: 16px 28px;
}

.btn--block {
  width: 100%;
}

.btn--accent {
  background: var(--accent);
  color: var(--navy-dark);
}

.btn--accent:hover {
  background: #FFC926;
  color: var(--navy-dark);
}

.btn--ghost {
  color: #fff;
  border-color: #5B6BA3;
}

.btn--ghost:hover {
  background: var(--navy-soft);
  color: #fff;
}

.btn--outline {
  color: var(--navy);
  border-color: var(--navy);
  background: #fff;
}

/* Bara de sus */
.topbar {
  background: var(--navy-dark);
  color: #DCE2F2;
  font-size: 14px;
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.topbar__group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
}

.topbar__item .icon {
  width: 16px;
  height: 16px;
}

a.topbar__item:hover {
  text-decoration: underline;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy);
  text-decoration: none;
}

.logo__star {
  width: 44px;
  height: 44px;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 28px;
  letter-spacing: 0.04em;
}

.brand__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.brand__address,
.brand__fb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
  line-height: 1.3;
}

.brand__address .icon {
  width: 18px;
  height: 18px;
  color: var(--navy);
}

.brand__fb {
  padding-left: 24px;
  color: var(--navy);
  font-weight: 600;
}

.icon--sm {
  width: 14px;
  height: 14px;
}

.brand__address:hover,
.brand__fb:hover {
  color: var(--navy);
  text-decoration: underline;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px 32px;
  font-weight: 500;
}

.nav a:not(.btn) {
  padding: 10px 0;
  text-decoration: none;
}

.nav a:not(.btn):hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

/* Hero */
.hero {
  background: var(--navy);
  color: #fff;
}

.hero__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 56px;
  padding-top: 88px;
  padding-bottom: 88px;
}

.hero__text {
  flex: 1 1 480px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.05;
}

.hero__lead {
  max-width: 540px;
  font-size: 19px;
  color: var(--on-dark);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* Slider cu poze în hero */
.slider {
  position: relative;
  flex: 1 1 460px;
  min-width: 0;
  height: 440px;
  border-radius: 16px;
  overflow: hidden;
  background: var(--navy-dark);
  touch-action: pan-y;
}

.slider__track,
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
}

.slide {
  animation: slide-in 0.35s ease;
}

.slide[hidden] {
  display: none;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 20px 52px;
  background: linear-gradient(to top, rgba(11, 22, 64, 0.85), rgba(11, 22, 64, 0));
  color: #fff;
  font-weight: 600;
  font-size: 16px;
}

@keyframes slide-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.slider__btn:hover {
  background: #fff;
}

.slider__btn .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.slider__btn--prev {
  left: 14px;
}

.slider__btn--next {
  right: 14px;
}

.slider__dots {
  position: absolute;
  left: 20px;
  bottom: 18px;
  display: flex;
  gap: 2px;
}

.slider__dot {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider__dot::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.slider__dot[aria-current="true"]::before {
  width: 22px;
  border-radius: 5px;
  background: var(--accent);
}

.slider__count {
  position: absolute;
  right: 20px;
  bottom: 20px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* Placeholder pentru poze */
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  background: repeating-linear-gradient(135deg, #E3E7F0 0 14px, #EDF0F6 14px 28px);
}

.ph--dark {
  color: #C9D2EE;
  background: repeating-linear-gradient(135deg, var(--navy-soft) 0 14px, #22387F 14px 28px);
}

/* Etichete mici */
.eyebrow {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.eyebrow--accent {
  color: var(--accent);
}

/* Repere */
.facts {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  padding-top: 36px;
  padding-bottom: 36px;
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 30px;
  color: var(--navy);
}

.fact span {
  font-size: 15px;
  color: var(--muted);
}

/* Secțiuni */
.section {
  padding: 96px 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section--tight {
  padding: 80px 0;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.section__head h2 {
  margin-top: 10px;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
}

.section__head p {
  max-width: 440px;
  color: var(--muted);
}

.section__head .h2--small {
  margin-top: 0;
  font-size: 32px;
}

.link-strong {
  font-weight: 600;
}

/* Carduri servicii */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 20px rgba(11, 22, 64, 0.08);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: #EEF1FA;
  color: var(--navy);
}

.card__icon .icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.8;
}

.card h3 {
  font-weight: 700;
  font-size: 22px;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

.card__more {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
}

/* Pași */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.step {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px;
  border-radius: var(--radius);
  background: #fff;
}

.step__nr {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 36px;
  color: var(--navy);
}

.step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 18px;
  color: var(--text);
}

.step p {
  font-size: 15px;
  color: var(--muted);
}

/* Portofoliu */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.filter:hover {
  border-color: var(--navy);
}

.filter.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 600;
}

.filter span {
  margin-left: 4px;
  opacity: 0.75;
  font-weight: 400;
}

/* Categoriile de catalog pe homepage */
.cat-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.cat-card {
  position: relative;
  display: block;
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: var(--navy-dark);
}

.cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cat-card:hover img {
  transform: scale(1.04);
}

.cat-card__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 56px 20px 20px;
  background: linear-gradient(to top, rgba(11, 22, 64, 0.92), rgba(11, 22, 64, 0));
}

.cat-card__body strong {
  font-family: var(--font-head);
  font-size: 21px;
  line-height: 1.2;
}

.cat-card__body span {
  font-size: 14px;
  color: var(--on-dark);
}

/* Pagina de catalog */
.nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.page-head {
  background: var(--navy);
  color: #fff;
}

.page-head .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 64px;
  padding-bottom: 56px;
}

.page-head h1 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 52px);
}

.page-head p {
  max-width: 620px;
  font-size: 18px;
  color: var(--on-dark);
}

.section--catalog {
  padding-top: 40px;
}

.catalog-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 28px;
}

.gallery__count {
  font-size: 15px;
  color: var(--muted);
}

.gallery {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.gallery__item[hidden] {
  display: none;
}

.gallery__item a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-alt);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery__item a:hover img {
  transform: scale(1.04);
}

.catalog-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-top: 64px;
  padding: 40px;
  border-radius: 16px;
  background: var(--bg-alt);
}

.catalog-cta h2 {
  font-size: 30px;
  font-weight: 800;
}

.catalog-cta p {
  color: var(--muted);
}

.catalog-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Lightbox */
.no-scroll {
  overflow: hidden;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(8, 12, 30, 0.97);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__stage {
  position: absolute;
  inset: 64px 80px 72px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 6px;
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  cursor: pointer;
}

.lightbox__close {
  top: 12px;
  right: 16px;
}

.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__prev {
  left: 16px;
}

.lightbox__next {
  right: 16px;
}

.lightbox__close .icon,
.lightbox__nav .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2.4;
}

.lightbox__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 24px;
  color: #fff;
  font-size: 15px;
  pointer-events: none;
}

.lightbox__caption {
  font-weight: 600;
}

/* Noutăți */
.news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.news__item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
}

.news__item time {
  font-size: 13px;
  color: var(--muted);
}

.news__item h3 {
  font-weight: 700;
  font-size: 20px;
}

.news__item p {
  font-size: 15px;
  color: var(--muted);
}

/* Ofertă */
.offer {
  background: var(--navy);
  color: #fff;
}

.offer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  padding-top: 96px;
  padding-bottom: 96px;
}

.offer__info {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer h2 {
  color: #fff;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
}

.offer__lead {
  font-size: 18px;
  color: var(--on-dark);
}

.offer__phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 28px;
  text-decoration: none;
}

.offer__phone .icon {
  width: 26px;
  height: 26px;
  color: var(--accent);
}

.offer__link {
  color: #fff;
  font-size: 17px;
}

.offer__map {
  display: block;
  width: 100%;
  border: 0;
  height: 240px;
  margin-top: 8px;
  border-radius: 12px;
}

/* Formular */
.form {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 36px;
  border-radius: 16px;
  background: #fff;
  color: var(--text);
}

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
}

.form input,
.form select,
.form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.form input[type="file"] {
  font-size: 14px;
  padding: 8px 0;
  border: 0;
}

.form textarea {
  resize: vertical;
}

.form .is-invalid {
  border-color: #B42318;
}

.form__status {
  font-size: 15px;
  color: var(--muted);
}

.form__status.is-error {
  color: #B42318;
}

.form__status.is-ok {
  color: #067647;
}

/* Footer */
.footer {
  background: var(--navy-dark);
  color: #C9D2EE;
  font-size: 15px;
}

.footer a {
  color: #C9D2EE;
}

.footer a:hover {
  color: #fff;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  padding-top: 56px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 0.04em;
  color: #fff;
}

.footer__title {
  font-weight: 600;
  color: #fff;
}

.footer__legal a {
  color: #C9D2EE;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px;
  padding: 20px 0 32px;
  border-top: 1px solid #26346A;
  font-size: 14px;
}

/* Bară fixă mobil */
.mobile-bar {
  display: none;
}

/* Tabletă */
@media (max-width: 1080px) {
  .brand__address span {
    max-width: 180px;
  }
}

/* Mobil */
@media (max-width: 900px) {
  .container {
    padding: 0 20px;
  }

  .topbar {
    display: none;
  }

  .header__inner {
    flex-wrap: wrap;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .brand {
    gap: 12px;
  }

  .logo__star {
    width: 34px;
    height: 34px;
  }

  .logo__text {
    font-size: 22px;
  }

  .brand__meta {
    padding-left: 12px;
  }

  .brand__address,
  .brand__fb {
    font-size: 13px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 8px;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a:not(.btn) {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav .btn {
    margin-top: 12px;
  }

  .hero__inner {
    gap: 28px;
    padding-top: 36px;
    padding-bottom: 40px;
  }

  .hero__text {
    flex-basis: 100%;
    gap: 18px;
  }

  .hero__lead {
    font-size: 16px;
  }

  .slider {
    flex-basis: 100%;
    height: 300px;
  }

  .slider__btn {
    width: 44px;
    height: 44px;
  }

  .slider__btn--prev {
    left: 10px;
  }

  .slider__btn--next {
    right: 10px;
  }

  .slide figcaption {
    font-size: 15px;
    padding: 40px 16px 48px;
  }

  .section {
    padding: 56px 0;
  }

  .section__head {
    margin-bottom: 24px;
  }

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

  .cat-card {
    height: 220px;
  }

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

  .page-head .container {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .page-head p {
    font-size: 16px;
  }

  .catalog-cta {
    padding: 24px;
  }

  .lightbox__stage {
    inset: 64px 8px 72px;
  }

  .lightbox__nav {
    top: auto;
    bottom: 8px;
    transform: none;
  }

  .lightbox__prev {
    left: 12px;
  }

  .lightbox__next {
    right: 12px;
  }

  .lightbox__bar {
    padding: 0 72px;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    font-size: 14px;
    text-align: center;
  }

  .offer__inner {
    gap: 32px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .form {
    padding: 20px;
  }

  .footer {
    padding-bottom: 72px;
  }

  .mobile-bar {
    display: flex;
    gap: 10px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    padding: 12px 16px;
    background: #fff;
    border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(11, 22, 64, 0.08);
  }

  .mobile-bar .btn {
    flex: 1;
  }

  .mobile-bar .btn--accent {
    flex: 1.4;
  }
}

/* Telefon îngust: adresa trece sub logo */
@media (max-width: 480px) {
  .brand {
    flex: 1 1 0;
    flex-wrap: wrap;
    gap: 2px 16px;
  }

  .brand__meta {
    display: contents;
  }

  .brand__fb {
    order: 2;
    padding-left: 0;
  }

  .brand__address {
    order: 3;
    flex-basis: 100%;
  }

  .brand__address span {
    max-width: none;
  }

  .header__inner {
    align-items: flex-start;
    column-gap: 12px;
  }
}

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

  .slide {
    animation: none;
  }
}

/* Pagina Termeni și condiții */
.legal__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 32px 64px;
}

.legal__toc {
  flex: 0 1 220px;
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px;
  border-radius: 12px;
  background: var(--bg-alt);
  font-size: 15px;
}

.legal__toc a {
  padding: 6px 0;
  text-decoration: none;
}

.legal__toc a:hover {
  text-decoration: underline;
}

.legal__text {
  flex: 999 1 560px;
  min-width: 0;
  max-width: 760px;
}

.legal__text h2 {
  margin: 40px 0 14px;
  font-size: 26px;
  font-weight: 800;
  scroll-margin-top: 100px;
}

.legal__text h2:first-child {
  margin-top: 0;
}

.legal__text p {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.7;
}

/* Notă sub galerie */
.gallery__note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .legal__toc {
    position: static;
    flex-basis: 100%;
  }
}
