/* Homepage landing — loaded only on page-home (see app/layout.php) */

.page-home {
  --lp-radius: 18px;
  --lp-radius-sm: 14px;
  --lp-card: #1b1f25;
  --lp-card-hover: #20252c;
  --lp-line: #2c323a;
}

.lp-head {
  max-width: 46rem;
  margin-bottom: 2.25rem;
}

.lp-head .section-lead {
  margin-bottom: 0;
}

/* ---------- Hero: full-bleed photo, single H1 ---------- */
.lp-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: min(calc(100svh - var(--header-h) - var(--topbar-h)), 860px);
  padding: 5rem 0 2rem;
  overflow: hidden;
  background: #0d0f12;
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 55%;
}

.lp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 14, 17, 0.96) 0%, rgba(12, 14, 17, 0.86) 38%, rgba(12, 14, 17, 0.35) 70%, rgba(12, 14, 17, 0.15) 100%),
    linear-gradient(0deg, rgba(12, 14, 17, 0.95) 0%, rgba(12, 14, 17, 0) 40%);
}

.lp-hero__inner {
  flex: 1;
  display: flex;
  align-items: center;
}

.lp-hero__content {
  max-width: 40rem;
}

.lp-hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 5.2vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: #fff;
  text-wrap: balance;
}

.lp-hero__accent {
  color: var(--accent);
}

.lp-hero__lead {
  margin: 0 0 1.5rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: #d3d7dc;
}

.lp-hero__points {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.lp-hero__points li {
  position: relative;
  padding-left: 1.85rem;
  color: #eef0f2;
  font-weight: 500;
}

.lp-hero__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center / 0.8rem no-repeat;
}

.lp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.lp-hero__actions .btn-lg {
  --bs-btn-padding-x: 1.6rem;
  --bs-btn-font-size: 1rem;
  min-height: 3.25rem;
}

.lp-hero__note {
  margin: 1rem 0 0;
  font-size: 0.875rem;
  color: #aab0b7;
}

.lp-hero__stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  border-radius: var(--lp-radius);
  background: rgba(14, 16, 20, 0.7);
  backdrop-filter: blur(10px);
}

.lp-hero__stats li + li {
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.lp-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  padding: 1.1rem 1.35rem;
  color: var(--text);
}

.lp-stat--link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.lp-stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  line-height: 1.2;
  color: #fff;
}

.lp-stat__star {
  color: #fbbf24;
}

.lp-stat__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Task cards (entry points to landings) ---------- */
.lp-tasks__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.lp-task {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: var(--lp-radius);
  background: var(--lp-card);
  color: var(--text);
  transition: border-color 0.2s ease;
}

.lp-task:hover {
  color: var(--text);
  border-color: var(--accent);
}

.lp-task__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: #0f1114;
}

.lp-task__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.lp-task:hover .lp-task__img {
  transform: scale(1.05);
}

.lp-task__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.1rem 1.15rem 1.15rem;
}

.lp-task__title {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}

.lp-task__text {
  flex: 1;
  margin: 0 0 1rem;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.lp-task__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.85rem;
  border-top: 1px solid var(--lp-line);
}

.lp-task__price {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #fff;
}

.lp-task__arrow {
  color: var(--accent);
  font-size: 1.15rem;
  transition: transform 0.2s ease;
}

.lp-task:hover .lp-task__arrow {
  transform: translateX(4px);
}

/* ---------- Steps ---------- */
.lp-steps__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: lp-step;
}

.lp-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  border-radius: var(--lp-radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055) 0%, rgba(255, 255, 255, 0.015) 100%);
  counter-increment: lp-step;
}

.lp-step::before {
  content: counter(lp-step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 4.2vw, 3.75rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.lp-step__title {
  margin: 0 0 0.55rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.lp-step__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Prices ---------- */
.lp-prices__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.lp-prices__list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--light-line);
}

.lp-prices__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--light-line);
}

.lp-prices__name {
  color: var(--light-text);
}

.lp-prices__value {
  flex-shrink: 0;
  font-weight: 600;
  white-space: nowrap;
  color: var(--light-text);
}

.lp-prices__card {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 2rem;
  border-radius: var(--lp-radius);
  background: #15181c;
  color: var(--text);
}

.lp-prices__card p {
  margin: 0 0 0.5rem;
  color: var(--text-muted);
}

.lp-prices__card .lp-prices__card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
}

/* Dark card inside a light section: secondary button = the standard dark-surface secondary */
.section--light .lp-prices__card .btn-outline-light {
  --bs-btn-color: var(--text);
  --bs-btn-bg: var(--bg-elevated);
  --bs-btn-border-color: #4a515b;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #22262c;
  --bs-btn-hover-border-color: #8b929b;
}

/* ---------- Workshop ---------- */
.lp-workshop__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 3.5rem;
  align-items: center;
}

.lp-workshop__text p {
  color: #c4c9cf;
}

.lp-workshop__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.lp-workshop__media > :last-child {
  margin-top: 2.5rem;
}

.lp-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.75rem 0 1.5rem;
  padding: 0;
  list-style: none;
}

.lp-facts li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--accent);
}

.lp-facts__value {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
}

.lp-facts__label {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ---------- Works ---------- */
.lp-works__ba {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.lp-works__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.lp-works__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--lp-radius-sm);
  background: #0f1114;
}

.lp-works__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.lp-works__item:hover .lp-works__img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* ---------- Geo ---------- */
.lp-geo__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 3rem;
  align-items: stretch;
}

.lp-geo__cities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
}

.lp-geo__cities li {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--lp-card);
  font-size: 0.875rem;
  font-weight: 500;
}

.lp-geo__contacts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1.25rem;
  margin: 0 0 1.75rem;
}

.lp-geo__contacts dt {
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.lp-geo__contacts dd {
  margin: 0;
}

.lp-geo__map {
  min-height: 380px;
  overflow: hidden;
  border-radius: var(--lp-radius);
  background: var(--lp-card);
}

.lp-geo__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 380px;
  border: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .lp-tasks__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .lp-hero {
    min-height: 0;
    padding-top: 3.5rem;
  }

  .lp-hero::before {
    background: linear-gradient(0deg, rgba(12, 14, 17, 0.97) 0%, rgba(12, 14, 17, 0.82) 55%, rgba(12, 14, 17, 0.55) 100%);
  }

  .lp-hero__stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-hero__stats li:nth-child(3) {
    border-left: 0;
  }

  .lp-hero__stats li:nth-child(n + 3) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .lp-tasks__grid,
  .lp-steps__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-prices__layout,
  .lp-workshop__layout,
  .lp-geo__layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .lp-prices__card {
    position: static;
  }

  .lp-works__ba {
    grid-template-columns: 1fr;
  }

  .lp-works__ba .photo-slot {
    aspect-ratio: 16 / 7 !important;
  }

  .lp-works__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .lp-hero {
    padding: 2.5rem 0 1.5rem;
  }

  .lp-hero__lead {
    font-size: 1rem;
  }

  .lp-hero__actions .btn {
    width: 100%;
  }

  .lp-stat {
    padding: 0.9rem 1rem;
  }

  .lp-stat__value {
    font-size: 1.1rem;
  }

  .lp-tasks__grid {
    grid-template-columns: 1fr;
  }

  .lp-task {
    flex-direction: row;
  }

  .lp-task__media {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }

  .lp-task__body {
    padding: 0.9rem 1rem;
  }

  .lp-task__text {
    margin-bottom: 0.65rem;
    font-size: 0.8125rem;
  }

  .lp-task__foot {
    padding-top: 0.6rem;
  }

  .lp-steps__list,
  .lp-facts {
    grid-template-columns: 1fr;
  }

  /* Steps: compact rows — number on the left, title + text on the right */
  .lp-steps__list {
    gap: 0.6rem;
  }

  .lp-step {
    display: grid;
    grid-template-columns: 2.6rem minmax(0, 1fr);
    column-gap: 0.85rem;
    align-items: start;
    padding: 1rem 1.1rem;
  }

  .lp-step::before {
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 1.9rem;
    line-height: 1;
  }

  .lp-step__title {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    line-height: 1.3;
  }

  .lp-step__text {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .lp-workshop__media {
    grid-template-columns: 1fr;
  }

  .lp-workshop__media > :last-child {
    margin-top: 0;
  }

  .lp-workshop__media .photo-slot {
    aspect-ratio: 4 / 3 !important;
  }

  .lp-works__ba .photo-slot {
    aspect-ratio: 4 / 3 !important;
  }

  .lp-works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lp-prices__row {
    flex-direction: column;
    gap: 0.2rem;
  }

  .lp-prices__card {
    padding: 1.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lp-task,
  .lp-task__img,
  .lp-task__arrow,
  .lp-works__img {
    transition: none;
  }
}

/* ---------- Light rhythm: two light tones (grey / paper) between dark blocks ----------
   No borders, no shadows: cards are white and separate from the section by tone only. */
.page-home .section--light {
  --lp-card: #fff;
  border-block: 0;
}

.page-home .section--paper {
  --light-bg: #f1f3f5;
  --light-line: #dde0e5;
}

.page-home .section.section--light {
  padding-block: var(--space-section);
}

.page-home .section-title {
  letter-spacing: -0.01em;
}

/* Task cards: hairline appears only on hover */
.section--light .lp-task {
  background: #fff;
  color: var(--light-text);
}

.section--light .lp-task:hover {
  color: var(--light-text);
}

.section--light .lp-task__media {
  background: #e6e8ec;
}

.section--light .lp-task__text {
  color: var(--light-muted);
}

.section--light .lp-task__price {
  color: var(--light-text);
}

.section--light .lp-task__foot {
  border-top-color: #e6e8ec;
}

/* Steps */
.section--light .lp-step {
  background: #fff;
}

.section--light .lp-step__title {
  color: var(--light-text);
}

.section--light .lp-step__text {
  color: var(--light-muted);
}

/* Works gallery */
.section--light .lp-works__item {
  background: #cfd3d9;
}

/* Brands: logos come on white backgrounds, tiles stay white */
.page-home .brand-tile {
  border-radius: var(--lp-radius-sm);
}

/* Reviews */
.page-home .review-card {
  border-radius: var(--lp-radius);
}

/* Photo placeholders follow the same radius */
.page-home .photo-slot {
  border-radius: var(--lp-radius);
}

/* Geo */
.section--light .lp-geo__contacts dt {
  color: var(--light-muted);
}
