.agronet-page {
  background: #f6f8f4;
  min-height: 80vh;
  padding: 18px 18px 34px;
}

.agronet-layout {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(0, 5fr) minmax(220px, 3fr);
  gap: 18px;
  max-width: 1440px;
  margin: 0 auto;
  align-items: start;
}

.agronet-panel,
.agronet-composer,
.agronet-card,
.agronet-create,
.agronet-single,
.agronet-ad,
.agronet-shorts {
  background: #fff;
  border: 1px solid rgba(21, 85, 36, .10);
  border-radius: 20px;
  box-shadow: 0 8px 24px rgba(17, 69, 32, .06);
}

.agronet-profile {
  padding: 18px;
  position: static;
}

.agronet-profile__avatar,
.agronet-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f7d2a, #8fd35e);
  color: #fff;
  font-weight: 800;
}

.agronet-profile__avatar {
  width: 64px;
  height: 64px;
  margin-bottom: 10px;
  font-size: 26px;
}

.agronet-profile__name {
  font-weight: 800;
  color: #16351f;
  overflow-wrap: anywhere;
}

.agronet-profile__sub,
.agronet-card__meta,
.agronet-card__foot,
.agronet-note {
  color: #6c7a70;
  font-size: 14px;
}

.agronet-side-link,
.agronet-link,
.agronet-back,
.agronet-section-head a {
  color: #146b2b;
  text-decoration: none;
  font-weight: 700;
}

.agronet-side-link {
  display: block;
  padding: 10px 0;
  border-top: 1px solid #edf2ed;
}

.agronet-composer {
  padding: 22px;
  margin-bottom: 16px;
}

.agronet-composer h1 {
  margin: 0 0 8px;
  color: #103c1a;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.08;
}

.agronet-composer p {
  margin: 0 0 16px;
  color: #435246;
  font-size: 18px;
}

.agronet-composer__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.agronet-action {
  appearance: none;
  border: 1px solid #cfe3d1;
  background: #fff;
  color: #145e27;
  border-radius: 14px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
}

.agronet-action--hot,
.agronet-submit {
  background: #10842e;
  color: #fff;
  border-color: #10842e;
}

.agronet-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.agronet-section-head h1,
.agronet-section-head h2 {
  margin: 0;
  color: #123d1c;
}

.agronet-shorts {
  padding: 16px;
  margin-bottom: 16px;
}

.agronet-shorts__row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 150px;
  gap: 12px;
  overflow-x: auto;
  padding: 12px 0 4px;
  scroll-snap-type: x mandatory;
}

.agronet-short-card {
  position: relative;
  height: 210px;
  border-radius: 18px;
  overflow: hidden;
  background: #dfe9df;
  color: #fff;
  text-decoration: none;
  scroll-snap-align: start;
}

.agronet-short-card img,
.agronet-short-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agronet-short-card span {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  font-weight: 800;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
}

.agronet-card {
  padding: 16px;
  margin-bottom: 16px;
}

.agronet-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 12px;
}

.agronet-card__author {
  font-weight: 800;
  color: #1c2d21;
}

.agronet-card__title {
  margin: 8px 0;
  font-size: 22px;
  line-height: 1.2;
}

.agronet-card__title a {
  color: #123d1c;
  text-decoration: none;
}

.agronet-card__body {
  color: #24352a;
  font-size: 16px;
  line-height: 1.48;
}

.agronet-media {
  display: block;
  margin-top: 12px;
  border-radius: 18px;
  overflow: hidden;
  background: #e7eee7;
  text-decoration: none;
}

.agronet-media img,
.agronet-media video {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.agronet-video {
  position: relative;
  aspect-ratio: 4 / 5;
  background: #dde8df;
}

.agronet-video img,
.agronet-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agronet-video__status {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  height: 100%;
  padding: 28px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  color: #31543a;
  text-align: center;
}

.agronet-video__status strong {
  font-size: 18px;
}

.agronet-video__status span {
  max-width: 340px;
  color: #66746a;
  font-size: 14px;
  line-height: 1.45;
}

.agronet-video__status--failed {
  background: #fff4f2;
  color: #8f2f22;
}

.agronet-video__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  background: rgba(0, 0, 0, .56);
  color: #fff;
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 800;
}

.agronet-card__foot {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.agronet-right {
  display: grid;
  gap: 14px;
  position: static;
  align-self: start;
  align-content: start;
  height: auto;
}

.agronet-ad {
  padding: 18px;
  min-height: 120px;
  color: #123d1c;
  background: linear-gradient(135deg, #fff, #ecf7ec);
}

.agronet-ad--soft {
  background: linear-gradient(135deg, #fff, #f8f1e8);
}

.agronet-create,
.agronet-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 22px;
}

.agronet-create h1 {
  margin-top: 12px;
  color: #123d1c;
}

.agronet-form {
  display: grid;
  gap: 12px;
}

.agronet-form label {
  font-weight: 800;
  color: #24352a;
}

.agronet-form__input,
.agronet-form__textarea,
.agronet-form__file {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d8e2d9;
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
}

.agronet-form__textarea {
  min-height: 160px;
  resize: vertical;
}

.agronet-submit {
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-weight: 900;
  cursor: pointer;
}

.agronet-danger {
  margin-top: 16px;
  border: 1px solid #ffd2d2;
  background: #fff5f5;
  color: #a01818;
  border-radius: 12px;
  padding: 10px 14px;
}

.agronet-errors,
.agronet-empty,
.agronet-note {
  border-radius: 14px;
  padding: 12px 14px;
  background: #f1f6f1;
}

.agronet-shorts-page {
  min-height: 100vh;
  background: #07120a;
  color: #fff;
}

.agronet-shorts-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(7, 18, 10, .88);
  backdrop-filter: blur(8px);
}

.agronet-shorts-top a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.agronet-short-stack {
  max-width: 520px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
  padding: 12px 12px 38px;
}

.agronet-short-full {
  position: relative;
  min-height: calc(100vh - 80px);
  border-radius: 22px;
  overflow: hidden;
  background: #111;
  scroll-snap-align: start;
}

.agronet-short-full video {
  width: 100%;
  height: calc(100vh - 80px);
  object-fit: cover;
  display: block;
}

.agronet-short-full__info {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 18px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.62));
}

.agronet-short-full__info a {
  color: #c8ffd0;
  font-weight: 800;
}

@media (max-width: 960px) {
  .agronet-page {
    padding: 10px 10px 80px;
  }

  .agronet-layout {
    display: flex;
    flex-direction: column;
  }

  .agronet-feed,
  .agronet-left,
  .agronet-right {
    width: 100%;
  }

  .agronet-left {
    order: 2;
  }

  .agronet-feed {
    order: 1;
  }

  .agronet-right {
    order: 3;
    position: static;
  }

  .agronet-profile {
    position: static;
  }

  .agronet-composer,
  .agronet-card,
  .agronet-create,
  .agronet-single {
    border-radius: 18px;
    padding: 16px;
  }

  .agronet-composer h1 {
    font-size: 24px;
  }

  .agronet-composer p {
    font-size: 16px;
  }

  .agronet-composer__actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .agronet-action {
    text-align: center;
    padding: 12px 8px;
  }

  .agronet-shorts__row {
    grid-auto-columns: 132px;
  }

  .agronet-short-card {
    height: 190px;
  }

  .agronet-media img,
  .agronet-media video {
    max-height: 520px;
  }
}


.agronet-composer--compact {
  padding: 18px 22px;
}

.agronet-composer__label {
  margin-bottom: 8px;
  color: #17251b;
  font-size: 18px;
  font-weight: 900;
  text-transform: lowercase;
}

.agronet-vacancies {
  display: grid;
  gap: 8px;
}

.agronet-vacancies__title {
  color: #123d1c;
  font-weight: 900;
  margin-bottom: 4px;
}

.agronet-vacancy-line {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid rgba(21, 85, 36, .10);
  color: #123d1c;
  text-decoration: none;
}

.agronet-vacancy-line span {
  font-weight: 850;
  line-height: 1.2;
}

.agronet-vacancy-line small {
  color: #69766c;
  font-size: 13px;
}


.agronet-compose-input {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 10px 0 14px;
  padding: 0 18px;
  border: 1px solid #d8e6da;
  border-radius: 999px;
  background: #fff;
  color: #5f6f64;
  text-align: left;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(20, 107, 43, .02);
}

.agronet-compose-input:hover {
  border-color: #a9d3ae;
  background: #fbfefb;
}

.agronet-modal[hidden] {
  display: none;
}

.agronet-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 18px;
}

.agronet-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .52);
}

.agronet-modal__card {
  position: relative;
  width: min(720px, 100%);
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28);
  padding: 24px;
}

.agronet-modal__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: #f0f4f0;
  color: #1f2b22;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.agronet-modal__title {
  color: #123d1c;
  font-size: 24px;
  font-weight: 900;
}

.agronet-modal__sub {
  margin-top: 4px;
  color: #6c7a70;
}

.agronet-modal__actions {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.agronet-modal__action {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid #d7e6d8;
  border-radius: 18px;
  background: #fff;
  color: #123d1c;
  text-decoration: none;
}

.agronet-modal__action:hover {
  background: #f6fbf6;
  border-color: #9fd0a5;
}

.agronet-modal__action strong {
  font-size: 18px;
}

.agronet-modal__action span {
  color: #69766c;
}

.agronet-modal__action--hot {
  background: #0f842e;
  color: #fff;
  border-color: #0f842e;
}

.agronet-modal__action--hot span {
  color: rgba(255, 255, 255, .84);
}

.agronet-filebox {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  box-sizing: border-box;
  border: 1px dashed #bad9bd;
  border-radius: 16px;
  padding: 12px;
  background: #fbfefb;
}

.agronet-filebox__button {
  flex: 0 0 auto;
  border-radius: 12px;
  padding: 11px 16px;
  background: #10842e;
  color: #fff;
  font-weight: 900;
  cursor: pointer;
}

.agronet-filebox__name {
  min-width: 0;
  color: #657369;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agronet-filebox__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 960px) {
  .agronet-modal {
    align-items: end;
    padding: 0;
  }

  .agronet-modal__card {
    width: 100%;
    border-radius: 22px 22px 0 0;
    padding: 22px 16px 24px;
  }

  .agronet-filebox {
    align-items: stretch;
    flex-direction: column;
  }

  .agronet-filebox__button {
    text-align: center;
  }
}


.agronet-ad--main {
  min-height: 360px;
  padding: 0;
  overflow: hidden;
  display: grid;
  align-content: stretch;
}

.agronet-ad--main img {
  display: block;
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.agronet-ad__image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.agronet-ad__caption,
.agronet-ad__fallback {
  display: grid;
  gap: 4px;
  padding: 16px 18px;
}

.agronet-ad__caption strong,
.agronet-ad__fallback strong {
  color: #123d1c;
  font-size: 18px;
  line-height: 1.2;
}

.agronet-ad__caption span,
.agronet-ad__fallback span,
.agronet-ad__fallback small {
  color: #5f6f64;
}

.agronet-vacancies {
  max-height: 520px;
  overflow: auto;
}

.agronet-vacancy-line {
  min-height: 44px;
}

@media (max-width: 960px) {
  .agronet-ad--main {
    min-height: 260px;
  }

  .agronet-ad--main img {
    height: 220px;
  }

  .agronet-vacancies {
    max-height: none;
  }
}


.agronet-ad__fallback--contact {
  align-content: start;
  padding-top: 22px;
}

.agronet-ad__fallback--contact span {
  color: #123d1c;
  font-size: 17px;
  font-weight: 850;
  line-height: 1.3;
}

.agronet-ad__fallback--contact a {
  color: #0f7d2a;
  font-size: 18px;
  font-weight: 950;
  text-decoration: none;
}


.agronet-upload-preview {
  margin: 12px 0 16px;
  border: 1px solid rgba(16, 132, 46, .16);
  border-radius: 18px;
  overflow: hidden;
  background: #f7fbf7;
}

.agronet-upload-preview__media {
  display: grid;
  place-items: center;
  background: #edf5ee;
}

.agronet-upload-preview video,
.agronet-upload-preview img {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: #e9f2eb;
}

.agronet-upload-preview__meta {
  padding: 10px 14px;
  color: #435246;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.agronet-video__badge {
  background: rgba(0, 0, 0, .54);
}


.agronet-media--video {
  cursor: pointer;
}

.agronet-media--video .agronet-video__tag {
  cursor: pointer;
}

.agronet-media--video:hover {
  box-shadow: 0 8px 26px rgba(17, 69, 32, .10);
}




/* AgroNetwork vertical video flush fix */
.agronet-card .agronet-media--video {
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0 16px;
  border-radius: 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(54, 132, 56, .16), transparent 34%),
    radial-gradient(circle at 82% 88%, rgba(54, 132, 56, .12), transparent 38%),
    linear-gradient(135deg, #eaf4ec, #dfece2);
  cursor: pointer;
  box-sizing: border-box;
}

.agronet-card .agronet-media--video .agronet-video {
  width: min(100%, 390px);
  aspect-ratio: 9 / 16;
  border-radius: 0;
  overflow: hidden;
  background: #0b1d10;
  box-shadow: 0 14px 34px rgba(13, 55, 25, .18);
}

.agronet-card .agronet-media--video .agronet-video__tag {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #0b1d10;
  cursor: pointer;
}

@media (max-width: 767.98px) {
  .agronet-card .agronet-media--video {
    padding: 0;
  }

  .agronet-card .agronet-media--video .agronet-video {
    width: 100%;
    max-width: 420px;
  }
}
/* /AgroNetwork vertical video flush fix */

/* AgroNetwork desktop fixed sidebars */
@media (min-width: 1200px) {
  body.agronet-shell {
    padding-top: 90px;
  }

  body.agronet-shell .header-b2b {
    position: fixed;
    top: 0;
    left: 50%;
    width: calc(100% - 20px);
    max-width: 1680px;
    margin: 0;
    transform: translateX(-50%);
    z-index: 9000;
    background: #fff;
  }

  body.agronet-shell .agronet-layout {
    --agronet-gap: 18px;
    --agronet-shell: min(calc(100vw - 36px), 1440px);
    --agronet-inner: calc(var(--agronet-shell) - var(--agronet-gap) * 2);
    --agronet-left-width: calc(var(--agronet-inner) * 0.2);
    --agronet-feed-width: calc(var(--agronet-inner) * 0.5);
    --agronet-right-width: calc(var(--agronet-inner) * 0.3);
    --agronet-shell-left: calc((100vw - var(--agronet-shell)) / 2);
    --agronet-fixed-top: 112px;
  }

  body.agronet-shell .agronet-left {
    min-height: 1px;
  }

  body.agronet-shell .agronet-profile {
    position: fixed;
    top: var(--agronet-fixed-top);
    left: var(--agronet-shell-left);
    width: var(--agronet-left-width);
    box-sizing: border-box;
    z-index: 20;
  }

  body.agronet-shell .agronet-right {
    position: fixed;
    top: var(--agronet-fixed-top);
    left: calc(var(--agronet-shell-left) + var(--agronet-left-width) + var(--agronet-gap) + var(--agronet-feed-width) + var(--agronet-gap));
    width: var(--agronet-right-width);
    box-sizing: border-box;
    z-index: 20;
  }

  body.agronet-shell .agronet-feed {
    min-width: 0;
    height: auto;
    overflow: visible;
  }
}

@media (min-width: 961px) and (max-width: 1199.98px) {
  body.agronet-shell .agronet-left,
  body.agronet-shell .agronet-right {
    position: sticky;
    top: 112px;
    align-self: start;
    height: max-content;
  }

  body.agronet-shell .agronet-profile {
    position: static;
  }
}

@media (max-width: 960px) {
  body.agronet-shell {
    padding-top: 0;
  }

  body.agronet-shell .header-b2b {
    position: sticky;
    top: 0;
    transform: none;
  }

  body.agronet-shell .agronet-left,
  body.agronet-shell .agronet-right,
  body.agronet-shell .agronet-profile {
    position: static;
    top: auto;
    width: auto;
    height: auto;
  }
}
/* /AgroNetwork desktop fixed sidebars */


/* AgroNetwork likes */
.agronet-like-form {
  margin: 0;
}

.agronet-like-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: #6c7a70;
  padding: 0;
  font: inherit;
  font-size: 14px;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
}

.agronet-like-button:hover,
.agronet-like-button.is-active {
  color: #0f7d2a;
}

.agronet-like-button:disabled {
  opacity: .62;
  cursor: wait;
}

.agronet-like-icon {
  font-size: 18px;
  line-height: 1;
}

.agronet-like-count {
  font-weight: 850;
}
/* /AgroNetwork likes */


/* AgroNetwork composer action font equalizer */
.agronet-composer__actions .agronet-action,
.agronet-composer__actions button.agronet-action {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 800;
}
/* /AgroNetwork composer action font equalizer */


/* AgroNetwork upload preview safety */
.agronet-upload-preview[hidden],
.agronet-upload-preview__media video[hidden],
.agronet-upload-preview__media img[hidden] {
  display: none;
}

.agronet-upload-preview__media video,
.agronet-upload-preview__media img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  background: #edf5ee;
}
/* /AgroNetwork upload preview safety */


/* AgroNetwork mobile content order */
.agronet-mobile-composer {
  display: none;
}

@media (max-width: 960px) {
  body.agronet-shell .agronet-layout {
    align-items: stretch;
  }

  body.agronet-shell .agronet-left {
    order: 1;
    width: 100%;
    align-self: stretch;
  }

  body.agronet-shell .agronet-mobile-composer {
    display: block;
    order: 2;
    width: 100%;
    align-self: stretch;
  }

  body.agronet-shell .agronet-right {
    order: 3;
    width: 100%;
    align-self: stretch;
  }

  body.agronet-shell .agronet-feed {
    order: 4;
    width: 100%;
    align-self: stretch;
  }

  body.agronet-shell .agronet-desktop-composer {
    display: none;
  }

  body.agronet-shell .agronet-profile,
  body.agronet-shell .agronet-ad,
  body.agronet-shell .agronet-vacancies,
  body.agronet-shell .agronet-composer,
  body.agronet-shell .agronet-card,
  body.agronet-shell .agronet-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
}

@media (min-width: 961px) {
  .agronet-mobile-composer {
    display: none;
  }
}
/* /AgroNetwork mobile content order */


/* AgroNetwork user avatar images */
.agronet-avatar,
.agronet-profile__avatar {
  overflow: hidden;
}

.agronet-avatar img,
.agronet-profile__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
/* /AgroNetwork user avatar images */


/* AgroNetwork article form helper */
.agronet-form-hint {
  margin-top: 8px;
  color: #5f6f66;
  font-size: 14px;
  line-height: 1.35;
}
/* /AgroNetwork article form helper */
