/* RPE 21.11d: teenusekaardid, ühtne kast, 4:3 pildikast, kõik kaardid sama kõrgusega (endine WPCode 1131) */
html body.bricks-is-frontend #brx-content .rpe-shared-services{align-items:stretch!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services > .rpe-svc-card{display:flex!important;flex-direction:column!important;align-self:stretch!important;height:auto!important;border:1px solid #e8e0d5!important;border-radius:14px!important;overflow:hidden!important;background:#fff!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services > .rpe-svc-card > .rpe-svc-image{display:block!important;aspect-ratio:4/3!important;width:100%!important;max-width:100%!important;overflow:hidden!important;background:#f3f1ec!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services > .rpe-svc-card > .rpe-svc-image img{display:block!important;width:100%!important;height:100%!important;max-width:none!important;aspect-ratio:auto!important;object-fit:cover!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services > .rpe-svc-card > .rpe-svc-copy{flex:1 1 auto!important;display:flex!important;flex-direction:column!important;padding:22px!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services .rpe-svc-title{min-height:2.5em!important;margin:0 0 12px!important}
html body.bricks-is-frontend #brx-content .rpe-shared-services .rpe-service-details{margin-top:auto!important;padding-top:14px!important}

/* === RPE Konteinerite rent — pricing + üldine (endine WPCode 826) === */

/* Konteinerite kaardid */
.rpe-k-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.rpe-k-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.rpe-k-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.rpe-k-card-head {
  background: #1a1a1a;
  color: #fff;
  padding: 2rem 1.5rem;
  text-align: center;
}
.rpe-k-size {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1;
}
.rpe-k-size span {
  font-size: 1.3rem;
  font-weight: 600;
  vertical-align: super;
}
.rpe-k-type {
  font-size: 0.95rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-top: 0.5rem;
}
.rpe-k-card-body {
  padding: 2rem 1.75rem;
}
.rpe-k-card-body h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem !important;
  color: #1a1a1a !important;
}
.rpe-k-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.rpe-k-card-body li {
  padding: 10px 0 10px 28px !important;
  position: relative;
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.55 !important;
}
.rpe-k-card-body li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 10px;
  color: #2d7d3a;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.55;
}
.rpe-k-cta {
  display: inline-block;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 2px solid #1a1a1a;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.rpe-k-cta:hover {
  opacity: 0.7;
}

/* Tellimise sammud */
.rpe-k-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.rpe-k-step {
  position: relative;
  padding-top: 3rem;
}
.rpe-k-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0;
  left: 0;
  width: 2.4rem;
  height: 2.4rem;
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.rpe-k-step h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
}
.rpe-k-step p {
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.6 !important;
}

/* Hinnamudel */
.rpe-k-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.rpe-k-pricing-card {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.rpe-k-pricing-card:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.rpe-k-pricing-head {
  background: #f7f7f7;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e5e5;
}
.rpe-k-pricing-head h3 {
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.25rem !important;
}
.rpe-k-pricing-sub {
  font-size: 1.1rem;
  color: #777;
  margin: 0;
}
.rpe-k-pricing-body {
  padding: 1.75rem;
}
.rpe-k-pricing-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.rpe-k-pricing-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.6 !important;
}
.rpe-k-pricing-list li:last-child {
  border-bottom: none;
}

/* FAQ / info */
.rpe-k-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.rpe-k-info-box {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1.75rem;
}
.rpe-k-info-box h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 0 0.6rem !important;
}
.rpe-k-info-box p {
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .rpe-k-grid,
  .rpe-k-steps,
  .rpe-k-pricing-grid,
  .rpe-k-info-grid {
    grid-template-columns: 1fr;
  }
}

/* === Konteinerite rendi leht: suurused, protsess, KKK (endine WPCode 825) === */

/* Sektsioonide taust */
.rpe-k-sizes { background: var(--rpe-bg2, #f1eadf); }

/* Grid */
.rpe-k-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

/* Kaart */
.rpe-k-card {
  background: var(--rpe-card-bg, #fffdf9);
  border: 1px solid rgba(86,63,46,0.08);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}
.rpe-k-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(86,63,46,0.10);
}

/* Kaardi pea */
.rpe-k-card-head {
  background: #2a1f14;
  color: #fff;
  padding: 32px 24px;
  text-align: center;
}
.rpe-k-card-head .rpe-k-size {
  font-size: 3.2rem !important;
  font-weight: 800;
  line-height: 1;
}
.rpe-k-card-head .rpe-k-size span {
  font-size: 1.3rem !important;
  font-weight: 600;
  vertical-align: super;
}
.rpe-k-card-head .rpe-k-type {
  font-size: 0.95rem !important;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  opacity: 0.7;
  margin-top: 8px;
}

/* Kaardi keha */
.rpe-k-card-body {
  padding: 2rem 1.75rem !important;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rpe-k-card-body h3 {
  font-size: 1.35rem !important;
  font-weight: 700 !important;
  margin: 0 0 16px !important;
  color: #1a1a1a !important;
}
.rpe-k-card-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 auto;
}
.rpe-k-card-body li {
  font-size: 1.15rem !important;
  line-height: 1.55 !important;
  padding: 10px 0 10px 28px !important;
  position: relative;
  color: #444 !important;
  border-bottom: 1px solid rgba(86,63,46,0.06);
}
.rpe-k-card-body li:last-child {
  border-bottom: none;
}
.rpe-k-card-body li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 10px;
  color: #2d7d3a;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1.55;
}

/* CTA */
.rpe-k-cta {
  display: inline-block;
  margin-top: 20px;
  font-weight: 600;
  font-size: 1.1rem !important;
  color: var(--rpe-accent, #b8860b);
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
  transition: opacity 0.2s;
}
.rpe-k-cta:hover { opacity: 0.7; }

/* Tellimisprotsess */
.rpe-k-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.rpe-k-step {
  position: relative;
  padding-top: 48px;
}
.rpe-k-step::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 0; left: 0;
  width: 36px; height: 36px;
  background: var(--rpe-accent, #b8860b);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}
.rpe-k-step h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 0 8px !important;
}
.rpe-k-step p {
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Info/KKK boksid */
.rpe-k-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.rpe-k-info-box {
  background: var(--rpe-card-bg, #fffdf9);
  border-radius: 12px;
  padding: 28px;
  border: 1px solid rgba(86,63,46,0.06);
}
.rpe-k-info-box h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  margin: 0 0 10px !important;
  color: #1a1a1a !important;
}
.rpe-k-info-box p {
  font-size: 1.15rem !important;
  color: #444 !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* Responsive */
@media (max-width: 768px) {
  .rpe-k-grid { grid-template-columns: 1fr; }
  .rpe-k-steps { grid-template-columns: 1fr; }
  .rpe-k-info-grid { grid-template-columns: 1fr; }
}

/* === Teenuste dropdown parandus === */
html body.bricks-is-frontend #brx-header .rpe-services-dropdown {
  position: relative !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown summary {
  cursor: pointer !important;
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: #203D2E !important;
  padding: 0 !important;
  min-height: auto !important;
  background: transparent !important;
  border: 0 !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown summary::-webkit-details-marker {
  display: none !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown summary::after {
  content: "" !important;
  display: inline-block !important;
  width: 7px !important;
  height: 7px !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  transform: rotate(45deg) !important;
  margin-top: -4px !important;
  transition: transform 0.2s !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown[open] summary::after {
  transform: rotate(225deg) !important;
  margin-top: 4px !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown nav {
  position: absolute !important;
  z-index: 9999 !important;
  top: calc(100% + 10px) !important;
  left: -16px !important;
  width: 300px !important;
  padding: 8px 0 !important;
  background: #fff !important;
  border: 1px solid #D8E3DA !important;
  border-top: 3px solid #f4a317 !important;
  border-radius: 0 0 8px 8px !important;
  box-shadow: 0 12px 32px rgba(32,61,46,0.12) !important;
  display: flex !important;
  flex-direction: column !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown nav a {
  display: block !important;
  padding: 12px 20px !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: #203D2E !important;
  text-decoration: none !important;
  transition: background 0.15s !important;
  white-space: nowrap !important;
  border: 0 !important;
  background: transparent !important;
  min-height: auto !important;
  border-radius: 0 !important;
}
html body.bricks-is-frontend #brx-header .rpe-services-dropdown nav a:hover {
  background: #F2F7F2 !important;
  color: #9f5d08 !important;
}
@media (max-width: 767px) {
  html body.bricks-is-frontend #brx-header .rpe-services-dropdown nav {
    left: 0 !important;
    width: calc(100vw - 40px) !important;
    max-width: 300px !important;
  }
}

/* === Kontakti leht — puhtam layout === */
body.page-id-21 .rpe-quote-grid {
  grid-template-columns: 1fr !important;
  max-width: 720px !important;
  margin: 0 auto !important;
}
body.page-id-21 .rpe-quote-grid > .rpe-stack {
  display: none !important;
}
body.page-id-21 .rpe-form-card {
  max-width: 100% !important;
}
body.page-id-21 .rpe-inner-hero .rpe-wrap {
  gap: 20px !important;
}
body.page-id-21 .rpe-inner-hero .rpe-phone {
  font-size: clamp(28px, 4vw, 42px) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  display: block !important;
  color: #203D2E !important;
}
body.page-id-21 .rpe-inner-hero .rpe-text-link {
  font-size: 18px !important;
  font-weight: 500 !important;
  text-decoration: underline !important;
  display: block !important;
  color: #203D2E !important;
}
body.page-id-21 .rpe-inner-hero .rpe-intro {
  margin-bottom: 8px !important;
}
body.page-id-21 .rpe-season {
  padding-top: 40px !important;
}
body.page-id-21 .rpe-inner-hero .rpe-contact-quick {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin-top: 4px !important;
}
@media (max-width: 767px) {
  body.page-id-21 .rpe-inner-hero .rpe-phone {
    font-size: 28px !important;
  }
}

/* Hero pealkiri — suurem font, 2 rida lubatud (endine WPCode 762) */
.rpe-hero-copy > .brxe-heading {
    font-size: clamp(40px, 5vw, 60px) !important;
}

/* Teenuste sektsiooni rohelisem taust */
.rpe-v8-services {
    background-color: #dce6dc !important;
}

/* =============================================
   RPE HALDUS — Kogu disaini viimistlus v17
   Kompaktne hero + roheline palett + värviline nool
   + sektsioonipäised koos
   (endine WPCode 757)
   ============================================= */

/* --- ÜLDINE --- */
html { scroll-behavior: smooth; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Värvid --- */
:root {
  --rpe-green-deep: #1e2a1c;
  --rpe-green-dark: #2d3b2d;
  --rpe-green-mid: #3d5a3d;
  --rpe-green-soft: #4a7c59;
  --rpe-green-light: #e8f0e8;
  --rpe-green-wash: #f2f7f2;
  --rpe-green-tint: #f7faf7;
  --rpe-gold: #b8860b;
  --rpe-gold-light: #d4a832;
  --rpe-gold-glow: rgba(184,134,11,0.12);
  --rpe-warm-bg: #f8f6f1;
}

/* ===================== NAVIGATSIOON ===================== */
header.brxe-header {
  transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease !important;
}
header.brxe-header.sticky {
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  box-shadow: 0 1px 12px rgba(0,0,0,0.08) !important;
}

/* ===================== HERO — KOMPAKTNE ===================== */
.rpe-hero { position: relative; }

.rpe-hero-grid {
  min-height: auto !important;
  max-height: none !important;
  align-content: end !important;
  padding-top: 80px !important;
  padding-bottom: 32px !important;
}

.rpe-hero-grid::after {
  background: linear-gradient(
    to right,
    rgba(30,42,28,0.92) 0%,
    rgba(30,42,28,0.78) 40%,
    rgba(30,42,28,0.4) 70%,
    rgba(30,42,28,0.18) 100%
  ) !important;
}

.rpe-hero-picture {
  min-height: 420px !important;
  object-position: center 40% !important;
}

.rpe-hero-copy {
  padding-bottom: 0 !important;
  gap: 10px !important;
  z-index: 2;
  position: relative;
}
.rpe-hero-copy > * { margin-bottom: 0 !important; }

.rpe-hero-copy .rpe-label {
  margin-bottom: 0 !important;
  letter-spacing: 0.14em;
  font-size: 0.72em !important;
  text-transform: uppercase;
  color: var(--rpe-gold-light) !important;
}
.rpe-hero-copy .brxe-heading {
  margin-bottom: 4px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.025em;
}
.rpe-hero-copy .rpe-intro {
  margin-bottom: 0 !important;
  max-width: 500px;
  line-height: 1.6 !important;
  opacity: 0.88;
  font-size: 0.95em !important;
}
.rpe-hero-copy .rpe-actions {
  margin-top: 6px !important;
  margin-bottom: 0 !important;
  gap: 10px !important;
}
.rpe-hero-note {
  margin-top: 0 !important;
  opacity: 0.45;
  font-size: 0.76em !important;
  letter-spacing: 0.05em;
}

.rpe-hero-copy .rpe-actions .brxe-button {
  transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
}
.rpe-hero-copy .rpe-actions .brxe-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.rpe-hero-copy .rpe-actions .brxe-button:first-child {
  background: var(--rpe-gold) !important;
  color: #fff !important;
  border-color: var(--rpe-gold) !important;
}
.rpe-hero-copy .rpe-actions .brxe-button:first-child:hover {
  background: var(--rpe-gold-light) !important;
  border-color: var(--rpe-gold-light) !important;
  box-shadow: 0 8px 28px rgba(184,134,11,0.4);
}

.rpe-hero-copy .rpe-actions .brxe-button:nth-child(2) {
  background: rgba(255,255,255,0.12) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,0.5) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.rpe-hero-copy .rpe-actions .brxe-button:nth-child(2):hover {
  background: rgba(255,255,255,0.22) !important;
  border-color: rgba(255,255,255,0.7) !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ===================== HERO NOOL — VÄRVILINE ===================== */
.rpe-scroll-arrow {
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  margin: 20px auto 0 !important;
  z-index: 2 !important;
  cursor: pointer;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2.5px solid transparent;
  background:
    linear-gradient(135deg, rgba(74,124,89,0.25), rgba(30,42,28,0.4)) padding-box,
    linear-gradient(135deg, var(--rpe-gold-light), var(--rpe-green-soft), var(--rpe-gold)) border-box;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 0 0 6px rgba(184,134,11,0.1),
    0 0 0 12px rgba(74,124,89,0.06),
    0 0 20px rgba(184,134,11,0.12),
    0 6px 24px rgba(0,0,0,0.2);
  animation: rpe-bounce 2.8s ease-in-out infinite;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
}
.rpe-scroll-arrow:hover {
  background:
    linear-gradient(135deg, rgba(74,124,89,0.4), rgba(184,134,11,0.2)) padding-box,
    linear-gradient(135deg, var(--rpe-gold), var(--rpe-green-soft), var(--rpe-gold-light)) border-box;
  box-shadow:
    0 0 0 8px rgba(184,134,11,0.15),
    0 0 0 16px rgba(74,124,89,0.08),
    0 0 28px rgba(184,134,11,0.2),
    0 8px 36px rgba(74,124,89,0.25);
  transform: scale(1.12);
}
.rpe-scroll-arrow:focus-visible {
  outline: 2px solid var(--rpe-gold);
  outline-offset: 5px;
}
.rpe-scroll-arrow svg {
  width: 24px; height: 24px;
  stroke: var(--rpe-gold-light); stroke-width: 2.5;
  fill: none; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 4px rgba(212,168,50,0.4)) drop-shadow(0 1px 2px rgba(0,0,0,0.3));
  transition: stroke 0.3s ease;
}
.rpe-scroll-arrow:hover svg {
  stroke: #fff;
  filter: drop-shadow(0 0 6px rgba(255,255,255,0.4)) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
}
@keyframes rpe-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(9px); }
}

/* ===================== SEKTSIOONID ===================== */
.rpe-v8-section,
.rpe-v8-services,
.rpe-v8-work,
.rpe-v8-equipment,
.rpe-v8-quote {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

.rpe-v8-services { background: var(--rpe-green-wash) !important; }
.rpe-v8-work { background: #fff !important; }
.rpe-v8-quote { background: var(--rpe-green-tint) !important; }

.rpe-v8-section .rpe-label,
.rpe-v8-services .rpe-label,
.rpe-v8-work .rpe-label,
.rpe-v8-equipment .rpe-label,
.rpe-v8-quote .rpe-label {
  letter-spacing: 0.15em !important;
  font-size: 0.68em !important;
  opacity: 1 !important;
  color: var(--rpe-green-soft) !important;
  margin-bottom: 12px !important;
  text-transform: uppercase !important;
  font-weight: 700 !important;
}
.rpe-v8-equipment .rpe-label { color: rgba(255,255,255,0.5) !important; }

/* ===================== SEKTSIOONIPÄISED KOOS ===================== */
/* Pealkiri + kirjeldus ühes veerus, mitte kõrvuti */
.rpe-v8-head {
  margin-bottom: 36px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
  max-width: 100% !important;
}
.rpe-v8-head .brxe-heading {
  line-height: 1.08 !important;
  letter-spacing: -0.025em;
  width: 100% !important;
}
.rpe-v8-lead {
  line-height: 1.65 !important;
  opacity: 0.6;
  max-width: 520px;
  font-size: 0.95em !important;
  width: 100% !important;
}

/* Avant-rendi sektsiooni pealkiri samuti koos */
.rpe-v8-equipment .rpe-v8-head {
  max-width: 650px !important;
}
.rpe-v8-equipment .rpe-v8-head .rpe-v8-lead {
  color: rgba(255,255,255,0.6) !important;
}

/* ===================== TEENUSTE KAARDID ===================== */
.rpe-v8-service-grid { gap: 28px !important; }

.rpe-v8-service {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.06) !important;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.45s cubic-bezier(0.4,0,0.2,1) !important;
  border: 1px solid rgba(61,90,61,0.08) !important;
}
.rpe-v8-service:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 48px rgba(61,90,61,0.14), 0 4px 12px rgba(0,0,0,0.04) !important;
  border-color: rgba(74,124,89,0.15) !important;
}

.rpe-v8-service-picture {
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  aspect-ratio: 4/3 !important;
}
.rpe-v8-service-img {
  transition: transform 0.6s cubic-bezier(0.4,0,0.2,1) !important;
  width: 100% !important; height: 100% !important; object-fit: cover !important;
}
.rpe-v8-service:hover .rpe-v8-service-img { transform: scale(1.07) !important; }

.rpe-v8-index {
  backdrop-filter: blur(10px) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  background: rgba(74,124,89,0.25) !important;
  border: 1px solid rgba(255,255,255,0.2) !important;
  border-radius: 50% !important;
  width: 36px !important; height: 36px !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-weight: 700 !important; font-size: 0.8em !important; color: #fff !important;
}

.rpe-v8-service-content { padding: 22px 26px 26px !important; }
.rpe-v8-service-content .brxe-heading {
  margin-bottom: 6px !important; font-size: 1.2em !important;
  letter-spacing: -0.015em; line-height: 1.2 !important;
  color: var(--rpe-green-dark) !important;
}
.rpe-v8-card-intro { opacity: 0.55; line-height: 1.55 !important; font-size: 0.86em !important; }

.rpe-v8-links {
  margin-top: 16px !important; padding-top: 16px !important;
  border-top: 1px solid rgba(61,90,61,0.08) !important; gap: 0 !important;
}
.rpe-v8-service-link.brxe-button {
  padding: 12px 4px 12px 0 !important;
  border-bottom: 1px solid rgba(61,90,61,0.06) !important;
  font-size: 0.87em !important; font-weight: 500 !important;
  transition: all 0.25s ease !important;
  color: var(--rpe-green-dark) !important;
  display: flex !important; justify-content: space-between !important; align-items: center !important;
}
.rpe-v8-service-link.brxe-button:last-child { border-bottom: none !important; }
.rpe-v8-service-link.brxe-button:hover {
  padding-left: 10px !important; color: var(--rpe-green-soft) !important;
  background: rgba(74,124,89,0.06) !important; border-radius: 8px !important;
}
.rpe-v8-service-link.brxe-button span[aria-hidden] { opacity: 0.35; transition: opacity 0.2s, transform 0.2s; }
.rpe-v8-service-link.brxe-button:hover span[aria-hidden] {
  opacity: 1; transform: translate(3px, -3px); color: var(--rpe-green-soft);
}

/* ===================== TÖÖ SEKTSIOON ===================== */
.rpe-v8-work .brxe-container { gap: 32px !important; }
.rpe-v8-work-photo { border-radius: 20px !important; overflow: hidden !important; box-shadow: 0 8px 32px rgba(61,90,61,0.1) !important; }
.rpe-v8-work-main { border-radius: 20px !important; }
.rpe-v8-work-copy .brxe-heading { line-height: 1.08 !important; letter-spacing: -0.025em; color: var(--rpe-green-dark) !important; }
.rpe-v8-work-copy .rpe-v8-lead { max-width: 480px; opacity: 0.65; }

.rpe-v8-facts { gap: 0 !important; margin-top: 12px !important; }
.rpe-v8-fact {
  padding: 16px 0 !important;
  border-bottom: 1px solid rgba(61,90,61,0.08) !important;
  transition: all 0.25s ease !important;
}
.rpe-v8-fact:last-child { border-bottom: none !important; }
.rpe-v8-fact:hover { padding-left: 8px !important; background: rgba(74,124,89,0.03) !important; border-radius: 8px !important; }
.rpe-v8-fact .brxe-heading { font-size: 1.02em !important; font-weight: 700 !important; margin-bottom: 3px !important; letter-spacing: -0.01em; color: var(--rpe-green-dark) !important; }
.rpe-v8-fact .brxe-text-basic { font-size: 0.84em !important; opacity: 0.55; line-height: 1.5 !important; }

.rpe-btn-light {
  border-radius: 10px !important; transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important;
  font-weight: 600 !important; border-color: var(--rpe-green-soft) !important; color: var(--rpe-green-dark) !important;
}
.rpe-btn-light:hover {
  transform: translateY(-2px) !important; box-shadow: 0 4px 16px rgba(61,90,61,0.12) !important;
  background: var(--rpe-green-soft) !important; color: #fff !important; border-color: var(--rpe-green-soft) !important;
}

/* ===================== AVANT TEHNIKA ===================== */
.rpe-v8-equipment .brxe-container { gap: 28px !important; }
.rpe-v8-equipment .rpe-v8-head .brxe-heading { line-height: 1.08 !important; }
.rpe-v8-machine-grid { gap: 24px !important; }

.rpe-v8-machine {
  border-radius: 18px !important; overflow: hidden !important; background: #fff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.04), 0 6px 20px rgba(0,0,0,0.05) !important;
  padding: 26px !important;
  transition: transform 0.45s cubic-bezier(0.4,0,0.2,1), box-shadow 0.45s cubic-bezier(0.4,0,0.2,1), border-color 0.45s ease !important;
}
.rpe-v8-machine:hover {
  transform: translateY(-8px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.04) !important;
  border-color: rgba(74,124,89,0.2) !important;
}

.rpe-v8-rent-tag { font-size: 0.62em !important; letter-spacing: 0.15em !important; margin-bottom: 10px !important; font-weight: 700 !important; color: var(--rpe-green-soft) !important; opacity: 1 !important; }
.rpe-v8-machine-img { border-radius: 14px !important; margin-bottom: 18px !important; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1) !important; }
.rpe-v8-machine:hover .rpe-v8-machine-img { transform: scale(1.04) !important; }
.rpe-v8-machine .brxe-heading { font-size: 1.55em !important; letter-spacing: -0.025em; margin-bottom: 4px !important; line-height: 1.12 !important; color: var(--rpe-green-dark) !important; }
.rpe-v8-machine > .brxe-text-basic:not(.rpe-v8-rent-tag) { font-size: 0.86em !important; opacity: 0.55; line-height: 1.5 !important; margin-bottom: 18px !important; }

.rpe-v8-spec { display: flex !important; gap: 28px !important; margin-bottom: 20px !important; padding: 16px 0 !important; border-top: 1px solid rgba(0,0,0,0.06) !important; border-bottom: 1px solid rgba(0,0,0,0.06) !important; }
.rpe-v8-spec .brxe-text-basic { display: flex !important; flex-direction: column !important; gap: 3px !important; }
.rpe-v8-spec .brxe-text-basic strong { font-size: 1.25em !important; letter-spacing: -0.015em; color: var(--rpe-green-dark) !important; }
.rpe-v8-spec .brxe-text-basic span { font-size: 0.7em !important; opacity: 0.45; text-transform: uppercase; letter-spacing: 0.08em; }

.rpe-v8-machine-link.brxe-button { font-size: 0.87em !important; font-weight: 600 !important; color: var(--rpe-green-dark) !important; transition: all 0.25s ease !important; border-radius: 8px !important; padding: 10px 0 !important; }
.rpe-v8-machine-link.brxe-button:hover { color: var(--rpe-green-soft) !important; padding-left: 6px !important; }

.rpe-v8-compare.brxe-button { margin-top: 12px !important; border-radius: 12px !important; font-weight: 600 !important; letter-spacing: 0.01em; transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important; background: var(--rpe-green-soft) !important; border-color: var(--rpe-green-soft) !important; color: #fff !important; }
.rpe-v8-compare.brxe-button:hover { transform: translateY(-2px) !important; box-shadow: 0 6px 20px rgba(74,124,89,0.3) !important; background: var(--rpe-green-mid) !important; border-color: var(--rpe-green-mid) !important; }

/* ===================== KONTAKT / HINNAPÄRING ===================== */
.rpe-v8-quote .brxe-container { gap: 36px !important; }
.rpe-v8-quote .brxe-heading { line-height: 1.08 !important; letter-spacing: -0.025em; color: var(--rpe-green-dark) !important; }
.rpe-v8-quote a[href^="tel"] { font-weight: 700; font-size: 1.4em !important; transition: color 0.2s; letter-spacing: -0.01em; color: var(--rpe-green-dark) !important; }
.rpe-v8-quote a[href^="tel"]:hover { color: var(--rpe-green-soft) !important; }
.rpe-v8-quote a[href^="mailto"] { transition: color 0.2s; opacity: 0.7; }
.rpe-v8-quote a[href^="mailto"]:hover { color: var(--rpe-green-soft) !important; opacity: 1; }

.rpe-v8-quote form, .rpe-v8-quote .brxe-form { background: #fff !important; border-radius: 20px !important; padding: 32px !important; box-shadow: 0 2px 4px rgba(0,0,0,0.03), 0 8px 32px rgba(61,90,61,0.07) !important; border: 1px solid rgba(61,90,61,0.06) !important; }
.rpe-v8-quote input[type="text"], .rpe-v8-quote input[type="email"], .rpe-v8-quote input[type="tel"], .rpe-v8-quote select, .rpe-v8-quote textarea { border-radius: 12px !important; border: 1.5px solid rgba(61,90,61,0.12) !important; transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important; padding: 13px 16px !important; font-size: 0.9em !important; background: var(--rpe-green-tint) !important; }
.rpe-v8-quote input:focus, .rpe-v8-quote select:focus, .rpe-v8-quote textarea:focus { border-color: var(--rpe-green-soft) !important; box-shadow: 0 0 0 4px rgba(74,124,89,0.1) !important; outline: none !important; background: #fff !important; }
.rpe-v8-quote textarea { min-height: 100px !important; }
.rpe-v8-quote button[type="submit"], .rpe-v8-quote .brxe-button[type="submit"] { border-radius: 14px !important; font-weight: 700 !important; letter-spacing: 0.02em; padding: 16px 36px !important; font-size: 0.95em !important; transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important; background: var(--rpe-green-soft) !important; border-color: var(--rpe-green-soft) !important; color: #fff !important; }
.rpe-v8-quote button[type="submit"]:hover, .rpe-v8-quote .brxe-button[type="submit"]:hover { transform: translateY(-2px) !important; box-shadow: 0 10px 28px rgba(74,124,89,0.3) !important; background: var(--rpe-green-mid) !important; border-color: var(--rpe-green-mid) !important; }
.rpe-v8-quote label { font-size: 0.82em !important; font-weight: 600 !important; letter-spacing: 0.01em; color: var(--rpe-green-dark) !important; opacity: 0.7; }

/* ===================== FOOTER ===================== */
.rpe-footer { padding-top: 56px !important; padding-bottom: 24px !important; }
.rpe-footer .rpe-grid3 { gap: 36px !important; }
.rpe-footer .rpe-stack { gap: 10px !important; }
.rpe-footer .rpe-stack .brxe-heading { font-size: 1.2em !important; letter-spacing: -0.015em; margin-bottom: 6px !important; }
.rpe-footer .rpe-stack .rpe-label { font-size: 0.62em !important; letter-spacing: 0.16em !important; opacity: 0.4; margin-bottom: 8px !important; }
.rpe-footer .rpe-stack .brxe-text-basic { line-height: 1.8 !important; }
.rpe-footer .rpe-stack a { transition: color 0.2s ease, opacity 0.2s ease !important; display: inline-block !important; }
.rpe-footer .rpe-stack a:hover { color: var(--rpe-gold-light) !important; opacity: 1 !important; }
.rpe-footer-bottom { margin-top: 36px !important; padding-top: 22px !important; border-top: 1px solid rgba(255,255,255,0.08) !important; opacity: 0.5; font-size: 0.8em !important; }
.rpe-footer-bottom a { transition: color 0.2s ease !important; }
.rpe-footer-bottom a:hover { color: var(--rpe-gold-light) !important; opacity: 1 !important; }

.brxe-button { transition: all 0.3s cubic-bezier(0.4,0,0.2,1) !important; }

/* ===================== SCROLL ANIMATSIOONID ===================== */
.rpe-v8-service, .rpe-v8-machine, .rpe-v8-work-photo, .rpe-v8-work-copy, .rpe-v8-fact, .rpe-v8-head {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1) !important;
}
.rpe-v8-service.rpe-visible, .rpe-v8-machine.rpe-visible, .rpe-v8-work-photo.rpe-visible, .rpe-v8-work-copy.rpe-visible, .rpe-v8-fact.rpe-visible, .rpe-v8-head.rpe-visible {
  opacity: 1 !important; transform: translateY(0) !important;
}
.rpe-v8-service:nth-child(2), .rpe-v8-machine:nth-child(2) { transition-delay: 0.1s !important; }
.rpe-v8-service:nth-child(3), .rpe-v8-machine:nth-child(3) { transition-delay: 0.2s !important; }
.rpe-v8-fact:nth-child(2) { transition-delay: 0.08s !important; }
.rpe-v8-fact:nth-child(3) { transition-delay: 0.16s !important; }

/* ===================== MOBIIL ===================== */
@media (max-width: 768px) {
  .rpe-hero-grid { padding-top: 70px !important; padding-bottom: 20px !important; }
  .rpe-hero-copy .rpe-label { display: none !important; }
  .rpe-scroll-arrow { margin-top: 8px !important; margin-bottom: 0 !important; }
  .rpe-hero-grid { padding-bottom: 14px !important; }
  .rpe-hero-picture { min-height: 300px !important; }
  .rpe-hero-copy { gap: 8px !important; }
  .rpe-hero-copy .brxe-heading { font-size: 1.7em !important; line-height: 1.08 !important; }
  .rpe-hero-copy .rpe-intro { font-size: 0.88em !important; line-height: 1.5 !important; }
  .rpe-hero-copy .rpe-actions { margin-top: 4px !important; gap: 8px !important; }
  .rpe-hero-copy .rpe-actions .brxe-button { padding: 10px 18px !important; font-size: 0.88em !important; }
  .rpe-hero-note { font-size: 0.7em !important; }
  .rpe-scroll-arrow { margin-top: 12px !important; width: 50px; height: 50px; box-shadow: 0 0 0 4px rgba(184,134,11,0.08), 0 0 0 8px rgba(74,124,89,0.05), 0 0 14px rgba(184,134,11,0.1), 0 4px 16px rgba(0,0,0,0.15); }
  .rpe-scroll-arrow svg { width: 20px; height: 20px; }

  .rpe-v8-section, .rpe-v8-services, .rpe-v8-work, .rpe-v8-equipment, .rpe-v8-quote { padding-top: 40px !important; padding-bottom: 40px !important; }
  .rpe-v8-head { max-width: 100% !important; }
  .rpe-v8-service-grid { gap: 18px !important; }
  .rpe-v8-service:hover { transform: none !important; }
  .rpe-v8-service-content { padding: 18px 20px 22px !important; }
  .rpe-v8-head { margin-bottom: 24px !important; }
  .rpe-v8-machine-grid { gap: 18px !important; }
  .rpe-v8-machine { padding: 20px !important; }
  .rpe-v8-machine:hover { transform: none !important; }
  .rpe-v8-machine .brxe-heading { font-size: 1.35em !important; }
  .rpe-v8-quote form, .rpe-v8-quote .brxe-form { padding: 22px 18px !important; border-radius: 16px !important; }
  .rpe-footer .rpe-grid3 { gap: 28px !important; }
  .rpe-footer-bottom { margin-top: 28px !important; }

  .rpe-v8-service, .rpe-v8-machine, .rpe-v8-work-photo, .rpe-v8-work-copy, .rpe-v8-fact, .rpe-v8-head {
    opacity: 1 !important; transform: none !important;
  }
}

/* --- TEENUSED LEHT: visuaal --- */

/* 4-tulba grid */
body.page-id-67 .rpe-catalog9-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

/* Kaardi stiil - ühtlane kõrgus ja parem paigutus */
body.page-id-67 .rpe-catalog9-card {
  display: flex !important;
  flex-direction: column !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(86,63,46,0.10) !important;
  background: #fffdf9 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
body.page-id-67 .rpe-catalog9-card:hover {
  box-shadow: 0 8px 28px rgba(86,63,46,0.10) !important;
  transform: translateY(-2px) !important;
}

/* Pildi ülaosa ümardamine */
body.page-id-67 .rpe-catalog9-card img {
  border-radius: 0 !important;
  width: 100% !important;
}

/* Pildita kaardid — ilus gradient placeholder */
body.page-id-67 .rpe-catalog9-card .brxe-image:has(img[src*="svg"]),
body.page-id-67 .rpe-catalog9-card .brxe-image:has(img[data-src*="svg"]) {
  background: linear-gradient(135deg, #e8dfd3 0%, #d4c8b8 100%) !important;
  min-height: 120px !important;
}
body.page-id-67 .rpe-catalog9-card .brxe-image img[src*="svg"],
body.page-id-67 .rpe-catalog9-card .brxe-image img[data-src*="svg"] {
  opacity: 0 !important;
}

/* Kaardi sisu paigutus */
body.page-id-67 .rpe-catalog9-card .rpe-catalog9-card-body {
  padding: 20px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Pealkirja suurus 4 tulba jaoks */
body.page-id-67 .rpe-catalog9-card h3,
body.page-id-67 .rpe-catalog9-card .brxe-heading {
  font-size: clamp(18px, 2vw, 22px) !important;
  line-height: 1.25 !important;
  margin-bottom: 8px !important;
}

/* Kirjelduse tekst */
body.page-id-67 .rpe-catalog9-card .brxe-text {
  font-size: 14px !important;
  line-height: 1.55 !important;
  color: #766b5f !important;
  flex: 1 !important;
}

/* "Vaata teenust" link alati allosas */
body.page-id-67 .rpe-catalog9-card a[href*="teenus"],
body.page-id-67 .rpe-catalog9-card .rpe-catalog9-card-link {
  margin-top: auto !important;
  padding-top: 12px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #c87e20 !important;
}
body.page-id-67 .rpe-catalog9-card a[href*="teenus"]:hover {
  color: #563f2e !important;
}

/* Sektsioonide vahel rohkem ruumi */
body.page-id-67 .rpe-catalog9 {
  padding-top: 64px !important;
  padding-bottom: 64px !important;
}

/* Sektsiooni pealkiri */
body.page-id-67 .rpe-catalog9 h2 {
  margin-bottom: 6px !important;
}

/* Sektsiooni alampealkiri */
body.page-id-67 .rpe-catalog9-wrap > .brxe-text {
  margin-bottom: 32px !important;
  font-size: 16px !important;
  color: #8a7d70 !important;
}

/* Teenuste arvu badge */
body.page-id-67 .rpe-catalog9-wrap > .brxe-text:first-child {
  font-size: 12px !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  font-weight: 700 !important;
  color: #c87e20 !important;
}

@media (max-width: 899px) {
  body.page-id-67 .rpe-catalog9-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  body.page-id-67 .rpe-catalog9-card h3,
  body.page-id-67 .rpe-catalog9-card .brxe-heading {
    font-size: 20px !important;
  }
}

@media (max-width: 479px) {
  body.page-id-67 .rpe-catalog9-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
}

/* --- AVALEHT: teenuste grid 4 tulpa --- */

/* 4-tulba grid avalehel */
body.page-id-229 .rpe-home-services9 {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
}

/* Kaardi stiil - kompaktsem 4-tulba jaoks */
body.page-id-229 .rpe-v8-service {
  border-radius: 14px !important;
  overflow: hidden !important;
  border: 1px solid rgba(86,63,46,0.10) !important;
  background: #fffdf9 !important;
  transition: box-shadow 0.2s ease, transform 0.2s ease !important;
}
body.page-id-229 .rpe-v8-service:hover {
  box-shadow: 0 8px 28px rgba(86,63,46,0.10) !important;
  transform: translateY(-2px) !important;
}

/* Pilt väiksem 4 tulba korral */
body.page-id-229 .rpe-v8-service-picture {
  max-height: 220px !important;
  overflow: hidden !important;
}
body.page-id-229 .rpe-v8-service-img {
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}

/* Sisu osa */
body.page-id-229 .rpe-v8-service-content {
  padding: 18px !important;
}

body.page-id-229 .rpe-v8-service-content h3,
body.page-id-229 .rpe-v8-service-content .brxe-heading {
  font-size: clamp(16px, 1.8vw, 20px) !important;
  line-height: 1.25 !important;
  margin-bottom: 6px !important;
}

body.page-id-229 .rpe-v8-card-intro {
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: #766b5f !important;
}

/* Lingid kompaktsemad */
body.page-id-229 .rpe-v8-links {
  margin-top: 10px !important;
}
body.page-id-229 .rpe-v8-links a {
  font-size: 13px !important;
  padding: 6px 0 !important;
}

/* Numbri badge */
body.page-id-229 .rpe-v8-index {
  font-size: 13px !important;
}

/* Responsive */
@media (max-width: 1200px) {
  body.page-id-229 .rpe-home-services9 {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 991px) {
  body.page-id-229 .rpe-home-services9 {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
  }
}

@media (max-width: 479px) {
  body.page-id-229 .rpe-home-services9 {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}