/* ===== LAWN PAGE — DESKTOP ===== */

/* Block 2: Что мы делаем */
.lawn-services {
  background: var(--color-surface-alt);
  padding: var(--padding-y) var(--padding-x);
}
.lawn-services__buttons { display: flex; gap: 12px; }
.lawn-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.lawn-services__card { display: flex; flex-direction: column; gap: 16px; }
.lawn-services__photo-wrap { position: relative; width: 100%; aspect-ratio: 1 / 1; }
.lawn-services__photo {
  width: 100%; height: 100%; object-fit: cover;
  border-radius: var(--radius-card);
}
.lawn-services__badge {
  position: absolute; left: 17px; bottom: 28px;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  color: var(--color-primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.lawn-services__card h3 { font-size: var(--fs-lead); font-weight: 700; }
.lawn-services__card p { font-size: var(--fs-small); color: var(--color-text-secondary); line-height: 1.5; }

/* Block 3: Прайс */
.lawn-price {
  background: var(--color-white);
  padding: var(--padding-y) var(--padding-x);
}
.lawn-price__sub {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  max-width: 800px;
  margin-top: 8px;
  margin-bottom: 40px;
}
.lawn-price__rows { display: flex; flex-direction: column; }
.lawn-price__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-small);
}
.lawn-price__work { flex: 1; }
.lawn-price__unit { width: 80px; text-align: center; color: var(--color-text-secondary); }
.lawn-price__val { width: 160px; text-align: right; font-weight: 700; }
.lawn-price__cta { display: inline-block; margin-top: 32px; padding: 16px 32px; border-radius: 8px; }

/* Block 4: Риски */
.lawn-risks {
  position: relative;
  background: var(--color-primary-dark);
  padding: 64px 0 80px;
  overflow: hidden;
}
.lawn-risks__bg { position: absolute; top: 0; left: 0; width: 100%; height: 380px; object-fit: cover; }
.lawn-risks__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 380px;
  background: linear-gradient(to bottom, rgba(9,90,51,.7), rgba(9,90,51,.95));
}
.lawn-risks__content { position: relative; z-index: 2; margin-bottom: 50px; }
.lawn-risks__grid {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0 var(--padding-x);
}
.lawn-risks__stack { position: relative; }
.lawn-risks__backing {
  position: absolute; inset: 0;
  border-radius: var(--radius-card);
  background: var(--color-primary);
  height: calc(100% + 5px);
}
.lawn-risks__card {
  position: relative;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lawn-risks__badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fdeaea;
  display: flex; align-items: center; justify-content: center;
}
.lawn-risks__card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lawn-risks__card p { font-size: 13px; color: var(--color-primary); line-height: 1.4; }

/* Block 6: Галерея */
.lawn-gallery {
  background: var(--color-surface-alt);
  padding: var(--padding-y) 0;
}
.lawn-gallery__sub {
  font-size: var(--fs-body);
  color: var(--color-text-secondary);
  max-width: 760px;
  margin-top: 10px;
}
.lawn-gallery__mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 280px);
  gap: 24px;
}
.lawn-gallery__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.lawn-gallery__photo--1 { grid-column: 1; grid-row: 1; }
.lawn-gallery__photo--2 { grid-column: 2; grid-row: 1; }
.lawn-gallery__photo--3 { grid-column: 3 / 5; grid-row: 1; }
.lawn-gallery__photo--4 { grid-column: 1 / 3; grid-row: 2; }
.lawn-gallery__photo--5 { grid-column: 3; grid-row: 2; }
.lawn-gallery__photo--6 { grid-column: 4; grid-row: 2; }
.lawn-gallery__btn { display: inline-block; margin-top: 32px; padding: 14px 32px; border-radius: 8px; }


/* ===== LAWN PAGE — MOBILE ===== */

.lawn-mob-hero { height: 700px; }
.lawn-mob-hero__bg, .mob-hero__bg { width: 100%; height: 100%; object-fit: cover; }
.lawn-mob-hero__gradient {
  position: absolute; left: 0; right: 0; bottom: 0; height: 350px;
  background: linear-gradient(to top, rgba(2,18,10,.9), rgba(2,18,10,0));
}

.mob-lawn-services { display: flex; flex-direction: column; gap: 16px; }
.mob-lawn-card {
  background: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,.04);
}
.mob-lawn-card__photo { width: 100%; height: 200px; object-fit: cover; display: block; }
.mob-lawn-card__info { padding: 16px 20px 20px; }
.mob-lawn-card__info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mob-lawn-card__info p { font-size: 14px; color: var(--color-text-secondary); line-height: 1.4; }

.mob-lawn-price { display: flex; flex-direction: column; }
.mob-lawn-price__row { padding: 12px 0; border-bottom: 1px solid var(--color-border); }
.mob-lawn-price__top { display: flex; justify-content: space-between; align-items: center; }
.mob-lawn-price__work { font-size: 14px; font-weight: 600; }
.mob-lawn-price__val { font-size: 14px; font-weight: 700; color: var(--color-primary); }
.mob-lawn-price__unit { font-size: 12px; color: var(--color-text-secondary); }

.mob-lawn-risks { position: relative; overflow: hidden; background: var(--color-white); }
.mob-lawn-risks__bg { position: absolute; top: 0; left: 0; width: 100%; height: 350px; object-fit: cover; }
.mob-lawn-risks__overlay {
  position: absolute; top: 0; left: 0; width: 100%; height: 350px;
  background: linear-gradient(to bottom, rgba(9,90,51,.7), rgba(9,90,51,.95));
}
.mob-lawn-risks__head { position: relative; z-index: 2; padding: 30px 20px 0; }
.mob-lawn-risks__head h2 { margin-top: 4px; }
.mob-lawn-risks__cards {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: 18px;
  padding: 20px 20px 40px;
}
.mob-lawn-risks__card {
  background: var(--color-white);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
}
.mob-lawn-risks__badge {
  width: 40px; height: 40px; border-radius: 50%;
  background: #fdeaea;
  display: flex; align-items: center; justify-content: center;
}
.mob-lawn-risks__card h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.mob-lawn-risks__card p { font-size: 13px; color: var(--color-primary); line-height: 1.4; }

.mob-lawn-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mob-lawn-gallery__photo { width: 100%; height: 160px; object-fit: cover; border-radius: 16px; }
.mob-lawn-gallery__photo--wide { grid-column: 1 / 3; height: 160px; }

/* ===== LIGHTBOX ===== */
.lawn-lightbox {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(2,18,10,.92);
  display: none; align-items: center; justify-content: center;
}
.lawn-lightbox.active { display: flex; }
.lawn-lightbox__img-wrap { max-width: 90vw; max-height: 85vh; display: flex; align-items: center; justify-content: center; }
.lawn-lightbox__img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; display: block; }
.lawn-lightbox__close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; opacity: .7;
  transition: opacity .2s;
}
.lawn-lightbox__close:hover { opacity: 1; }
.lawn-lightbox__prev, .lawn-lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff; font-size: 48px;
  cursor: pointer; padding: 8px 20px; border-radius: 6px; line-height: 1;
  transition: background .2s;
}
.lawn-lightbox__prev { left: 24px; }
.lawn-lightbox__next { right: 24px; }
.lawn-lightbox__prev:hover, .lawn-lightbox__next:hover { background: rgba(255,255,255,.2); }
.lawn-lightbox__counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-family: Manrope, sans-serif; font-size: 14px;
}

/* ===== GALLERY PHOTO HOVER ===== */
.lawn-gallery-photo { transition: transform .25s, filter .25s; }
.lawn-gallery-photo:hover { transform: scale(1.03); filter: brightness(1.05); }

/* ===== HOVER: CTA buttons & cards ===== */
[data-pencil-name="CTA Button"][class*="viewall"]:hover,
[data-pencil-name="Btn Смотреть все"]:hover { opacity: .88; transform: translateY(-1px); transition: opacity .2s, transform .2s; }
[data-popup="order"]:hover { opacity: .9; transform: translateY(-1px); transition: opacity .2s, transform .2s; }
[data-pencil-name^="Card Stack "]:hover [data-pencil-name^="Card "] { transform: translateY(-3px); transition: transform .25s; }

/* ===== CTA SEAM FIX: smooth gradient from page bg into CTA image ===== */
.page-wrapper .cta-footer__top-fade {
  display: block !important;
  background: linear-gradient(to bottom, #f9f9f9, transparent) !important;
  height: 120px;
}

/* ===== STEPS ACCORDION ===== */
.lawn-step { transition: background .15s; }
.lawn-step:hover { background: rgba(12,123,68,.04); }
.lawn-step [data-pencil-name="Chevron"] { transition: transform .25s; }
.lawn-step.active [data-pencil-name="Chevron"] { transform: rotate(180deg); }
.lawn-step__desc-wrap { overflow: hidden; }


/* ===== MOBILE: hide desktop wrapper entirely on mobile viewports ===== */
@media (max-width: 768px) {
  .page-wrapper { display: none !important; }
}

/* ===== MOBILE CTA: hide all Pencil-generated content, keep only our custom copy ===== */
[data-pencil-name="Mobile CTA+Footer — Lawn"] > *:not(.lawn-mobile-cta-footer-copy) { display: none !important; }

/* ===== WHITE CANVAS FIX: wrappers out of normal flow so body.height controls scroll ===== */
body { position: relative; }
.page-wrapper { position: absolute !important; top: 0; left: 0; }
.page-wrapper-mobile { position: absolute !important; top: 0; left: 0; }

/* ===== POPUP SIZE FIX (lawn page: popup is outside the scale transform) ===== */
#popup-order .popup-card {
  width: min(420px, 88vw);
  padding: 28px 28px 24px;
}
#popup-order .popup-title { font-size: 22px; }
#popup-order .popup-subtitle { font-size: 13px; margin-bottom: 16px; }
#popup-order .popup-input { padding: 12px 14px; font-size: 14px; }
#popup-order .popup-submit { padding: 13px; font-size: 14px; }

/* ===== REAL FORM INPUTS inside Pencil export ===== */
.lawn-real-input {
  appearance: none; -webkit-appearance: none;
  display: block; width: 100%;
  border: none; outline: none;
  font-family: Manrope, system-ui, sans-serif;
  letter-spacing: 0;
  background: transparent;
  color: inherit;
}
.lawn-real-input::placeholder { color: #5c6b63; }
/* Hero form card inputs (light bg) */
[data-pencil-name="Input Name"],
[data-pencil-name="Input Phone"] { position: relative; }
[data-pencil-name="Input Name"] .lawn-real-input,
[data-pencil-name="Input Phone"] .lawn-real-input {
  font-size: 15px; font-weight: 400; color: #02120a;
}
[data-pencil-name="Input Name"] .lawn-real-input::placeholder,
[data-pencil-name="Input Phone"] .lawn-real-input::placeholder { color: #5c6b63cc; }
/* CTA section phone input (dark bg) */
[data-pencil-name="Phone Input"] .lawn-real-input {
  font-size: 14px; font-weight: 400; color: #fff;
}
[data-pencil-name="Phone Input"] .lawn-real-input::placeholder { color: rgba(255,255,255,.6); }
/* Mobile inputs */
[data-pencil-name="Input"] .lawn-real-input {
  font-size: 14px; color: #02120a;
}
[data-pencil-name="Input"] .lawn-real-input::placeholder { color: #5c6b63cc; }
