@charset "UTF-8";
html {
  overflow-x: clip;
  touch-action: pan-y;
}
body {
  max-width: 100%;
  overflow-x: clip;
  touch-action: pan-y;
}
:root {
  --paper:#f7f6f0;
  --ink:#243a2b;
  --green:#294535;
  --line:#dfdfd4;
  --muted:#6b746c;
  --gold:#e7d4ac;
  --white:#fff;
  --radius:20px;
  font-family:Inter,"Segoe UI",Arial,sans-serif;
  color:var(--ink);
  background:var(--paper);
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0
}
button,input,textarea {
  font:inherit
}
button,a,input,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer;
  border:0;
  border-radius:12px;
  padding:14px 20px;
  background:var(--green);
  color:white;
  font-weight:600
}
button:disabled {
  opacity:.5;
  cursor:default
}
a {
  color:inherit;
  text-underline-offset:4px
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible {
  outline:3px solid #a59155;
  outline-offset:3px
}
button:hover:not(:disabled) {
  filter:brightness(1.08)
}
.shell {
  max-width:1120px;
  margin:auto;
  padding:0 28px
}
.top {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:25px 0
}
.brand {
  font-family:Georgia,serif;
  font-size:27px;
  font-weight:bold;
  letter-spacing:.04em;
  text-decoration:none
}
.brand span {
  display:block;
  font-family:"Segoe UI",sans-serif;
  font-size:11px;
  font-weight:400;
  letter-spacing:.07em;
  margin-top:5px;
  color:var(--muted)
}
.quiet {
  background:transparent;
  color:var(--green);
  border:1px solid var(--line);
  font-size:13px;
  padding:11px 15px
}
.hero {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  background:#e5eadf;
  border-radius:var(--radius);
  overflow:hidden;
  min-height:340px
}
.hero>div {
  padding:40px
}
.hero img {
  width:100%;
  height:100%;
  max-height:380px;
  object-fit:cover;
  object-position:58% center
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.13em;
  font-size:10px;
  font-weight:600;
  line-height:1.6
}
.hero h1 {
  font-family:Georgia,serif;
  font-size:46px;
  line-height:1.09;
  font-weight:400;
  margin:20px 0
}
.hero p:not(.eyebrow) {
  font-size:14px;
  line-height:1.7;
  max-width:300px;
  color:#596452
}
.hero-link {
  display:inline-flex;
  gap:30px;
  align-items:center;
  text-decoration:none;
  border-bottom:1px solid #7e8d78;
  padding:14px 0;
  font-size:13px
}
.hero-link span {
  font-size:23px
}
.catalog-section {
  padding:38px 0
}
.catalog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px
}
h2 {
  font-family:Georgia,serif;
  font-size:30px;
  font-weight:400;
  margin:0 0 20px
}
.catalog-heading h2 {
  margin:0
}
.search {
  max-width:300px;
  width:50%
}
.search input {
  margin:0
}
input:not([type=radio]):not([type=checkbox]),textarea {
  border:1px solid var(--line);
  border-radius:12px;
  padding:13px;
  background:white;
  color:var(--ink);
  width:100%;
  margin:7px 0 0
}
nav {
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:22px 0 8px;
  scrollbar-width:thin
}
nav button {
  flex-shrink:0;
  border:1px solid var(--line);
  background:transparent;
  color:var(--ink);
  font-size:12px;
  font-weight:500;
  padding:11px 15px;
  border-radius:25px
}
nav button[aria-pressed=true] {
  background:var(--green);
  border-color:var(--green);
  color:white
}
.muted {
  color:var(--muted);
  font-size:12px;
  line-height:1.6
}
#result-count {
  margin:8px 0 20px
}
.grid {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:18px
}
.product {
  display:flex;
  flex-direction:column;
  min-width:0;
  background:white;
  border-radius:17px;
  overflow:hidden;
  border:1px solid #e9e9e1
}
.product-photo {
  padding:0;
  border-radius:0;
  background:#eeeee6;
  aspect-ratio:3/4;
  width:100%;
  position:relative;
  overflow:hidden
}
.product-photo img {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block
}
.product-photo .missing {
  color:var(--muted);
  font-size:13px;
  padding:20px
}
.product-info {
  padding:15px;
  display:flex;
  flex-direction:column;
  flex:1
}
.product-category {
  font-size:10px;
  letter-spacing:.06em;
  color:var(--muted);
  margin:0 0 7px
}
.product-title {
  font-size:13px;
  line-height:1.5;
  margin:0 0 14px;
  font-weight:500
}
.product-bottom {
  margin-top:auto;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:8px
}
.product-price {
  font-size:16px;
  white-space:nowrap
}
.add {
  padding:9px 11px;
  font-size:12px
}
.stepper {
  display:flex;
  gap:8px;
  align-items:center
}
.stepper button {
  padding:6px 10px;
  font-size:16px;
  border-radius:8px;
  background:#e9eee5;
  color:var(--green)
}
.stepper span {
  font-size:13px;
  min-width:12px;
  text-align:center
}
.shipping-info {
  padding:28px 0;
  border-top:1px solid var(--line)
}
.shipping-info h2 {
  font-size:25px;
  margin-bottom:12px
}
.shipping-info p {
  max-width:760px;
  line-height:1.8;
  font-size:13px
}
footer {
  display:flex;
  gap:20px;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
  padding:20px 0 150px;
  border-top:1px solid var(--line)
}
#cart-bar {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:rgba(247,246,240,.97);
  border-top:1px solid var(--line);
  padding:14px max(20px,calc((100% - 1064px)/2)) calc(14px + env(safe-area-inset-bottom));
  display:flex;
  justify-content:space-between;
  gap:25px;
  z-index:10
}
#cart-bar strong {
  display:block;
  font-size:21px;
  margin-top:2px
}
#cart-bar>button {
  min-width:170px
}
dialog {
  color:var(--ink);
  border:0;
  border-radius:22px;
  padding:30px;
  width:min(560px,calc(100% - 24px));
  max-height:90dvh;
  overflow-y:auto;
  background:var(--paper);
  overscroll-behavior:contain
}
dialog::backdrop {
  background:rgba(20,32,23,.55);
  backdrop-filter:blur(4px)
}
.close {
  position:sticky;
  top:0;
  float:right;
  margin:-12px -12px 8px 10px;
  padding:6px 13px;
  font-size:25px;
  background:#e7e9e1;
  color:var(--ink);
  z-index:1
}
#detail-image {
  width:100%;
  max-height:48vh;
  object-fit:contain;
  border-radius:14px;
  display:block;
  background:#ebece5
}
#detail-name {
  margin-top:10px;
  font-size:26px
}
#detail-description {
  font-size:14px;
  line-height:1.7
}
#detail-price {
  display:block;
  font-size:23px;
  margin:20px 0
}
#detail-add {
  width:100%
}
.cart-line {
  padding:14px 0;
  display:grid;
  grid-template-columns:48px 1fr auto;
  gap:12px;
  align-items:center;
  border-bottom:1px solid var(--line)
}
.cart-line img {
  width:48px;
  height:64px;
  object-fit:contain;
  border-radius:6px
}
.cart-line p {
  font-size:12px;
  margin:0 0 8px;
  line-height:1.45
}
.cart-line strong {
  font-size:13px
}
.subtotal {
  display:flex;
  justify-content:space-between;
  padding:20px 0;
  font-size:18px
}
fieldset {
  margin:10px 0 15px;
  border:0;
  padding:0
}
legend {
  font-weight:600;
  font-size:16px;
  margin-bottom:14px
}
.delivery-option {
  display:flex;
  align-items:center;
  gap:10px;
  border:1px solid var(--line);
  padding:13px;
  border-radius:12px;
  margin:7px 0;
  background:white
}
.delivery-option:has(input:checked) {
  border-color:var(--green);
  background:#e9eee5
}
.delivery-option strong {
  font-size:13px
}
.delivery-option small {
  display:block;
  color:var(--muted);
  line-height:1.5;
  font-size:11px;
  margin-top:5px
}
input[type=radio],input[type=checkbox] {
  accent-color:var(--green);
  flex-shrink:0;
  width:17px;
  height:17px
}
form>label {
  display:block;
  font-size:12px;
  font-weight:500;
  margin:17px 0
}
.notice {
  font-size:12px;
  line-height:1.7;
  background:#ecefe6;
  border-radius:12px;
  padding:14px
}
.consent {
  display:flex!important;
  align-items:start;
  gap:9px;
  font-size:11px!important;
  line-height:1.6
}
#submit-order {
  width:100%;
  margin-top:10px
}
#form-result {
  font-size:13px;
  line-height:1.7
}
.order {
  border-bottom:1px solid var(--line);
  padding:16px 0
}
.order p {
  font-size:13px;
  white-space:pre-line;
  line-height:1.7
}
.order button {
  font-size:12px;
  padding:10px
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  overflow:hidden;
  clip:rect(0,0,0,0)
}
#toast {
  position:fixed;
  bottom:100px;
  left:50%;
  transform:translateX(-50%);
  z-index:20;
  padding:12px 20px;
  border-radius:12px;
  background:var(--green);
  color:white;
  font-size:13px;
  max-width:90%;
  text-align:center
}
[hidden] {
  display:none!important
}
@media(max-width:780px) {
  .grid {
    grid-template-columns:repeat(3,minmax(0,1fr))
  }
  .shell {
    padding:0 18px
  }
  .hero>div {
    padding:28px
  }
  .hero h1 {
    font-size:35px
  }
  .hero {
    min-height:290px
  }
  .hero img {
    max-height:320px
  }
}
@media(max-width:520px) {
  .top {
    padding:20px 0
  }
  .brand {
    font-size:22px
  }
  .hero {
    grid-template-columns:1.2fr 1fr;
    min-height:250px
  }
  .hero>div {
    padding:22px 16px
  }
  .hero h1 {
    font-size:29px;
    margin:16px 0
  }
  .hero .eyebrow {
    font-size:8px
  }
  .hero p:not(.eyebrow) {
    font-size:12px
  }
  .hero img {
    height:100%;
    max-height:none
  }
  .hero-link {
    font-size:11px;
    gap:14px;
    padding:8px 0
  }
  .catalog-section {
    padding:28px 0
  }
  .catalog-heading h2 {
    font-size:27px
  }
  .search {
    width:55%
  }
  .search input {
    font-size:12px;
    padding:11px
  }
  .grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:12px
  }
  .product-info {
    padding:12px
  }
  .product-title {
    font-size:12px
  }
  .product-price {
    font-size:15px
  }
  .add {
    font-size:11px;
    padding:9px
  }
  .stepper {
    gap:6px
  }
  .stepper button {
    padding:6px 8px
  }
  dialog {
    padding:24px 18px
  }
  .cart-line {
    grid-template-columns:40px 1fr auto;
    gap:8px
  }
  .cart-line img {
    width:40px
  }
  #cart-bar>button {
    min-width:140px
  }
  .shipping-info h2 {
    font-size:23px
  }
}

.catalog-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.category-panel {
  border: 1px solid var(--line);
  background: #eeefe7;
  border-radius: 16px;
  padding: 16px;
}
.category-panel summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
#categories {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  overflow: visible;
  gap: 4px;
  padding: 14px 0 0;
}
#categories button {
  text-align: left;
  white-space: normal;
  line-height: 1.5;
  border-radius: 10px;
  padding: 10px 12px;
}
.products-area {
  min-width: 0;
}
#catalog {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.set-pair {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}
.product-photo > .missing {
  display: grid;
  height: 100%;
  align-content: center;
}
.cart-line .missing {
  font-size: 9px;
}
#consent-dialog {
  width: min(440px, calc(100% - 24px));
}
#consent-dialog p {
  font-size: 14px;
  line-height: 1.7;
}
.consent-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
#consent-notice:empty {
  display: none;
}
#consent-notice {
  padding: 12px;
  border-radius: 12px;
  background: #e7eadf;
}
dialog {
  touch-action: pan-y;
}
@media (max-width: 640px) {
  .catalog-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 18px;
  }
  .category-panel {
    padding: 14px;
  }
  .set-pair {
    gap: 12px;
  }
  input:not([type=radio]):not([type=checkbox]), textarea, .search input {
    font-size: 16px;
  }
  .shell {
    padding: 0 12px;
  }
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero > div {
    padding: 24px;
  }
  .hero img {
    height: auto;
    max-height: 260px;
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }
  .hero h1 {
    font-size: 35px;
  }
  .hero .eyebrow {
    font-size: 10px;
  }
  .catalog-heading {
    flex-wrap: wrap;
  }
  .search {
    flex: 1;
    min-width: 170px;
  }
}


/* Show the entire photograph and give it more room in the header. */
.hero {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  align-items: start;
}
.hero > div {
  padding: 32px;
}
.hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 2;
  object-fit: contain;
  object-position: center top;
  align-self: start;
}
@media (max-width: 640px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero img {
    order: -1;
    height: auto;
    max-height: none;
  }
  .hero > div {
    padding: 22px 24px;
  }
}

.catalog-layout { grid-template-columns: minmax(0,1fr); }
#categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
#categories button { min-width:0; width:100%; margin:0; white-space:normal; overflow-wrap:anywhere; font-size:13px; }

.hero .eyebrow { font-size:clamp(20px,3vw,30px); line-height:1.3; text-transform:none; letter-spacing:0; }
.brand { display:flex; align-items:center; gap:9px; color:#4b9e32; }
.brand .brand-logo { width:48px; height:48px; object-fit:contain; flex-shrink:0; }
.brand .brand-copy { display:block; font-size:22px; color:#4b9e32; letter-spacing:0; }
.brand small { display:block; color:var(--muted); font-size:11px; font-weight:400; }
@media(max-width:400px) { .brand .brand-logo { width:36px;height:36px; } .brand .brand-copy { font-size:18px; } }


/* v3.1: compact category choices and balanced mobile-first hero copy. */
#categories { gap: 5px; padding-top: 10px; }
#categories button { min-height: 36px; padding: 7px 8px; font-size: 12px; line-height: 1.25; }
.category-panel { padding: 12px; }
.hero .eyebrow { font-size: 15px; line-height: 1.4; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: 42px; }
@media (max-width: 780px) { .hero h1 { font-size: 33px; } }
@media (max-width: 640px) { .hero .eyebrow { font-size: 14px; } .hero h1 { font-size: 31px; } .category-panel { padding: 10px; } #categories { gap: 4px; padding-top: 8px; } #categories button { min-height: 34px; padding: 6px 7px; font-size: 11px; line-height: 1.2; } }
@media (max-width: 520px) { .hero h1 { font-size: 27px; } }


/* v3.1: compact category choices and balanced mobile-first hero copy. */
#categories { gap: 5px; padding-top: 10px; }
#categories button { min-height: 36px; padding: 7px 8px; font-size: 12px; line-height: 1.25; }
.category-panel { padding: 12px; }
.hero .eyebrow { font-size: 15px; line-height: 1.4; font-weight: 500; text-transform: none; letter-spacing: 0; }
.hero h1 { font-size: 42px; }
@media (max-width: 780px) { .hero h1 { font-size: 33px; } }
@media (max-width: 640px) { .hero .eyebrow { font-size: 14px; } .hero h1 { font-size: 31px; } .category-panel { padding: 10px; } #categories { gap: 4px; padding-top: 8px; } #categories button { min-height: 34px; padding: 6px 7px; font-size: 11px; line-height: 1.2; } }
@media (max-width: 520px) { .hero h1 { font-size: 27px; } }

/* Address suggestions from server-side DaData lookup. */
.address-suggestions { display:grid; gap:6px; margin-top:6px; }
.address-suggestion { width:100%; min-height:40px; padding:9px 12px; text-align:left; border:1px solid #d5dfd9; border-radius:10px; background:#fff; color:#26392e; font:inherit; }
.address-suggestion:hover,.address-suggestion:focus { border-color:#4e9658; background:#f2f8f2; }

/* v3.3: clearer brand hierarchy, compact category cards and DaData choices. */
.hero .eyebrow { font-size: 19px; line-height: 1.35; font-weight: 600; }
.hero h1 { font-size: 37px; line-height: 1.08; }
.category-panel { border-color: #dce8d9; background: linear-gradient(145deg,#f8fbf6,#eef5ec); box-shadow: 0 8px 24px rgba(48,85,42,.07); }
#categories button { min-height: 38px; padding: 8px 10px; border: 1px solid #dce8d9; border-radius: 12px; background: rgba(255,255,255,.82); color: #355b38; font-weight: 600; transition: background .15s ease, border-color .15s ease, transform .15s ease; }
#categories button:hover { border-color: #9dc494; background: #f0f8ed; transform: translateY(-1px); }
#categories button[aria-pressed="true"] { border-color: #4b9e32; background: #4b9e32; color: #fff; box-shadow: 0 4px 10px rgba(75,158,50,.18); }
.address-guide { display: block; margin-top: 5px; line-height: 1.45; }
.address-suggestions { max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 640px) {
  .hero .eyebrow { font-size: 16px; }
  .hero h1 { font-size: 27px; }
  #categories button { min-height: 38px; padding: 8px 9px; font-size: 12px; }
}

/* Увеличен слоган в шапке */
.hero .eyebrow {
  font-size: clamp(22px, 2.5vw, 29px) !important;
  font-weight: 600;
}
@media (max-width: 640px) {
  .hero .eyebrow { font-size: 22px !important; }
}

/* Слоган — крупнее, в стиле заголовка */
.hero .eyebrow {
  font: inherit;
  font-family: var(--font-display, inherit);
  font-size: clamp(26px, 3vw, 34px) !important;
  font-weight: 600;
  line-height: 1.2;
}

@media (max-width: 640px) {
  .hero .eyebrow {
    font-size: 25px !important;
  }
}

/* Компактные поля формы заказа */
#checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]) {
  height: 46px;
  padding: 9px 12px;
}
#checkout-form textarea {
  min-height: 56px;
  height: 56px;
  padding: 10px 12px;
  line-height: 1.4;
}

/* Варианты DaData — отдельное всплывающее окно */
#city-suggestions:has(.address-suggestion),
#address-suggestions:has(.address-suggestion) {
  position: fixed;
  z-index: 10000;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  gap: 7px;
  width: min(370px, calc(100vw - 32px));
  max-height: min(46dvh, 360px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 16px;
  border: 1px solid #dce5d8;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 32, 23, .28);
}
#city-suggestions:has(.address-suggestion)::before,
#address-suggestions:has(.address-suggestion)::before {
  display: block;
  padding: 2px 3px 7px;
  color: #243a2b;
  font-size: 15px;
  font-weight: 700;
}
#city-suggestions:has(.address-suggestion)::before {
  content: "Выберите город";
}
#address-suggestions:has(.address-suggestion)::before {
  content: "Выберите адрес или ПВЗ";
}
.address-suggestion {
  min-height: 44px;
  padding: 10px 12px;
  line-height: 1.35;
}

/* Небольшой флаг Удмуртии рядом со слоганом */
.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero .eyebrow::before {
  content: "";
  display: inline-block;
  flex: 0 0 30px;
  width: 30px;
  height: 20px;
  border-radius: 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 16'%3E%3Cpath fill='%23000' d='M0 0h8v16H0z'/%3E%3Cpath fill='%23fff' d='M8 0h8v16H8z'/%3E%3Cpath fill='%23c00' d='M16 0h8v16h-8z'/%3E%3Cpath fill='%23d71920' d='M12 5.3l.8 1.9 1.9-1.9-1.6 2.4 2.4.3-2.4.3 1.6 2.4-1.9-1.9-.8 1.9-.8-1.9-1.9 1.9 1.6-2.4-2.4-.3 2.4-.3-1.6-2.4 1.9 1.9z'/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: 0 1px 3px #0002;
}


/* Ровная типографика и центрирование шапки */
.hero > div { text-align: center; }
.hero .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto 14px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 6vw, 30px) !important;
  font-weight: 600;
  line-height: 1.18;
}
.hero .eyebrow::before {
  flex-basis: 27px;
  width: 27px;
  height: 18px;
}
.hero h1 {
  margin: 12px 0;
  font-size: clamp(29px, 7vw, 34px);
  line-height: 1.1;
}
.hero p:not(.eyebrow) {
  max-width: 320px;
  margin: 12px auto 0;
  font-size: 13px;
}

/* Поля формы компактнее */
#checkout-form > label {
  margin: 12px 0;
}
#checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
#checkout-form textarea {
  display: block;
  width: 96%;
  margin: 5px auto 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
}
#checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]) {
  height: 42px;
}
#checkout-form textarea {
  height: 50px;
  min-height: 50px;
}


/* Ровная типографика и центрирование шапки */
.hero > div { text-align: center; }
.hero .eyebrow {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0 auto 14px;
  font-family: Georgia, serif;
  font-size: clamp(25px, 6vw, 30px) !important;
  font-weight: 600;
  line-height: 1.18;
}
.hero .eyebrow::before {
  flex-basis: 27px;
  width: 27px;
  height: 18px;
}
.hero h1 {
  margin: 12px 0;
  font-size: clamp(29px, 7vw, 34px);
  line-height: 1.1;
}
.hero p:not(.eyebrow) {
  max-width: 320px;
  margin: 12px auto 0;
  font-size: 13px;
}

/* Поля формы компактнее */
#checkout-form > label {
  margin: 12px 0;
}
#checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]),
#checkout-form textarea {
  display: block;
  width: 96%;
  margin: 5px auto 0;
  padding: 8px 10px;
  font-size: 14px;
  line-height: 1.35;
}
#checkout-form input:not([type=hidden]):not([type=radio]):not([type=checkbox]) {
  height: 42px;
}
#checkout-form textarea {
  height: 50px;
  min-height: 50px;
}


/* Слоган и флаг — по центру, флаг отдельной строкой под слоганом */
.hero > div { text-align: center; }
.hero .eyebrow {
  display: flex !important;
  flex-direction: column-reverse !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin: 0 auto 14px;
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(25px, 6vw, 30px) !important;
  font-weight: 600;
  line-height: 1.18;
}
.hero .eyebrow::before {
  flex: 0 0 18px;
  width: 27px;
  height: 18px;
  margin: 0;
}
.hero h1 { text-align: center; }
.hero p:not(.eyebrow) { margin-left: auto; margin-right: auto; }


/* Аккуратная корзина */
#cart-dialog {
  width: min(520px, calc(100% - 20px));
  padding: 20px;
  border: 1px solid #e1e9dc;
  box-shadow: 0 16px 44px rgba(34, 55, 37, .18);
}
#cart-dialog h2 {
  margin: 0 36px 16px 0;
  font-size: 25px;
}
.cart-line {
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 10px;
  margin: 8px 0;
  padding: 10px;
  border: 1px solid #e8ede4;
  border-radius: 14px;
  background: #fff;
}
.cart-line img {
  width: 44px;
  height: 58px;
  border-radius: 9px;
  background: #f5f7f1;
}
.cart-line p {
  margin-bottom: 7px;
  color: #304635;
  font-size: 13px;
  font-weight: 600;
}
.cart-line strong { font-size: 14px; }
.subtotal {
  margin: 12px 0;
  padding: 14px;
  border-radius: 13px;
  background: #edf3e9;
  font-weight: 600;
}
#submit-order {
  width: 100%;
  min-height: 46px;
}
@media (max-width: 640px) {
  #cart-dialog { padding: 16px 13px; }
  .cart-line { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; }
  .cart-line img { width: 40px; height: 54px; }
}


/* v4: адресные варианты открываются как отдельное окно и на статусах загрузки/ошибки. */
.address-suggestions.suggestions-open {
  position: fixed; z-index: 10000; top: 50%; left: 50%;
  transform: translate(-50%, -50%); display: grid; gap: 7px;
  width: min(370px, calc(100vw - 32px)); max-height: min(46dvh, 360px);
  overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 16px;
  border: 1px solid #dce5d8; border-radius: 16px; background: #fff;
  box-shadow: 0 14px 40px rgba(20, 32, 23, .28);
}
#city-suggestions.suggestions-open::before,
#address-suggestions.suggestions-open::before {
  display: block; padding: 2px 3px 7px; color: #243a2b; font-size: 15px; font-weight: 700;
}
#city-suggestions.suggestions-open::before { content: "Выберите город"; }
#address-suggestions.suggestions-open::before { content: "Выберите адрес или ПВЗ"; }
