.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #111;
}

/* SLIDER */

.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slider 24s infinite;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.04);
}

.slide:nth-child(1) {
  background-image: url("../slike/DSC_8850.jpg");
}

.slide:nth-child(2) {
  background-image: url("../slike/DSC_8857.jpg");
  animation-delay: 6s;
}

.slide:nth-child(3) {
  background-image: url("../slike/DSC_8942.jpg");
  animation-delay: 12s;
}

.slide:nth-child(4) {
  background-image: url("../slike/DSC_8809.jpg");
  animation-delay: 18s;
}

@keyframes slider {

  0% {
    opacity: 0;
  }

  8% {
    opacity: 1;
  }

  25% {
    opacity: 1;
  }

  33% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}

/* OVERLAY */

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;

  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.76) 0%,
      rgba(0, 0, 0, 0.56) 45%,
      rgba(0, 0, 0, 0.34) 100%
    );
}

/* CONTENT */

.hero-content {
  position: relative;
  z-index: 10;
  width: min(90%, 1380px);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 120px;
  color: white;
}

.hero-left {
  max-width: 760px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* EYEBROW */

.hero-eyebrow {
  margin-bottom: 24px;

  font-size: 12px;
  font-weight: 600;

  letter-spacing: 0.34em;

  color: rgba(255,255,255,0.72);
}

/* LOGO */

.hero-logo {
  margin-bottom: 28px;
}

.hero-logo img {
  width: min(430px, 92vw);
  height: auto;
  display: block;

  filter:
    drop-shadow(0 12px 30px rgba(0,0,0,0.28));
}

/* TEXT */

.hero-text {
  max-width: 680px;

  font-size: 21px;
  line-height: 1.8;

  color: rgba(255,255,255,0.78);
}

/* BUTTONS */

.hero-buttons {
  display: flex;
  justify-content: flex-start;
  gap: 18px;

  margin-top: 48px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 220px;

  padding: 20px 34px;

  font-size: 13px;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: 0.18em;

  transition: 0.3s ease;
}

.btn-primary {
  background: #063f28;
  color: white;

  box-shadow:
    0 12px 30px rgba(6, 63, 40, 0.38);
}

.btn-primary:hover {
  background: #0d5738;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,0.34);

  background: rgba(255,255,255,0.05);

  backdrop-filter: blur(12px);

  color: white;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.10);
}

/* DELOVNI ČAS */

.hero-hours {
  width: 380px;
  min-height: 430px;

  padding: 42px;

  display: flex;
  flex-direction: column;
  justify-content: center;

  border: 1px solid rgba(255,255,255,0.12);

  background: rgba(255,255,255,0.07);

  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);

  box-shadow:
    0 24px 70px rgba(0,0,0,0.28);

  color: white;
}

/* naslov */

.hero-hours-title {
  font-family: var(--font-heading);

  font-size: 42px;
  font-weight: 500;

  line-height: 1.1;

  color: white;
}

.hero-hours-subtitle {
  margin-top: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}

/* crtica */

.hero-hours-divider {
  width: 54px;
  height: 2px;

  margin: 26px 0 34px;

  background: rgba(255,255,255,0.22);
}

/* rows */

.hero-hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;

  gap: 24px;

  padding: 18px 0;

  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hero-hours-row:last-child {
  border-bottom: 0;
}

.hero-hours-row span {
  font-size: 16px;
  color: rgba(255,255,255,0.74);
}

.hero-hours-row strong {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

/* MOBILE */

@media (max-width: 1000px) {

  .hero {
    align-items: flex-end;
  }

  .hero-content {
    align-items: flex-start;
    gap: 46px;
  }

  .hero-left,
  .hero-hours {
    min-height: auto;
  }
}

@media (max-width: 768px) {

  .hero {
    min-height: 100svh;
    align-items: flex-end;
  }

  .hero-overlay {
    background:
      linear-gradient(
        to bottom,
        rgba(0,0,0,0.18) 0%,
        rgba(0,0,0,0.54) 42%,
        rgba(0,0,0,0.92) 100%
      );
  }

  .hero-content {
    width: min(calc(100% - 28px), 1380px);

    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;

    gap: 200px;
    margin-bottom: 120px;
    padding:
      120px
      0
      44px;
  }

  /* LEFT */

  .hero-left {
    width: 100%;
    min-height: auto;
  }

  .hero-eyebrow {
    text-align:center;
    margin-bottom: 16px;

    font-size: 10px;
    letter-spacing: 0.24em;
  }

  .hero-logo {
    margin-bottom: 20px;
    margin-right: auto;
    margin-left: auto; 
    }

  .hero-logo img {
    width: min(300px, 80vw);
  }

  .hero-text {
    max-width: 100%;
    text-align: center;
    font-size: 15px;
    line-height: 1.75;
  }

  /* BUTTONS */

  .hero-buttons {
    width: 80%;
    margin-right: auto;
    margin-left: auto;
    flex-direction: column;

    gap: 12px;

    margin-top: 28px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    min-width: 0;

    padding: 18px 22px;

    font-size: 11px;
    letter-spacing: 0.16em;
  }

  /* HOURS */

  .hero-hours {
    width: 80%;
    min-height: auto;
    margin-right: auto;
    margin-left: auto;
    padding: 26px;
  }

  .hero-hours-title {
    font-size: 28px;
  }

  .hero-hours-divider {
    margin:
      18px
      0
      24px;
  }

  .hero-hours-row {
    padding: 14px 0;
  }

  .hero-hours-row span,
  .hero-hours-row strong {
    font-size: 14px;
  }
}

/* =========================
   NOVICE
========================= */

.news-section {
  position: relative;
  padding: 118px 0;
  overflow: hidden;
  color: white;
  background: #111;
}

.news-bg {
  position: absolute;
  inset: 0;
  background-image: url("../slike/DSC_8857.jpg");
  background-size: cover;
  background-position: center;
}

.news-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6,10,8,0.88) 0%, rgba(6,10,8,0.78) 55%, rgba(6,10,8,0.92) 100%);
}

.news-inner {
  position: relative;
  z-index: 2;
  width: min(88%, 1280px);
  margin: 0 auto;
}

.news-heading {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}

.news-heading .section-eyebrow {
  margin-bottom: 14px;
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.news-heading h2 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 3.8vw, 54px);
  font-weight: 500;
  color: white;
}

.news-heading h2 span {
  color: #0a5c38;
}

.news-intro {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.72);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
}

.news-card {
  padding: 34px 30px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.news-card:hover {
  transform: translateY(-6px);
  border-color: rgba(127,176,138,0.4);
  background: rgba(255,255,255,0.1);
}

.news-card.is-featured {
  grid-column: span 2;
  border-color: rgba(10,92,56,0.55);
  background: rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(0,0,0,0.28);
}

.news-card.is-featured:hover {
  border-color: rgba(10,92,56,0.75);
}

.news-card.is-featured h3 {
  font-size: 28px;
}

.news-featured-badge {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 12px;
  background: #0a5c38;
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.news-date {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0a5c38;
}

.news-card h3 {
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 500;
  color: white;
}

.news-card p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255,255,255,0.68);
}

.news-empty {
  grid-column: 1 / -1;
  padding: 20px 0;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .news-section {
    padding: 80px 0;
  }

  .news-inner {
    width: min(calc(100% - 28px), 1280px);
  }

  .news-heading {
    margin-bottom: 40px;
  }

  .news-heading h2 {
    font-size: clamp(30px, 8vw, 40px);
  }

  .news-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .news-card.is-featured {
    grid-column: span 1;
  }

  .news-card.is-featured h3 {
    font-size: 24px;
  }
}

/* =========================
   ABOUT
========================= */
.about-section {
  padding: 120px 0;
  background:
    radial-gradient(ellipse at 82% 8%, rgba(10,92,56,0.16) 0%, rgba(10,92,56,0.08) 28%, rgba(10,92,56,0) 56%),
    linear-gradient(115deg, #f7f8f5 0%, #f5f6f3 48%, #e9f0e8 100%);
  overflow: hidden;
}

.about-grid {
  width: min(88%, 1280px);
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: stretch;   /* prej: center */
}

.about-image-wrap {
  position: relative;
  order: 2;
  width: 100%;
  height: auto;           /* prej: 520px */
  min-height: 520px;
  border-radius: 0;
  overflow: hidden;
}

.about-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.about-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72), rgba(0,0,0,0.08) 58%, transparent);
  pointer-events: none;
}

.about-image-overlay {
  position: absolute;
  left: 38px;
  bottom: 38px;
  z-index: 4;
  color: white;
}

.about-image-overlay small {
  display: block;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  opacity: 0.75;
}

.about-image-overlay h3 {
  font-family: var(--font-heading);
  font-size: 44px;
  line-height: 1.05;
  font-weight: 500;
}

.about-content {
  order: 1;
  max-width: 620px;
  min-width: 0;

  display: flex;             /* NOVO */
  flex-direction: column;     /* NOVO */
}

#small-onas {
  margin-bottom: 18px;
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
}

.about-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(46px, 3.8vw, 64px);
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 28px;
  color: #111;
}

.about-content h2 .title-line {
  display: block;
  white-space: nowrap;
}

.about-content h2 .green {
  color: #0a5c38;
}

.about-line {
  width: 76px;
  height: 3px;
  margin-bottom: 34px;
  background: #0a5c38;
}

.about-content p {
  font-size: 17px;
  line-height: 1.85;
  color: rgba(0,0,0,0.64);
  margin-bottom: 20px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-top: 30px;
  border-radius: 0;
  background: white;
  box-shadow: 0 18px 44px rgba(0,0,0,0.06);
}

.about-stats div {
  padding: 30px 22px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.06);
}

.about-stats div:last-child {
  border-right: 0;
}

.about-stats strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 500;
  color: #0a5c38;
}

.about-stats span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgba(0,0,0,0.46);
}

.about-btn {
  display: inline-flex;
  margin-top: auto;      /* prej: 36px — zdaj potisne gumb na dno */
  padding: 17px 34px;
  background: #0a5c38;
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: 0.3s ease;
}

.about-btn:hover {
  transform: translateY(-2px);
  background: #0f7348;
}

/* Tablet / manjši prenosnik: 2 stolpca ostaneta, a z manj prostora, da ni stisnjeno */
@media (max-width: 1024px) {
  .about-grid {
    gap: 40px;
  }

  .about-image-wrap {
    min-height: 440px;
  }
}

@media (max-width: 768px) {

  .about-section {
    padding: 80px 0;
  }

  .about-grid {
    width: 80%;
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-wrap {
    order: 1;
    height: 380px;
    min-height: 0;
  }

  .about-content {
    order: 2;
    max-width: 100%;
  }

  #small-onas {
    font-size: 11px;
    letter-spacing: 0.22em;
    margin-bottom: 14px;
  }

  .about-content h2 {
    font-size: 38px;
    line-height: 1.1;
    margin-bottom: 20px;
  }

  .about-content h2 .title-line {
    white-space: normal;
  }

  .about-line {
    width: 56px;
    margin-bottom: 24px;
  }

  .about-content p {
    font-size: 15px;
    line-height: 1.8;
  }

  .about-image-overlay {
    left: 24px;
    bottom: 24px;
  }

  .about-image-overlay h3 {
    font-size: 30px;
  }

  .about-image-overlay small {
    font-size: 10px;
  }

  .about-stats {
    margin-top: 30px;
  }

  .about-stats div {
    padding: 20px 12px;
  }

  .about-stats strong {
    font-size: 28px;
  }

  .about-stats span {
    font-size: 9px;
    letter-spacing: 0.12em;
  }

  .about-btn {
    width: 100%;
    justify-content: center;
    margin-top: 28px;
    padding: 18px 20px;
  }

}

.about-section {
    position: relative;
  }

  .about-section::before {
    content: "";
    position: absolute;
    inset: 0 6vw auto;
    top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(10,92,56,0.2), transparent);
  }

.specialties-section {
  position: relative;
  padding: 118px 6vw 128px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(255,255,255,0) 46%),
    radial-gradient(ellipse at 18% 4%, rgba(10,92,56,0.14) 0%, rgba(10,92,56,0.06) 34%, rgba(10,92,56,0) 62%),
    linear-gradient(180deg, #f7f8f5 0%, #e9eee7 100%);
}

.specialties-section::before {
  content: "";
  position: absolute;
  inset: 42px 4vw auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(10,92,56,0.2), transparent);
}

.specialties-inner {
  position: relative;
  max-width: 1260px;
  margin: 0 auto;
}

.specialties-heading {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.specialties-section .section-eyebrow {
  margin-bottom: 14px;
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.specialties-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1.08;
  font-weight: 500;
  color: #0a5c38;
}

.specialties-intro {
  max-width: 640px;
  margin: 22px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(0,0,0,0.58);
}

.specialties-toolbar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 44px 0 54px;
}

.specialty-filter {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(10,92,56,0.16);
  background: rgba(255,255,255,0.68);
  color: rgba(0,0,0,0.62);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  box-shadow: 0 12px 26px rgba(0,0,0,0.04);
  transition: 0.25s ease;
}

.specialty-filter:hover,
.specialty-filter.is-active {
  border-color: rgba(10,92,56,0.34);
  background: #0a5c38;
  color: #fff;
  transform: translateY(-2px);
}

.specialties-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 26px;
}

.specialty-card {
  /* 3 kartice v vrstici (2 vrzeli po 26px); flex-grow:0, da se nepopolna
     zadnja vrstica ne razteza čez celo širino, ampak ostane centrirana */
  flex: 0 1 calc((100% - 52px) / 3);
}

.specialty-card {
  position: relative;
  display: flex;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(10,92,56,0.12); 
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96), rgba(248,250,246,0.92));
  box-shadow: 0 24px 58px rgba(20,32,24,0.1);
  text-align: left;
  isolation: isolate;
  transition: opacity 0.22s ease, transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.specialty-card:hover,
.specialty-card:focus-visible,
.specialty-card.is-selected {
  transform: translateY(-9px);
  border-color: rgba(10,92,56,0.28);
  box-shadow: 0 34px 80px rgba(20,32,24,0.16);
  outline: none;
}

.specialty-card:hover::after,
.specialty-card:focus-visible::after,
.specialty-card.is-selected::after {
  opacity: 1;
  transform: translateY(0);
}

.specialty-card.is-hidden {
  display: none;
}

.specialty-card > img {
  width: 100%;
  height: 292px;
  object-fit: cover;
  display: block;
  filter: saturate(0.94) contrast(1.03);
  transition: transform 0.42s ease, filter 0.42s ease;
}

.specialty-card:hover > img,
.specialty-card:focus-visible > img,
.specialty-card.is-selected > img {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.05);
}

.specialty-card-content {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 26px 28px 30px;
}

.specialty-card-content::before {
  content: "";
  position: absolute;
  top: -44px;
  left: 0;
  right: 0;
  height: 44px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.94));
  pointer-events: none;
}

.specialty-meta {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  color: rgba(0,0,0,0.46);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specialty-meta strong {
  color: #0a5c38;
  font-size: 10px;
  white-space: nowrap;
}

.specialty-card h3 {
  margin-bottom: 13px;
  font-family: var(--font-heading);
  font-size: 29px;
  line-height: 1.14;
  font-weight: 500;
  color: #0a5c38;
}

.specialty-card p {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.68;
  color: rgba(0,0,0,0.6);
}

.specialty-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(10,92,56,0.11);
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.specialty-card-footer i {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: #0a5c38;
  color: #fff;
  font-size: 17px;
  transition: 0.25s ease;
}

.specialty-card:hover .specialty-card-footer i,
.specialty-card:focus-visible .specialty-card-footer i,
.specialty-card.is-selected .specialty-card-footer i {
  background: #2a8b61;
}

@media (max-width: 1100px) {
  .specialty-card {
    /* 2 kartici v vrstici (1 vrzel po 26px) */
    flex-basis: calc((100% - 26px) / 2);
  }
}

@media (max-width: 720px) {
  .specialties-section {
    padding: 82px 22px 90px;
  }

  .specialties-section .section-eyebrow {
    letter-spacing: 0.22em;
  }

  .specialties-section h2 {
    font-size: clamp(36px, 10vw, 46px);
  }

  .specialties-intro {
    font-size: 15px;
  }

  .specialties-toolbar {
    justify-content: flex-start;
    margin: 34px 0 34px;
  }

  .specialty-filter {
    min-height: 40px;
    padding: 0 14px;
    font-size: 10px;
  }

  .specialties-grid {
    gap: 22px;
  }

  .specialty-card {
    flex-basis: 100%;
  }

  .specialty-card > img {
    height: 232px;
  }

  .specialty-card-content {
    padding: 23px 22px 26px;
  }

  .specialty-meta {
    display:none;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

.partners-section {
  padding: 130px 0;
  background: #f5f6f3;
  overflow: visible;
}

.partners-inner {
  width: min(88%, 1380px);
  margin: 0 auto;
}

.partners-heading {
  max-width: 1000px;
  margin: 0 auto 80px;
  text-align: center;
}

.partners-heading .section-eyebrow {
  margin-bottom: 14px;
  color: #0a5c38;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.32em;
}

.partners-heading h2 {
  font-family: var(--font-heading);

  font-size: clamp(42px, 4.2vw, 84px);

  line-height: 1.1;
  letter-spacing: -0.04em;

  font-weight: 500;

  color: #171a1d;

  text-align: center;
}

.partners-heading h2 span {
  color: #0a5c38;
}

.partners-heading p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(0,0,0,0.58);
  text-align: center;
  margin-top: 30px;
}

.partners-grid {
  display: flex;
  gap: 24px;
  width: 100%;
  overflow: visible;
}

.partner-card {
  flex: 1 1 0;
  min-width: 0;
  height: 560px;
  position: relative;
  overflow: hidden;
  transition: flex 0.45s ease, transform 0.45s ease;
}

.partners-grid:hover .partner-card {
  flex: 0.95 1 0;
}

.partners-grid .partner-card:hover {
  flex: 1.15 1 0;
}


.partner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  transition: transform 0.5s ease;
}

.partner-card:hover img {
  transform: scale(1.04);
}

.partner-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.82),
    rgba(0,0,0,0.28) 55%,
    rgba(0,0,0,0.06)
  );
}

.partner-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 2;
  color: white;
}

.partner-content span {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 9px 14px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.partner-content h3 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.08;
  font-weight: 500;
  margin-bottom: 16px;
}

.partner-content p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.72);
  margin-bottom: 24px;
}

.partner-content a {
  display: inline-flex;
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-bottom: 2px solid #0a5c38;
  padding-bottom: 8px;
}

@media (max-width: 1050px) {
  .partners-grid {
    flex-direction: column;
  }

  .partner-card {
    height: 520px;
    flex: none;
  }

  .partners-grid:hover .partner-card,
  .partners-grid .partner-card:hover {
    flex: none;
    transform: none;
  }
}

@media (max-width: 768px) {
  .partners-section {
    padding: 80px 0;
  }

  .partners-inner {
    width: min(calc(100% - 28px), 1380px);
  }

  .partners-heading {
    margin-bottom: 42px;
  }

  .partners-heading h2 {
    font-size: 38px;
  }

  .partner-card {
    min-height: 460px;
  }

  .partner-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .partner-content h3 {
    font-size: 30px;
  }
}

@media (max-width: 900px) {
  .partners-grid {
    flex-direction: column;
  }

  .partners-grid:hover .partner-card,
  .partners-grid .partner-card:hover {
    flex: 1;
    transform: none;
  }
}

