/* =========================================================
   AGRO VIZIJA — main stylesheet
   Change brand colors in :root.
   ========================================================= */

:root {
  --green-950: #102c21;
  --green-900: #173c2c;
  --green-800: #24543d;
  --green-700: #337052;
  --sage: #a8b99c;
  --lime: #d4df89;
  --cream: #f5f1e7;
  --sand: #e6dcc8;
  --white: #ffffff;
  --ink: #1c2822;
  --muted: #657168;
  --line: rgba(23, 60, 44, 0.14);
  --shadow: 0 22px 70px rgba(18, 48, 35, 0.14);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: #fcfbf7;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}
.section { padding: 112px 0; }
.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 9999;
  padding: 12px 18px;
  background: var(--white);
  color: var(--green-900);
}
.skip-link:focus { top: 16px; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-700);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}
.eyebrow.light { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 {
  font-family: "Playfair Display", serif;
  line-height: 1.06;
}
h2 {
  margin-bottom: 24px;
  font-size: clamp(2.45rem, 5vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -.035em;
}
.lead { font-size: clamp(1.2rem, 2vw, 1.55rem); color: var(--green-900); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  color: var(--green-950);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 8px 28px rgba(18, 48, 35, .08);
  backdrop-filter: blur(14px);
}
.site-header.scrolled {
  color: var(--green-950);
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 10px 34px rgba(18, 48, 35, .12);
}
.nav-wrap {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: inline-flex; gap: 12px; align-items: center; }
.brand-mark {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
}
.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand strong { display: block; font-size: .94rem; letter-spacing: .15em; }
.brand small { display: block; opacity: .75; font-size: .66rem; letter-spacing: .04em; }
.main-nav { display: flex; align-items: center; gap: 34px; font-weight: 700; font-size: .91rem; }
.main-nav a { position: relative; }
.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -7px;
  height: 2px;
  background: currentColor;
  transition: right .25s ease;
}
.main-nav a:hover::after { right: 0; }
.nav-cta {
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  width: 46px; height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  color: inherit;
  background: transparent;
}
.menu-toggle span {
  width: 20px; height: 2px;
  display: block;
  margin: 4px auto;
  background: currentColor;
  transition: .25s ease;
}

.hero {
  min-height: 830px;
  margin-top: 104px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--green-950);
}
.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=2000&q=88");
  background-position: center;
  background-size: cover;
  transform: scale(1.03);
  animation: heroZoom 16s ease-in-out infinite alternate;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 37, 26, .92) 0%, rgba(11, 37, 26, .65) 48%, rgba(11, 37, 26, .22) 100%),
    linear-gradient(0deg, rgba(11, 37, 26, .65), transparent 45%);
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 55px;
}
.hero h1 {
  max-width: 880px;
  margin-bottom: 28px;
  font-size: clamp(4rem, 8.5vw, 7.8rem);
  font-weight: 600;
  letter-spacing: -.055em;
}
.hero h1 em { color: var(--lime); font-style: italic; }
.hero-lead {
  max-width: 680px;
  margin-bottom: 38px;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  color: rgba(255,255,255,.82);
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: var(--lime); color: var(--green-950); }
.btn-primary:hover { background: #e2ea9f; }
.btn-ghost { border-color: rgba(255,255,255,.5); color: var(--white); background: rgba(255,255,255,.05); }
.btn-light { color: var(--green-950); background: var(--cream); }
.btn.full { width: 100%; border: 0; }

.hero-facts {
  position: absolute;
  inset: auto 0 0;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(10, 35, 24, .45);
  backdrop-filter: blur(12px);
}
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 30px 20px; border-right: 1px solid rgba(255,255,255,.18); }
.facts-grid div:first-child { padding-left: 0; }
.facts-grid div:last-child { border-right: 0; }
.facts-grid strong { display: block; font-family: "Playfair Display", serif; font-size: 2.2rem; color: var(--lime); }
.facts-grid span { color: rgba(255,255,255,.72); font-size: .85rem; }

.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: start; }
.intro-copy { padding-top: 44px; }
.intro-copy > p:not(.lead) { color: var(--muted); }
.text-link { display: inline-flex; gap: 16px; margin-top: 16px; font-weight: 800; color: var(--green-800); }
.text-link span { transition: transform .2s ease; }
.text-link:hover span { transform: translateX(6px); }

.about-visual {
  margin-top: 70px;
}
.about-accent-row {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: center;
  margin-bottom: 26px;
}
.about-accent-copy {
  max-width: 430px;
  padding: 28px 30px;
  background: var(--cream);
  border-radius: var(--radius);
  box-shadow: 0 18px 45px rgba(26, 52, 40, .08);
}
.about-accent-copy strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.15rem;
}
.about-accent-copy p {
  margin: 0;
  color: var(--muted);
  font-size: .94rem;
}
.image-accent {
  width: 100%;
  height: 245px;
  border-radius: var(--radius);
  background:
    linear-gradient(rgba(16,44,33,.08), rgba(16,44,33,.08)),
    url("https://images.unsplash.com/photo-1464226184884-fa280b87c399?auto=format&fit=crop&w=1000&q=88") center/cover;
  box-shadow: var(--shadow);
}
.agri-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr);
  gap: 18px;
  min-height: 560px;
}
.gallery-main,
.gallery-orchard,
.gallery-machinery {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background-size: cover;
  background-position: center;
  transition: transform .45s ease, box-shadow .45s ease;
}
.gallery-main:hover,
.gallery-orchard:hover,
.gallery-machinery:hover {
  transform: translateY(-4px) scale(1.005);
  box-shadow: 0 25px 65px rgba(21, 55, 39, .20);
}
.gallery-main {
  min-height: 560px;
  background-image:
    linear-gradient(rgba(16,44,33,.05), rgba(16,44,33,.10)),
    url("../assets/images/greenhouse-selected.jpg");
}
.gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 18px;
}
.gallery-orchard {
  min-height: 270px;
  background-image:
    linear-gradient(rgba(16,44,33,.05), rgba(16,44,33,.08)),
    url("../assets/images/cherry-orchard-selected.jpg");
}
.gallery-machinery {
  min-height: 270px;
  background-image:
    linear-gradient(rgba(16,44,33,.06), rgba(16,44,33,.10)),
    url("https://images.pexels.com/photos/28903100/pexels-photo-28903100.jpeg?auto=compress&cs=tinysrgb&w=1400");
}

.services-section { background: var(--cream); }
.section-top {
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 55px;
}
.section-top > p { max-width: 450px; color: var(--muted); }
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service-card {
  position: relative;
  min-height: 340px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(23,60,44,.1);
  border-radius: var(--radius);
  background: rgba(255,255,255,.68);
  transition: transform .35s ease, background .35s ease, box-shadow .35s ease;
}
.service-card:hover {
  transform: translateY(-7px);
  background: var(--white);
  box-shadow: var(--shadow);
}
.service-number { position: absolute; top: 28px; right: 30px; color: var(--sage); font-weight: 800; }
.service-icon {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  margin-bottom: 55px;
  color: var(--green-900);
  background: var(--lime);
  border-radius: 50%;
  font-weight: 800;
}
.service-card h3 { margin-bottom: 12px; font-size: 1.45rem; }
.service-card p { max-width: 450px; color: var(--muted); }
.service-card a { display: inline-flex; gap: 10px; font-weight: 800; color: var(--green-800); }

.ipard-section {
  color: var(--white);
  background:
    linear-gradient(100deg, rgba(16,44,33,.98), rgba(16,44,33,.88)),
    url("https://images.unsplash.com/photo-1499529112087-3cb3b73cec95?auto=format&fit=crop&w=1800&q=85") center/cover fixed;
}
.ipard-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 100px; align-items: center; }
.ipard-copy p:not(.eyebrow) { max-width: 500px; color: rgba(255,255,255,.72); }
.ipard-copy .btn { margin-top: 18px; }
.measure-list { border-top: 1px solid rgba(255,255,255,.2); }
.measure-list article {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.measure-list article > span { color: var(--lime); font-size: .76rem; font-weight: 800; letter-spacing: .12em; }
.measure-list h3 { margin-bottom: 4px; font-size: 1.2rem; }
.measure-list p { margin: 0; color: rgba(255,255,255,.65); font-size: .91rem; }
.measure-list b { font-size: 1.5rem; color: var(--lime); }

.center-heading { max-width: 760px; margin: 0 auto 65px; text-align: center; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.process-step { min-height: 270px; padding: 30px; border-left: 1px solid var(--line); }
.process-step:last-child { border-right: 1px solid var(--line); }
.process-step span {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  margin-bottom: 56px;
  border-radius: 50%;
  color: var(--green-950);
  background: var(--lime);
  font-size: .8rem;
  font-weight: 800;
}
.process-step h3 { font-size: 1.2rem; }
.process-step p { color: var(--muted); font-size: .91rem; }

.projects-section { padding-top: 20px; }
.projects-grid { display: grid; grid-template-columns: 1.2fr .8fr; grid-template-rows: repeat(2, 330px); gap: 18px; }
.project-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background-position: center;
  background-size: cover;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8,30,20,.88), rgba(8,30,20,.04) 72%);
}
.project-card:hover { background-size: 108%; }
.project-one {
  grid-row: 1 / 3;
  background-image: url("../assets/images/rural-tourism-serbia.png");
}
.project-two { background-image: url("../assets/images/mera3-fruit-processing.jfif"); }
.project-three { background-image: url("https://images.unsplash.com/photo-1492496913980-501348b61469?auto=format&fit=crop&w=1000&q=88"); }
.project-overlay { position: absolute; z-index: 2; inset: auto 32px 30px; color: var(--white); }
.project-overlay span { color: var(--lime); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.project-overlay h3 { margin: 10px 0 8px; font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 2.5vw, 2.25rem); }
.project-overlay p { max-width: 550px; margin: 0; color: rgba(255,255,255,.72); font-size: .9rem; }

.testimonial-section { background: var(--cream); }
.testimonial { max-width: 900px; text-align: center; }
.quote-mark { display: block; height: 70px; color: var(--green-700); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
blockquote {
  margin: 0 0 25px;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  line-height: 1.25;
}
.testimonial p { color: var(--muted); }

.contact-section { color: var(--white); background: var(--green-950); }
.contact-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: start; }
.contact-copy > p:not(.eyebrow) { max-width: 500px; color: rgba(255,255,255,.68); }
.contact-details { margin-top: 55px; }
.contact-details a, .contact-details p { display: block; margin: 0 0 20px; font-size: 1.05rem; }
.contact-details span { display: block; color: var(--lime); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }

.contact-form {
  padding: 40px;
  color: var(--ink);
  background: var(--white);
  border-radius: var(--radius);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 18px; font-size: .82rem; font-weight: 800; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  margin-top: 7px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  outline: 0;
  color: var(--ink);
  background: #fafaf7;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(51,112,82,.12);
}
.contact-form textarea { resize: vertical; }
.form-note { margin: 13px 0 0; color: var(--muted); font-size: .76rem; text-align: center; }
.form-note.success { color: var(--green-700); }

.site-footer { padding: 72px 0 22px; color: rgba(255,255,255,.76); background: #091d15; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .6fr .8fr; gap: 80px; }
.footer-brand { color: var(--white); }
.footer-grid > div:first-child > p { max-width: 430px; margin-top: 25px; }
.footer-grid h3 { color: var(--lime); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid a, .footer-grid div > p { display: block; margin-bottom: 10px; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 55px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .8rem;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .75s ease, transform .75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes heroZoom {
  from { transform: scale(1.03); }
  to { transform: scale(1.1); }
}

@media (max-width: 960px) {
  .section { padding: 86px 0; }
  .menu-toggle { display: block; z-index: 1002; }
  .main-nav {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    font-size: 1.35rem;
    color: var(--white);
    background: var(--green-950);
    transform: translateX(100%);
    transition: transform .35s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .menu-toggle.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-header.scrolled .menu-toggle.open { color: var(--white); }

  .hero { min-height: 780px; }
  .hero h1 { font-size: clamp(3.5rem, 11vw, 6rem); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div { padding: 16px; }
  .facts-grid div:nth-child(2) { border-right: 0; }
  .facts-grid strong { font-size: 1.7rem; }

  .split-grid, .section-top, .ipard-layout, .contact-layout { grid-template-columns: 1fr; gap: 38px; }
  .intro-copy { padding-top: 0; }
  .floating-card { top: 35px; }
  .ipard-layout { gap: 60px; }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .process-step:nth-child(2) { border-right: 1px solid var(--line); }
  .projects-grid { grid-template-columns: 1fr; grid-template-rows: repeat(3, 420px); }
  .project-one { grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / 3; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  .nav-wrap { min-height: 74px; }
  .brand small { display: none; }
  .hero { min-height: 760px; padding-bottom: 115px; }
  .hero h1 { font-size: clamp(3.15rem, 15vw, 4.4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .facts-grid span { font-size: .72rem; }
  .section { padding: 70px 0; }
  h2 { font-size: 2.6rem; }
  .floating-card { width: 240px; top: auto; left: 12px; right: auto; bottom: 25px; padding: 22px; }

  .services-grid, .process-grid, .form-row { grid-template-columns: 1fr; }
  .service-card { min-height: auto; }
  .process-step, .process-step:nth-child(2), .process-step:last-child { border-right: 0; border-left: 0; border-top: 1px solid var(--line); }
  .process-step span { margin-bottom: 32px; }
  .measure-list article { grid-template-columns: 72px 1fr; gap: 14px; }
  .measure-list article b { display: none; }
  .projects-grid { grid-template-rows: repeat(3, 430px); }
  .contact-form { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
  .footer-grid > div:first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}


/* RDC header identity */
.rdc-brand {
  gap: 16px;
  min-width: 0;
}

.header-logo {
  display: block;
  width: 122px;
  height: auto;
  flex-shrink: 0;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.02;
}

.brand-copy strong {
  color: #0F7A5A;
  font-family: "Manrope", sans-serif;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-copy small {
  margin-top: 7px;
  color: #315C86;
  font-family: "Manrope", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .48em;
  text-transform: uppercase;
}

.footer-brand {
  align-items: center;
}

.footer-logo {
  display: block;
  width: 100px;
  height: auto;
  padding: 4px 6px;
  border-radius: 10px;
  background: #fff;
}

.footer-copy strong {
  color: #d4df89;
}

.footer-copy small {
  color: rgba(255,255,255,.78);
}

@media (max-width: 1100px) {
  .header-logo { width: 104px; }
  .brand-copy strong { font-size: .9rem; letter-spacing: .08em; }
  .brand-copy small { font-size: .68rem; letter-spacing: .36em; }
  .main-nav { gap: 24px; }
}

@media (max-width: 760px) {
  .nav-wrap { min-height: 88px; }
  .hero { margin-top: 88px; }
  .header-logo { width: 86px; }
  .brand-copy strong { font-size: .76rem; }
  .brand-copy small { font-size: .58rem; letter-spacing: .28em; }
}

@media (max-width: 520px) {
  .rdc-brand { gap: 10px; }
  .header-logo { width: 72px; }
  .brand-copy strong { font-size: .62rem; letter-spacing: .04em; }
  .brand-copy small { margin-top: 4px; font-size: .5rem; letter-spacing: .2em; }
}


/* Final RDC header refinement */
.header-logo {
  width: 96px !important;
  height: auto !important;
  object-fit: contain;
}

.rdc-brand {
  gap: 18px !important;
}

.brand-copy strong,
.main-nav a {
  font-family: "Manrope", sans-serif;
}

.brand-copy strong {
  color: #0F7A5A !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: .10em !important;
  text-transform: uppercase;
}

.brand-copy small {
  color: #315C86 !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  letter-spacing: .44em !important;
  text-transform: uppercase;
}

.main-nav a {
  color: #0F7A5A;
  font-size: .93rem;
  font-weight: 800;
  letter-spacing: .015em;
}

.main-nav .nav-cta {
  color: #ffffff;
  background: #0F7A5A;
  border-color: #0F7A5A;
}

.main-nav .nav-cta:hover {
  background: #0c674c;
  border-color: #0c674c;
}

.main-nav a:not(.nav-cta)::after {
  background: #0F7A5A;
}

.footer-logo {
  width: 82px !important;
  height: auto !important;
  padding: 0 !important;
  background: transparent !important;
}

@media (max-width: 1100px) {
  .header-logo { width: 82px !important; }
  .brand-copy strong { font-size: .9rem !important; }
  .brand-copy small { font-size: .66rem !important; }
  .main-nav a { font-size: .86rem; }
}

@media (max-width: 760px) {
  .header-logo { width: 72px !important; }
  .brand-copy strong { font-size: .76rem !important; }
  .brand-copy small { font-size: .56rem !important; letter-spacing: .30em !important; }
}

@media (max-width: 520px) {
  .header-logo { width: 62px !important; }
  .rdc-brand { gap: 10px !important; }
  .brand-copy strong { font-size: .64rem !important; letter-spacing: .03em !important; }
  .brand-copy small { font-size: .48rem !important; letter-spacing: .20em !important; }
}


@media (max-width: 900px) {
  .about-accent-row { grid-template-columns: 1fr 300px; gap: 24px; }
  .agri-gallery { grid-template-columns: 1fr; min-height: auto; }
  .gallery-main { min-height: 470px; }
  .gallery-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
}
@media (max-width: 640px) {
  .about-visual { margin-top: 45px; }
  .about-accent-row { grid-template-columns: 1fr; }
  .about-accent-copy { order: 2; max-width: none; }
  .image-accent { order: 1; height: 230px; }
  .gallery-main { min-height: 360px; }
  .gallery-side { grid-template-columns: 1fr; }
  .gallery-orchard, .gallery-machinery { min-height: 260px; }
}


/* Exact user-selected real agricultural photographs */
.gallery-main {
  background-position: center center;
}
.gallery-orchard {
  background-position: center center;
}
.gallery-machinery {
  background-position: center center;
}


/* Six-service photo card redesign */
.services-grid-six {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.service-photo-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.service-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  transition: transform .45s ease;
}

.service-photo-card:hover .service-photo {
  transform: scale(1.045);
}

.service-card-body {
  position: relative;
  padding: 28px;
  flex: 1;
}

.service-card-body .service-number {
  position: absolute;
  right: 24px;
  top: 24px;
}

.service-card-body h3 {
  max-width: calc(100% - 46px);
  margin: 0 0 8px;
}

.service-card-body h4 {
  color: var(--green);
  font-size: 1rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}

.service-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.service-list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  line-height: 1.5;
}

.service-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.service-photo-eu {
  background-image: url("../assets/images/large-plantation-selected.jpg");
}
.service-photo-measures {
  background-image: url("../assets/images/apple-packing-facility.jfif");
}
.service-photo-market {
  background-image: url("../assets/images/analiza-trzista-paradajza.png");
}
.service-photo-planning {
  background-image: url("https://images.unsplash.com/photo-1416879595882-3373a0480b5b?auto=format&fit=crop&w=1200&q=88");
}
.service-photo-implementation {
  background-image: url("../assets/images/implementation-construction.jfif");
}
.service-photo-cooperation {
  background-image: url("https://images.unsplash.com/photo-1500937386664-56d1dfef3854?auto=format&fit=crop&w=1200&q=88");
}

@media (max-width: 1050px) {
  .services-grid-six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .services-grid-six {
    grid-template-columns: 1fr;
  }

  .service-card-body {
    padding: 24px;
  }
}

/* Align only the header word CONSULTING with RURAL DEVELOPMENT */
.site-header .header-brand-copy {
  width: max-content;
}

.site-header .consulting-justified {
  display: flex !important;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.site-header .consulting-justified span {
  display: block;
  line-height: 1;
}

/* Bold only RURAL DEVELOPMENT in header */
.site-header .header-brand-copy strong{
  font-weight:800 !important;
}

/* Stretch CONSULTING to the width of RURAL DEVELOPMENT in the footer */
.site-footer .footer-brand-copy {
  width: max-content;
}

.site-footer .footer-consulting-justified {
  display: flex !important;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  letter-spacing: 0 !important;
  white-space: nowrap;
}

.site-footer .footer-consulting-justified span {
  display: block;
  line-height: 1;
}


/* Clients logo and name slider */
.clients-section {
  overflow: hidden;
  background: #f7f5ef;
  padding-bottom: 82px;
}

.clients-heading {
  max-width: 760px;
  text-align: center;
  margin-bottom: 38px;
}

.clients-heading h2 {
  margin: 8px 0 16px;
}

.clients-heading > p:last-child {
  max-width: 690px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.75;
}

.clients-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 10px 0 18px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 68s linear infinite;
}

.clients-slider:hover .clients-track,
.clients-slider:focus-within .clients-track {
  animation-play-state: paused;
}

.clients-group {
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding-right: 18px;
}

.client-card {
  width: 220px;
  min-height: 142px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 22px 20px;
  border: 1px solid rgba(23, 60, 44, 0.11);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(23, 60, 44, 0.06);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.client-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 60, 44, 0.23);
  box-shadow: 0 18px 38px rgba(23, 60, 44, 0.11);
}

.client-logo-card img {
  display: block;
  width: auto;
  max-width: 165px;
  height: 62px;
  object-fit: contain;
}


.client-logo-card--dark {
  background: linear-gradient(145deg, var(--green), #123f31);
  border-color: rgba(255, 255, 255, 0.14);
}

.client-logo-card--dark:hover {
  border-color: rgba(255, 255, 255, 0.30);
}

.client-logo-card--dark span {
  color: #fff;
}

.client-logo-card--dark img {
  filter: none;
}

.client-logo-card span {
  color: var(--dark);
  font-size: 0.82rem;
  font-weight: 700;
}

.client-name-card {
  background: linear-gradient(145deg, #ffffff, #f3f6f2);
}

.client-monogram {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.client-name-card strong {
  max-width: 180px;
  color: var(--dark);
  font-size: 0.92rem;
  line-height: 1.45;
}

@keyframes clients-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
  }

  .clients-slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .clients-group[aria-hidden="true"] {
    display: none;
  }
}

@media (max-width: 680px) {
  .clients-section {
    padding-bottom: 62px;
  }

  .clients-heading {
    padding-left: 20px;
    padding-right: 20px;
    margin-bottom: 26px;
  }

  .clients-slider {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
  }

  .client-card {
    width: 178px;
    min-height: 124px;
    padding: 18px 16px;
  }

  .client-logo-card img {
    max-width: 138px;
    height: 52px;
  }

  .clients-track {
    animation-duration: 58s;
  }
}

/* Full-width continuously moving client slider with fixed navigation */
.clients-section {
  overflow: hidden;
}

.clients-slider-shell {
  width: 100%;
}

.clients-slider {
  width: 100%;
  overflow: hidden;
  padding: 10px 0 18px;
  touch-action: pan-y;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 3.5%, #000 96.5%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 3.5%, #000 96.5%, transparent);
}

.clients-slider:active {
  cursor: grabbing;
}

.clients-track {
  display: flex;
  width: max-content;
  animation: none !important;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.clients-group {
  gap: 14px;
  padding-right: 14px;
}

.client-card {
  width: clamp(168px, 12.5vw, 208px);
  min-height: 136px;
  padding: 20px 16px;
}

.clients-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 20px;
}

.clients-direction {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 60, 44, 0.18);
  border-radius: 50%;
  background: #fff;
  color: var(--green);
  box-shadow: 0 8px 22px rgba(23, 60, 44, 0.08);
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

.clients-direction span {
  display: block;
  font-size: 1.65rem;
  line-height: .8;
  transform: translateY(-1px);
}

.clients-direction:hover,
.clients-direction:focus-visible {
  transform: translateY(-2px);
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  outline: none;
}

.clients-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 120px;
}

.clients-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 60, 44, 0.25);
  cursor: pointer;
  transition: width .25s ease, border-radius .25s ease, background-color .25s ease, transform .2s ease;
}

.clients-dot:hover,
.clients-dot:focus-visible {
  transform: scale(1.25);
  outline: none;
}

.clients-dot.is-active {
  width: 25px;
  border-radius: 999px;
  background: var(--green);
}

@media (max-width: 900px) {
  .client-card {
    width: 184px;
  }
}

@media (max-width: 680px) {
  .clients-slider {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 2%, #000 98%, transparent);
  }

  .client-card {
    width: 170px;
    min-height: 122px;
  }

  .clients-navigation {
    gap: 11px;
  }

  .clients-direction {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  .clients-dots {
    min-width: 96px;
    gap: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clients-track {
    transform: none !important;
  }

  .clients-slider {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}
