:root {
  --dp-bg: #ffffff;
  --dp-text: #2a4a2a;
  --dp-green: #3d7a3d;
  --dp-green-dark: #2a4a2a;
  --dp-gold: #c9a227;
  --dp-max: 72rem;
}

body.dp-body {
  margin: 0;
  overflow-x: hidden;
  background: var(--dp-bg);
  color: var(--dp-text);
  font-family: "Lora", Georgia, "Times New Roman", serif;
  line-height: 1.6;
}

.dp-title,
.dp-subtitle,
.dp-product-card__name {
  font-family: "Neucha", cursive;
  font-weight: 400;
  color: var(--dp-green);
}

.dp-main {
  flex: 1;
}

.dp-section {
  max-width: var(--dp-max);
  margin: 0 auto;
  padding: 3rem 1rem 4rem;
}

@media (min-width: 768px) {
  .dp-section {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.dp-title {
  text-align: center;
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 2.5rem;
}

.dp-subtitle {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0 0 1rem;
}

.dp-muted {
  text-align: center;
  opacity: 0.75;
}

.dp-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--dp-max);
  margin: 0 auto;
}

.dp-hero__media {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1024 / 571;
  overflow: hidden;
}

.dp-hero__img,
.dp-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.dp-hero__img {
  transition: opacity 0.7s ease-in-out;
}

.dp-hero__media.is-playing .dp-hero__img {
  opacity: 0;
}

.dp-hero__video {
  opacity: 0;
  transition: opacity 0.7s ease-in-out;
}

.dp-hero__video.is-visible {
  opacity: 1;
}

html.dp-no-hero-video .dp-hero__video {
  display: none !important;
}

/* Скрыть нативные контролы (в т.ч. Mi Browser / WebKit) */
.dp-hero__video::-webkit-media-controls {
  display: none !important;
}

.dp-hero__video::-webkit-media-controls-enclosure {
  display: none !important;
}

.dp-hero__video::-webkit-media-controls-panel {
  display: none !important;
}

.dp-hero__video::-webkit-media-controls-play-button {
  display: none !important;
}

.dp-hero__video::-webkit-media-controls-start-playback-button {
  display: none !important;
}

.dp-hero__fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 40%;
  background: linear-gradient(to top, #fff 0%, rgba(255, 255, 255, 0.85) 50%, transparent 100%);
  pointer-events: none;
}

.dp-hero__logo-wrap {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  padding: 0.75rem 0 0.35rem;
  background: #fff;
}

.dp-hero__brand {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: min(calc(100vw - 2rem), calc(12rem * 2083 / 1086));
  max-width: calc(100vw - 2rem);
  min-width: 0;
  overflow: hidden;
}

.dp-hero__logo {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: auto;
  object-fit: contain;
}

.dp-hero__slogan {
  margin: 0.35rem 0 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  visibility: hidden;
}

.dp-hero__slogan.is-fit {
  visibility: visible;
}

.dp-hero__slogan-text {
  display: inline-block;
  font-size: 0.7rem;
  font-family: "Neucha", cursive;
  font-weight: 400;
  color: var(--dp-green);
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1.05;
  transform-origin: center center;
}

@media (min-width: 768px) {
  .dp-hero__logo-wrap {
    padding-top: 1rem;
    padding-bottom: 0.5rem;
  }

  .dp-hero__brand {
    width: min(calc(100vw - 2rem), calc(15rem * 2083 / 1086));
  }
}

.dp-product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .dp-product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.dp-product-card {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(42, 74, 42, 0.22);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 10px 10px 15px rgba(42, 74, 42, 0.35);
  text-decoration: none;
  color: var(--dp-text);
  background: #fff;
}

.dp-product-card__media {
  aspect-ratio: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.dp-product-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-product-card__panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem 1.5rem 1.5rem;
  background: #cae8e0;
}

.dp-frame-btn {
  display: inline-block;
  box-sizing: border-box;
  margin-top: 1.1rem;
  padding: 0.38rem 0.95rem;
  background: #fff;
  color: var(--dp-green-dark);
  border: 1px solid rgba(42, 74, 42, 0.55);
  border-radius: 0.7rem;
  font-family: "Neucha", cursive;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: 0.03em;
  text-decoration: none;
  white-space: nowrap;
}

.dp-product-card .dp-frame-btn {
  align-self: center;
  background: transparent;
  text-align: center;
  width: calc(1.5 * (4.275055em + 1.9rem + 2px));
}

a.dp-frame-btn:hover,
.dp-product-card:hover .dp-frame-btn {
  border-color: var(--dp-green-dark);
  color: var(--dp-green-dark);
}

.dp-product-card__name {
  margin: 0 0 0.65rem;
  color: var(--dp-green-dark);
  font-size: clamp(1.275rem, 2.55vw, 1.9125rem);
  line-height: 1.15;
}

.dp-product-card__lead {
  margin: 0;
  font-size: 0.95625rem;
  line-height: 1.6;
  white-space: pre-line;
  color: var(--dp-green-dark);
}

@media (min-width: 768px) {
  .dp-product-card__name {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
  }

  .dp-product-card__lead {
    font-size: 1.125rem;
  }
}

.dp-production-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  .dp-production-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .dp-production-row--reverse .dp-production-row__media {
    order: 2;
  }
}

.dp-production-row__media {
  aspect-ratio: 4 / 3;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(42, 74, 42, 0.12);
}

.dp-production-row__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.dp-production-row__text p {
  margin: 0;
  font-size: 1rem;
}

.dp-articles {
  padding-top: 1rem;
  padding-bottom: 2.5rem;
}

.dp-article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  background: #f4ecdc;
  border: 1px solid rgba(120, 96, 48, 0.22);
  border-radius: 1rem;
  padding: 1.25rem 1.35rem 1.35rem;
  margin: 0 0 1.15rem;
}

.dp-article:last-child {
  margin-bottom: 0;
}

.dp-article__title {
  margin: 0 0 0.5rem;
  font-family: "Neucha", cursive;
  font-weight: 400;
  color: var(--dp-green);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  line-height: 1.2;
}

.dp-article__excerpt {
  margin: 0;
  color: var(--dp-green-dark);
}

.dp-article .dp-frame-btn {
  margin-top: 0;
}

@media (min-width: 768px) {
  .dp-article {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.35rem 1.5rem;
  }

  .dp-article .dp-frame-btn {
    flex: 0 0 auto;
  }
}

.dp-footer {
  margin-top: auto;
  border-top: 1px solid rgba(61, 122, 61, 0.15);
  background: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

.dp-footer__line {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

.dp-footer a {
  color: var(--dp-green);
}

.dp-cart-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--dp-green);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(42, 74, 42, 0.25);
}

.dp-cart-fab:hover {
  background: var(--dp-green-dark);
  color: #fff;
}

.dp-cart-fab__badge {
  min-width: 1.5rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #fff;
  color: var(--dp-green);
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.dp-btn {
  display: inline-block;
  border: 0;
  border-radius: 999px;
  background: var(--dp-green);
  color: #fff;
  padding: 0.45rem 1rem;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.2;
  text-decoration: none;
}

.dp-btn--small {
  font-size: 0.85rem;
  padding: 0.4rem 0.85rem;
}

.dp-btn--ghost {
  background: #fff;
  color: var(--dp-green-dark);
  border: 1px solid rgba(42, 74, 42, 0.35);
}
