
:root{
  --bg:#f5f9fb;
  --surface:#ffffff;
  --text:#103a55;
  --muted:#668092;
  --navy:#07577f;
  --navy-dark:#064767;
  --cyan:#20acd1;
  --cyan-soft:#e9f8fc;
  --border:#dceaf0;
  --shadow:0 14px 38px rgba(7,87,127,.10);
  --radius:18px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);background:var(--bg)
}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
a{text-decoration:none;color:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}

.topbar{
  position:sticky;top:0;z-index:30;background:rgba(255,255,255,.95);
  backdrop-filter:blur(14px);border-bottom:1px solid var(--border)
}
.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px}
.brand-logo{width:58px;height:58px;object-fit:contain;border-radius:14px;background:white}
.brand-title{font-weight:900;font-size:20px;letter-spacing:.08em;color:var(--navy)}
.brand-subtitle{font-size:12px;color:var(--muted);text-transform:uppercase;letter-spacing:.08em}
.header-actions{display:flex;gap:10px;align-items:center}

.hero{padding:62px 0 36px}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:stretch}
.hero h1{font-size:clamp(40px,6vw,74px);line-height:.98;margin:14px 0 18px;letter-spacing:-.045em;color:var(--navy)}
.hero p{font-size:19px;line-height:1.6;color:var(--muted);max-width:680px}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:12px;font-weight:900;color:var(--cyan)}
.eyebrow.light{color:#77d9ef}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}
.primary-btn,.secondary-btn,.ghost-btn,.cart-btn{
  border:0;border-radius:14px;padding:13px 18px;font-weight:800
}
.primary-btn{background:var(--navy);color:#fff;display:inline-flex;justify-content:center;align-items:center}
.primary-btn:hover{background:var(--navy-dark)}
.secondary-btn{background:var(--cyan-soft);color:var(--navy)}
.ghost-btn{background:#fff;border:1px solid var(--border);color:var(--text)}
.cart-btn{background:var(--navy);color:white}
#cartCount{
  display:inline-grid;place-items:center;min-width:22px;height:22px;border-radius:99px;background:white;color:var(--navy);
  padding:0 6px;margin-left:6px;font-size:12px
}
.hero-benefits{display:flex;gap:18px;flex-wrap:wrap;color:var(--muted);font-size:14px}
.hero-card{
  position:relative;overflow:hidden;border-radius:30px;min-height:390px;background:linear-gradient(150deg,#07577f,#1598bd);
  box-shadow:var(--shadow);display:flex;align-items:end
}
.hero-logo{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:.18;mix-blend-mode:screen
}
.hero-card-content{position:relative;z-index:2;padding:34px;color:#fff}
.hero-card-badge{display:inline-block;background:rgba(255,255,255,.16);padding:8px 12px;border-radius:99px;font-size:12px;font-weight:900;letter-spacing:.13em}
.hero-card h3{font-size:32px;margin:18px 0 10px}
.hero-card p{font-size:15px;color:rgba(255,255,255,.8)}

.search-section{padding:18px 0 12px}
.search-wrap{display:flex;gap:10px;background:#fff;border:1px solid var(--border);padding:8px;border-radius:18px;box-shadow:var(--shadow)}
.search-wrap input{flex:1;border:0;outline:0;padding:10px 14px;background:transparent}
.search-wrap button{border:0;background:var(--navy);color:#fff;border-radius:12px;padding:0 22px;font-weight:900}

.categories-section,.catalog-section{padding:42px 0}
.section-head{display:flex;justify-content:space-between;align-items:end;gap:16px;margin-bottom:22px}
.section-head h2{font-size:34px;margin:7px 0 0;letter-spacing:-.03em}
.categories{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.category{
  background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px 14px;text-align:left;
  transition:.2s transform,.2s box-shadow
}
.category:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.category .icon{font-size:28px;display:block;margin-bottom:12px}
.category .name{font-weight:850}
.products-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.product-card{
  background:#fff;border:1px solid var(--border);border-radius:20px;padding:16px;display:flex;flex-direction:column;min-height:320px
}
.product-image{height:150px;border-radius:14px;background:var(--cyan-soft);display:grid;place-items:center;font-size:64px;margin-bottom:16px}
.product-name{font-weight:850;font-size:18px}
.product-meta{color:var(--muted);font-size:13px;margin:6px 0 14px}
.product-bottom{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:10px}
.product-price{font-size:21px;font-weight:900;color:var(--navy)}
.add-btn{border:0;border-radius:12px;background:var(--navy);color:white;padding:10px 13px;font-weight:850}

.promo-section{padding:54px 0;background:linear-gradient(135deg,#063d5c,#07577f);color:white;margin-top:22px}
.promo-grid{display:grid;grid-template-columns:1fr 320px;gap:28px;align-items:center}
.promo-grid h2{font-size:38px;margin:10px 0}
.promo-grid p{color:#c7dde8}
.promo-card{background:#fff;color:var(--text);border-radius:22px;padding:28px;display:flex;flex-direction:column}
.promo-card strong{font-size:58px;color:var(--cyan)}

.drawer{
  position:fixed;right:0;top:0;height:100vh;width:min(440px,100%);background:white;z-index:60;
  transform:translateX(102%);transition:.25s ease;display:flex;flex-direction:column;box-shadow:-20px 0 50px rgba(0,0,0,.12)
}
.drawer.open{transform:translateX(0)}
.drawer-header,.drawer-footer{padding:24px;border-bottom:1px solid var(--border)}
.drawer-footer{border-top:1px solid var(--border);border-bottom:0;margin-top:auto}
.drawer-content{padding:18px 24px;overflow:auto}
.cart-item{display:grid;grid-template-columns:1fr auto;gap:10px;padding:14px 0;border-bottom:1px solid var(--border)}
.cart-item-name{font-weight:800}
.cart-item-meta{font-size:13px;color:var(--muted);margin-top:4px}
.qty-row{display:flex;align-items:center;gap:8px;justify-content:flex-end}
.qty-btn{width:30px;height:30px;border-radius:9px;border:1px solid var(--border);background:#fff}
.total-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;font-size:20px}
.full{width:100%}
.overlay{position:fixed;inset:0;background:rgba(10,31,44,.4);z-index:50;opacity:0;pointer-events:none;transition:.2s}
.overlay.show{opacity:1;pointer-events:auto}
.icon-btn{border:0;background:#eef5f8;border-radius:10px;width:38px;height:38px}
dialog{border:0;border-radius:22px;padding:0;width:min(520px,calc(100% - 28px));box-shadow:0 30px 80px rgba(0,0,0,.22)}
dialog::backdrop{background:rgba(0,0,0,.4)}
.checkout-form{padding:24px;display:grid;gap:16px}
.dialog-head{display:flex;align-items:start;justify-content:space-between}
.checkout-form label{display:grid;gap:7px;font-size:13px;font-weight:750}
.checkout-form input,.checkout-form select,.checkout-form textarea{
  width:100%;border:1px solid var(--border);border-radius:12px;padding:12px 13px;outline:0;background:#fff
}
.checkout-form textarea{min-height:90px;resize:vertical}

footer{padding:30px 0;background:#fff;border-top:1px solid var(--border)}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.footer-brand{display:flex;align-items:center;gap:12px}
.footer-brand img{width:54px;height:54px;object-fit:contain}
.muted{color:var(--muted)}
.empty{padding:30px 0;color:var(--muted);text-align:center}

@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .hero-card{min-height:260px}
  .categories{grid-template-columns:repeat(3,1fr)}
  .products-grid{grid-template-columns:repeat(2,1fr)}
  .promo-grid{grid-template-columns:1fr}
}
@media (max-width:640px){
  .header-inner{padding:10px 0}
  .brand-logo{width:48px;height:48px}
  .brand-title{font-size:16px}
  .brand-subtitle{display:none}
  .header-actions .ghost-btn{display:none}
  .hero{padding-top:36px}
  .hero h1{font-size:44px}
  .categories{grid-template-columns:repeat(2,1fr)}
  .products-grid{grid-template-columns:1fr}
  .section-head{align-items:start}
  .section-head h2{font-size:29px}
  .show-all{display:inline-block}
  .search-wrap button{padding:0 14px}
}


.store-info-section{padding:54px 0 30px}
.store-info-grid{
  display:grid;
  grid-template-columns:1.2fr 1fr 1fr;
  gap:16px;
}
.store-info-main{
  grid-row:span 2;
  background:linear-gradient(145deg,#ffffff,#eef9fc);
  border:1px solid var(--border);
  border-radius:24px;
  padding:28px;
}
.store-info-main h2{font-size:38px;margin:10px 0 12px;letter-spacing:-.03em}
.store-info-main p{color:var(--muted);line-height:1.6}
.info-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:20px;
  padding:20px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.info-icon{
  width:42px;height:42px;border-radius:12px;background:var(--cyan-soft);
  display:grid;place-items:center;font-size:20px;flex:0 0 auto
}
.info-card strong{display:block;margin-bottom:6px}
.info-card p{margin:0;color:var(--muted);line-height:1.5}
.info-card a{color:var(--navy);font-weight:800}
.delivery-card{
  grid-column:2 / 4;
  background:var(--navy);
  color:#fff;
  border-radius:24px;
  padding:24px;
}
.delivery-rules{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
  margin-top:14px;
}
.delivery-rules div{
  background:rgba(255,255,255,.10);
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:5px
}
.delivery-rules strong{font-size:18px}
.delivery-rules span{font-size:13px;color:rgba(255,255,255,.78)}
.delivery-note{margin:14px 0 0;color:rgba(255,255,255,.72);font-size:13px}
.summary-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;color:var(--muted)}
.delivery-hint{font-size:12px;color:var(--muted);margin:-4px 0 12px}
.footer-contact{display:flex;flex-direction:column;gap:3px;font-size:13px;color:var(--muted);text-align:right}
.footer-contact a{font-weight:800;color:var(--navy)}

@media (max-width:980px){
  .store-info-grid{grid-template-columns:1fr 1fr}
  .store-info-main{grid-column:1 / 3;grid-row:auto}
  .delivery-card{grid-column:1 / 3}
}
@media (max-width:640px){
  .store-info-grid{grid-template-columns:1fr}
  .store-info-main,.delivery-card{grid-column:auto}
  .delivery-rules{grid-template-columns:1fr}
  .footer-inner{align-items:flex-start;gap:18px;flex-wrap:wrap}
  .footer-contact{text-align:left;width:100%}
}

.category-count{display:block;margin-top:7px;font-size:12px;color:var(--muted)}
.results-note{grid-column:1/-1;background:#fff;border:1px solid var(--border);border-radius:16px;padding:18px;color:var(--muted);text-align:center}

.category small{display:block;color:var(--muted);font-size:11px;margin-top:6px}
.product-card.unavailable{opacity:.68}
.add-btn:disabled{background:#9eafb8;cursor:not-allowed}
.catalog-note{grid-column:1/-1;padding:18px;text-align:center;color:var(--muted);background:#fff;border:1px solid var(--border);border-radius:16px}

.catalog-breadcrumbs{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  margin:0 0 18px;
}
.crumb{
  border:0;
  background:transparent;
  color:var(--navy);
  font-weight:750;
  padding:6px 0;
}
.crumb.active{color:var(--text)}
.crumb-sep{color:#9bb0bd}
.category{
  position:relative;
  padding-right:38px;
}
.category-arrow{
  position:absolute;
  right:14px;
  bottom:16px;
  font-size:18px;
  color:var(--cyan);
  font-weight:900;
}
.category-empty{grid-column:1/-1}
.catalog-welcome{
  grid-column:1/-1;
  background:#fff;
  border:1px dashed var(--border);
  border-radius:20px;
  padding:34px;
  text-align:center;
  color:var(--muted);
  font-size:16px;
  line-height:1.6;
}
.product-path{
  display:inline-block;
  max-width:100%;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  vertical-align:bottom;
}

.requisites-section{padding:54px 0;background:#eef7fa}
.requisites-card{background:#fff;border:1px solid var(--border);border-radius:26px;padding:30px;box-shadow:var(--shadow)}
.requisites-card h2{font-size:36px;margin:8px 0 22px;color:var(--navy)}
.requisites-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}
.req-item{border:1px solid var(--border);border-radius:16px;padding:16px;background:#fbfdfe;display:flex;flex-direction:column;gap:5px;min-width:0}
.req-item span{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:800}
.req-item strong{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.req-item small{color:var(--muted)}
.req-item a{color:var(--navy)}
.req-wide{grid-column:1/-1}
@media(max-width:640px){.requisites-card{padding:20px}.requisites-grid{grid-template-columns:1fr}.req-wide{grid-column:auto}}

.requisites-page{padding:58px 0 70px}
.requisites-page-head{max-width:760px;margin-bottom:26px}
.requisites-page-head h1{
  font-size:clamp(38px,6vw,62px);
  line-height:1;
  margin:12px 0 16px;
  letter-spacing:-.04em;
  color:var(--navy)
}
.requisites-page-head p{font-size:18px;line-height:1.6;color:var(--muted)}
.req-back-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
@media(max-width:640px){
  .req-back-link{display:inline-flex}
  .requisites-page{padding-top:34px}
}

.order-preview{border:1px solid var(--border);background:#f6fbfc;border-radius:16px;padding:14px;display:grid;gap:10px}
.order-preview-list{display:grid;gap:7px;max-height:180px;overflow:auto;padding-top:4px}
.order-preview-list>div,.order-preview-total{display:flex;justify-content:space-between;gap:14px;font-size:13px}
.order-preview-list span{min-width:0;line-height:1.35}.order-preview-list b{white-space:nowrap}
.order-preview-total{border-top:1px solid var(--border);padding-top:8px}.order-preview-total.grand{font-size:16px;color:var(--navy)}
.consent-line{grid-template-columns:auto 1fr!important;align-items:start!important;gap:9px!important;font-size:12px;color:var(--muted)}
.consent-line input{margin-top:3px}.order-send-status{min-height:20px;font-size:13px;line-height:1.4;color:var(--navy)}
#placeOrderBtn:disabled{opacity:.65;cursor:wait}
.catalog-sync-note{margin-top:10px;color:var(--muted);font-size:13px;text-align:right}
.admin-page{padding:58px 0 80px;min-height:65vh}
.admin-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.65fr);gap:24px;align-items:start}
.admin-card{background:#fff;border:1px solid var(--border);border-radius:24px;padding:28px;box-shadow:var(--shadow)}
.admin-card h1{font-size:clamp(32px,5vw,52px);line-height:1.05;margin:10px 0 14px;color:var(--navy)}
.admin-card h2{margin:0 0 14px;color:var(--navy)}
.admin-card p,.admin-card li{line-height:1.55;color:var(--muted)}
.import-form{display:grid;gap:18px;margin-top:24px}
.import-form label{display:grid;gap:8px;font-weight:750;color:var(--navy)}
.import-form input{width:100%;border:1px solid var(--border);border-radius:13px;padding:13px 14px;font:inherit;background:#fff}
.import-form input[type=file]{padding:11px}
.import-result{min-height:24px;border-radius:14px;font-size:14px;line-height:1.5}
.import-result.success{padding:14px;background:#e8f8f2;color:#155e4b}
.import-result.error{padding:14px;background:#fff0f0;color:#8a2d2d}
.admin-help{margin:0;padding-left:20px;display:grid;gap:10px}
.admin-warning{margin-top:18px;padding:14px;border-radius:14px;background:#fff8e6;color:#715410!important}
@media(max-width:760px){.admin-layout{grid-template-columns:1fr}.admin-card{padding:21px}.catalog-sync-note{text-align:left}}

/* Grocery storefront */
.hero-grocery{padding:42px 0 32px;background:linear-gradient(120deg,#edf8fc 0%,#f5f9fb 62%)}
.hero-grocery .hero-grid{grid-template-columns:1fr 1fr;gap:38px;align-items:center}
.hero-grocery h1{font-size:clamp(42px,5.3vw,68px);line-height:1.06;margin:18px 0;letter-spacing:-.035em}
.hero-grocery h1 em{font-style:normal;color:#16859a}
.hero-grocery p{font-size:18px;line-height:1.65;max-width:460px;margin:0}
.hero-grocery .hero-actions{margin:24px 0 18px}
.hero-grocery .primary-btn{padding:16px 24px;display:inline-flex;gap:26px;align-items:center;font-size:17px}
.hero-grocery .hero-benefits{gap:8px 18px;color:#416476}
.grocery-shortcuts{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:26px}
.grocery-shortcuts>span{flex-basis:100%;font-size:14px;color:#416476;margin-bottom:3px}
.grocery-shortcuts button{border:1px solid #c8dfe8;background:#fff;color:#07577f;border-radius:24px;padding:11px 15px;font:600 14px inherit;cursor:pointer;font-family:inherit;font-size:14px}
.grocery-shortcuts button:hover{background:#dff3f7;border-color:#16859a}
.grocery-shortcuts button:focus-visible,.hero-grocery a:focus-visible{outline:3px solid #16859a;outline-offset:4px}
.grocery-photo{position:relative;margin:0;min-width:0;border-radius:26px;overflow:hidden;background:#08607a;aspect-ratio:1.15}
.grocery-photo img{width:100%;height:100%;position:absolute;inset:0;object-fit:cover}
.grocery-photo::after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(3,39,48,.87))}
.grocery-photo figcaption{position:absolute;z-index:1;left:28px;right:24px;bottom:26px;color:white}
.grocery-photo figcaption span{display:block;font-size:14px;margin-bottom:10px}
.grocery-photo figcaption strong{font-size:30px;line-height:1.15;display:block}
#shop-categories{scroll-margin-top:110px}
@media(max-width:980px){.hero-grocery .hero-grid{gap:24px}.hero-grocery h1{font-size:48px}.grocery-photo{aspect-ratio:.85}.grocery-photo figcaption strong{font-size:26px}}
@media(max-width:700px){.hero-grocery{padding:28px 0 24px}.hero-grocery .hero-grid{grid-template-columns:1fr;gap:24px}.hero-grocery h1{font-size:clamp(40px,10vw,56px)}.hero-grocery p{font-size:17px}.grocery-photo{aspect-ratio:1.7}.grocery-photo figcaption{left:20px;bottom:18px}.grocery-photo figcaption span{font-size:13px;margin-bottom:6px}.grocery-photo figcaption strong{font-size:24px}.grocery-shortcuts{margin-top:20px}#shop-categories{scroll-margin-top:150px}}
