/* Zakladanie trávnika */

.lawn-hero {
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 46px);
}
.lawn-hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.45rem);
}
.postcards {
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.45;
  width: 100%;
  background: radial-gradient(ellipse at 52% 46%, var(--surface) 2%, transparent 70%);
}
.postcard {
  position: absolute;
  display: block;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: clamp(3px, .4vw, 6px) solid white;
  border-radius: 4px;
  background: white;
  color: #fff;
  box-shadow: 0 9px 22px #1e322048, 0 1px 3px #1e322038;
  cursor: zoom-in;
  transition: transform .2s ease;
  transform: rotate(var(--tilt));
}
.postcard:hover {
  transform: rotate(var(--tilt)) translateY(-3px);
}
.postcard:focus-visible {
  z-index: 4;
  outline: 3px solid var(--service-ink);
  outline-offset: 3px;
}
.postcard img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.postcard span {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 7px;
  border-radius: 3px;
  color: #fff;
  background: #16291fe6;
  font: 700 clamp(.72rem, 1.05vw, .9rem)/1.35 Nunito, Arial, sans-serif;
}
.postcard-before {
  --tilt: -6deg;
  top: 9%;
  left: 4%;
  width: 50%;
  z-index: 1;
}
.postcard-laying {
  --tilt: 6deg;
  top: 5%;
  right: 6%;
  width: 46%;
  z-index: 2;
}
.postcard-laying img { object-position: center 53%; }
.postcard-finished {
  --tilt: -2.5deg;
  right: 5%;
  bottom: 3%;
  width: 59%;
  z-index: 3;
}
.postcard-finished span {
  inset: auto 9px 9px auto;
}
.postcard-dialog {
  box-sizing: border-box;
  width: min(940px, 94vw);
  max-height: 92vh;
  padding: 9px;
  border: 0;
  border-radius: 14px;
}
.postcard-dialog::backdrop { background: #162719cc; }
.postcard-dialog form {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 7px;
}
.postcard-dialog button {
  padding: 8px 15px;
  border: 0;
  border-radius: 999px;
  color: var(--service-ink);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
}
.postcard-dialog img:not([hidden]) {
  display: block;
  max-width: 100%;
  max-height: 78vh;
  margin: auto;
  border-radius: 6px;
}
.laying-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .66fr);
  align-items: center;
  gap: 18px 30px;
  padding: clamp(22px, 3vw, 41px) 0 13px;
  border-bottom: 1px solid var(--line);
}
.laying-video h2 {
  margin: 0 0 7px;
  color: var(--service-ink);
  font: 800 clamp(1.37rem, 2.15vw, 2rem)/1.18 Nunito, Arial, sans-serif;
}
.laying-video p { margin: 0; }
.laying-video-full {
  display: inline-block;
  margin-top: 10px;
  color: var(--service-ink);
  font-weight: 700;
  text-underline-offset: 3px;
}
.laying-video-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px 32px 12px 12px;
  background: var(--service-ink);
  box-shadow: var(--shadow);
}
.laying-video-frame > a,
.laying-video-frame > iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.laying-video-play:focus-visible {
  z-index: 1;
  outline: 3px solid white;
  outline-offset: -5px;
}
.laying-video-play img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.laying-video-play > span {
  position: absolute;
  left: 50%;
  bottom: 11%;
  transform: translateX(-50%);
  padding: 9px 15px;
  border-radius: 999px;
  color: var(--service-ink);
  background: var(--surface);
  font-weight: 800;
  white-space: nowrap;
}
.laying-video-play > span > span { margin-right: 5px; }
@media (max-width: 800px) {
  .lawn-hero { grid-template-columns: 1fr; }
  .postcards { width: min(100%, 640px); margin-inline: auto; }
}
@media (max-width: 580px) {
  .laying-video { grid-template-columns: 1fr; }
  .postcard span { top: 4px; left: 4px; padding: 2px 4px; }
  .postcard-finished span { inset: auto 4px 4px auto; }
}
@media (prefers-reduced-motion: reduce) {
  .postcard { transition: none; }
  .postcard:hover { transform: rotate(var(--tilt)); }
}
