@import url('https://fonts.googleapis.com/css2?family=Merriweather:ital,opsz,wght@0,18..144,300..900;1,18..144,300..900&display=swap');

/* =========================
         RESET / BASE
      ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Merriweather', serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: #eef1f3;
  color: #111827;
  line-height: 1.65;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
}

input,
textarea {
  border-radius: 0;
}

input[type='search']::-webkit-search-decoration,
input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-results-button,
input[type='search']::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

.zp-lock {
  overflow: hidden;
}

/* =========================
         THEME
      ========================= */
:root {
  --zp-green: #4b8f43;
  --zp-green-2: #2f6f2d;
  --zp-green-dark: #255f26;

  --zp-white: #ffffff;
  --zp-shadow: 0 10px 22px rgba(0, 0, 0, 0.08);

  --zp-radius: 6px;

  --zp-accent: #2f7d3b;
  --zp-danger: #b42318;
  --zp-text: #111827;

  --zp-border: rgba(17, 24, 39, 0.12);
}

.zp-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* =========================
         HEADER
      ========================= */
.zp-header {
  color: var(--zp-white);
  box-shadow: var(--zp-shadow);
}

.zp-top {
  background: #039541;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.zp-top__grid {
  min-height: 140px;
  display: flex;
  align-items: flex-end;
  gap: 18px;
  padding: 16px 16px 18px;
}

.zp-brand {
  flex: 0 0 auto;
  padding: 10px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--zp-radius);
  background: rgba(255, 255, 255, 0.06);
}

.zp-logo {
  width: 140px;
  height: auto;
}

.zp-actions {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
}

/* burger */
.zp-burger {
  width: 64px;
  height: 54px;
  border-radius: var(--zp-radius);
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.zp-burger:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.zp-burger span {
  width: 22px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  display: block;
}

/* search */
.zp-search {
  flex: 1 1 auto;
  display: flex;
  align-items: stretch;
  border-radius: var(--zp-radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  min-height: 54px;
  position: relative;
}

.zp-search__input {
  width: 100%;
  padding: 12px 14px;
  padding-right: 120px; /* место под статус */
  border: 0;
  outline: none;
  color: var(--zp-white);
  background: transparent;
  font-size: 16px;
}

.zp-search__input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.zp-search__btn {
  width: 64px;
  border: 0;
  background: rgba(255, 255, 255, 0.18);
  color: var(--zp-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  flex: 0 0 64px;
}

.zp-search__btn:hover {
  background: rgba(255, 255, 255, 0.26);
}

.zp-search__status {
  position: absolute;
  right: 64px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  pointer-events: none;
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zp-search__status.is-empty {
  opacity: 0;
}
.zp-search__status.is-none {
  background: rgba(180, 35, 24, 0.22);
  border-color: rgba(255, 255, 255, 0.22);
}
.zp-search__status.is-found {
  background: rgba(47, 125, 59, 0.25);
  border-color: rgba(255, 255, 255, 0.22);
}

/* focus */
.zp-burger:focus-visible,
.zp-search__input:focus-visible,
.zp-search__btn:focus-visible,
.zp-nav__link:focus-visible,
.zp-drawer__close:focus-visible,
.zp-drawer__link:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* nav */
.zp-nav {
  background: var(--zp-green-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.zp-nav .zp-container {
  display: flex;
  gap: 22px;
  align-items: center;
  padding: 12px 16px;
  overflow: auto;
  scrollbar-width: thin;
}

.zp-nav__link {
  color: rgba(255, 255, 255, 0.95);
  font-size: 22px;
  white-space: nowrap;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.zp-nav__link:hover {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

/* =========================
         MOBILE DRAWER
      ========================= */
.zp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 9998;
}

.zp-drawer {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: min(320px, 88vw);
  background: linear-gradient(
    180deg,
    var(--zp-green) 0%,
    var(--zp-green-2) 100%
  );
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.25);
  transform: translateX(-105%);
  transition: transform 0.25s ease;
  z-index: 9999;
  display: flex;
  flex-direction: column;
}

.zp-drawer.is-open {
  transform: translateX(0);
}

.zp-drawer-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.zp-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.zp-drawer__brand {
  padding: 10px;
  border-radius: var(--zp-radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.zp-drawer__logo {
  width: 110px;
}

.zp-drawer__close {
  width: 44px;
  height: 44px;
  border-radius: var(--zp-radius);
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  position: relative;
}

.zp-drawer__close span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 2px;
  background: rgba(255, 255, 255, 0.95);
  transform-origin: center;
}

.zp-drawer__close span:first-child {
  transform: translate(-50%, -50%) rotate(45deg);
}
.zp-drawer__close span:last-child {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.zp-drawer__nav {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zp-drawer__link {
  padding: 12px 12px;
  border-radius: var(--zp-radius);
  color: rgba(255, 255, 255, 0.98);
  font-size: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: transform 0.15s ease, background 0.15s ease;
}

.zp-drawer__link:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateX(2px);
}

.zp-drawer__footer {
  margin-top: auto;
  padding: 14px 16px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.zp-drawer__note {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.4;
}

/* =========================
         MAIN / POST
      ========================= */
.zp-main {
  padding: 22px 0 56px;
}

.zp-post {
  background: #ffffff;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  padding: 18px 16px;
}

.zp-post__title {
  margin: 0;
  font-size: 30px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.zp-title__green {
  color: #1f6a2a;
}

.zp-title__purple {
  color: #3b1b5a;
}

.zp-post__meta {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.zp-meta__left,
.zp-meta__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.zp-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  color: rgba(17, 24, 39, 0.9);
}

.zp-post__divider {
  margin: 12px 0 10px;
  height: 1px;
  background: rgba(17, 24, 39, 0.14);
}

.zp-figure {
  margin: 14px 0;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.zp-figure img {
  width: 100%;
  height: auto;
}

.zp-figure--product {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  border: 0;
  background: transparent;
}

.zp-post__byline {
  margin: 0;
  font-size: 16px;
  color: rgba(17, 24, 39, 0.9);
}

.zp-post p {
  margin: 12px 0 0;
  font-size: 16px;
  color: rgba(17, 24, 39, 0.92);
}

.zp-post__q {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.zp-post__a {
  margin-top: 10px;
}

.zp-strong,
.zp-post .zp-strong {
  font-weight: 900;
  color: rgba(17, 24, 39, 0.92);
}

.zp-post__h3 {
  margin: 18px 0 0;
  font-size: 20px;
  font-weight: 900;
}

.zp-lead-green {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 106, 42, 0.22);
  border-left: 5px solid rgba(31, 106, 42, 0.9);
  background: rgba(31, 106, 42, 0.06);
}

/* LIST */
.zp-list {
  margin: 12px 0 0;
  padding-left: 18px;
}

.zp-list li {
  margin: 8px 0;
  font-size: 16px;
}

/* =========================
         BRAND NAME
      ========================= */
.zp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}

.zp-brand__name {
  color: #fff;
  font-weight: 900;
  font-size: 30px;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
}

.zp-brand .zp-logo {
  width: 86px;
  height: auto;
}

/* =========================
         CLICKABLE PRODUCT MARK
      ========================= */
.zp-mark-red {
  color: var(--zp-danger);
  font-weight: 900;
}

.zp-mark-link {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zp-mark-link:hover {
  opacity: 0.85;
}

/* =========================
         ORDER (FORM) STYLES — усилено + фото
      ========================= */
.zp-order {
  padding: 34px 0 56px;
}

.zp-order__card {
  max-width: 720px;
  margin: 0 auto;
  background: linear-gradient(180deg, #ffffff 0%, rgba(47, 125, 59, 0.06) 100%);
  border: 2px solid rgba(47, 125, 59, 0.28);
  border-radius: var(--zp-radius);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.09);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}

.zp-order__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 20% 0%,
    rgba(47, 125, 59, 0.18),
    transparent 55%
  );
  pointer-events: none;
}

.zp-order__card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 6px;
  width: 100%;
  background: linear-gradient(90deg, #2f7d3b 0%, #039541 55%, #2f7d3b 100%);
  pointer-events: none;
}

.zp-order__hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  position: relative;
  z-index: 1;
}

@media (min-width: 860px) {
  .zp-order__hero {
    grid-template-columns: 1fr 210px;
    align-items: center;
    gap: 18px;
  }
}

.zp-order__title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.zp-order__desc {
  margin: 8px 0 0;
  color: rgba(17, 24, 39, 0.82);
}

.zp-order__bullets {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.zp-order__bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
}

.zp-order__tick {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: rgba(47, 125, 59, 0.15);
  border: 1px solid rgba(47, 125, 59, 0.32);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  margin-top: 2px;
}

.zp-order__media {
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 12px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.zp-order__media img {
  width: 100%;
  height: auto;
}

.zp-order__form {
  margin-top: 16px;
  display: grid;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.zp-field__label {
  font-size: 14px;
  font-weight: 900;
  color: rgba(17, 24, 39, 0.9);
  margin-bottom: 6px;
}

.zp-field__input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 6px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zp-field__input:focus {
  border-color: rgba(47, 125, 59, 0.65);
  box-shadow: 0 0 0 4px rgba(47, 125, 59, 0.12);
}

.zp-order__btn {
  width: 100%;
  margin-top: 6px;
  padding: 14px 12px;
  border-radius: 8px;
  background: linear-gradient(180deg, #2f7d3b 0%, #1f6a2a 100%);
  color: #fff;
  font-weight: 900;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.14);
  transition: transform 0.15s ease, filter 0.15s ease;
}

.zp-order__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.zp-order__note {
  margin-top: 12px;
  font-size: 13px;
  color: rgba(17, 24, 39, 0.78);
  position: relative;
  z-index: 1;
}

/* =========================
         COMMENTS (без даты/лайков) + форма добавления
      ========================= */
.zp-comments {
  padding: 0 0 56px;
}

.zp-comments__card {
  background: #fff;
  border: 1px solid var(--zp-border);
  border-radius: var(--zp-radius);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.07);
  padding: 16px;
}

.zp-comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.12);
}

.zp-comments__count {
  font-weight: 900;
  font-size: 16px;
}

.zp-comments__sort {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(17, 24, 39, 0.7);
  font-size: 14px;
}

.zp-comments__sort-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: rgba(17, 24, 39, 0.9);
}

.zp-comments__sort-link:hover {
  background: rgba(17, 24, 39, 0.04);
}

.zp-comments__add {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(47, 125, 59, 0.22);
  background: rgba(47, 125, 59, 0.05);
  border-radius: 10px;
}

.zp-comments__add-title {
  font-weight: 900;
  font-size: 16px;
  margin: 0;
}

.zp-comments__add-desc {
  margin: 6px 0 0;
  color: rgba(17, 24, 39, 0.75);
  font-size: 14px;
}

.zp-comments__add-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.zp-comments__add-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 720px) {
  .zp-comments__add-row {
    grid-template-columns: 1fr 1fr;
  }
}

.zp-comments__input,
.zp-comments__textarea {
  width: 100%;
  padding: 12px 12px;
  border: 1px solid rgba(17, 24, 39, 0.18);
  border-radius: 8px;
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.zp-comments__textarea {
  min-height: 92px;
  resize: vertical;
}

.zp-comments__input:focus,
.zp-comments__textarea:focus {
  border-color: rgba(47, 125, 59, 0.65);
  box-shadow: 0 0 0 4px rgba(47, 125, 59, 0.12);
}

.zp-comments__add-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.zp-comments__btn {
  padding: 12px 14px;
  border-radius: 10px;
  background: linear-gradient(180deg, #2f7d3b 0%, #1f6a2a 100%);
  color: #fff;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.15s ease, filter 0.15s ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.zp-comments__btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.zp-comments__hint {
  font-size: 12px;
  color: rgba(17, 24, 39, 0.7);
}

.zp-comments__toast {
  font-size: 13px;
  font-weight: 900;
  color: rgba(47, 125, 59, 0.95);
  display: none;
}
.zp-comments__toast.is-show {
  display: inline-block;
}

.zp-comments__list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.zp-comment {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
}

.zp-comment__ava img {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(17, 24, 39, 0.14);
}

.zp-comment__name {
  font-weight: 900;
  display: inline-block;
  margin-bottom: 6px;
}

.zp-comment__text {
  color: rgba(17, 24, 39, 0.9);
  font-size: 15px;
}

.zp-comment__media {
  margin-top: 10px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.zp-comment__media img {
  width: 100%;
  height: auto;
  display: block;
}

.zp-comments__product {
  color: var(--zp-danger);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.zp-comments__product:hover {
  opacity: 0.85;
}

/* =========================
         LIVE FIND HIGHLIGHT (Ctrl+F-like)
      ========================= */
mark.zp-find {
  background: rgba(255, 215, 64, 0.7);
  color: inherit;
  padding: 0 2px;
  border-radius: 4px;
}

mark.zp-find.zp-find--active {
  background: rgba(255, 160, 64, 0.9);
  box-shadow: 0 0 0 4px rgba(255, 160, 64, 0.22);
}

/* =========================
         RESPONSIVE
      ========================= */
@media (max-width: 720px) {
  .zp-top__grid {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    min-height: unset;
  }

  .zp-actions {
    width: 100%;
    padding-bottom: 0;
  }

  .zp-logo {
    width: 100px;
  }

  .zp-nav__link {
    font-size: 20px;
  }

  .zp-post__title {
    font-size: 24px;
  }

  .zp-post__q {
    font-size: 20px;
  }

  .zp-brand__name {
    font-size: 22px;
  }

  .zp-brand .zp-logo {
    width: 70px;
  }

  .zp-comment {
    grid-template-columns: 42px 1fr;
  }

  .zp-comment__ava img {
    width: 42px;
    height: 42px;
  }

  .zp-search__input {
    padding-right: 108px;
  }
}
