.grocer {
  --g-ink: #20192d;
  --g-muted: #514765;
  --g-accent: #5734a4;
  --g-line: #dcd3e8;
  --g-lavender: #eee7fa;
  --g-paper: #fcfaff;
  --g-green: #e3eccb;
  color: var(--g-ink);
  background: var(--g-paper);
  font-family: Montserrat, Arial, sans-serif;
}

.grocer :is(h1, h2, h3, p, figure, dl, dd) { margin: 0; }
.grocer [hidden] { display: none !important; }
.grocer :is(h1, h2, h3) { color: var(--g-ink); line-height: 1.1; font-weight: 700; }
.grocer h2 { font-size: clamp(1.75rem, 3.2vw, 2.85rem); letter-spacing: -.042em; text-wrap: balance; }
.grocer h3 { font-size: clamp(1.15rem, 1.6vw, 1.48rem); letter-spacing: -.02em; }
.grocer p, .grocer dd { color: var(--g-muted); line-height: 1.57; font-size: 1rem; }
.grocer .grocer-kicker { color: var(--g-accent); font-size: .875rem; font-weight: 700; line-height: 1.4; }
.grocer :is(a, button, summary, select, input):focus-visible { outline: 2px solid var(--g-accent); outline-offset: 4px; }
.grocer .grocer-link,
.grocer :is(.grocer-related, .grocer-contact-actions, .grocer-case) a:not(.grocer-button) {
  color: var(--g-accent);
  text-decoration: underline;
  text-underline-offset: .22em;
}

.grocer .grocer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(24px, 5vw, 82px);
  align-items: center;
  padding: clamp(35px, 5vw, 76px) 0 clamp(33px, 5vw, 72px);
}

.grocer-copy { container-type: inline-size; }

.grocer-hero h1 {
  margin: 12px 0 20px;
  --g-heading-size: clamp(2.5rem, 4.65vw, 4rem);
  font-size: var(--g-heading-size);
  font-size: min(var(--g-heading-size), 10.55cqi); /* Keeps «Интернет-магазин» on one line as its column narrows at zoom. */
  letter-spacing: -.06em;
  line-height: 1.02;
}

.grocer-hero .b12-title-line { display: block; }
/* Montserrat optical offsets are applied to each initial glyph independently. */
.grocer-title-first { margin-inline-start: -.052em; }
.grocer-title-second { margin-inline-start: -.040em; }

.grocer-hero .grocer-lead { max-width: 34em; font-size: clamp(1rem, 1.32vw, 1.18rem); text-wrap: pretty; }
.grocer-hero .grocer-note { margin-top: 9px; padding-inline-start: .035em; font-size: .875rem; text-wrap: pretty; }
.grocer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px 22px; margin-top: 23px; }
.grocer-actions > .grocer-link { font-size: .875rem; font-weight: 700; }

.grocer .grocer-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 10px 17px;
  border: 1px solid var(--g-accent);
  border-radius: 9px;
  background: var(--g-accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font: 700 .9rem/1.26 Montserrat, Arial, sans-serif;
  cursor: pointer;
}

.grocer .grocer-button:hover { background: #422485; border-color: #422485; }
.grocer .grocer-button:disabled { background: #ece5f5; color: #645972; border-color: #b6a8c9; cursor: default; }
.grocer-visual {
  border-radius: 24px;
  padding: clamp(19px, 3.7vw, 49px);
  background: var(--g-lavender);
}
.grocer-visual-head, .grocer-receipt-head, .grocer-receipt-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 5px 12px;
}
.grocer-visual-head { color: #433355; font-size: .875rem; font-weight: 700; }
.grocer-visual-head span:last-child { padding: .35em .65em; border-radius: .5em; background: var(--g-green); }
.grocer-receipt {
  margin: 18px 0 15px;
  padding: clamp(15px, 2.2vw, 27px);
  background: #fff;
  border: 1px solid #e1d7ec;
  border-radius: 16px;
  box-shadow: 0 9px 24px #48306b12;
}
.grocer-receipt-head { padding-bottom: 12px; }
.grocer-receipt-head strong { font-size: clamp(1rem, 1.45vw, 1.25rem); }
.grocer-receipt-head span { color: var(--g-accent); font-size: .85rem; font-weight: 700; }
.grocer-receipt-lines > div { padding: 9px 0; border-top: 1px solid var(--g-line); }
.grocer-receipt-lines small { display: block; margin-top: 3px; color: var(--g-muted); font-size: .875rem; }
.grocer-receipt-lines dd { color: var(--g-ink); font-weight: 650; white-space: nowrap; }
.grocer-receipt-lines .grocer-receipt-total { padding-bottom: 0; font-size: 1.04rem; font-weight: 700; }
.grocer-receipt-total dd { font-size: 1.35rem; }
.grocer-visual figcaption { color: #4c3b64; line-height: 1.5; font-size: .875rem; }

.grocer-section { scroll-margin-top: 90px; padding: clamp(32px, 5vw, 72px) 0; border-top: 1px solid var(--g-line); }
.grocer-section-intro { max-width: 48rem; margin-bottom: 25px; }
.grocer-section-intro h2, .grocer-plan h2, .grocer-cost h2 { margin: 8px 0 12px; }
.grocer-case-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 38px); margin-top: 24px; }
.grocer-case { overflow: hidden; background: #fff; border: 1px solid var(--g-line); border-radius: 16px; }
.grocer-case-image { display: block; }
.grocer-case-image:focus-visible { outline-offset: -5px; }
.grocer-case img { display: block; width: 100%; height: auto; aspect-ratio: 1.4; object-fit: contain; background: #eee9f4; }
.grocer-case > div { padding: clamp(15px, 2.3vw, 26px); }
.grocer-case h3 { margin: 5px 0 8px; }

.grocer .grocer-demo-reading { margin-top: 12px; font-size: .875rem; }
.grocer-demo { overflow: hidden; border: 1px solid var(--g-line); border-radius: 18px; background: #fff; }
.grocer-demo-controls, .grocer-demo-foot { background: var(--g-lavender); }
.grocer-demo-controls, .grocer-demo-main, .grocer-demo-foot { padding: clamp(15px, 2.6vw, 29px); }
.grocer-demo-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.grocer-demo-controls label, .grocer-demo-choice label { display: grid; gap: 6px; font-size: .875rem; font-weight: 650; color: var(--g-ink); }
.grocer-demo select {
  appearance: none;
  width: 100%;
  min-height: 44px;
  padding: 8px 35px 8px 12px;
  border: 1px solid #9a8ab3;
  border-radius: 8px;
  background: linear-gradient(45deg, transparent 50%, #5734a4 50%) calc(100% - 17px) 50% / 6px 6px no-repeat,
              linear-gradient(135deg, #5734a4 50%, transparent 50%) calc(100% - 11px) 50% / 6px 6px no-repeat,
              #fff;
  color: var(--g-ink);
  font: 600 .95rem/1.3 Montserrat, Arial, sans-serif;
}
.grocer-demo-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; gap: clamp(16px, 3vw, 40px); }
.grocer-demo-main h3 { margin-bottom: 11px; }
.grocer-demo-catalog fieldset { border: 0; margin: 0 0 13px; padding: 0; min-width: 0; }
.grocer-demo-product { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 7px 0; border-bottom: 1px solid var(--g-line); cursor: pointer; }
.grocer-demo-product input { width: 19px; height: 19px; margin: 0 0 0 3px; flex: none; accent-color: var(--g-accent); }
.grocer-demo-product span { line-height: 1.35; font-weight: 650; color: var(--g-ink); }
.grocer-demo-product small { display: block; color: var(--g-muted); font-size: .875rem; font-weight: 500; }
.grocer-demo-choice { margin-top: 12px; padding: 12px; border-radius: 9px; background: var(--g-green); }
.grocer-demo-choice p { margin-bottom: 7px; font-size: .875rem; }
.grocer-demo-basket { padding: clamp(13px, 2vw, 22px); border-radius: 12px; background: #f7f3fc; }
.grocer-demo-basket .grocer-basket-slot, .grocer-demo-basket .grocer-basket-before { font-size: .875rem; }
.grocer-basket-lines { margin-top: 7px !important; }
.grocer-basket-lines div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--g-line); }
.grocer-basket-lines dd { color: var(--g-ink); font-weight: 650; white-space: nowrap; }
.grocer-basket-lines dt { align-self: center; line-height: 1.35; }
.grocer-demo-basket .grocer-basket-total { margin-top: 8px; color: var(--g-ink); font-size: 1.12rem; font-weight: 700; }
.grocer-demo-foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; }
.grocer-demo-foot p { font-size: .875rem; }
.grocer-reset { appearance: none; border: 0; min-height: 44px; padding: 5px 3px; color: var(--g-accent); background: transparent; text-decoration: underline; text-underline-offset: .18em; font: 700 .875rem Montserrat, Arial, sans-serif; cursor: pointer; }
.grocer-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.grocer-scope dl { margin-top: 22px; }
.grocer-scope dl > div { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: 9px 25px; padding: 15px 0; border-bottom: 1px solid var(--g-line); }
.grocer-scope dt, .grocer-plan-sample dt { font-weight: 700; }
.grocer-plan, .grocer-cost, .grocer-faq, .grocer-contact { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); align-items: start; gap: clamp(20px, 5vw, 70px); }
.grocer :is(.grocer-plan, .grocer-cost) p + p { margin-top: 11px; }
.grocer-plan .grocer-button { margin-top: 16px; }
.grocer-plan-sample, .grocer-cost-metric { background: var(--g-lavender); border-radius: 16px; padding: clamp(16px, 3vw, 33px); }
.grocer-plan-sample h3, .grocer-cost-metric h3 { margin: 8px 0 12px; }
.grocer-plan-sample dl > div { padding: 9px 0; border-top: 1px solid #d6c9e6; }
.grocer-plan-sample dd { margin-top: 4px; }
.grocer-cost-metric { background: var(--g-green); }
.grocer-related ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 28px; padding: 0; margin: 18px 0 0; list-style: none; }
.grocer-related li { padding-top: 10px; border-top: 1px solid var(--g-line); }
.grocer-related li > a { display: inline-block; font-weight: 700; }
.grocer-related li p { margin-top: 5px; }
.grocer-faq details { border: 0; border-bottom: 1px solid var(--g-line); border-radius: 0; background: transparent; }
.grocer-faq details:first-child { border-top: 1px solid var(--g-line); }
.grocer-faq summary { cursor: pointer; padding: 14px 5px; color: var(--g-ink); font-weight: 700; line-height: 1.4; }
.grocer-faq details > p { padding: 0 5px 14px; }
.grocer-contact > div > p { margin-top: 12px; }
.grocer-contact-actions p { display: flex; gap: 5px 14px; flex-wrap: wrap; }
.grocer-contact-actions p > a { padding-block: 4px; }

@media (max-width: 979px) {
  .grocer .grocer-hero { grid-template-columns: minmax(0,1fr) minmax(0,.8fr); gap: 22px; }
  .grocer-hero h1 { --g-heading-size: clamp(2.2rem, 5.4vw, 3.4rem); }
}

@media (max-width: 700px) {
  .grocer .grocer-hero,
  .grocer :is(.grocer-case-grid, .grocer-demo-main, .grocer-plan, .grocer-cost, .grocer-faq, .grocer-contact) { grid-template-columns: minmax(0, 1fr); }
  .grocer-hero h1 { --g-heading-size: clamp(1.95rem, 8.15vw, 3.25rem); margin-block: 9px 14px; }
  .grocer .grocer-hero { padding-top: 26px; }
  .grocer-actions { margin-top: 16px; }
  .grocer-visual { max-width: 34rem; }
  .grocer-related ul { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .grocer :is(.grocer-demo-controls, .grocer-scope dl > div) { grid-template-columns: minmax(0, 1fr); }
  .grocer-actions { align-items: flex-start; flex-direction: column; }
  .grocer-case-grid { margin-top: 17px; }
}

@media (max-width: 700px) and (max-height: 760px) {
  .grocer .commercial-breadcrumbs,
  .grocer .commercial-breadcrumbs :is(a, span) { font-size: .79rem; }
  .grocer .grocer-hero { padding-top: 20px; }
  .grocery-web-page .grocer-copy > .cookie-consent {
    position: static;
    width: 100%;
    max-width: none;
    margin: 15px 0 0;
  }
}
