:root {
  --bg: #ffffff;
  --bg-muted: #f9f4ea;
  --bg-dark: #19532b;
  --text: #19532b;
  --text-muted: #6b6248;
  --line: #e8dfc8;
  --brand: #8aaa00;
  --brand-dark: #6b8800;
  --danger: #b3261e;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1200px, 100% - 2rem);
  margin-inline: auto;
}

.main-content {
  padding-top: 64px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(25, 83, 43, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(243, 232, 204, 0.1);
}

.header-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  color: #f3e8cc;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  color: rgba(243, 232, 204, 0.7);
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #f3e8cc;
}

.btn {
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1rem;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, rgb(25, 83, 43), rgb(42, 102, 53));
    color: rgb(255, 255, 255);
}

.btn-outline {
  color: #f3e8cc;
  background: rgba(138, 170, 0, 0.18);
      background: rgb(56 107 44);
  border-color: rgba(138, 170, 0, 0.36);
}

.btn-cart {
  padding: 0.5rem 0.9rem;
}

.badge {
  background: rgba(243, 232, 204, 0.2);
  border-radius: 999px;
  padding: 0.1rem 0.45rem;
  min-width: 1.5rem;
  text-align: center;
}

.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #f3e8cc;
  background: linear-gradient(135deg, #1a3a20 0%, #19532b 40%, #2a6635 100%);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: radial-gradient(circle, #f3e8cc 1px, transparent 1px);
  background-size: 32px 32px;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  opacity: 0.1;
}

.hero-glow-right {
  top: -8rem;
  right: -8rem;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, #8aaa00, transparent);
}

.hero-glow-left {
  bottom: -6rem;
  left: -6rem;
  width: 20rem;
  height: 20rem;
  background: radial-gradient(circle, #e8b820, transparent);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 760px;
  padding-top: 5.5rem;
  padding-bottom: 5.5rem;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(138, 170, 0, 0.3);
  background: rgba(138, 170, 0, 0.2);
  color: #b8d800;
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: #8aaa00;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.3rem, 10vw, 7rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-underline {
  width: 100%;
  max-width: 420px;
  height: 6px;
  margin-top: 0.75rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #8aaa00, #e8b820, transparent);
}

.hero-subtitle {
  margin-top: 1.4rem;
  margin-bottom: 0.5rem;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 600;
  color: rgba(243, 232, 204, 0.9);
}

.hero-points {
  margin: 1rem 0 1.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  font-size: 0.84rem;
  border: 1px solid rgba(243, 232, 204, 0.2);
  background: rgba(243, 232, 204, 0.1);
  color: rgba(243, 232, 204, 0.82);
  border-radius: 999px;
  padding: 0.33rem 0.6rem;
}

.hero-cta {
  padding: 0.95rem 1.4rem;
  box-shadow: 0 8px 32px rgba(138, 170, 0, 0.4);
}

.section {
  padding: 6rem 0;
}

.section-muted {
  background: var(--bg-muted);
}

.section-dark {
  background: linear-gradient(135deg, #1a3a20 0%, #19532b 100%);
  color: #f3e8cc;
}

.section-intro {
  margin-bottom: 2.8rem;
}

.section-intro.center {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-kicker {
  display: block;
  margin-bottom: 0.8rem;
  color: #8aaa00;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-intro h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.1rem);
  font-weight: 900;
  color: #19532b;
}

.section-intro p {
  margin: 0.9rem auto 0;
  color: #6b6248;
  font-size: 1.05rem;
}

.section-intro.light h2 {
  color: #f3e8cc;
}

.section-intro.light p {
  color: rgba(243, 232, 204, 0.7);
}

.workflow {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1.25rem;
}

.workflow-line {
  display: none;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.workflow-icon-wrap {
  position: relative;
  margin-bottom: 1.35rem;
}

.workflow-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(25, 83, 43, 0.24);
  transition: transform 0.3s ease;
}

.workflow-step:hover .workflow-icon {
  transform: translateY(-4px);
}

.workflow-icon-cart {
  background: linear-gradient(135deg, #19532b, #2a6635);
}

.workflow-icon-copy {
  background: linear-gradient(135deg, #8aaa00, #6b8800);
}

.workflow-icon-telegram {
  background: linear-gradient(135deg, #0088cc, #006aab);
}

.workflow-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 900;
  background: #f3e8cc;
  color: #19532b;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.workflow-title {
  margin: 0 0 0.65rem;
  font-size: 1.3rem;
  font-weight: 900;
  color: #19532b;
}

.workflow-text {
  margin: 0;
  max-width: 280px;
  color: #6b6248;
  font-size: 0.95rem;
  line-height: 1.6;
}

.workflow-mobile-arrow {
  margin-top: 1.35rem;
  margin-bottom: 0.35rem;
  color: #8aaa00;
  display: flex;
  align-items: center;
  justify-content: center;
}

.workflow-step:last-child .workflow-mobile-arrow {
  display: none;
}

.min-order-note {
  margin: 2.8rem auto 0;
  max-width: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  border-radius: 16px;
  border: 1px solid #e8dfc8;
  background: #f9f4ea;
  padding: 0.8rem 1rem;
}

.min-order-note p {
  margin: 0;
  color: #6b6248;
  font-size: 0.92rem;
  font-weight: 600;
}

.min-order-note strong {
  color: #19532b;
}

.category-list {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.7rem;
  margin-bottom: 2rem;
  -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-btn {
  border: 1px solid #ddd0b0;
  background: #fff;
  color: var(--text);
  border-radius: 12px;
  padding: 0.56rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-btn .cat-count {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  opacity: 0.72;
}

.category-btn.active {
  background: var(--bg-dark);
  border-color: var(--bg-dark);
  color: #f3e8cc;
  box-shadow: 0 4px 16px rgba(25, 83, 43, 0.3);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(25, 83, 43, 0.18);
}

.product-image-wrap {
  position: relative;
  width: 100%;
  height: 12rem;
  overflow: hidden;
  background: linear-gradient(135deg, #f3e8cc, #e8dfc8);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.5s ease;
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-image.contain {
  object-fit: cover;
  object-position: center center;
}

.product-category-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(25, 83, 43, 0.85);
  color: #f3e8cc;
  height: 24px;
}

.product-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
}

.product-card .product-title {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.2;
}

.product-description-short {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.product-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.price {
  font-weight: 900;
  font-size: 1.2rem;
}

.tag {
  border-radius: 6px;
  background: #f0e6c4;
  padding: 0.18rem 0.52rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.product-composition {
  margin: 0;
}

.product-composition summary {
  cursor: pointer;
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 0.78rem;
}

.composition {
  margin: 0.35rem 0 0;
  color: #6f664f;
  font-size: 0.78rem;
  line-height: 1.45;
}

.about-section {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.6rem;
}

.features-grid article {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f9f4ea;
  padding: 1.15rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-grid article:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(25, 83, 43, 0.12);
}

.feature-icon {
  font-size: 1.85rem;
  margin-bottom: 0.55rem;
}

.features-grid h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
      font-weight: 700;
}

.features-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.86rem;
}

.contacts-section {
  padding-bottom: 3.5rem;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.contacts-grid-strong {
  max-width: 960px;
  margin-inline: auto;
}

.contact-card {
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  background: rgba(243, 232, 204, 0.08);
  border: 1px solid rgba(243, 232, 204, 0.15);
  padding-top: 50px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0 auto 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8aaa00;
  background: rgba(138, 170, 0, 0.2);
}

.contact-caption {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 232, 204, 0.5);
}

.contact-value {
  margin: 0.45rem 0 0;
  color: #f3e8cc;
  font-weight: 600;
  white-space: pre-line;
}

.contacts-bottom {
  margin-top: 3rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(243, 232, 204, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.contacts-bottom p {
  margin: 0;
}

.contacts-bottom p:first-child {
  color: rgba(243, 232, 204, 0.6);
  font-size: 0.85rem;
  font-weight: 700;
}

.contacts-bottom p:last-child {
  color: rgba(243, 232, 204, 0.4);
  font-size: 0.75rem;
}

.muted {
  color: var(--text-muted);
}

.cart-panel {
  position: fixed;
  right: 0;
  top: 0;
  z-index: 50;
  height: 100dvh;
  width: min(440px, 100%);
  background: #fff;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-panel.open {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.cart-footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.cart-items {
  overflow: auto;
  padding: 1rem;
}

.cart-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.65rem;
  margin-bottom: 0.6rem;
}

.cart-item-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-controls {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.btn-small,
.btn-icon {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  cursor: pointer;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-weight: 700;
}

.btn-icon {
  width: 2rem;
  height: 2rem;
  font-size: 1.2rem;
}

.warning {
  margin-top: 0.6rem;
  color: var(--danger);
  font-size: 0.9rem;
}

.cart-actions {
  margin-top: 0.75rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.4);
}

@media (min-width: 768px) {
  .workflow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
  }

  .workflow-line {
    position: absolute;
    top: 64px;
    left: calc(100% / 3);
    right: calc(100% / 3);
    height: 2px;
    display: block;
    background: linear-gradient(90deg, #ddd0b0, #8aaa00, #ddd0b0);
  }

  .workflow-mobile-arrow {
    display: none;
  }
}

@media (max-width: 820px) {
  .main-nav {
 /*   display: none;	*/
  }

  .hero-content {
    padding-top: 4.2rem;
    padding-bottom: 4.2rem;
	        width: 90%;
  }

  .contacts-bottom {
    flex-direction: column;
    text-align: center;
  }

  .btn-cart span:first-of-type {
    display: none;
  }
}


#telegram-order-btn{
	
    background: linear-gradient(135deg, rgb(0, 136, 204), rgb(0, 106, 171));
    color: rgb(255, 255, 255);	
}
#copy-order-btn{
	
    background: rgb(243, 232, 204);
    color: rgb(25, 83, 43);
    border: 1px solid rgb(221, 208, 176);
	}

#telegram-order-btn.disabled {
    pointer-events: none;
    opacity: 0.6;
    cursor: not-allowed;
}

/* Убираем стандартные стрелочки в input number */
.cart-quantity-input {
    width: 60px;
    text-align: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 8px;
    margin: 0 5px;
    font-size: 14px;
}

/* Для Chrome, Safari, Edge, Opera */
.cart-quantity-input::-webkit-outer-spin-button,
.cart-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Для Firefox */
.cart-quantity-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* Стили для кнопок (опционально) */
.cart-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.btn-small {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #ddd;
    background-color: #f5f5f5;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-small:hover {
    background-color: #e0e0e0;
}

.btn-small:active {
    transform: scale(0.98);
}

.product-detail-image {
    height: 400px;
}

.product-detail-image img {
    width: 100%;
    max-width: 600px;
    object-fit: cover;
    object-position: center;
}

/* Стили для страницы товара */
.product-detail {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    margin: 3rem 0;
    align-items: flex-start;
}

.product-detail-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-detail-image {
    flex: 0 0 350px;
    width: 350px;
    height: 350px;
    position: sticky;
    top: 2rem;
}

.product-full-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.product-detail-header {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 1rem;
}

.product-detail-title {
    font-size: 2rem;
    margin: 0 0 0.5rem 0;
    color: #333;
}

.product-meta-large {
    display: flex;
    gap: 1.5rem;
    align-items: baseline;
    flex-wrap: wrap;
}

.product-meta-large .tag {
    background: #f5f5f5;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.price-large {
    font-size: 2rem;
    font-weight: bold;
    color: #e67e22;
}

/* Блок легенды */
.product-legend-block {
    background: #f9f9f9;
    padding: 1.25rem;
    border-radius: 8px;
    border-left: 4px solid #e67e22;
}

.product-legend-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
    color: #e67e22;
}

.product-legend-text {
    font-size: 1rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
    font-style: italic;
}

/* Блок состава */
.product-composition-block {
    background: #fff;
    padding: 1rem 0;
}

.product-composition-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #333;
}

.product-composition-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

.product-composition-text p {
    margin: 0;
}

/* Кнопка в корзину */
.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
    margin: 0.5rem 0;
}

/* Навигация назад */
.category-back-link {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    font-size: 0.9rem;
}

.category-back-link a {
    color: #e67e22;
    text-decoration: none;
}

.category-back-link a:hover {
    text-decoration: underline;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .product-detail {
        flex-direction: column;
        gap: 2rem;
    }
    
    .product-detail-image {
        flex: none;
        width: 100%;
        height: auto;
        max-height: 350px;
        position: relative;
        top: 0;
        order: -1; /* Изображение сверху на мобильных */
    }
    
    .product-full-image {
        height: auto;
        max-height: 350px;
    }
    
    .product-detail-title {
        font-size: 1.5rem;
    }
    
    .price-large {
        font-size: 1.5rem;
    }
}


p.product-description-short {
    color: rgb(136, 128, 112) !important;
    font-size: 13px;
}

h2.product-title {
    font-size: 18px;
    font-weight: 700;
    color: rgb(25, 83, 43);
}