
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --green: #347746;
  --green-dark: #244f32;
  --green-light: #e8f1df;
  --cream: #f8f7ef;
  --white: #ffffff;
  --ink: #26372b;
  --muted: #778078;
  --red: #d94b3f;
  --orange: #f0a044;
  --line: #e8e9df;
  --shadow: 0 12px 35px rgba(40, 64, 39, 0.08);
  --radius: 20px;
  --font: 'DM Sans', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}

body.cart-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

[hidden] {
  display: none !important;
}

.container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section-padding {
  padding-block: 88px;
}

.demo-banner {
  padding: 7px 16px;
  color: #fff;
  background: var(--green-dark);
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.3px;
}

.header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(38, 55, 43, 0.06);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  gap: 9px;
}

.brand-icon {
  display: grid;
  width: 43px;
  height: 43px;
  place-items: center;
  border-radius: 14px;
  background: var(--green-light);
  font-size: 25px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: 'Nunito', var(--font);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.5px;
}

.brand-name span {
  color: var(--green);
}

.nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a,
.footer-nav a {
  color: #5b655d;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s;
}

.nav a:hover,
.footer-nav a:hover {
  color: var(--green);
}

.header-actions {
  gap: 12px;
}

.header-contact {
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, border-color 0.2s;
}

.header-contact:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 43px;
  padding: 8px 11px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s, transform 0.2s;
}

.cart-trigger:hover,
.button-primary:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.cart-count {
  display: grid;
  min-width: 22px;
  height: 22px;
  padding-inline: 5px;
  place-items: center;
  border-radius: 50px;
  background: white;
  color: var(--green-dark);
  font-size: 11px;
}

.icon-button {
  display: grid;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-content: center;
  gap: 5px;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 5px;
  background: var(--green-dark);
}

/* Главный экран */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  align-items: center;
  min-height: 570px;
  gap: 32px;
  padding-block: 45px 65px;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-block: 25px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #70a857;
  box-shadow: 0 0 0 4px #e3edd8;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  margin-block: 23px 20px;
  font-family: 'Nunito', var(--font);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 900;
  letter-spacing: -2.6px;
  line-height: 1.09;
}

.hero h1 span {
  color: var(--green);
}

.hero-description {
  max-width: 445px;
  margin-bottom: 28px;
  color: #697369;
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.button-primary {
  background: var(--green);
  color: white;
}

.button-secondary {
  border-color: #dfe3d9;
  background: white;
}

.button-secondary:hover {
  border-color: var(--green);
  background: var(--green-light);
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 28px;
  color: #81887e;
  font-size: 11px;
}

/* Иллюстративная заглушка вместо внешней фотографии */

.hero-visual {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 435px;
  place-items: center;
  isolation: isolate;
}

.hero-orbit {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(65, 119, 62, 0.14);
  border-radius: 50%;
}

.orbit-one {
  width: 360px;
  height: 360px;
}

.orbit-two {
  width: 450px;
  height: 450px;
}

.hero-sun {
  position: absolute;
  z-index: -1;
  top: 42px;
  right: 48px;
  width: 105px;
  height: 105px;
  border-radius: 50%;
  background: #f5d99e;
  opacity: 0.7;
}

.hero-basket {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  width: min(335px, 78%);
  height: 245px;
  padding: 25px;
  border: 7px solid #b47a43;
  border-top: 0;
  border-radius: 18px 18px 70px 70px;
  background: repeating-linear-gradient(
    90deg,
    #d6a56c 0,
    #d6a56c 24px,
    #c58c52 24px,
    #c58c52 29px
  );
  box-shadow: 0 24px 30px rgba(75, 72, 37, 0.14);
  transform: rotate(-3deg);
}

.basket-leaf {
  position: absolute;
  top: -65px;
  font-size: 180px;
}

.basket-fruit {
  z-index: 1;
  margin-bottom: 24px;
  font-size: 46px;
  letter-spacing: -6px;
}

.basket-label {
  z-index: 1;
  width: 175px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #fff9e8;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  transform: rotate(3deg);
}

.hero-produce {
  position: absolute;
  z-index: 2;
  display: grid;
  width: 78px;
  height: 78px;
  place-items: center;
  border: 5px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: var(--shadow);
  font-size: 43px;
  animation: float 5s ease-in-out infinite;
}

.produce-apple { top: 53px; left: 14%; }
.produce-tomato { top: 128px; right: 4%; animation-delay: -1s; }
.produce-orange { top: 48px; right: 25%; animation-delay: -2s; }
.produce-carrot { bottom: 72px; left: 5%; animation-delay: -3s; }
.produce-leaf { bottom: 30px; right: 14%; animation-delay: -1.5s; }
.produce-banana { top: 185px; left: 0; animation-delay: -2.5s; }
.produce-pear { top: 8px; left: 43%; animation-delay: -3.5s; }

.hero-sticker {
  position: absolute;
  z-index: 3;
  right: 4%;
  bottom: 55px;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-family: 'Nunito', var(--font);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: center;
  transform: rotate(9deg);
}

.hero-caption {
  position: absolute;
  bottom: -3px;
  color: #788272;
  font-size: 11px;
}

.hero-bottom-shape {
  position: absolute;
  right: -5%;
  bottom: -68px;
  left: -5%;
  height: 100px;
  border-radius: 50% 50% 0 0;
  background: white;
}

/* Преимущества */

.benefits {
  padding-block: 38px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.benefit {
  display: flex;
  align-items: center;
  gap: 15px;
}

.benefit-icon {
  display: grid;
  flex-shrink: 0;
  width: 55px;
  height: 55px;
  place-items: center;
  border-radius: 17px;
  font-size: 23px;
  font-weight: 900;
}

.benefit-green { background: #e8f1df; }
.benefit-orange { background: #fff0dc; color: #bb7825; }
.benefit-red { background: #fae7e2; color: var(--red); }

.benefit h3 {
  margin-bottom: 4px;
  font-size: 14px;
}

.benefit p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

/* Каталог */

.catalog-section {
  background: #fbfbf7;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2,
.about-content h2,
.contacts-content h2 {
  margin-block: 11px 10px;
  font-family: 'Nunito', var(--font);
  font-size: clamp(29px, 3.5vw, 43px);
  font-weight: 900;
  letter-spacing: -1.4px;
  line-height: 1.18;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.demo-price-note {
  padding: 9px 12px;
  border: 1px solid #e5e7db;
  border-radius: 10px;
  background: #fff;
  color: #7c7664;
  font-size: 11px;
  text-align: center;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.category-tab {
  padding: 10px 17px;
  border: 1px solid #e7e8df;
  border-radius: 10px;
  background: white;
  color: #667066;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: 0.2s;
}

.category-tab:hover {
  border-color: #b6cdb3;
}

.category-tab.active {
  border-color: var(--green);
  background: var(--green);
  color: white;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(290px, 100%);
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid #e7e8df;
  border-radius: 11px;
  background: white;
}

.search-box > span {
  color: var(--green);
  font-size: 25px;
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font-size: 12px;
}

.search-box input:focus-visible {
  outline: none;
}

.search-box:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 119, 70, 0.12);
}

.search-box button {
  border: 0;
  background: none;
  cursor: pointer;
  font-size: 20px;
}

.results-count {
  min-height: 18px;
  margin-bottom: 17px;
  color: #899086;
  font-size: 11px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #edeee6;
  border-radius: 17px;
  background: white;
  box-shadow: 0 4px 14px rgba(43, 66, 38, 0.025);
  transition: transform 0.22s, box-shadow 0.22s;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.product-art {
  position: relative;
  display: grid;
  overflow: hidden;
  min-height: 175px;
  place-items: center;
  background: var(--art-bg, #edf1e5);
}

.product-art::before,
.product-art::after {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  content: "";
}

.product-art::before {
  top: -25px;
  right: -18px;
  width: 110px;
  height: 110px;
}

.product-art::after {
  bottom: -32px;
  left: -15px;
  width: 100px;
  height: 100px;
}

.product-art-emoji {
  z-index: 1;
  font-size: 86px;
  line-height: 1;
  filter: drop-shadow(0 9px 5px rgba(45, 51, 32, 0.1));
  transition: transform 0.25s;
}

.product-card:hover .product-art-emoji {
  transform: scale(1.08) rotate(-3deg);
}

.product-category {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  padding: 5px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: #596a58;
  font-size: 9px;
  font-weight: 800;
}

.product-content {
  padding: 15px;
}

.product-content h3 {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 800;
}

.product-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
  color: #51844e;
  font-size: 10px;
}

.product-status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #71a85f;
  content: "";
}

.product-status.unavailable {
  color: #9a6558;
}

.product-status.unavailable::before {
  background: #cb6b58;
}

.product-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.product-price {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.product-price strong {
  font-size: 19px;
  letter-spacing: -0.5px;
}

.product-price span {
  color: #92978f;
  font-size: 10px;
}

.add-button {
  display: grid;
  flex-shrink: 0;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--green-light);
  color: var(--green-dark);
  cursor: pointer;
  font-size: 24px;
  font-weight: 500;
  transition: 0.2s;
}

.add-button:hover:not(:disabled) {
  background: var(--green);
  color: white;
}

.add-button:disabled {
  background: #efefea;
  color: #999;
}

.empty-state {
  padding: 45px 20px;
  border: 1px dashed #dfe4d7;
  border-radius: 18px;
  text-align: center;
}

.empty-state > span {
  font-size: 43px;
}

.empty-state h3 {
  margin-block: 10px;
}

.empty-state p {
  color: var(--muted);
  font-size: 13px;
}

/* О магазине */

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  align-items: center;
  gap: 80px;
}

.about-visual {
  position: relative;
  display: grid;
  min-height: 350px;
  place-items: center;
}

.about-blob {
  position: relative;
  display: grid;
  width: min(340px, 100%);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 49% 51% 57% 43% / 44% 43% 57% 56%;
  background: #edf2df;
}

.about-emoji {
  position: absolute;
  display: grid;
  width: 90px;
  height: 90px;
  place-items: center;
  border: 6px solid white;
  border-radius: 28px;
  background: #fffaf0;
  box-shadow: var(--shadow);
  font-size: 48px;
}

.about-emoji-one { top: 17%; left: 12%; transform: rotate(-12deg); }
.about-emoji-two { top: 12%; right: 12%; transform: rotate(9deg); }
.about-emoji-three { bottom: 15%; left: 12%; transform: rotate(8deg); }
.about-emoji-four { right: 12%; bottom: 13%; transform: rotate(-8deg); }

.about-note {
  z-index: 2;
  padding: 17px 21px;
  border-radius: 14px;
  background: var(--green);
  box-shadow: var(--shadow);
  color: white;
  font-family: 'Nunito', var(--font);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
  transform: rotate(-3deg);
}

.about-small-note {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  color: #879083;
  font-size: 11px;
  text-align: center;
}

.about-content h2 {
  max-width: 460px;
  margin-top: 14px;
}

.about-content p {
  margin-block: 16px;
  color: #747d73;
  font-size: 14px;
  line-height: 1.9;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
}

.text-link span {
  font-size: 19px;
  transition: transform 0.2s;
}

.text-link:hover span {
  transform: translateX(4px);
}

/* Как сделать заказ */

.steps-section {
  background: var(--cream);
}

.centered-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.centered-heading h2 {
  margin-bottom: 8px;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  min-width: 0;
  padding: 29px 25px;
  border: 1px solid #e9eadf;
  border-radius: 18px;
  background: white;
  transition: transform 0.2s;
}

.step-card:hover {
  transform: translateY(-3px);
}

.step-number {
  position: absolute;
  top: 22px;
  right: 23px;
  color: #d8dfd0;
  font-size: 28px;
  font-weight: 800;
}

.step-icon {
  display: grid;
  width: 60px;
  height: 60px;
  margin-bottom: 21px;
  place-items: center;
  border-radius: 17px;
  background: var(--green-light);
  font-size: 27px;
}

.step-card:nth-child(2) .step-icon { background: #fff0dc; }
.step-card:nth-child(3) .step-icon { background: #fae7e2; }

.step-card h3 {
  margin-bottom: 9px;
  font-size: 16px;
}

.step-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}

/* Контакты */

.contacts-section {
  overflow: hidden;
  background: var(--green-dark);
  color: white;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 60px;
}

.contacts-content .eyebrow {
  color: #c3dcb2;
}

.contacts-content h2 {
  margin-block: 15px 17px;
  font-size: clamp(36px, 4vw, 49px);
}

.contacts-content > p {
  max-width: 470px;
  color: #d0dfd0;
  font-size: 13px;
  line-height: 1.9;
}

.contact-list {
  display: grid;
  gap: 19px;
  margin-block: 28px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.contact-icon {
  display: grid;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 19px;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  color: #b9cdb9;
  font-size: 10px;
}

.contact-item strong {
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contacts-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button-light {
  background: #fff;
  color: var(--green-dark);
}

.button-light:hover {
  background: #e8f1df;
}

.button-outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  color: white;
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
}

.contact-demo-warning {
  margin-top: 17px;
  color: #d6e5c7;
  font-size: 10px;
}

.contacts-visual {
  position: relative;
  display: grid;
  min-height: 400px;
  place-items: center;
  isolation: isolate;
}

.contact-circle {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.circle-back {
  width: 335px;
  height: 335px;
  background: #476d42;
}

.circle-front {
  width: 270px;
  height: 270px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-produce {
  position: absolute;
  display: grid;
  width: 94px;
  height: 94px;
  place-items: center;
  border: 6px solid rgba(255, 255, 255, 0.8);
  border-radius: 30px;
  background: #fff9eb;
  box-shadow: var(--shadow);
  font-size: 51px;
}

.contact-tomato { top: 29px; left: 16%; transform: rotate(-11deg); }
.contact-apple { top: 49px; right: 14%; transform: rotate(8deg); }
.contact-carrot { bottom: 98px; left: 8%; transform: rotate(8deg); }
.contact-orange { right: 7%; bottom: 110px; transform: rotate(-8deg); }
.contact-greens { bottom: 21px; left: 41%; transform: rotate(4deg); }

.contact-card-note {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 17px;
  border-radius: 14px;
  background: white;
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
  color: var(--ink);
}

.contact-card-note > span {
  font-size: 28px;
}

.contact-card-note div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.contact-card-note strong {
  font-size: 12px;
}

.contact-card-note small {
  color: var(--muted);
  font-size: 10px;
}

/* Подвал */

.footer {
  padding-block: 24px;
  background: #1b3d27;
  color: #d7e3d5;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand .brand-name {
  color: white;
}

.footer-brand .brand-name span {
  color: #bcd7ad;
}

.footer-brand .brand-icon {
  background: rgba(255, 255, 255, 0.12);
}

.footer-inner > p {
  margin-bottom: 0;
  color: #b8cabb;
  font-size: 10px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-nav a {
  color: #d7e3d5;
  font-size: 11px;
}

.footer-copy {
  color: #b8cabb;
  font-size: 10px;
}

/* Корзина */

.cart-overlay {
  position: fixed;
  z-index: 49;
  inset: 0;
  background: rgba(22, 37, 26, 0.45);
  animation: fade-in 0.2s ease;
}

.cart-panel {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  width: min(460px, 100%);
  height: 100dvh;
  padding: 27px;
  background: white;
  box-shadow: -15px 0 50px rgba(25, 45, 30, 0.14);
  transform: translateX(105%);
  transition: transform 0.28s ease;
}

.cart-panel.is-open {
  transform: translateX(0);
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.cart-header h2 {
  margin-block: 5px 0;
  font-family: 'Nunito', var(--font);
  font-size: 27px;
  font-weight: 900;
}

.cart-header h2 span {
  color: #8b9389;
  font-size: 15px;
}

.cart-close {
  font-size: 28px;
}

.cart-items {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  padding-block: 8px;
}

.cart-item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding-block: 16px;
  border-bottom: 1px solid #f0f0e9;
}

.cart-item-art {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 14px;
  background: var(--art-bg, #edf1e5);
  font-size: 35px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h3 {
  margin-bottom: 3px;
  font-size: 13px;
}

.cart-item-info p {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 11px;
}

.quantity-control {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 3px;
  border: 1px solid #e7e8df;
  border-radius: 9px;
}

.quantity-control button {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: #f5f6f0;
  cursor: pointer;
  font-size: 17px;
}

.quantity-control button:hover {
  background: var(--green-light);
}

.quantity-control span {
  min-width: 13px;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.cart-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.cart-item-side strong {
  white-space: nowrap;
  font-size: 12px;
}

.remove-item {
  padding: 3px;
  border: 0;
  background: transparent;
  color: #b86b5e;
  cursor: pointer;
  font-size: 10px;
}

.remove-item:hover {
  text-decoration: underline;
}

.cart-empty {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.cart-empty > span {
  font-size: 55px;
}

.cart-empty h3 {
  margin-block: 12px 7px;
  font-size: 17px;
}

.cart-empty p {
  max-width: 250px;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 12px;
}

.cart-footer {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.cart-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-total span {
  color: #717a70;
  font-size: 12px;
}

.cart-total strong {
  font-size: 24px;
  letter-spacing: -0.6px;
}

.cart-disclaimer {
  margin-block: 10px 17px;
  color: #8b9188;
  font-size: 10px;
  line-height: 1.7;
}

.checkout-button {
  width: 100%;
}

.clear-cart-button {
  display: block;
  margin: 12px auto 0;
  padding: 7px;
  border: 0;
  background: transparent;
  color: #a35b4f;
  cursor: pointer;
  font-size: 11px;
}

.clear-cart-button:hover {
  text-decoration: underline;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 20px;
  bottom: 20px;
  max-width: min(370px, calc(100% - 40px));
  padding: 14px 18px;
  border-radius: 13px;
  background: var(--green-dark);
  box-shadow: var(--shadow);
  color: white;
  font-size: 12px;
  line-height: 1.6;
  animation: toast-in 0.25s ease;
}

/* Анимации */

@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -8px; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes toast-in {
  from { opacity: 0; translate: 0 10px; }
  to { opacity: 1; translate: 0 0; }
}

/* Адаптивность */

@media (min-width: 1450px) {
  .hero-grid {
    min-height: 620px;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 13px;
  }

  .nav {
    gap: 14px;
  }

  .header-actions {
    gap: 7px;
  }

  .header-contact {
    padding-inline: 10px;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .about-grid {
    gap: 45px;
  }

  .contacts-grid {
    gap: 25px;
  }

  .hero-visual {
    transform: scale(0.94);
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 75px;
  }

  .container {
    width: min(100% - 32px, 560px);
  }

  .section-padding {
    padding-block: 62px;
  }

  .header-inner {
    min-height: 69px;
    gap: 9px;
  }

  .brand-icon {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .brand-name {
    font-size: 15px;
  }

  .menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 15px;
    border-bottom: 1px solid var(--line);
    background: white;
    box-shadow: 0 12px 20px rgba(30, 50, 30, 0.08);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 12px 5px;
    border-bottom: 1px solid #f0f1eb;
  }

  .nav a:last-child {
    border-bottom: 0;
  }

  .header-actions {
    gap: 0;
  }

  .header-contact {
    display: none;
  }

  .cart-trigger {
    min-height: 41px;
    padding: 8px;
    gap: 5px;
  }

  .cart-trigger-text {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-block: 46px 45px;
  }

  .hero-content {
    padding-block: 0;
  }

  .hero h1 {
    font-size: clamp(38px, 9vw, 54px);
    letter-spacing: -1.7px;
  }

  .hero-description {
    max-width: 460px;
    font-size: 14px;
  }

  .hero-note {
    font-size: 10px;
  }

  .hero-visual {
    min-height: 355px;
    margin-top: 12px;
    transform: none;
  }

  .orbit-one {
    width: 285px;
    height: 285px;
  }

  .orbit-two {
    width: 350px;
    height: 350px;
  }

  .hero-basket {
    width: min(275px, 76%);
    height: 195px;
  }

  .basket-leaf {
    top: -58px;
    font-size: 145px;
  }

  .basket-fruit {
    margin-bottom: 16px;
    font-size: 37px;
  }

  .hero-produce {
    width: 61px;
    height: 61px;
    font-size: 32px;
  }

  .produce-apple { top: 46px; left: 7%; }
  .produce-tomato { top: 117px; right: 1%; }
  .produce-orange { top: 25px; right: 18%; }
  .produce-carrot { bottom: 55px; left: 1%; }
  .produce-leaf { bottom: 15px; right: 8%; }
  .produce-banana { top: 160px; left: 0; }
  .produce-pear { top: 0; left: 42%; }

  .hero-sticker {
    right: 1%;
    bottom: 41px;
    width: 67px;
    height: 67px;
    font-size: 11px;
  }

  .hero-caption {
    bottom: -1px;
    font-size: 10px;
  }

  .benefits {
    padding-block: 34px;
  }

  .benefits-grid {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 25px;
  }

  .section-heading h2,
  .about-content h2 {
    font-size: 32px;
  }

  .catalog-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .category-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .category-tab {
    padding-inline: 7px;
  }

  .search-box {
    width: 100%;
    min-height: 47px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .product-art {
    min-height: 130px;
  }

  .product-art-emoji {
    font-size: 68px;
  }

  .product-content {
    padding: 11px;
  }

  .product-content h3 {
    font-size: 13px;
  }

  .product-price strong {
    font-size: 16px;
  }

  .add-button {
    width: 35px;
    height: 35px;
  }

  .product-category {
    top: 7px;
    left: 7px;
    padding: 4px 6px;
    font-size: 8px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .about-visual {
    min-height: 290px;
  }

  .about-blob {
    width: min(290px, 90%);
  }

  .about-emoji {
    width: 73px;
    height: 73px;
    font-size: 38px;
  }

  .about-content p {
    font-size: 13px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step-card {
    padding: 22px;
  }

  .step-icon {
    width: 51px;
    height: 51px;
    margin-bottom: 15px;
  }

  .contacts-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contacts-content h2 {
    font-size: 41px;
  }

  .contacts-visual {
    min-height: 325px;
    margin-top: 10px;
  }

  .circle-back {
    width: 265px;
    height: 265px;
  }

  .circle-front {
    width: 220px;
    height: 220px;
  }

  .contact-produce {
    width: 72px;
    height: 72px;
    border-width: 4px;
    border-radius: 23px;
    font-size: 39px;
  }

  .contact-tomato { top: 17px; left: 13%; }
  .contact-apple { top: 24px; right: 12%; }
  .contact-carrot { bottom: 70px; left: 3%; }
  .contact-orange { right: 3%; bottom: 83px; }
  .contact-greens { bottom: 6px; left: 38%; }

  .contact-card-note {
    right: 0;
    bottom: 26px;
    padding: 10px 12px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-nav {
    gap: 16px;
  }
}

@media (max-width: 360px) {
  .container {
    width: calc(100% - 24px);
  }

  .brand {
    gap: 6px;
  }

  .brand-name {
    font-size: 13px;
  }

  .cart-panel {
    padding: 19px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .product-grid {
    gap: 9px;
  }

  .product-content {
    padding: 9px;
  }

  .product-price strong {
    font-size: 15px;
  }

  .add-button {
    width: 32px;
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
