/* Форма заказа Новгородушки: сетка полей. Подключается только к index.html.
   Базовые стили .form_container input/textarea остаются из style.css. */

.nvg-order .nvg-row {
  display: flex;
  gap: 12px;
  margin: 24px 0;
}

.nvg-order .nvg-row > * {
  flex: 1 1 0;
  min-width: 0;
  margin: 0 !important;
  width: auto !important;
}

.nvg-order select {
  display: block;
  background: #fff;
  padding: 18px 30px;
  border-radius: 13px;
  font-size: 16px;
  border: 1px solid #e6e6e6;
  color: #4a4a4a;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%234c7a30' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 12px 8px;
}

.nvg-order select:disabled,
.nvg-order input:disabled {
  background-color: #f4f4f4;
  color: #9a9a9a;
}

.nvg-order select.nvg-err,
.nvg-order input.nvg-err {
  border: 1px solid #d9534f;
  background-color: #fff7f7;
}

.nvg-order .nvg-hint {
  font-size: 13px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  margin: -12px 0 20px;
}

.nvg-order .nvg-caption {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  margin: 0 0 8px;
}

.nvg-order .nvg-total {
  background: #f7faf4;
  border: 1px solid #dbe7cf;
  border-radius: 13px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a4a4a;
  margin: 8px 0 20px;
}

.nvg-order .nvg-total b {
  font-size: 18px;
  color: #3f6b26;
}

.nvg-order .nvg-total .nvg-deposit {
  color: #8a6d3b;
  font-size: 13px;
}

.nvg-order .nvg-error {
  background: #fff3f3;
  border: 1px solid #f0c2c2;
  border-radius: 13px;
  padding: 12px 16px;
  font-size: 14px;
  color: #b23b3b;
  margin: 0 0 16px;
}

.nvg-order .lift-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  font-size: 15px;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.nvg-order .lift-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #4c7a30;
}

.nvg-order .floor-calc {
  font-size: 14px;
  color: #d8f0c2;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
  min-height: 20px;
  margin-bottom: 12px;
}

@media (max-width: 700px) {
  .nvg-order .nvg-row {
    flex-direction: column;
    gap: 0;
    margin: 24px 0;
  }
  .nvg-order .nvg-row > * {
    margin: 0 0 24px !important;
  }
  .nvg-order .nvg-row > *:last-child {
    margin-bottom: 0 !important;
  }
}

/* Компактный блок-переход на страницу оформления */
.nvg-cta {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 18px 40px rgba(0,0,0,.16);
  text-align: left;
}
.nvg-cta .nvg-cta-title {
  font-size: 26px !important;
  line-height: 1.2 !important;
  color: #2f3a2a !important;
  font-family: 'Golos Text', Arial, sans-serif !important;
  font-weight: 800 !important;
  text-align: left !important;
  margin: 0 0 12px !important;
}
.nvg-cta-text {
  font-size: 16px;
  line-height: 1.45;
  color: #4a4a4a;
  margin: 0 0 22px;
}
.nvg-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  background: #4c7a30;
  color: #fff !important;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 700;
  text-decoration: none !important;
  transition: background .15s ease;
}
.nvg-cta-btn:hover { background: #44702a; }
.nvg-cta-btn { background: #4c7a30; }
.nvg-cta-phone {
  margin-top: 16px;
  font-size: 15px;
  color: #7b8577;
}
.nvg-cta-phone a { color: #2f3a2a; font-weight: 700; text-decoration: none; }
@media (max-width: 640px) {
  .nvg-cta { padding: 24px 20px; }
  .nvg-cta-title { font-size: 22px; }
}


/* кнопка «В корзину» в карточках каталога */
.nvg-add-wrap { margin-top: 12px; }
.nvg-add {
  display: inline-block; width: 100%; box-sizing: border-box;
  border: 0; border-radius: 10px; background: #4c7a30; color: #fff;
  font-family: inherit; font-size: 16px; font-weight: 600;
  padding: 12px 16px; cursor: pointer; transition: background .15s;
}
.nvg-add:hover { background: #436b2a; }
.nvg-add.done { background: #3d4a35; }

/* вторичная кнопка «Подробнее» — не спорит с «В корзину» */
.right_co_more { position: static !important; margin: 10px 0 0; }
.right_co_more a.paper,
.sop_tovar_txt_price_more a.paper {
  display: inline-block; background: transparent !important; color: #4c7a30 !important;
  border: 1px solid #4c7a30 !important; border-radius: 10px; padding: 11px 24px !important;
  font-size: 15px; font-weight: 600; box-sizing: border-box;
}
.right_co_more a.paper:hover,
.sop_tovar_txt_price_more a.paper:hover { background: rgba(88,137,56,.08) !important; }

/* кнопка «Заказать» в верхнем меню */
.nvg-m-order { display: block; margin: 0 0 10px; padding: 13px 18px; background: #4c7a30; color: #fff !important;
  border-radius: 10px; text-align: center; font-weight: 600; text-decoration: none !important; }

/* выбор количества в карточке */
.nvg-buy { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.nvg-qty { display: inline-flex; align-items: center; border: 1px solid #e6e6e6; border-radius: 10px;
  overflow: hidden; background: #fff; width: fit-content; }
.nvg-qty button { width: 46px; height: 44px; border: 0; background: #f4f7f1; color: #2f3a2a;
  font-size: 20px; line-height: 1; cursor: pointer; }
.nvg-qty button:hover:not(:disabled) { background: #e9f0e3; }
.nvg-qty button:disabled { opacity: .35; cursor: default; }
.nvg-qty-val { min-width: 54px; text-align: center; font-weight: 600; font-size: 17px; }
.nvg-qty-sum { font-size: 14px; color: #6b7a63; }

/* ==== корзина-дровер на лендинге ==== */
body.nvg-lock { overflow: hidden; }
.nvg-drawer { position: fixed; inset: 0; z-index: 100000; display: none; }
.nvg-drawer.open { display: block; }
.nvg-drawer-bg { position: absolute; inset: 0; background: rgba(24,32,22,.45); }
.nvg-drawer-panel { position: absolute; top: 0; right: 0; height: 100%; width: 420px; max-width: 92vw;
  background: #fff; display: flex; flex-direction: column; box-shadow: -12px 0 40px rgba(0,0,0,.18);
  animation: nvg-slide .22s ease-out; }
@keyframes nvg-slide { from { transform: translateX(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.nvg-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 18px 12px;
  border-bottom: 1px solid #e6e6e6; font-size: 19px; }
.nvg-drawer-x { border: 0; background: none; font-size: 26px; line-height: 1; color: #5a6653; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
.nvg-drawer-items { flex: 1; overflow-y: auto; padding: 10px 18px; }
.nvg-ditem { padding: 12px 0; border-bottom: 1px solid #f0f2ee; }
.nvg-dname { font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.nvg-dctrl { display: flex; align-items: center; gap: 10px; }
.nvg-dctrl .nvg-qty button { width: 38px; height: 36px; font-size: 18px; }
.nvg-dctrl .nvg-qty-val { min-width: 42px; font-size: 16px; }
.nvg-dsum { margin-left: auto; font-size: 16px; }
.nvg-dx { border: 0; background: none; color: #5a6653; font-size: 20px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0; }
.nvg-dx:hover { color: #b23b3b; }
.nvg-dprice { font-size: 13px; color: #6b7a63; margin-top: 4px; }
.nvg-dempty { padding: 40px 0; text-align: center; color: #6b7a63; }
.nvg-dempty a { color: #4c7a30; }
.nvg-drawer-foot { border-top: 1px solid #e6e6e6; padding: 14px 18px 18px; background: #fbfcfa; }
.nvg-drow { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 15px; }
.nvg-drow.sub { font-size: 12.5px; color: #6b7a63; }
.nvg-drow.big { font-size: 19px; font-weight: 700; padding: 10px 0 12px; }
.nvg-dbtn { display: block; width: 100%; text-align: center; background: #4c7a30; color: #fff; text-decoration: none;
  border: 0; border-radius: 12px; padding: 14px 18px; font-size: 16px; font-weight: 600; cursor: pointer; margin-bottom: 8px; }
.nvg-dbtn:hover { background: #4c7a30; }
.nvg-dbtn.ghost { background: transparent; color: #4c7a30; border: 1px solid #4c7a30; }
.nvg-dbtn.ghost:hover { background: rgba(88,137,56,.08); }

/* ==== строка тары в корзине-дровере ==== */
.nvg-tara { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid #dfe9d7; border-radius: 10px;
  background: #f4f8ef; font-size: 13px; line-height: 1.45; color: #3f4a37; }
.nvg-tara p { margin: 0; }
.nvg-tara-main b { color: #2f3a2a; white-space: nowrap; }
.nvg-tara-sum { margin-top: 6px !important; font-weight: 600; color: #4c7a30; }

/* ==== иконка корзины в шапке ==== */
.nvg-cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: #fff; text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,.12); transition: background .18s; }
.nvg-cart-btn:hover { background: #f1f6ec; }
.nvg-cart-count { position: absolute; top: 1px; right: 1px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #4c7a30; color: #fff; font-size: 12px; font-weight: 700;
  line-height: 20px; text-align: center; }
.nvg-cart-count[data-empty="1"] { display: none; }
.menu_top_right { display: flex; align-items: center; gap: 14px; }
.nvg-cart-mobile { margin-right: 12px; }
.menu_top_mobile .nvg-cart-btn { box-shadow: none; background: rgba(255,255,255,.92); }

/* ==== тост «добавлено» ==== */
.nvg-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 100001;
  background: #2f3a2a; color: #fff; padding: 12px 16px; border-radius: 12px; font-size: 15px;
  display: flex; align-items: center; gap: 14px; opacity: 0; pointer-events: none; transition: .2s ease; }
.nvg-toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.nvg-toast button { background: none; border: 0; color: #a8d48a; font-size: 15px; font-weight: 600; cursor: pointer; }
/* мобильная корзина — справа, на уровне гамбургера */
.menu_top_mobile { position: relative; }
.nvg-cart-mobile { position: absolute !important; right: 66px !important; top: 14px !important;
  width: 40px !important; height: 40px !important; margin: 0 !important; }
.nvg-cart-mobile svg { width: 22px; height: 22px; }
.nvg-dhint { font-size: 13px; color: #4c7a30; margin: 0 0 8px; line-height: 1.35; }
.nvg-drow.big { padding: 6px 0 8px; }
.nvg-drow.sub { align-items: flex-start; padding: 2px 0 10px; line-height: 1.3; }
.nvg-drow.sub span:last-child { white-space: nowrap; font-weight: 600; color: #4a4a4a; }
.nvg-empty-row { align-items: center; padding: 6px 0; }
.nvg-empty-row input { width: 74px; padding: 8px 10px; border: 1px solid #e6e6e6; border-radius: 8px;
  font-size: 16px; text-align: center; }
.nvg-dnote { font-size: 13px; color: #4c7a30; padding: 4px 0 8px; line-height: 1.35; }
.nvg-drawer [hidden] { display: none !important; }
@media (max-width: 640px) { .nvg-toast { bottom: 92px; } }

/* шапка: телефон и корзина одной высоты и формы */
.menu_top_right a.ph { height: 44px; display: inline-flex; align-items: center; padding: 0 26px; }
.menu_top_right .nvg-cart-btn { border-radius: 50px; }

/* шапка: обёртка не наезжает на соц-иконки */
.soc_top { right: 279px; }

/* шапка: телефон и корзина на одной линии с иконками (центр полосы 30 px) */
.menu_top_right .ph, .menu_top_right .nvg-cart-btn { margin-top: -11px; }
/* a11y-2026-11-05: контраст и тач-цели. Откат: удалить блок до этой строки включительно. */
.menu_top_desktop.scrooll{background:#4c7a30}
.nvg-add{background:#4c7a30}
.nvg-add:hover{background:#4a7430}
a.paper,a.paper:visited{color:#4c7a30!important}
@media (max-width:900px){
  .nvg-cart-btn,.nvg-cart-btn.nvg-cart-mobile{min-width:44px;min-height:44px}
  .beer_txt_container{right:2px!important;width:auto!important;margin:0!important;top:-30px;white-space:nowrap}
  .beer_txt_container span{font-size:11px;padding:5px 12px;line-height:1.2}
}

/* ux-2026-11-05: структура карточки товара и корзины. Откат: удалить блок до этой строки. */
.nvg-price-note{font-size:14px;color:#6b7a63;margin:2px 0 6px}
.nvg-tiers{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:13px;color:#6b7a63;margin:0 0 14px}
.nvg-tiers span{white-space:nowrap}
.nvg-qty-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px}
.nvg-qty-label{font-size:14px;color:#6b7a63}
.nvg-qty-sum{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin:0 0 12px;font-size:14px;color:#6b7a63}
.nvg-qty-sum b{font-size:18px;font-weight:700;color:#2f3a2a;white-space:nowrap}
.nvg-card-note{font-size:13px;line-height:1.45;color:#6b7a63;margin:0 0 10px}
.right_co_price i{font-style:normal;font-size:16px;color:#6b7a63;font-weight:400}
.nvg-dunit{font-size:13px;color:#6b7a63;margin:2px 0 0}

.right_co{height:auto;min-height:539px}

.nvg-tiers span:not(:last-child)::after{content:'·';margin-left:8px;color:#6b7a63}
.nvg-qty-label{white-space:nowrap}

/* ux-2026-11-05: корзина — отступы и контраст кнопок */
.nvg-dsum{margin-right:6px}
.nvg-dx{flex:0 0 20px;line-height:1}
.nvg-dbtn{background:#4c7a30}
.nvg-dbtn:hover{background:#4a7430}
.nvg-dbtn.ghost{color:#4c7a30;border-color:#4c7a30}
.nvg-dnote{color:#4c7a30}
.nvg-dempty a{color:#4c7a30}
/* ux-2026-11-05: контент карточки выше плавающего декора */
@media (max-width:900px){.right_co{position:relative;z-index:6}}
/* ux-2026-11-05: секция с мишкой без CTA — держим высоту на телефоне */
@media (max-width:900px){.feedback_container{height:420px;min-height:420px;padding:0;background-position:center center}}

/* 2026-11-05b: количество в карточке убрано — добавляем 1, количество правим в корзине */
.sop_tovar_c .nvg-qty-row,
.sop_tovar_c .nvg-qty-sum,
.bist_zakaz_voda .nvg-qty-row,
.bist_zakaz_voda .nvg-qty-sum { display: none !important; }
