:root {
  --green-900: #1a3d2e;
  --green-800: #24553f;
  --green-700: #2f6f52;
  --green-600: #3d8b66;
  --green-500: #4caf7a;
  --green-100: #e8f5ee;
  --green-50: #f4fbf7;
  --orange: #f4a261;
  --orange-dark: #e76f51;
  --text: #1f2d26;
  --text-muted: #5f7167;
  --white: #ffffff;
  --shadow: 0 10px 40px rgba(26, 61, 46, 0.12);
  --shadow-sm: 0 4px 16px rgba(26, 61, 46, 0.08);
  --radius: 18px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fcf9 0%, #eef6f0 100%);
  line-height: 1.5;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(47, 111, 82, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo__icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  font-size: 24px;
  box-shadow: var(--shadow-sm);
}

.logo__title {
  font-weight: 800;
  font-size: 1.05rem;
}

.logo__sub {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--green-700);
}

.nav__external {
  color: #0077ff !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav__external:hover {
  color: #005ecc !important;
}

.cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: var(--green-700);
  color: var(--white);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, background 0.2s;
}

.cart-btn:hover {
  transform: translateY(-1px);
  background: var(--green-800);
}

.cart-btn__badge {
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--orange);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
}

.hero {
  padding: 48px 0 24px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: center;
}

.pill {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero__text {
  margin: 0 0 28px;
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-600), var(--green-800));
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.8);
  color: var(--green-800);
  border: 1px solid rgba(47, 111, 82, 0.15);
}

.btn--block {
  width: 100%;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(47, 111, 82, 0.08);
}

.stat-card strong {
  display: block;
  font-size: 1.1rem;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.hero__visual {
  position: relative;
  min-height: 420px;
}

.hero-card {
  position: absolute;
  width: 58%;
  border-radius: 24px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: linear-gradient(110deg, var(--green-50) 8%, #dceee3 18%, var(--green-50) 33%);
}

.hero-card span {
  display: block;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.92rem;
}

.hero-card--1 {
  top: 0;
  left: 0;
  transform: rotate(-4deg);
}

.hero-card--2 {
  top: 120px;
  right: 0;
  transform: rotate(3deg);
}

.hero-card--3 {
  bottom: 0;
  left: 18%;
  width: 52%;
  transform: rotate(-1deg);
}

.info-strip {
  padding: 8px 0 32px;
}

.info-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-chip {
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.info-chip strong {
  display: block;
  margin-bottom: 4px;
}

.info-chip span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2,
.delivery h2,
.contacts h2 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
}

.catalog {
  padding: 24px 0 56px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  font-weight: 700;
  cursor: pointer;
}

.tab.active {
  background: var(--green-700);
  color: var(--white);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s, box-shadow 0.25s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-card__image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: linear-gradient(110deg, var(--green-50) 8%, #dceee3 18%, var(--green-50) 33%);
  background-size: 200% 100%;
}


.product-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s;
}

.product-card:hover .product-card__image-wrap img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
}

.product-card__body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.product-card__title {
  margin: 0;
  font-size: 1.15rem;
}

.product-card__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.product-card__price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--green-800);
}

.product-card__controls {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.weight-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--green-50);
}

.weight-control button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--white);
  color: var(--green-800);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.weight-control span {
  font-weight: 800;
}

.delivery {
  padding: 24px 0 56px;
}

.delivery__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.delivery-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted);
}

.delivery-list li + li {
  margin-top: 10px;
}

.delivery-card {
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--green-800), var(--green-600));
  color: var(--white);
  box-shadow: var(--shadow);
}

.delivery-card h3 {
  margin-top: 0;
}

.delivery-card ol {
  padding-left: 18px;
}

.delivery-card__note {
  margin-bottom: 0;
  opacity: 0.9;
}

.contacts {
  padding-bottom: 56px;
}

.contacts__box {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.contact-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--green-700);
}

.contacts__links {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.contact-link--vk {
  color: #0077ff;
}

.info-chip a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contacts__hours {
  display: grid;
  gap: 6px;
  text-align: right;
}

.footer {
  padding: 24px 0 40px;
  color: var(--text-muted);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.cart-panel {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.cart-panel.open {
  pointer-events: auto;
}

.cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 35, 28, 0.45);
  opacity: 0;
  transition: opacity 0.25s;
}

.cart-panel.open .cart-panel__overlay {
  opacity: 1;
}

.cart-panel__drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 100%);
  height: 100%;
  background: var(--white);
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 0.25s;
  display: flex;
  flex-direction: column;
}

.cart-panel.open .cart-panel__drawer {
  transform: translateX(0);
}

.cart-panel__head,
.cart-panel__summary,
.cart-panel__actions {
  padding: 20px;
}

.cart-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(47, 111, 82, 0.08);
}

.cart-panel__head h2 {
  margin: 0;
}

.cart-panel__body {
  flex: 1;
  overflow: auto;
  padding: 12px 20px;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(47, 111, 82, 0.08);
}

.cart-item strong {
  display: block;
}

.cart-item small {
  color: var(--text-muted);
}

.cart-item__price {
  font-weight: 800;
  color: var(--green-800);
}

.cart-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 40px 12px;
}

.cart-panel__summary {
  border-top: 1px solid rgba(47, 111, 82, 0.08);
  display: grid;
  gap: 8px;
}

.cart-panel__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.icon-btn {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-muted);
}

.modal {
  border: 0;
  padding: 0;
  max-width: none;
  background: transparent;
}

.modal::backdrop {
  background: rgba(20, 35, 28, 0.5);
}

.modal__content {
  width: min(560px, calc(100vw - 24px));
  margin: auto;
  padding: 24px;
  border: 0;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.modal__content--center {
  text-align: center;
}

.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.modal__head h2 {
  margin: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-grid label,
.form-grid fieldset {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.form-grid label.full,
.form-grid fieldset.full {
  grid-column: 1 / -1;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  border: 1px solid rgba(47, 111, 82, 0.15);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfefd;
}

.delivery-options {
  border: 0;
  padding: 0;
}

.delivery-options legend {
  margin-bottom: 8px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(47, 111, 82, 0.12);
  margin-bottom: 8px;
  cursor: pointer;
}

.radio-card:has(input:checked) {
  border-color: var(--green-600);
  background: var(--green-50);
}

.radio-card input {
  accent-color: var(--green-700);
}

.radio-card small {
  display: block;
  color: var(--text-muted);
  font-weight: 500;
}

.checkout-total {
  margin: 18px 0;
  padding: 14px;
  border-radius: 12px;
  background: var(--green-50);
  display: grid;
  gap: 6px;
}

.checkout-total strong {
  font-size: 1.1rem;
}

.modal__hint {
  margin: 12px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .hero__grid,
  .delivery__grid,
  .info-strip__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    min-height: 320px;
  }

  .hero__stats {
    grid-template-columns: 1fr;
  }

  .contacts__box {
    flex-direction: column;
  }

  .contacts__hours {
    text-align: left;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .cart-btn__label {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-card--2,
  .hero-card--3 {
    display: none;
  }

  .hero-card--1 {
    position: relative;
    width: 100%;
    transform: none;
  }

  .hero__visual {
    min-height: auto;
  }
}
