/* ============================================================
   SITE-MODERN — kogu avaliku osa kaasaegne disain
   Laetakse kõigil avalikel lehtedel pärast style.css.
   Avalehel kehtib lisaks homepage-redesign.css (täpsem katvus).
   Keele-spetsiifilised aktsentid läbi body.lang-et / .lang-en / .lang-ru
   ============================================================ */

/* --sm-* on pseudonüümid disainisüsteemi tokenitele (css/design-system.css), et vanad
   komponendid (pood.css, alamlehed) saaksid uue paleti ilma ümberkirjutamiseta. */
:root {
  --sm-bg: var(--ds-bg, #ffffff);
  --sm-bg-soft: var(--ds-bg-soft, #f7faf6);
  --sm-bg-cream: var(--ds-bg-cream, #faf8f3);
  --sm-border: var(--ds-line, #e8ede4);
  --sm-border-soft: var(--ds-line-soft, #eef2ec);
  --sm-text: var(--ds-ink, #1f2421);
  --sm-text-muted: var(--ds-ink-muted, #5b6660);
  --sm-text-soft: var(--ds-ink-soft, #7a857e);
  --sm-accent: var(--ds-green, #399b15);
  --sm-accent-hover: var(--ds-green-dark, #1f5a22);
  --sm-accent-soft: var(--ds-green-tint, rgba(46, 125, 50, 0.08));
  --sm-accent-gradient: var(--ds-gradient-green, linear-gradient(135deg, #399b15, #1f5a22));
  --sm-amber: var(--ds-amber, #e8900c);
  --sm-shadow-sm: var(--ds-shadow-sm);
  --sm-shadow-md: var(--ds-shadow-md);
  --sm-shadow-lg: var(--ds-shadow-lg);
  --sm-radius: var(--ds-radius-lg, 16px);
  --sm-radius-sm: var(--ds-radius, 12px);
  --sm-radius-lg: var(--ds-radius-xl, 20px);
  --sm-transition: var(--ds-dur, 260ms) var(--ds-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
  /* style.css vanad muutujad → uued fondid ja värvid */
  --font-family: var(--ds-font-body, "Source Sans 3", "Segoe UI", sans-serif);
  --color-light: var(--ds-bg-soft, #f7faf6);
}

/* ---------- GLOBAALNE TÜPOGRAAFIA (A: Manrope pealkirjad, Source Sans 3 sisu 17 px) ---------- */

html { font-size: 100%; }

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  color: var(--sm-text);
  font-family: var(--ds-font-body, "Source Sans 3", "Segoe UI", sans-serif);
  font-size: var(--ds-fs-base, 1.0625rem);
  line-height: var(--ds-lh-base, 1.55);
  padding-top: var(--ds-header-h, 72px) !important; /* fikseeritud päis — ka avalehel */
}

body h1, body h2, body h3, body h4, body h5, body h6 {
  font-family: var(--ds-font-head, "Mulish", "Segoe UI", sans-serif);
  font-weight: var(--ds-fw-black, 800);
  letter-spacing: var(--ds-tracking-head, -0.02em);
  color: var(--sm-text);
  line-height: var(--ds-lh-tight, 1.15);
}
body h2 { font-size: var(--ds-fs-2xl, 2rem); }
body h3 { font-size: var(--ds-fs-lg, 1.375rem); font-weight: var(--ds-fw-bold, 700); }

body.cms-edit-mode { padding-top: calc(var(--ds-header-h, 72px) + 40px) !important; }

/* Alamlehe pealkirjad saavad pehme intro-joone — näeb moderrne, mitte liiga blokeeriv */
body:not(.home) .container > h1:first-child,
body:not(.home) main h1:first-child,
body:not(.home) .article-wrapper h1:first-child,
body:not(.home) .page-hero h1 {
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 0.6em;
}

/* ---------- ARTIKLI / LEHE SISU ---------- */

body:not(.home) .article-wrapper {
  padding-top: clamp(2.5rem, 6vw, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vw, 4.5rem);
}

body:not(.home) .page-intro {
  font-size: clamp(1.05rem, 1.25vw, 1.2rem) !important;
  line-height: 1.8 !important;
  color: var(--sm-text-muted) !important;
  margin-bottom: 2rem !important;
  max-width: 780px;
  padding-left: 1.25rem;
  border-left: 3px solid var(--sm-accent);
  background: linear-gradient(90deg, var(--sm-accent-soft) 0%, transparent 80%);
  padding-top: 1rem;
  padding-bottom: 1rem;
  border-radius: 0 var(--sm-radius-sm) var(--sm-radius-sm) 0;
}

body:not(.home) .page-content,
body:not(.home) .page-extended {
  font-size: 1.05rem !important;
  line-height: 1.85 !important;
  color: #2a332d;
}

body:not(.home) .page-content h2,
body:not(.home) .page-extended h2 {
  font-size: clamp(1.5rem, 2.2vw, 1.875rem);
  font-weight: 700;
  margin-top: 2.25em;
  margin-bottom: 0.65em;
  position: relative;
  padding-bottom: 0.35em;
}
body:not(.home) .page-content h2::after,
body:not(.home) .page-extended h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--sm-accent-gradient);
}

body:not(.home) .page-content h3,
body:not(.home) .page-extended h3 {
  font-size: clamp(1.2rem, 1.6vw, 1.375rem);
  font-weight: 700;
  margin-top: 1.9em;
  margin-bottom: 0.5em;
  color: var(--sm-text);
}

body:not(.home) .page-content p,
body:not(.home) .page-extended p {
  margin-bottom: 1.25em;
}

body:not(.home) .page-content a,
body:not(.home) .page-extended a {
  color: var(--sm-accent);
  text-decoration: underline;
  text-decoration-color: rgba(45, 122, 16, 0.3);
  text-underline-offset: 3px;
  transition: text-decoration-color 180ms ease, color 180ms ease;
}
body:not(.home) .page-content a:hover,
body:not(.home) .page-extended a:hover {
  color: var(--sm-accent-hover);
  text-decoration-color: var(--sm-accent);
}

body:not(.home) .page-content img,
body:not(.home) .page-extended img {
  max-width: 100%;
  height: auto;
  border-radius: var(--sm-radius-sm);
  box-shadow: var(--sm-shadow-sm);
  margin: 0.5em 0;
}

body:not(.home) .page-content ul,
body:not(.home) .page-extended ul,
body:not(.home) .page-content ol,
body:not(.home) .page-extended ol {
  padding-left: 1.25em;
  margin-bottom: 1.25em;
}
body:not(.home) .page-content li,
body:not(.home) .page-extended li {
  margin-bottom: 0.45em;
}

body:not(.home) .page-content blockquote,
body:not(.home) .page-extended blockquote {
  margin: 1.5em 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--sm-accent);
  background: var(--sm-bg-soft);
  border-radius: 0 var(--sm-radius-sm) var(--sm-radius-sm) 0;
  color: var(--sm-text-muted);
  font-style: italic;
}

body:not(.home) .page-content table,
body:not(.home) .page-extended table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  margin: 1.5em 0;
  border-radius: var(--sm-radius-sm);
  overflow: hidden;
  box-shadow: var(--sm-shadow-sm);
  background: #fff;
}
body:not(.home) .page-content th,
body:not(.home) .page-extended th {
  background: var(--sm-bg-soft);
  color: var(--sm-text);
  font-weight: 700;
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--sm-border);
}
body:not(.home) .page-content td,
body:not(.home) .page-extended td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--sm-border-soft);
}
body:not(.home) .page-content tr:last-child td,
body:not(.home) .page-extended tr:last-child td {
  border-bottom: none;
}

/* ---------- NUPUD (A: pill, 50 px, Manrope 700; amber = peamine CTA) ---------- */

.btn, a.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 24px;
  border-radius: var(--ds-radius-pill, 999px);
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-weight: var(--ds-fw-bold, 700);
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.2;
  box-shadow: var(--ds-shadow-btn);
  transition: background var(--sm-transition), color var(--sm-transition),
              transform 220ms var(--ds-ease), box-shadow var(--sm-transition);
}
.btn:hover, a.btn:hover { transform: translateY(-2px); }
.btn:active, a.btn:active { transform: translateY(0); }
.btn-primary, a.btn-primary {
  background: var(--sm-accent) !important;
  color: #fff !important;
  border: none !important;
}
.btn-primary:hover, a.btn-primary:hover {
  background: var(--sm-accent-hover) !important;
  box-shadow: 0 8px 20px -6px rgba(46, 125, 50, 0.55);
}
.btn-amber, a.btn-amber {
  background: var(--sm-amber) !important;
  color: #fff !important;
  border: none !important;
}
.btn-amber:hover, a.btn-amber:hover { background: var(--ds-amber-dark, #c97a07) !important; color: #fff !important; }
.btn-ghost, a.btn-ghost, .btn-outline-light, a.btn-outline-light {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border: 1.5px solid rgba(255, 255, 255, 0.75) !important;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.btn-ghost:hover, a.btn-ghost:hover, .btn-outline-light:hover, a.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.26) !important;
  color: #fff !important;
}
.btn-outline, a.btn-outline {
  border: 2px solid var(--sm-accent) !important;
  color: var(--sm-accent) !important;
  background: transparent !important;
  box-shadow: none;
}
.btn-outline:hover, a.btn-outline:hover {
  background: var(--sm-accent-soft) !important;
  color: var(--sm-accent-hover) !important;
}
.btn-white, a.btn-white { background: #fff !important; color: var(--sm-accent) !important; }
.btn-white:hover, a.btn-white:hover { background: var(--sm-bg-soft) !important; color: var(--sm-accent-hover) !important; }
.btn-sm, a.btn-sm { min-height: 42px; padding: 0 18px; font-size: 0.9375rem; }
.btn-lg, a.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block, a.btn-block { display: flex; width: 100%; }

/* ---------- SIDEBAR (subpage nav) ---------- */

body:not(.home) .page-sidebar {
  background: var(--sm-bg-soft);
  border-radius: var(--sm-radius);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--sm-border-soft);
  align-self: flex-start;
  position: sticky;
  top: 96px;
}

body:not(.home) .page-sidebar .sidebar-nav h3 {
  font-size: 1rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  border-bottom-width: 1px !important;
  padding-bottom: 10px !important;
}

body:not(.home) .page-sidebar .sidebar-nav a {
  transition: background 180ms ease, color 180ms ease, transform 160ms ease;
}
body:not(.home) .page-sidebar .sidebar-nav a:hover {
  transform: translateX(3px);
}

/* ---------- UUDISTE KAARDID ---------- */

.news-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: clamp(1rem, 2vw, 1.5rem) !important;
}

.news-card {
  background: #fff !important;
  border: 1px solid var(--sm-border-soft) !important;
  border-radius: var(--sm-radius) !important;
  overflow: hidden !important;
  transition: transform var(--sm-transition), box-shadow var(--sm-transition),
              border-color var(--sm-transition) !important;
  box-shadow: var(--sm-shadow-sm) !important;
  display: flex !important;
  flex-direction: column !important;
}
.news-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--sm-shadow-lg) !important;
  border-color: rgba(45, 122, 16, 0.2) !important;
}
.news-card .news-card-image,
.news-card img {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1) !important;
}
.news-card:hover .news-card-image,
.news-card:hover img {
  transform: scale(1.04) !important;
}

.news-card h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.news-card .news-date {
  color: var(--sm-accent) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem !important;
}

/* Uudise artikli leht */

body.news-article .article-wrapper,
body .news-article-wrapper {
  max-width: 820px;
  margin: 0 auto;
}

/* ---------- CARD / TEENUSE KAART alamlehe sees ---------- */

.service-card, .product-card, .breed-card {
  background: #fff;
  border: 1px solid var(--sm-border-soft);
  border-radius: var(--sm-radius);
  overflow: hidden;
  transition: transform var(--sm-transition), box-shadow var(--sm-transition),
              border-color var(--sm-transition);
  box-shadow: var(--sm-shadow-sm);
}
.service-card:hover, .product-card:hover, .breed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sm-shadow-lg);
  border-color: rgba(45, 122, 16, 0.2);
}

/* ---------- PARANDUSED PEALEHE HERO-LE ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 18, 0.1) 0%, rgba(15, 23, 18, 0.35) 100%);
  pointer-events: none;
}
.page-hero h1 {
  color: #fff;
  text-shadow: 0 2px 8px rgba(15, 23, 18, 0.3);
  position: relative;
  z-index: 2;
}

/* ---------- SEKTSIOONIDE ANIMATSIOON ---------- */

@media (prefers-reduced-motion: no-preference) {
  .fade-in {
    animation: sm-fade-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  @keyframes sm-fade-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- HEADER / NAV (A: ühtlane roheline riba, kleepuv, kerides kompaktne) ---------- */

#site-header,
body.home #site-header,
body.home #site-header:not(.scrolled),
body.home #site-header.scrolled {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--ds-header-h, 72px);
  background: var(--sm-accent) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: height 220ms var(--ds-ease), box-shadow 240ms ease;
  z-index: var(--ds-z-header, 1000);
}
#site-header.scrolled,
body.home #site-header.scrolled {
  height: var(--ds-header-h-compact, 60px);
  box-shadow: 0 4px 18px -6px rgba(15, 23, 18, 0.35);
}
#site-header .header-inner { max-width: var(--ds-container-wide, 1400px); height: 100%; }
/* Logo: alati valge versioon rohelisel taustal */
#site-header .logo-img.logo-dark { display: none !important; }
#site-header .logo-img.logo-light { display: block !important; }
#site-header .logo-img { height: 54px; transition: height 220ms var(--ds-ease); }
#site-header.scrolled .logo-img { height: 44px; }
/* Menüülingid: A — 15 px, 600, ilma suurtähtedeta, ümar hover-taust */
#site-header .main-menu .menu-link,
#site-header .main-menu .menu-parent,
body.home #site-header:not(.scrolled) .main-menu .menu-link,
body.home #site-header:not(.scrolled) .main-menu .menu-parent {
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-size: 0.9375rem !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0 !important;
  color: #fff !important;
  text-shadow: none;
  border-radius: var(--ds-radius-sm, 8px);
  padding: 8px 11px !important;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  transition: background 160ms ease;
}
#site-header .main-menu .menu-link:hover,
#site-header .main-menu .menu-parent:hover,
body.home #site-header:not(.scrolled) .main-menu .menu-link:hover,
body.home #site-header:not(.scrolled) .main-menu .menu-parent:hover { background: rgba(255, 255, 255, 0.14); color: #fff !important; }
/* Sahtli menüüpunktid (sh .menu-parent) on tumedad valgel taustal */
#site-header .mobile-menu .mobile-menu-link,
#site-header .mobile-menu .mobile-menu-link.menu-parent { color: var(--sm-text) !important; }
#site-header .menu-item.active > .menu-link { border-bottom: none; background: rgba(255, 255, 255, 0.18); }
/* „Pood“ amber-märgistus menüüs (A: a-links-shop) */
/* 2026-11-13 välja lülitatud: oranž jääb ainult müügikutsele (teateriba, „Müü loomad meile“)
#site-header .menu-item > .menu-link[href$="/pood/"],
#site-header .menu-item > .menu-link[href$="/pood/?lang=en"],
#site-header .menu-item > .menu-link[href$="/pood/?lang=ru"] { background: var(--sm-amber); }
#site-header .menu-item > .menu-link[href$="/pood/"]:hover { background: var(--ds-amber-dark, #c97a07); } */
/* Oksjoni ikoon-link jääb */
#site-header .menu-item-auction .menu-link i { opacity: 0.85; }
/* Alammenüü */
#site-header .submenu { border-radius: var(--ds-radius, 12px); border-color: var(--sm-border); box-shadow: var(--sm-shadow-lg); padding: 6px; overflow: hidden; }
#site-header .submenu-link { border-radius: var(--ds-radius-sm, 8px); font-size: 0.95rem; color: var(--sm-text); padding: 10px 14px; min-height: 44px; display: flex; align-items: center; }
#site-header .submenu-link:hover { background: var(--sm-accent-soft); color: var(--sm-accent); padding-left: 14px; }
/* Iseteenindus-pill (A: hele roheline pill) */
#site-header .nav-iseteenindus-btn,
body.home #site-header:not(.scrolled) .nav-iseteenindus-btn {
  background: var(--ds-green-bright, #5cb025) !important;
  color: #fff !important;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-size: 0.875rem;
  min-height: 40px;
  box-shadow: none;
}
#site-header .nav-iseteenindus-btn:hover { background: var(--ds-green-dark, #1f5a22) !important; transform: none; }
#site-header .nav-user-btn { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.3); color: #fff; }
#site-header .nav-user-btn > i.fa-user-check { color: #fff; }
#site-header .nav-user-btn:hover { background: rgba(255,255,255,0.24); }
/* Hamburger (A: 48 px ruut) */
#site-header .menu-toggle {
  width: 48px; height: 48px; margin-right: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
  align-items: center; justify-content: center;
}
#site-header .menu-toggle span { background-color: #fff !important; }
#site-header .menu-toggle.active { background: rgba(255,255,255,0.26); }

/* ---------- MOBIILISAHTEL (C: täiskõrgus, suured read, kontaktirida) ---------- */
@media (max-width: 1024px) {
  #site-header .mobile-nav,
  #site-header .mobile-nav.active {
    position: fixed;
    top: var(--ds-header-h, 60px);
    left: 0; right: 0; bottom: 0;
    max-height: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: #fff !important;
    box-shadow: none;
    z-index: var(--ds-z-drawer, 1001);
    display: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  #site-header .mobile-nav.active { display: block; }
  body.cms-edit-mode #site-header .mobile-nav { top: calc(var(--ds-header-h, 60px) + 40px); }
  #site-header .mobile-menu { padding: 8px 0 0; }
  #site-header .mobile-menu .mobile-menu-link {
    font-family: var(--ds-font-head, "Mulish", sans-serif);
    font-size: 1.125rem;
    text-transform: none;
    letter-spacing: 0;
    min-height: 56px;
    padding: 14px var(--ds-gutter, 16px);
  }
  #site-header .mobile-submenu a { min-height: 48px; display: flex; align-items: center; font-size: 1rem; padding: 10px var(--ds-gutter, 16px) 10px 28px; }
  #site-header .mobile-menu-cta { min-height: 50px; text-transform: none; letter-spacing: 0; font-family: var(--ds-font-head, "Mulish", sans-serif); background: var(--sm-accent); }
  .mobile-contact-row {
    display: grid;
    gap: 10px;
    padding: 16px var(--ds-gutter, 16px) 24px;
    border-top: 1px solid var(--sm-border);
    background: var(--sm-bg-soft);
  }
  .mobile-contact-link {
    display: flex; align-items: center; gap: 12px;
    min-height: 52px; padding: 0 16px;
    background: #fff; border: 1.5px solid var(--sm-border);
    border-radius: var(--ds-radius, 12px);
    font-family: var(--ds-font-head, "Mulish", sans-serif);
    font-weight: 700; font-size: 1.0625rem;
    color: var(--sm-accent) !important; text-decoration: none;
  }
  .mobile-contact-link i { width: 20px; text-align: center; }
  body.drawer-open { overflow: hidden; }
}
@media (min-width: 1025px) { .mobile-contact-row { display: none; } }

/* ---------- FOOTER (A: tume, 4 veergu, brändilogod, © + privaatsus) ---------- */

footer, .site-footer {
  margin-top: 0;
}
#site-footer, footer#site-footer {
  background: var(--ds-bg-dark, #1f2421) !important;
  color: #b9c2bb;
  font-size: var(--ds-fs-sm, 0.9375rem);
  padding: 28px 0 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
/* Kleepuva arvutiriba all jätame jalusele ruumi, et © rida ei jääks riba taha */
@media (min-width: 768px) { body.show-dbar #site-footer { padding-bottom: calc(14px + var(--ds-dbar-h, 56px)); } }
#site-footer::before { background: none; }
#site-footer .footer-inner { max-width: var(--ds-container, 1120px); padding: 0 var(--ds-gutter, 28px); }
#site-footer .footer-main.footer-grid,
footer.footer-centered .footer-main.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 20px;
  padding: 0 0 14px;
  text-align: left;
  align-items: start;
}
#site-footer .footer-brand-col { display: block; }
#site-footer .footer-brand-link { display: inline-block; margin-bottom: 8px; }
#site-footer .footer-logo-img { height: 36px; width: auto; }
#site-footer .footer-desc { max-width: 380px; margin: 0 0 8px; color: #b9c2bb; }
#site-footer .footer-contact-col { display: grid; gap: 3px; justify-self: start; margin-top: 2px; }
#site-footer .footer-contact-item { justify-content: flex-start; color: #b9c2bb; font-size: var(--ds-fs-sm); line-height: 1.4; align-items: flex-start; }
#site-footer .footer-contact-item i { color: var(--ds-green-bright, #5cb025); margin-top: 4px; }
#site-footer .footer-contact-item a { color: #e6ebe4 !important; min-height: 0; }
#site-footer .footer-contact-item a:hover { color: #fff !important; text-decoration: underline; }
#site-footer .footer-hours-label { color: #8f9a92; }
#site-footer .footer-social-links { display: flex; flex-direction: row; gap: 8px; margin: 10px 0 0; }
#site-footer .footer-social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: #fff !important; font-size: 1.05rem;
  transition: background 160ms ease;
}
#site-footer .footer-social-links a:hover { background: var(--ds-green-bright, #5cb025); }
#site-footer .footer-social-links a i { margin: 0; }
#site-footer .footer-legal { margin-top: 8px; color: #7a857e; font-size: 0.78rem; }
#site-footer .footer-col { display: grid; align-content: start; gap: 0; }
#site-footer .footer-col-title,
#site-footer h4.footer-col-title {
  margin: 0 0 4px; color: #fff !important;
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-size: 0.9375rem; font-weight: 800; letter-spacing: 0; text-transform: none;
}
#site-footer .footer-col a {
  display: inline-flex; align-items: center; min-height: 30px; padding: 1px 0;
  color: #b9c2bb !important; text-decoration: none; font-size: var(--ds-fs-sm);
  transition: color 140ms ease;
}
#site-footer .footer-col a:hover { color: #fff !important; }
#site-footer .footer-brands { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
#site-footer .footer-brands img { height: 22px; width: auto; background: #fff; padding: 4px 8px; box-sizing: content-box; border-radius: 6px; }
#site-footer .footer-nav { justify-content: flex-start; padding: 14px 0; border-top: 1px solid var(--ds-line-dark, #333a35); gap: 2px 4px; }
#site-footer .footer-nav a { color: #b9c2bb; text-transform: none; letter-spacing: 0; font-size: var(--ds-fs-sm); font-weight: 600; padding: 6px 8px; border-radius: 6px; min-height: 40px; display: inline-flex; align-items: center; }
#site-footer .footer-nav a:hover { color: #fff; background: rgba(255,255,255,0.08); }
#site-footer .footer-nav-dot { color: #4a534d; }
#site-footer .footer-bottom { border-top: 1px solid var(--ds-line-dark, #333a35); padding: 12px 0 0; text-align: left; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
#site-footer .footer-bottom p { margin: 0; color: #7a857e; font-size: 0.8125rem; letter-spacing: 0; }
#site-footer .footer-bottom a { color: #b9c2bb !important; min-height: 32px; display: inline-flex; align-items: center; }
#site-footer .footer-bottom a:hover { color: #fff !important; }
#site-footer .footer-images-strip { border-bottom-color: var(--ds-line-dark, #333a35); }
@media (max-width: 900px) {
  #site-footer .footer-main.footer-grid,
  footer.footer-centered .footer-main.footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  #site-footer .footer-brand-col { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  #site-footer .footer-main.footer-grid,
  footer.footer-centered .footer-main.footer-grid { grid-template-columns: 1fr; }
}

/* ---------- ARVUTI KLEEPUV ALUMINE RIBA (≥ 768 px): kontakt + lahtiolek + nupud; ilmub body.show-dbar korral ---------- */
.dbar { display: none; }
@media (min-width: 768px) {
  .dbar {
    display: block;
    position: fixed; left: 0; right: 0; bottom: 0;
    height: var(--ds-dbar-h, 56px);
    background: var(--ds-green-deep, #221f20);
    color: #e6ebe4;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.18);
    z-index: var(--ds-z-bar, 990);
    transform: translateY(110%);
    transition: transform 220ms ease;
  }
  body.show-dbar .dbar { transform: translateY(0); }
  .dbar-inner {
    max-width: var(--ds-container, 1120px); margin: 0 auto; height: 100%;
    padding: 0 var(--ds-gutter, 28px);
    display: flex; align-items: center; gap: 22px;
    font-size: var(--ds-fs-sm, 0.9375rem);
  }
  .dbar-link, .dbar-hours { display: inline-flex; align-items: center; gap: 8px; color: #e6ebe4 !important; text-decoration: none; white-space: nowrap; min-height: 40px; }
  .dbar-link:hover { color: #fff !important; text-decoration: underline; }
  .dbar-link i, .dbar-hours i { color: var(--ds-green-bright, #5cb025); }
  .dbar-hours { color: #b9c2bb !important; }
  .dbar-name { color: #b9c2bb; font-weight: 500; }
  .dbar-spacer { flex: 1; }
  /* Nupud: sama pillikuju kui mujal, ühtlane kõrgus 40 px, ikoon ja tekst ühel joonel */
  .dbar .dbar-btn, .dbar a.dbar-btn {
    min-height: 40px; padding: 0 18px; font-size: 0.9375rem; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; line-height: 1;
    transform: none !important; box-shadow: none !important;
  }
  .dbar .dbar-btn i { font-size: 0.9em; }
  .dbar a.btn-ghost { background: transparent !important; border: 1.5px solid rgba(255,255,255,0.55) !important; color: #fff !important; }
  .dbar a.btn-ghost:hover { background: rgba(255,255,255,0.14) !important; border-color: #fff !important; }
  .dbar-close {
    width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 0;
    background: rgba(255,255,255,0.12); color: #fff; font-size: 0.85rem; line-height: 1;
    cursor: pointer; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
    transition: background 140ms ease;
  }
  .dbar-close:hover { background: rgba(255,255,255,0.26); }
  /* Admini toastid ja "Näita CMS-kohti" nupp nihkuvad riba kohale */
  body.show-dbar .cms-toast { bottom: calc(var(--ds-dbar-h, 56px) + 16px); }
  body.show-dbar #cmsHintsToggle { bottom: calc(var(--ds-dbar-h, 56px) + 12px) !important; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .dbar-hours { display: none; }
  .dbar-inner { gap: 14px; }
}

/* ---------- MOBIILI ALUMINE TEGEVUSRIBA (C: Helista · Pood · Müügivorm · Menüü) ---------- */
.mbar { display: none; }
@media (max-width: 767px) {
  .mbar {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: #fff;
    border-top: 1px solid #d9e0d5;
    box-shadow: var(--ds-shadow-bar);
    z-index: var(--ds-z-bar, 990);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mbar-item {
    display: grid; justify-items: center; align-content: center; gap: 4px;
    min-height: var(--ds-bar-h, 64px);
    font-family: var(--ds-font-head, "Mulish", sans-serif);
    font-size: 0.75rem; font-weight: 700;
    color: var(--ds-green-deep, #221f20) !important;
    text-decoration: none; background: none; border: 0; cursor: pointer; line-height: 1;
    -webkit-tap-highlight-color: transparent;
  }
  .mbar-item i { font-size: 1.25rem; }
  .mbar-item:active { background: var(--sm-bg-soft); }
  .mbar-item--main { background: var(--sm-amber); color: #fff !important; }
  .mbar-item--main:active { background: var(--ds-amber-dark, #c97a07); }
  /* Sisu ei jää riba alla; sahtli avamisel riba peidetakse */
  body { padding-bottom: calc(var(--ds-bar-h, 64px) + env(safe-area-inset-bottom, 0px)); }
  body.drawer-open .mbar { display: none; }
  /* Fikseeritud/kleepuvad elemendid (toastid, chat-nupud) nihkuvad riba kohale */
  .cms-toast { bottom: calc(var(--ds-bar-h, 64px) + 16px); }
}

/* ---------- HERO (A: täislaiuses foto + gradient, vasakule joondatud sisu) ---------- */
.hero, body.home .hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background: var(--ds-green-deep, #221f20);
  height: auto;
  min-height: clamp(520px, var(--hero-h, 72vh), 82vh);
  padding: 0;
}
body:not(.home) .hero { min-height: clamp(260px, var(--hero-h, 36vh), 420px); }
.hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; background-size: cover; background-position: center; z-index: 0; display: block; }
.hero .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0;
  transform: none; object-fit: cover; z-index: 1; opacity: 0; transition: opacity var(--ds-dur-slow, 600ms) ease;
}
.hero.hero--video-on .hero-video { opacity: 1; }
.hero .hero-overlay { position: absolute; inset: 0; z-index: 2; background: var(--ds-gradient-hero) !important; opacity: 1; }
.hero .hero-content {
  position: relative; z-index: 3;
  width: 100%; max-width: var(--ds-container, 1120px);
  margin: 0 auto;
  padding: 60px var(--ds-gutter, 28px);
  text-align: left;
}
.hero-eyebrow {
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-size: var(--ds-fs-xs, 0.8125rem); letter-spacing: var(--ds-tracking-caps, 0.14em);
  text-transform: uppercase; font-weight: 700; color: #cfe8c4; margin: 0 0 12px;
}
.hero .hero-title, body.home .hero-title {
  font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-size: var(--ds-fs-3xl); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.02em; max-width: 14ch; margin: 0 0 16px; color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.3);
}
body:not(.home) .hero .hero-title { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.75rem); max-width: 24ch; }
.hero .hero-subtitle, body.home .hero-subtitle {
  font-size: var(--ds-fs-md, 1.1875rem); line-height: 1.5; font-weight: 400;
  max-width: 56ch; margin: 0 0 26px; color: #eef4ea; text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}
.hero .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: flex-start; margin: 0; }
.hero-phone {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 8px;
  font-family: var(--ds-font-head, "Mulish", sans-serif); font-weight: 700; font-size: 1.125rem;
  color: #fff !important; text-decoration: none; margin-left: 8px;
}
.hero-phone:hover { text-decoration: underline; }
.hero .hero-video-toggle { z-index: 4; bottom: 20px; right: 20px; }
.hero .hero-video-toggle[hidden] { display: none; }
.hero-bg-reduced { display: block; }
@media (max-width: 767px) {
  .hero, body.home .hero { min-height: 0; }
  body:not(.home) .hero { min-height: 0; }
  .hero .hero-content { padding: 44px var(--ds-gutter, 16px) 40px; }
  .hero .hero-title, body.home .hero-title { font-size: 2.125rem; max-width: none; }
  .hero .hero-subtitle { font-size: 1rem; margin: 12px 0 20px; }
  .hero .hero-actions { flex-direction: column; align-items: stretch; }
  .hero .hero-actions .btn { width: 100%; }
  .hero-phone { margin: 4px 0 0; justify-content: center; }
  .hero .hero-video, .hero .hero-video-toggle { display: none !important; }
}

/* ---------- ALAMLEHE PEALKIRJARIBA (A-roheline, vasakule joondatud) ---------- */
.page-title-bar {
  background: var(--ds-gradient-green) !important;
  padding: clamp(28px, 4vw, 44px) 0;
  text-align: left;
}
.page-title-bar .container { max-width: var(--ds-container, 1120px); padding: 0 var(--ds-gutter, 28px); }
.page-title-bar__heading {
  font-family: var(--ds-font-head, "Mulish", sans-serif) !important;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.5rem) !important;
  font-weight: 800; letter-spacing: -0.02em; color: #fff; margin: 0;
}
.page-title-bar__subtitle { color: #dfe9db; font-size: var(--ds-fs-md); margin: 8px 0 0; }

/* ---------- SEKTSIOONIPEAD JA KAARDID (A: a-sec-head / a-card) — jagatud ---------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.sec-head h2 { margin: 0 0 6px; font-size: var(--ds-fs-2xl); }
.sec-head .sec-sub { margin: 0; color: var(--sm-text-muted); font-size: var(--ds-fs-base); max-width: 60ch; }
.sec-more {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  color: var(--sm-accent) !important; font-family: var(--ds-font-head, "Mulish", sans-serif);
  font-weight: 700; text-decoration: none; white-space: nowrap;
}
.sec-more:hover { color: var(--sm-accent-hover) !important; gap: 10px; }
.eyebrow { font-family: var(--ds-font-head, "Mulish", sans-serif); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--sm-accent); }
.eyebrow--amber { color: var(--sm-amber); }
.section-soft { background: var(--sm-bg-soft); }
.container { padding-left: var(--ds-gutter, 28px); padding-right: var(--ds-gutter, 28px); }

/* Puutealad ≥ 48 px üldistel juhtelementidel (C) */
@media (pointer: coarse) {
  .btn, a.btn, button.btn { min-height: var(--ds-tap, 48px); }
  input[type="submit"], button[type="submit"] { min-height: var(--ds-tap, 48px); }
}

/* ---------- KONTAKTVORM / MÜÜGIVORM ---------- */

form.contact-form input,
form.contact-form textarea,
form.contact-form select,
form.muugivorm input,
form.muugivorm textarea,
form.muugivorm select,
.cms-form input,
.cms-form textarea,
.cms-form select {
  border: 1.5px solid var(--sm-border) !important;
  border-radius: var(--sm-radius-sm) !important;
  padding: 0.75rem 1rem !important;
  font-size: 1rem;
  transition: border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
  background: #fff;
}
form.contact-form input:focus,
form.contact-form textarea:focus,
form.contact-form select:focus,
form.muugivorm input:focus,
form.muugivorm textarea:focus,
form.muugivorm select:focus,
.cms-form input:focus,
.cms-form textarea:focus,
.cms-form select:focus {
  outline: none;
  border-color: var(--sm-accent) !important;
  box-shadow: 0 0 0 4px var(--sm-accent-soft) !important;
}

form.contact-form button[type="submit"],
form.muugivorm button[type="submit"],
.cms-form button[type="submit"] {
  background: var(--sm-accent-gradient);
  color: #fff;
  border: none;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease;
  box-shadow: 0 4px 14px -4px rgba(45, 122, 16, 0.45);
}
form.contact-form button[type="submit"]:hover,
form.muugivorm button[type="submit"]:hover,
.cms-form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -6px rgba(45, 122, 16, 0.55);
}

/* ============================================================
   KEELE-SPETSIIFILISED AKTSENTID
   Üldine disain on sama kõigis keeltes, aga igas keeles on
   peen aktsent: rõhuvärv, kaardi nurk, lõige jms.
   ET — klassikaline roheline (rohkem rustic)
   EN — moderrnem, krõmpsum aktsent (teravam nurk, sinakam roheline)
   RU — soojem, peeneml sinist toonidega segunev roheline
   ============================================================ */

body.lang-en {
  --sm-radius: 12px;
  --sm-radius-sm: 8px;
  --sm-radius-lg: 16px;
}
body.lang-en .page-intro {
  border-left-color: var(--sm-accent);
}
body.lang-en h1, body.lang-en h2 {
  letter-spacing: -0.025em; /* veidi teravam */
}

body.lang-ru {
  --sm-radius: 16px;
  --sm-radius-sm: 12px;
  --sm-radius-lg: 22px;
}
body.lang-ru h1, body.lang-ru h2 {
  letter-spacing: -0.015em; /* kirillitsale veidi avaram */
}
body.lang-ru .page-intro {
  border-left-width: 4px;
}

/* ET (vaikimisi) — roheline roots toon. CSS kasutab :root'is määratletud väärtusi.
   Sellele ei ole vaja eraldi reeglit. */

/* ---------- SECTION CARDS-GRID (kaubad-teenused) ---------- */

body:not(.home) .cards-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ---------- SMOOTH SCROLL + FOCUS-VISIBLE ---------- */

html { scroll-behavior: smooth; }

:focus-visible {
  outline: 3px solid var(--sm-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Peida harvade, iganenud "teenused" linkide murdmine — tõrkekindel */
a[href$="./teenused/"],
a[href$="/teenused/"]:not([href*="kaubad-teenused"]) {
  display: inline; /* jätab stiili samaks, aga välistame pahatahtliku väljajätmise */
}

/* ---------- MOBIILNE PAIGUTUS ---------- */

@media (max-width: 768px) {
  body:not(.home) .article-wrapper.layout-sidebar-left,
  body:not(.home) .article-wrapper.layout-sidebar-right,
  body:not(.home) .article-wrapper.layout-two-column {
    display: block !important;
    grid-template-columns: 1fr !important;
  }
  body:not(.home) .page-sidebar {
    position: static;
    margin-bottom: 1.5rem;
  }
}

/* ============================================================
   Teenuste alamlehed — rikkalik visuaal (.svc-*)
   Kasutatakse cms_pages sisus: kaubad-teenused/veiste-ost jne
   ============================================================ */
.svc-detail { --svc-green:#399b15; --svc-dark:#2e7d0f; }
.svc-detail > *:first-child { margin-top: 0; }

/* Bänner-pilt */
.svc-banner {
  position: relative;
  min-height: 240px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  box-shadow: 0 8px 26px rgba(0,0,0,.18);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-bottom: 2rem;
}
.svc-banner::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.svc-banner-cap {
  position: relative; z-index: 1;
  color: #fff; font-size: 1.35rem; font-weight: 700;
  line-height: 1.35; padding: 1.4rem 1.6rem; max-width: 80%;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}

/* Sektsiooni pealkiri */
.svc-section-title {
  font-size: 1.5rem; color: var(--svc-dark);
  margin: 2.4rem 0 1.1rem; padding-bottom: .5rem;
  border-bottom: 2px solid #e3efd8; display: flex; align-items: center; gap: .55rem;
}
.svc-section-title i { color: var(--svc-green); }

/* Võimaluste ruudustik */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 1.1rem;
}
.svc-card {
  background: #fff; border: 1px solid #e6ebe0; border-radius: 12px;
  padding: 1.3rem 1.2rem; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(57,155,21,.14); border-color: #cfe3bf; }
.svc-ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #eaf6e1, #d8eecb);
  color: var(--svc-green); display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem; margin-bottom: .8rem;
}
.svc-card h3 { font-size: 1.06rem; margin: 0 0 .35rem; color: #2b3a1e; }
.svc-card p { margin: 0; font-size: .93rem; color: #5c6b52; line-height: 1.55; }

/* Sammud */
.svc-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.svc-step { position: relative; background: #f6faf2; border-radius: 12px; padding: 1.2rem 1.2rem 1.2rem 3.4rem; }
.svc-num {
  position: absolute; left: 1rem; top: 1.1rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--svc-green); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: .95rem;
  box-shadow: 0 3px 8px rgba(57,155,21,.35);
}
.svc-step h4 { margin: 0 0 .3rem; font-size: 1.02rem; color: #2b3a1e; }
.svc-step p { margin: 0; font-size: .9rem; color: #5c6b52; line-height: 1.5; }

/* Pilt + tekst */
.svc-media { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; align-items: center; margin-top: 2.2rem; }
.svc-media img { width: 100%; height: 100%; max-height: 300px; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.svc-media h3 { color: var(--svc-dark); font-size: 1.25rem; margin: 0 0 .6rem; }
.svc-media p { color: #4f5c46; line-height: 1.65; margin: 0; }

/* CTA */
.svc-cta {
  margin-top: 2.4rem; border-radius: 14px; padding: 1.6rem 1.8rem;
  background: linear-gradient(135deg, #3a8f1a, #256d0c); color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap;
}
.svc-cta h3 { margin: 0 0 .3rem; font-size: 1.25rem; color: #fff; }
.svc-cta p { margin: 0; color: #e8f5e0; font-size: .96rem; }
.svc-cta .btn-white {
  background: #fff; color: var(--svc-dark); font-weight: 700;
  padding: .75rem 1.5rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .15s ease;
}
.svc-cta .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.22); }

/* Klõbitavad ülevaate-kaardid (vanemleht) */
.svc-linkgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 1.1rem; }
.svc-linkcard {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid #e6ebe0; border-radius: 12px;
  padding: 1.3rem 1.2rem; text-decoration: none; color: inherit;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.svc-linkcard:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(57,155,21,.14); border-color: #cfe3bf; }
.svc-linkcard h3 { font-size: 1.06rem; margin: 0 0 .35rem; color: #2b3a1e; }
.svc-linkcard p { margin: 0 0 .9rem; font-size: .9rem; color: #5c6b52; line-height: 1.5; flex: 1; }
.svc-more { color: var(--svc-green); font-weight: 700; font-size: .88rem; }
.svc-linkcard:hover .svc-more { text-decoration: underline; }

/* Olekumärk (nt "Valmimas – avame peagi") ja selle kõrval lühike märkus */
.svc-status { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .9rem; margin: 0 0 1.2rem; }
.svc-badge {
  display: inline-flex; align-items: center; gap: .45rem;
  background: #fff4d6; color: #7a5300; border: 1px solid #f0d58a;
  font-weight: 700; font-size: .92rem; padding: .4rem .85rem; border-radius: 999px;
}
.svc-badge i { color: #c48a00; }
.svc-status-note { color: #5c6b52; font-size: .95rem; }
.svc-linkgrid .svc-badge { font-size: .78rem; padding: .2rem .6rem; margin-bottom: .5rem; align-self: flex-start; }
/* Seotud lingid ("Vaata ka") */
.svc-related { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.svc-related li { margin: 0; }
.svc-related a { color: var(--svc-dark); font-weight: 600; }
.svc-related a i { color: var(--svc-green); width: 1.2em; }
/* CTA kahe nupuga */
.svc-cta-btns { display: flex; flex-wrap: wrap; gap: .7rem; }
.svc-cta a.svc-cta-link { color: #fff; text-decoration: underline; }
.svc-cta .btn-ghost-white {
  border: 2px solid rgba(255,255,255,.85); color: #fff; font-weight: 700;
  padding: .65rem 1.3rem; border-radius: 8px; text-decoration: none; white-space: nowrap;
}
.svc-cta .btn-ghost-white:hover { background: rgba(255,255,255,.12); }
/* Fotoviited (CC-litsentsiga pildid) */
.svc-credits { margin-top: 1.6rem; font-size: .8rem; line-height: 1.5; color: #7a8670; }
.svc-credits a { color: inherit; }

/* Teenuselehe lisaelemendid (Müü veiseid meile, 2026-10-25): sissejuhatus, kontrollnimekiri, hinnaalused, KKK */
.svc-lead { font-size: 1.08rem; line-height: 1.65; color: #3d4a33; margin: 0 0 1.2rem; }
.svc-cta--top { margin-top: 0; margin-bottom: 1.6rem; }
.svc-cta .svc-cta-contacts { margin-top: .5rem; display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; }
.svc-cta .svc-cta-contacts a { color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; }
.svc-cta .svc-cta-contacts a:hover { text-decoration: underline; }
/* Üldine sisulinkide reegel (body:not(.home) .page-content a) tegi rohelisel CTA-l lingid nähtamatuks */
body:not(.home) .page-content .svc-cta a.btn-ghost-white,
body:not(.home) .page-content .svc-cta a.svc-cta-link,
body:not(.home) .page-content .svc-cta .svc-cta-contacts a { color: #fff; text-decoration-color: rgba(255,255,255,.5); }
body:not(.home) .page-content .svc-cta a.btn-ghost-white,
body:not(.home) .page-content .svc-cta .svc-cta-contacts a { text-decoration: none; }
.svc-checklist { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: .6rem 1.4rem; }
.svc-checklist li { position: relative; padding-left: 1.7rem; line-height: 1.55; color: #3d4a33; }
.svc-checklist li i { position: absolute; left: 0; top: .2rem; color: var(--svc-green); }
.svc-note { background: #f6faf2; border-left: 4px solid var(--svc-green); border-radius: 8px; padding: .9rem 1.1rem; margin: 1.2rem 0 0; color: #3d4a33; line-height: 1.6; }
.svc-faq { border: 1px solid #e3ecd9; border-radius: 10px; background: #fff; margin: 0 0 .6rem; }
.svc-faq summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; color: #2b3a1e; list-style: none; position: relative; padding-right: 2.4rem; }
.svc-faq summary::-webkit-details-marker { display: none; }
.svc-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .7rem; font-size: 1.2rem; color: var(--svc-green); }
.svc-faq[open] summary::after { content: "–"; }
.svc-faq > div { padding: 0 1.1rem .9rem; color: #4f5c46; line-height: 1.6; }
.svc-faq > div p { margin: 0 0 .5rem; }

@media (max-width: 720px) {
  .svc-media { grid-template-columns: 1fr; }
  .svc-banner-cap { font-size: 1.1rem; max-width: 100%; }
  .svc-cta { flex-direction: column; align-items: flex-start; }
  .svc-cta .btn-white, .svc-cta .btn-ghost-white { white-space: normal; }
}

/* ---------- Tõulehtede galerii: tõupull suurelt, lehm ja vasikas kõrval (järjekord sisus: Lehm, Pull, Vasikas) ---------- */
.breed-gallery { grid-template-columns: 2fr 1fr !important; grid-auto-rows: auto; align-items: stretch; }
.breed-gallery > figure:nth-child(2) { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-direction: column; }
.breed-gallery > figure:nth-child(2) > a { flex: 1 1 auto; display: block; min-height: 0; }
.breed-gallery > figure:nth-child(2) img { height: 100% !important; aspect-ratio: auto !important; min-height: 320px; }
.breed-gallery > figure:nth-child(1) { grid-column: 2; grid-row: 1; }
.breed-gallery > figure:nth-child(3) { grid-column: 2; grid-row: 2; }
.breed-gallery > figure:nth-child(2) figcaption strong { font-size: 1.05rem; }
@media (max-width: 640px) {
  .breed-gallery { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .breed-gallery > figure:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .breed-gallery > figure:nth-child(2) img { min-height: 0; aspect-ratio: 4 / 3 !important; height: auto !important; }
  .breed-gallery > figure:nth-child(1) { grid-column: 1; grid-row: 2; }
  .breed-gallery > figure:nth-child(3) { grid-column: 2; grid-row: 2; }
  .breed-gallery figcaption { padding: 8px 10px 10px !important; font-size: 0.8rem; }
}
/* Osaline galerii (mõni roll puudub, vt includes/breed_gallery.php): võrdsed veerud, ilma suure pullita */
.breed-gallery.breed-gallery--partial { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.breed-gallery.breed-gallery--single { grid-template-columns: minmax(0, 640px) !important; }
.breed-gallery.breed-gallery--partial > figure:nth-child(n) { grid-column: auto; grid-row: auto; display: block; }
.breed-gallery.breed-gallery--partial > figure:nth-child(n) img { height: auto !important; min-height: 0; aspect-ratio: 4 / 3 !important; }

/* Alamlehtedel väiksem vahe päise ja sisu vahel (oli 80 px) */
body:not(.home) .page-section:first-of-type { padding-top: 44px; }
@media (max-width: 640px) { body:not(.home) .page-section:first-of-type { padding-top: 24px; } }

/* ============================================================
   AJAJOON (cms_blocks tüüp 'timeline'), TUNNUSTUSED (meist), LOOMADE HEAOLU (tüüp 'welfare')
   ============================================================ */
.cms-timeline { list-style: none; margin: 8px 0 0; padding: 0 0 0 28px; position: relative; }
.cms-timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--ds-line, #e8ede4); }
.cms-timeline-item { position: relative; padding: 0 0 22px; }
.cms-timeline-item:last-child { padding-bottom: 0; }
.cms-timeline-item::before {
  content: ""; position: absolute; left: -26px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--ds-green, #399b15); box-shadow: 0 0 0 4px var(--ds-green-soft, #e9f2e6);
}
.cms-timeline-item--nodate::before { background: #fff; border: 2px solid var(--ds-green, #399b15); }
.cms-timeline-date { font-family: var(--ds-font-head); font-weight: 800; color: var(--ds-green, #399b15); font-size: var(--ds-fs-sm); letter-spacing: .02em; margin-bottom: 2px; }
.cms-timeline-title { font-family: var(--ds-font-head); font-size: var(--ds-fs-md, 1.1875rem); line-height: var(--ds-lh-snug); margin: 0 0 4px; color: var(--ds-ink); }
.cms-timeline-desc { margin: 0; color: var(--ds-ink-muted); line-height: var(--ds-lh-base); }

.certs-grid, .welfare-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.cert-card, .welfare-card {
  display: flex; gap: 14px; align-items: flex-start; min-width: 0;
  padding: 18px; background: #fff; border: 1px solid var(--ds-line, #e8ede4);
  border-radius: var(--ds-radius, 12px); box-shadow: var(--ds-shadow-sm);
}
.cert-ic, .welfare-ic {
  flex: none; width: 42px; height: 42px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ds-green-soft, #e9f2e6); color: var(--ds-green, #399b15); font-size: 1.05rem;
}
.cert-body { min-width: 0; }
.cert-card h3, .welfare-card h3 { font-family: var(--ds-font-head); font-size: var(--ds-fs-base); line-height: var(--ds-lh-snug); margin: 0 0 4px; color: var(--ds-ink); }
.cert-card p, .welfare-card p { margin: 0; color: var(--ds-ink-muted); font-size: var(--ds-fs-sm); line-height: var(--ds-lh-base); }
.cert-card .cert-nr { margin-top: 8px; color: var(--ds-ink); overflow-wrap: anywhere; }
.cert-nr span { color: var(--ds-ink-soft); }
.cert-doc, .welfare-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; margin-top: 6px;
  color: var(--ds-green, #399b15); font-weight: 600; font-size: var(--ds-fs-sm); text-decoration: none;
}
.cert-doc:hover, .welfare-link:hover { text-decoration: underline; }

.welfare-block { margin-top: 8px; }
.welfare-block > h2 { margin-bottom: 6px; }
.welfare-intro { color: var(--ds-ink-muted); margin: 0 0 16px; }
.welfare-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.welfare-card { flex-direction: column; gap: 10px; }
.welfare-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 8px; border-radius: var(--ds-radius-pill, 999px);
  background: var(--ds-amber-soft, #fff3e0); color: var(--ds-amber-dark, #c97a07);
  font-size: var(--ds-fs-xs); font-weight: 700; letter-spacing: .02em; white-space: nowrap;
}
.welfare-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--ds-fs-sm); color: var(--ds-ink); }
.welfare-facts i { color: var(--ds-green, #399b15); margin-right: 4px; }
.welfare-link { margin-top: auto; }

@media (max-width: 480px) {
  .certs-grid, .welfare-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cert-card, .welfare-card { padding: 14px; }
  .cms-timeline { padding-left: 24px; }
  .cms-timeline-item::before { left: -22px; width: 12px; height: 12px; }
  .cms-timeline::before { left: 7px; }
}

/* Päise menüü ei tohi minna nav-toolsi (keelelipp + Iseteenindus) alla — --navtools-w seab js/main.js */
@media (min-width: 1025px) {
  body #site-header .nav-right,
  body.lang-ru #site-header .nav-right {
    padding-right: max(clamp(150px, 15vw, 300px), calc(var(--navtools-w, 0px) + 28px));
  }
}
/* 1025–1399 px: menüü + keelelipp + Iseteenindus ei mahu ühte ritta — peida „Avaleht“ (logo viib avalehele) ja Iseteeninduse tekst (jääb ikoon) */
@media (min-width: 1025px) and (max-width: 1399px) {
  #site-header .nav-left .main-menu > li:first-child:has(> a.menu-link) { display: none; } /* esimene = Avaleht */
  #site-header .nav-iseteenindus-btn .nav-iseteenindus-label { display: none; }
  #site-header .nav-iseteenindus-btn { padding: 8px 12px; }
  #site-header .nav-user .nav-user-info { display: none; } /* sisselogitud: ainult ikoon, nimi on avanevas menüüs */
}
@media (min-width: 1025px) and (max-width: 1199px) {
  /* spetsiifilisus peab ületama body.home #site-header:not(.scrolled) .main-menu .menu-link reegli */
  html body #site-header .main-menu .menu-link.menu-link, html body #site-header .main-menu .menu-parent.menu-parent,
  html body.home #site-header:not(.scrolled) .main-menu .menu-link.menu-link, html body.home #site-header:not(.scrolled) .main-menu .menu-parent.menu-parent { padding-left: 5px !important; padding-right: 5px !important; font-size: 12.5px !important; letter-spacing: 0 !important; }
  body #site-header .nav-left .main-menu, body #site-header .nav-right .main-menu { gap: 2px !important; }
}

/* === Välisostjate avaleht (EN/RU): includes/sections/buyer_*.php (2026-10-25) === */
.bh-section .sec-sub { max-width: 820px; }
.bh-chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.bh-chips li { background: #fff; border: 1px solid #e3ecd9; border-radius: 999px; padding: 9px 16px; font-weight: 600; color: #2b3a1e; }
.bh-two { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.bh-two > * { min-width: 0; }
.bh-two .svc-checklist { grid-template-columns: 1fr; margin-top: 0; }
.bh-sub { font-size: 1.1rem; margin: 0 0 10px; color: #2b3a1e; }
.bh-countries { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.bh-countries li { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3ecd9; border-radius: 10px; padding: 10px 12px; font-weight: 600; color: #2b3a1e; min-width: 0; }
.bh-countries .bh-cn { min-width: 0; overflow-wrap: anywhere; } .bh-countries .bh-cnt { margin-left: auto; white-space: nowrap; font-size: .8rem; font-weight: 700; color: #2f7d12; background: #eef6e8; border-radius: 999px; padding: 2px 8px; }
.bh-countries .fi { flex-shrink: 0; width: 1.5em; line-height: 1.1em; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.bh-note { margin-top: 14px; }
.bh-contacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; align-items: stretch; }
.bh-person { background: #fff; border: 1px solid #e3ecd9; border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bh-person strong { font-size: 1.05rem; color: #2b3a1e; }
.bh-person a { font-weight: 700; color: #2e7d0f; text-decoration: none; overflow-wrap: anywhere; }
.bh-person small { color: #5c6b52; }
.bh-person--cta { justify-content: center; align-items: flex-start; background: #f6faf2; }
.bh-person--cta .btn { color: #1f2421 !important; }
@media (max-width: 760px) {
  .bh-two { grid-template-columns: 1fr; gap: 18px; }
  .bh-countries { grid-template-columns: 1fr 1fr; }
  .bh-countries li { font-size: .9rem; padding: 8px 9px; }
}
.stat-number.stat-number--long { font-size: clamp(1.1rem, 1.6vw, 1.45rem) !important; white-space: nowrap; }

/* === „Kuhu me tarnime" kaart (includes/ov_map.php; ostjate leht + EN/RU avaleht) 2026-10-25 ===
   Riikide kujud: Natural Earth (avalik omand) → osta-veiseid/assets/map-countries.svg. Saidil tumedat režiimi ei ole. */
.ovm { --ovm-green: var(--ov-green, #399b15); --ovm-dark: var(--ov-dark, #2e7d0f); --ovm-text: var(--ov-text, #2b3a1e);
  --ovm-muted: var(--ov-muted, #5c6b52); --ovm-line: var(--ov-line, #e3ecd9);
  --ovm-sea: #f3f7f4; --ovm-land: #e0e7d8; --ovm-dest: #bcdca7; --ovm-dest-hl: #8cc76c;
  margin: 0; background: #fff; border: 1px solid var(--ovm-line); border-radius: 14px; padding: 8px; min-width: 0; }
.ovm svg { display: block; width: 100%; height: auto; border-radius: 9px; overflow: hidden; font-family: Manrope, Arial, sans-serif; }
.ovm-sea { fill: var(--ovm-sea); }
.ovm-land path { fill: var(--ovm-land); stroke: #fff; stroke-width: .8; stroke-linejoin: round; transition: fill .2s; }
.ovm-land path.ovm-dest { fill: var(--ovm-dest); }
.ovm-land path.ovm-dest.is-hl { fill: var(--ovm-dest-hl); }
.ovm-land path.ovm-ee { fill: var(--ovm-green); }
.ovm-mt-ring { fill: none; stroke: var(--ovm-dark); stroke-width: 1.2; stroke-dasharray: 2 2; opacity: .7; }
.ovm-arcs path { fill: none; stroke: var(--ovm-dark); stroke-width: 1.6; stroke-dasharray: 5 4; stroke-linecap: round; opacity: .55; transition: opacity .2s, stroke-width .2s; }
.ovm-arcs path.is-hl { opacity: 1; stroke-width: 2.6; stroke-dasharray: none; }
.ovm-pts circle { fill: #fff; stroke: var(--ovm-dark); stroke-width: 2.4; }
.ovm-pts circle.is-hl { fill: var(--ovm-green); }
.ovm-lbl text { font-size: 18px; font-weight: 800; fill: var(--ovm-text); paint-order: stroke; stroke: #fff; stroke-width: 4px; stroke-linejoin: round; }
.ovm-lbl line { stroke: var(--ovm-muted); stroke-width: 1; opacity: .7; }
.ovm-lbl.is-hl text { fill: var(--ovm-dark); font-size: 20px; }
.ovm-origin .ovm-dot { fill: var(--ovm-dark); stroke: #fff; stroke-width: 3; }
.ovm-origin .ovm-pulse { fill: var(--ovm-green); opacity: .35; transform-box: fill-box; transform-origin: center; animation: ovm-pulse 2.2s ease-out infinite; }
.ovm-origin text { font-size: 19px; font-weight: 800; fill: var(--ovm-dark); paint-order: stroke; stroke: #fff; stroke-width: 4px; }
@keyframes ovm-pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ovm-origin .ovm-pulse { animation: none; transform: scale(1.8); opacity: .25; } }
.ovm figcaption { font-size: .82rem; color: var(--ovm-muted); padding: 6px 4px 2px; line-height: 1.4; }
.ovm-src { white-space: nowrap; opacity: .75; }
.ovm-src::before { content: "· "; }
[data-ovm-c] { transition: border-color .2s, background-color .2s; cursor: default; }
[data-ovm-c].is-hl { border-color: var(--ov-green, #399b15) !important; background: #f3f9ee !important; }
@media (max-width: 600px) {
  .ovm { padding: 5px; }
  .ovm-lbl { display: none; }
  .ovm-lbl.ovm-lbl--m, .ovm-lbl.is-hl { display: inline; }
  .ovm-lbl line { display: none; }
  .ovm-lbl text, .ovm-lbl.is-hl text { font-size: 34px; stroke-width: 8px; }
  .ovm-origin text { font-size: 34px; stroke-width: 8px; }
  .ovm-pts circle { r: 7px; stroke-width: 3.5; }
  .ovm-arcs path { stroke-width: 2.6; }
  .ovm-land path { stroke-width: 1.2; }
}
/* Avalehe plokk: kaart + nimekiri kõrvuti */
.bh-deliver { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.bh-deliver > * { min-width: 0; }
.bh-deliver .bh-countries { grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .bh-deliver { grid-template-columns: 1fr; } }

/* Nõukogu leht (meist/noukogu) — esimees eraldi, liikmed 4 veerus (2026-10-26) */
.council { max-width: 1040px; }
.council-lead { font-size: 1.08rem; line-height: 1.65; color: var(--ds-text-muted, #4b5a50); max-width: 720px; margin: 0 0 28px; }
.council-card { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--ds-border, #e4e9e2); border-radius: 14px; padding: 18px 20px; }
.council-card h3 { margin: 0 0 2px; font-size: 1.12rem; }
.council-role { margin: 0 0 10px; font-weight: 700; font-size: .9rem; color: var(--ds-green-700, #399b15); }
.council-avatar { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--ds-green-50, #e8f3e6); color: var(--ds-green-700, #399b15); font-weight: 800; font-size: 1.05rem; letter-spacing: .02em; }
.council-contacts { margin: 0; display: flex; flex-direction: column; gap: 4px; font-size: .9rem; }
.council-contacts a { color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.council-contacts a:hover { color: var(--ds-green-700, #399b15); text-decoration: underline; }
.council-contacts i { width: 16px; color: var(--ds-green-700, #399b15); }
.council-card--chair { max-width: 520px; margin-bottom: 18px; border-color: var(--ds-green-200, #c5e1c0); background: linear-gradient(135deg, #f4faf2, #fff); }
.council-card--chair .council-avatar { width: 64px; height: 64px; font-size: 1.25rem; background: var(--ds-green-700, #399b15); color: #fff; }
.council-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.council-grid .council-card { flex-direction: column; gap: 10px; }
@media (max-width: 991px) { .council-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .council-grid { grid-template-columns: 1fr; } .council-grid .council-card { flex-direction: row; } .council-card--chair { max-width: none; } }
/* Nõukogu: tihedam paigutus (sisu-stiilide marginaalid üle) */
.council .council-card h3 { margin: 0 0 2px !important; line-height: 1.25; }
.council .council-card p { margin: 0 !important; }
.council .council-role { margin: 0 0 8px !important; }
.council .council-card--chair { align-items: center; padding: 16px 20px; }
.council .council-grid .council-card { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; row-gap: 8px; align-items: center; padding: 16px; }
.council .council-grid .council-avatar { width: 44px; height: 44px; font-size: .95rem; }
.council .council-grid .council-info { display: contents; }
.council .council-grid .council-info h3 { grid-column: 2; align-self: end; }
.council .council-grid .council-role { grid-column: 2; align-self: start; margin: 0 !important; }
.council .council-grid .council-contacts { grid-column: 1 / -1; font-size: .86rem; }
.council .council-grid .council-avatar { grid-row: 1 / span 2; }

/* ---------- Nõukogu (meist/noukogu), uus kujundus 2026-11-17: farmi õhufoto, farm, tõud, kontaktinupud ---------- */
.cn { max-width: 1120px; }
.cn-intro { max-width: 760px; margin: 0 0 26px; }
.cn-lead { font-size: 1.15rem; line-height: 1.6; color: #2c3324; margin: 0 0 8px !important; font-weight: 600; }
.cn-sub { color: var(--ds-text-muted, #5b6656); margin: 0 !important; line-height: 1.6; }
.cn-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cn-card { background: #fff; border: 1px solid #e3e8dc; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 6px 18px rgba(40,60,20,.06); transition: transform .18s ease, box-shadow .18s ease; }
.cn-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(40,60,20,.12); }
.cn-photo { height: 132px; background: #dfe9d3 center/cover no-repeat; position: relative; }
.cn-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,15,0) 45%, rgba(20,30,15,.35) 100%); }
.cn-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: #ef8f00; color: #fff; font-weight: 700; font-size: .78rem; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.cn-body { position: relative; padding: 38px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.cn-avatar { position: absolute; top: -30px; left: 20px; width: 60px; height: 60px; border-radius: 50%; background: #399b15; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.1rem; border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.cn-card h3 { margin: 0 !important; font-size: 1.2rem; line-height: 1.25; }
.cn-role { margin: 0 0 6px !important; font-weight: 700; font-size: .88rem; color: #399b15; text-transform: uppercase; letter-spacing: .04em; }
.cn-farm, .cn-meta { margin: 0 !important; font-size: .94rem; color: #3b4436; display: flex; gap: 8px; align-items: baseline; }
.cn-farm i, .cn-meta i { width: 16px; color: #8aa37b; flex: 0 0 16px; text-align: center; }
.cn-farm a { color: #256b0d; font-weight: 600; text-decoration: none; } .cn-farm a:hover { text-decoration: underline; }
.cn-breeds { margin: 4px 0 0 !important; display: flex; flex-wrap: wrap; gap: 6px; }
.cn-breeds span { background: #f1f6ea; color: #3d5a2a; border: 1px solid #dbe7cf; border-radius: 999px; padding: 3px 10px; font-size: .8rem; }
.cn-actions { margin: auto 0 0 !important; padding-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.cn-btn { display: inline-flex; align-items: center; gap: 7px; border-radius: 10px; padding: 9px 14px; font-weight: 700; font-size: .9rem; text-decoration: none !important; background: #399b15; color: #fff !important; border: 1px solid #399b15; }
.cn-btn:hover { background: #2f8210; border-color: #2f8210; }
.cn-btn--line { background: #fff; color: #256b0d !important; border-color: #cfe0c3; }
.cn-btn--line:hover { background: #f1f6ea; border-color: #399b15; }
.cn-card--chair { grid-column: span 2; flex-direction: row; border-color: #cfe3c3; background: linear-gradient(135deg, #fbfdf8, #f2f8ec); }
.cn-card--chair .cn-photo { height: auto; flex: 0 0 44%; min-height: 230px; }
.cn-card--chair .cn-photo::after { background: linear-gradient(90deg, rgba(20,30,15,0) 55%, rgba(20,30,15,.25) 100%); }
.cn-card--chair .cn-body { padding: 26px 26px 24px 26px; justify-content: center; }
.cn-card--chair .cn-avatar { position: static; width: 64px; height: 64px; margin-bottom: 6px; border-width: 0; }
.cn-card--chair h3 { font-size: 1.45rem; }
@media (max-width: 991px) { .cn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .cn-grid { grid-template-columns: 1fr; gap: 16px; }
  .cn-card--chair { grid-column: auto; flex-direction: column; }
  .cn-card--chair .cn-photo { min-height: 150px; flex-basis: auto; }
  .cn-card--chair .cn-avatar { position: absolute; top: -30px; left: 20px; width: 60px; height: 60px; border-width: 4px; }
  .cn-card--chair .cn-body { padding: 38px 20px 20px; }
}
@media (prefers-reduced-motion: reduce) { .cn-card { transition: none; } .cn-card:hover { transform: none; } }
/* Nõukogu ilma farmi fotodeta (2026-11-17): initsiaalid kaardi ülaosas */
.cn-card { border-top: 4px solid #cfe3c3; }
.cn-body, .cn-card--chair .cn-body { padding: 22px 22px 20px; justify-content: flex-start; }
.cn-avatar, .cn-card--chair .cn-avatar { position: static; width: 56px; height: 56px; border: 0; box-shadow: none; margin: 0 0 8px; font-size: 1.05rem; }
.cn-card--chair { flex-direction: column; border-top-color: #399b15; }
.cn-card--chair .cn-avatar { width: 64px; height: 64px; font-size: 1.2rem; }
@media (max-width: 640px) { .cn-card--chair .cn-avatar { position: static; width: 56px; height: 56px; border: 0; } .cn-card--chair .cn-body { padding: 22px 20px 20px; } }

/* „Ostame veiseid“ → Arveldus ja maksetähtaeg (2026-11-17): kolm võrdset kaarti, pealkiri eraldi real, kõik ühel kõrgusel */
.svc-terms { list-style: none; padding: 0; margin: .4rem 0 1.6rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.svc-terms li { background: #f7faf3; border: 1px solid #e2ead8; border-radius: 14px; padding: 16px 18px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto 1fr; column-gap: 12px; row-gap: 4px; align-content: start; color: #3d4a33; line-height: 1.55; }
.svc-terms li i { grid-row: 1 / span 2; width: 34px; height: 34px; border-radius: 10px; background: #e6f2dc; color: var(--svc-green, #399b15); display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.svc-terms li strong { font-size: 1rem; color: #23301c; line-height: 34px; }
.svc-terms li span { grid-column: 2; }
@media (max-width: 800px) { .svc-terms { grid-template-columns: 1fr; } }

/* „Ostame veiseid“ kompaktsemaks (2026-11-17) */
.svc-steps--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.svc-steps--6 .svc-step { padding: .9rem 1rem .9rem 3.1rem; }
@media (max-width: 900px) { .svc-steps--6 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svc-steps--6 { grid-template-columns: 1fr; } }
.svc-terms li { padding: 12px 14px; }
.svc-terms li i { width: 30px; height: 30px; }
.svc-terms li strong { line-height: 30px; }
.svc-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.6rem 0; }
@media (max-width: 700px) { .svc-grid--2 { grid-template-columns: 1fr; } }
.svc-more { border: 1px solid #e2ead8; border-radius: 12px; background: #fbfdf8; margin: 1rem 0; }
.svc-more summary { cursor: pointer; padding: 12px 16px; font-weight: 700; color: #23301c; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.svc-more summary::-webkit-details-marker { display: none; }
.svc-more summary::after { content: "\f078"; font-family: "Font Awesome 6 Free", "Font Awesome 5 Free"; font-weight: 900; margin-left: auto; color: #8aa37b; transition: transform .2s; }
.svc-more[open] summary::after { transform: rotate(180deg); }
.svc-more summary i { color: var(--svc-green, #399b15); }
.svc-more summary small { font-weight: 400; color: #7b8576; font-size: .82rem; }
.svc-more > table { margin: 0 16px 14px; width: calc(100% - 32px); }
.breed-sales-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.breed-sales-chips li a, .breed-sales-chips li span { display: inline-flex; align-items: center; gap: 6px; background: #f1f6ea; border: 1px solid #dbe7cf; border-radius: 999px; padding: 5px 12px; font-size: .9rem; color: #2e5a1c; text-decoration: none; }
.breed-sales-chips li a:hover { border-color: #399b15; }
.breed-sales-chips b { color: #23301c; }
/* 4 kaarti ühes reas (Transport → Mida me pakume), 2026-11-17 */
.svc-grid.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc-grid.svc-grid--4 .svc-card { padding: 14px 14px 16px; }
@media (max-width: 1100px) { .svc-grid.svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .svc-grid.svc-grid--4 { grid-template-columns: 1fr; } }
body:not(.home) .page-content .svc-grid.svc-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { body:not(.home) .page-content .svc-grid.svc-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body:not(.home) .page-content .svc-grid.svc-grid--4 { grid-template-columns: 1fr; } }
/* 6 kaarti kahes reas (Pesula → Mida pesulas teha saab), 2026-11-17 */
body:not(.home) .page-content .svc-grid.svc-grid--3x2 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.svc-grid.svc-grid--3x2 .svc-card { padding: 12px 14px 14px; }
.svc-grid.svc-grid--3x2 .svc-card p { font-size: .9rem; }
@media (max-width: 900px) { body:not(.home) .page-content .svc-grid.svc-grid--3x2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { body:not(.home) .page-content .svc-grid.svc-grid--3x2 { grid-template-columns: 1fr; } }

/* Ühtne vormistiil (2026-11-17): kontaktivorm = müügivorm = veiste andmed */
.contact-form--modern input[type=text], .contact-form--modern input[type=email], .contact-form--modern input[type=tel], .contact-form--modern textarea, .contact-form--modern select { border-radius: 12px !important; border: 1px solid #cfd6c6 !important; padding: 12px 14px !important; font-size: 1rem !important; background: #fff !important; transition: border-color .15s, box-shadow .15s; }
.contact-form--modern input:focus, .contact-form--modern textarea:focus, .contact-form--modern select:focus { border-color: #399b15 !important; box-shadow: 0 0 0 3px rgba(57,155,21,.15) !important; outline: none; }
.contact-form--modern button[type=submit], .contact-form--modern .btn-primary { background: linear-gradient(135deg, #3fae17, #2f8a10) !important; border: 0 !important; border-radius: 14px !important; padding: 14px 30px !important; font-size: 1.05rem !important; font-weight: 700; color: #fff !important; box-shadow: 0 10px 24px rgba(57,155,21,.3); transition: transform .15s, box-shadow .15s; }
.contact-form--modern button[type=submit]:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(57,155,21,.36); }
.page-contact .contact-hero-strip .contact-card, .page-contact .contact-form-card { border-radius: 18px; }
