/* ===== site.css ===== */
*{ box-sizing:border-box; -webkit-font-smoothing:antialiased; -moz-osx-font-smoothing:grayscale; }
html,body{ height:100%; }

:root{
  --bg1:#eefbf4;
  --bg2:#e6f7ee;

  --text:#1f2937;
  --muted:#6b7280;

  --card:#ffffff;
  --stroke: rgba(31,41,55,.16);

  --shadow1: 0 18px 40px rgba(31,41,55,.18);
  --shadow2: 0  6px 16px rgba(31,41,55,.10);

  --radius:22px;

  --green1:#22c55e;
  --green2:#16a34a;

  --indigo:#4f46e5;

  --container:1300px;

  --wine:#16a34a;
  --wine2:#15803d;
  --wine3:#166534;

  --onDark:#ffffff;
  --onDarkMuted: rgba(255,255,255,.72);
}

body{
  margin:0;
  font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:linear-gradient(180deg,var(--bg1),var(--bg2));
}

a{ color:var(--text); }
a:hover{ color:var(--indigo); }

.container{
  max-width:1300px;
  width:100%;
  margin-left:auto;
  margin-right:auto;
  padding:22px;
  position:relative;
}

.card{
  background:var(--card);
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  box-shadow: var(--shadow1), var(--shadow2);
  padding:18px;
}

.muted{ color:var(--muted); font-weight:800; }

/* ===== button / interactions ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:12px 16px;
  border-radius:14px;
  background:#fff;
  font-weight:900;
  text-decoration:none;
  box-shadow: 0 18px 36px rgba(31,41,55,.18), 0 6px 14px rgba(31,41,55,.10);
  cursor:pointer;
  transition: background-color .16s ease, box-shadow .16s ease, transform .16s ease, filter .16s ease;
  border:1px solid rgba(31,41,55,.12);
  color:var(--text);
}
.btn:hover{
  transform:translateY(-2px);
  box-shadow: 0 22px 46px rgba(31,41,55,.22), 0 10px 20px rgba(31,41,55,.12);
}
.btn:active{
  transform:translateY(0px) scale(.99);
  box-shadow: 0 10px 18px rgba(31,41,55,.18), 0 3px 8px rgba(31,41,55,.10);
}

.btn-primary{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(180deg,var(--green1),var(--green2));
  box-shadow:0 16px 32px rgba(22,163,74,.22), 0 6px 14px rgba(22,163,74,.14);
}
.btn-primary:hover{
  filter:saturate(1.05);
  box-shadow:0 20px 40px rgba(22,163,74,.26), 0 8px 18px rgba(22,163,74,.16);
}

.btn-soft{ background:rgba(79,70,229,.10); }

/* .btn-menu{
  color:#060606;
  border-color:transparent;
  background: linear-gradient(180deg, #17a64c, #fefffe)
box-shadow: 0 16px 32px rgba(255, 0, 94, .22), 0 6px 14px rgba(31,41,55,.14);
  border:1px solid var(--stroke);
} */

.input{
  width:100%;
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  font-weight:800;
  outline:none;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  transition: box-shadow .16s ease, border-color .16s ease;
}
.input:focus{
  border-color:rgba(79,70,229,.40);
  box-shadow:0 0 0 3px rgba(79,70,229,.12);
}

/* ===== sticky header ===== */
.site-header{
  position:sticky;
  top:0;
  z-index:9990;
  background:rgba(255,255,255,.58);
  backdrop-filter: blur(8px);
  border-bottom:1px solid rgba(31,41,55,.10);
  box-shadow: 0 18px 40px rgba(31,41,55,.08);
}

.header-row{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:12px 0;
  flex-wrap:wrap;
  align-items:center;
}

/* brand logo */
.brand-logo{
  display:inline-flex;
  width:100px;
  height:100px;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.brand-logo img{
  width:100px;
  height:100px;
  object-fit:contain;
  display:block;
}

.header-mobile-primary{
  display:none;
}

.header-desktop-actions{
  margin-left:auto;
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}

/* nav */
.nav{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  flex: 1 1 100%;
  justify-content:center;
}

.nav-list{
  width:100%;
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
}

.nav a{
  text-align:center;
  text-decoration:none;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  font-weight:900;
  color: var(--text);
  transition: transform .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.nav a:hover{
  color:var(--text);
  border-color: rgba(31,41,55,.16);
  background: rgba(31,41,55,.03);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(31,41,55,.10);
}

.nav-social-btn{
  min-width:64px;
}

/* all header/footer buttons */
.site-header .btn,
.site-footer .btn{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border: 1px solid rgba(31,41,55,.12);
  box-shadow: 0 16px 34px rgba(31,41,55,.10);
}
.site-header .btn:hover,
.site-footer .btn:hover{
  background: rgba(255,255,255,.98);
  transform: translateY(-2px);
}

.site-header .btn-menu{
  color:#060606;
  border-color:transparent;
   background: linear-gradient(161deg, #309756, #fefffe);

  border:1px solid var(--stroke);
}






/* badge */
.cart-badge{
  display:inline-flex;
  min-width:22px;
  height:22px;
  padding:0 7px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: linear-gradient(180deg,var(--green1),var(--green2));
  font-weight:900;
  font-size:12px;
  box-shadow: 0 12px 26px rgba(22,163,74,.24);
}

/* phone button */
.btn-phone{
  white-space:nowrap;
  padding:12px 16px;
}

/* show/hide helpers */
.only-desktop{ display:inline-flex; }
.only-mobile{ display:none; }
@media (max-width:980px){
  .only-desktop{ display:none !important; }
  .only-mobile{ display:inline-flex !important; }
}

/* ===== MOBILE HEADER ===== */
@media (max-width:980px){
  .container{
    padding:12px;
  }

  .site-header .container{
    padding-top:8px;
    padding-bottom:8px;
  }

  .header-row.header-row--main{
    display:grid;
    grid-template-columns:72px 1fr;
    gap:10px 12px;
    align-items:start;
  }

  .brand-logo{
    width:100px;
    height:100px;
    grid-column:1;
    grid-row:1 / span 2;
    align-self:start;
    justify-self:start;
  }
  .brand-logo img{
    width:100px;
    height:100px;
  }

  .header-desktop-actions{
    display:none;
  }

  .header-mobile-primary{
    display:grid;
    grid-column:2;
    grid-row:1;
    grid-template-columns:1fr 1fr;
    gap:8px;
    align-items:stretch;
  }

  .header-main-btn{
    min-height:46px;
    width:100%;
    padding:10px 12px;
    font-size:14px;
    line-height:1.15;
    border-radius:14px;
    white-space:nowrap;
  }

  .btn-phone.header-main-btn{
    font-size:14px;
  }

  .nav{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    display:block;
    margin-top:2px;
  }

  .nav-list{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:10px;
    padding:12px;
    border:1px solid rgba(31,41,55,.12);
    border-radius:24px;
    background:rgba(255,255,255,.96);
    box-shadow:0 16px 34px rgba(31,41,55,.12);
  }

  .nav.is-open .nav-list{
    display:flex;
  }

  .nav-list a,
  .nav-list .btn{
    width:100%;
    min-height:48px;
    padding:12px 14px;
    border-radius:18px;
    font-size:15px;
    font-weight:900;
    justify-content:center;
    text-align:center;
    background:#fff;
    border:1px solid rgba(31,41,55,.10);
    box-shadow:none;
  }

  .nav-list a:hover,
  .nav-list .btn:hover{
    transform:none;
    box-shadow:none;
    background:rgba(31,41,55,.03);
  }
}

/* very small phones */
@media (max-width:520px){
  .header-row.header-row--main{
    grid-template-columns:64px 1fr;
  }

  .brand-logo{
    width:80px;
    height:80px;
  }
  .brand-logo img{
    width:80px;
    height:80px;
  }

  .header-mobile-primary{
    grid-template-columns:1fr 1fr;
    gap:7px;
  }

  .header-main-btn{
    min-height:44px;
    font-size:13px;
    padding:10px 10px;
  }

  .btn-phone.header-main-btn{
    font-size:13px;
  }
}

/* desktop nav always visible */
@media (min-width:981px){
  .nav{
    display:flex !important;
  }
  .nav-list{
    display:flex !important;
  }
}

/* ===== grid products ===== */
.grid-products{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-top:14px;
}
@media (max-width:980px){ .grid-products{ grid-template-columns:repeat(2,1fr);} }
@media (max-width:640px){ .grid-products{ grid-template-columns:1fr;} }

/* ===== product card ===== */
.pcard{
  background:#fff;
  border:1px solid rgba(31,41,55,.16);
  border-radius:22px;
  box-shadow:0 14px 30px rgba(31,41,55,.14), 0 5px 12px rgba(31,41,55,.08);
  overflow:hidden;
  transition:background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.pcard:hover{ transform:translateY(-3px); box-shadow: var(--shadow1), var(--shadow2); }

.pmedia{ aspect-ratio: 1/1; background: rgba(31,41,55,.03); overflow:hidden; }
.pmedia img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  background:transparent;
  padding:10px;
  transition:transform .25s ease;
  border-radius:22px;
}
.pcard:hover .pmedia img{ transform:scale(1.10); }

.pbody{ padding:14px 14px 12px; }
.ptitle{ margin:0; font-weight:900; font-size:15px; line-height:1.25; min-height:38px; }
.price-row{ margin-top:10px; display:flex; gap:10px; align-items:baseline; }
.price{ font-weight:900; font-size:18px; }
.price-old{ color:var(--muted); text-decoration:line-through; font-weight:900; }

.pactions{
  padding:0 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

/* stepper */
.stepper{
  display:flex;
  align-items:center;
  gap:8px;
  border:1px solid rgba(31,41,55,.16);
  border-radius:14px;
  padding:6px;
  background:#fff;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
}
.stepper button{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(31,41,55,.16);
  background:#fff;
  cursor:pointer;
  font-weight:900;
  font-size:18px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.stepper button:hover{ transform:translateY(-1px); box-shadow:0 12px 22px rgba(31,41,55,.10); }
.stepper button:active{ transform:translateY(0px) scale(.98); }
.stepper .val{ width:34px; text-align:center; font-weight:900; }

/* ===== catalog with left sidebar ===== */
.catalog-wrap{
  margin-top:14px;
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.cat-sidebar{
  width:290px;
  position:sticky;
  top:84px;
  flex:0 0 auto;
}
.cat-content{ flex:1 1 auto; min-width:0; }
@media (max-width:980px){
  .catalog-wrap{ display:block; }
  .cat-sidebar{ position:static; top:auto; width:100%; margin-bottom:14px; }
}
@media (max-width:980px){ .cat-content{ margin-left:0; } }

.cat-list{ padding:16px; }
.cat-item{
  display:block;
  text-decoration:none;
  color:var(--text);
  padding:12px 14px;
  border-radius:18px;
  border:1px solid transparent;
  font-weight:900;
  background:#fff;
  margin-bottom:10px;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  transition:background-color .15s ease, box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.cat-item:hover{
  transform:translateY(-2px);
  border-color:rgba(31,41,55,.16);
  box-shadow:0 18px 36px rgba(31,41,55,.14), 0 7px 14px rgba(31,41,55,.08);
}
.cat-item.active{
  color:#fff;
  border-color:transparent;
  background:linear-gradient(180deg,var(--green1),var(--green2));
  box-shadow:0 16px 32px rgba(22,163,74,.22), 0 6px 14px rgba(22,163,74,.14);
  transform:translateY(-1px) scale(1.03);
}
.cat-child{ margin-left:14px; opacity:.95; }

/* ===== footer ===== */
.site-footer{
  margin-top:18px;
  padding:26px 0 30px;
  color:var(--muted);
  font-weight:800;
  background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(230,247,238,.96));
  border-top: 1px solid rgba(31,41,55,.10);
  box-shadow: 0 -18px 40px rgba(31,41,55,.08);
}
.site-footer a{ color: var(--text); }
.site-footer a:hover{ color:var(--indigo); text-decoration:underline; }

.footer-row{ display:flex; justify-content:space-between; gap:14px; flex-wrap:wrap; }

/* ===== CART DRAWER ===== */
.cart-drawer{ position:fixed; inset:0; z-index:9999; display:none; }
.cart-drawer.is-open{ display:block; }

.cart-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.35); }

.cart-panel{
  position:absolute; right:0; top:0;
  height:100%;
  width:min(420px, 92vw);
  background:#fff;
  border-left:1px solid rgba(31,41,55,.16);
  box-shadow: 0 18px 40px rgba(31,41,55,.18), 0 6px 16px rgba(31,41,55,.10);
  transform: translateX(110%);
  transition: transform .18s ease;
  display:flex;
  flex-direction:column;
}
.cart-drawer.is-open .cart-panel{ transform: translateX(0); }

.cart-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:14px 14px 10px;
  border-bottom:1px solid rgba(31,41,55,.10);
}
.cart-title{ font-weight:900; font-size:18px; }
.cart-x{
  width:40px;height:40px;
  border-radius:14px;
  border:1px solid rgba(31,41,55,.16);
  background:#fff;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cart-x:hover{ transform:translateY(-1px); box-shadow:0 16px 30px rgba(31,41,55,.12); }

.cart-sub{ padding:10px 14px 0; }
.cart-body{ padding:12px 14px; overflow:auto; flex:1; }

.cart-item{
  display:grid;
  grid-template-columns:74px 1fr;
  gap:12px;
  padding:12px;
  border:1px solid rgba(31,41,55,.16);
  border-radius:18px;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  margin-bottom:12px;
}
.cart-img{
  width:74px;height:74px;border-radius:16px;
  overflow:hidden; border:1px solid rgba(31,41,55,.16);
  background:rgba(31,41,55,.03);
}
.cart-img img{ width:100%;height:100%;object-fit:cover;display:block; }
.cart-name{ font-weight:900; text-decoration:none; }
.cart-meta{ display:flex; justify-content:space-between; gap:10px; margin-top:8px; }
.cart-price{ font-weight:900; }
.cart-sum{ font-weight:900; color:var(--green2); }

.cart-qty{ display:flex; align-items:center; gap:8px; margin-top:10px; flex-wrap:wrap; }
.cart-qty button{
  border:1px solid rgba(31,41,55,.16);
  border-radius:12px;
  background:#fff;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cart-qty button:hover{ transform:translateY(-1px); box-shadow:0 14px 26px rgba(31,41,55,.10); }
.cart-qty button:active{ transform:translateY(0px) scale(.98); }
.cart-qty input{
  width:74px;
  border:1px solid rgba(31,41,55,.16);
  border-radius:12px;
  padding:8px 10px;
  font-weight:900;
}
.cart-remove{ background: rgba(185,28,28,.06); }

.cart-foot{ border-top:1px solid rgba(31,41,55,.10); padding:12px 14px; }
.cart-total-row{ display:flex; justify-content:space-between; gap:12px; font-weight:900; }
.cart-total{ font-size:18px; }
.cart-btns{ display:flex; gap:10px; margin-top:12px; flex-wrap:wrap; }
@media (max-width:520px){ .cart-btns{ flex-direction:column; } }

/* ===== PRODUCT PAGE LAYOUT ===== */
.pwrap{ margin-top:14px; }
.pgrid{ margin-top:12px; display:grid; grid-template-columns: 1.1fr .9fr; gap:14px; }
@media (max-width:920px){ .pgrid{ grid-template-columns:1fr; } }

.pgallery{ padding:14px; }
.pbig{
  border-radius:22px;
  overflow:hidden;
  border:1px solid rgba(31,41,55,.16);
  background: rgba(31,41,55,.03);
  box-shadow:0 14px 30px rgba(31,41,55,.14), 0 5px 12px rgba(31,41,55,.08);
  aspect-ratio: 1/1;
}
.pbig img{
  width:100%;
  border-radius:22px;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
}

.pthumbs{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; }
.pth{
  width:100px; height:100px;
  padding:0;
  border-radius:16px;
  border:1px solid rgba(31,41,55,.16);
  background:#fff;
  overflow:hidden;
  cursor:pointer;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  transition:transform .30s ease, box-shadow .30s ease;
}
.pth:hover{ transform:translateY(-2px); box-shadow:0 18px 36px rgba(31,41,55,.14), 0 7px 14px rgba(31,41,55,.08); }
.pth img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  background:#fff;
  border-radius:16px;
  padding:6px;
}

.pinfo{ padding:18px; }
.ptitle2{ margin:0; font-weight:900; font-size:24px; line-height:1.15; }
.pprice{ margin-top:10px; display:flex; gap:10px; align-items:baseline; flex-wrap:wrap; }
.pmeta{
  margin-top:12px;
  border:1px solid rgba(31,41,55,.16);
  border-radius:18px;
  padding:12px;
  background:#fff;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
  font-weight:800;
  color:#374151;
  line-height:1.45;
}
.pbuy{ margin-top:14px; display:flex; gap:10px; flex-wrap:wrap; align-items:center; }
.pdesc2{ margin-top:14px; }
.psec{ font-weight:900; margin-bottom:8px; }
.ptext{ line-height:1.65; font-weight:800; color:#374151; }

/* ===== PAGE CONTENT ===== */
.page-content{ color:#1f2937; font-weight:800; line-height:1.75; }
.page-content h2, .page-content h3{ margin:18px 0 10px; font-weight:900; line-height:1.2; }
.page-content p{ margin:10px 0; }
.page-content a{ color:var(--indigo); text-decoration:underline; font-weight:900; }
.page-content a:hover{ opacity:.9; }
.page-content ul, .page-content ol{ margin:10px 0 10px 18px; padding:0; }
.page-content li{ margin:6px 0; }
.page-content img{
  max-width:100%;
  height:auto;
  border-radius:22px;
  border:1px solid rgba(31,41,55,.16);
  box-shadow:0 14px 30px rgba(31,41,55,.14), 0 5px 12px rgba(31,41,55,.08);
  display:block;
  margin:12px 0;
}
.page-content blockquote{
  margin:12px 0;
  padding:14px 16px;
  border-radius:22px;
  border:1px solid rgba(31,41,55,.16);
  background:rgba(79,70,229,.06);
  box-shadow:0 10px 22px rgba(31,41,55,.06);
}
.page-content table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  margin:12px 0;
  border:1px solid rgba(31,41,55,.16);
  border-radius:18px;
  overflow:hidden;
  box-shadow:0 10px 22px rgba(31,41,55,.06);
}
.page-content th, .page-content td{
  padding:12px 12px;
  border-bottom:1px solid rgba(31,41,55,.10);
  text-align:left;
}
.page-content th{ background:rgba(31,41,55,.03); font-weight:900; }
.page-content tr:last-child td{ border-bottom:0; }

/* ===== MOBILE CATEGORIES TOGGLE ===== */
.cat-toggle{ display:none; margin-bottom:10px; width:100%; justify-content:center; }
@media (max-width: 980px){
  .cat-toggle{ display:inline-flex; }
  .cat-list{ display:none; }
  .cat-sidebar.is-open .cat-list{ display:block; }
}

/* ===== AUTH MODAL + LK FORM ===== */
.modal{ position:fixed; inset:0; z-index:9999; display:none; }
.modal.is-open{ display:block; }
.modal .modal-backdrop{ position:absolute; inset:0; background: rgba(0,0,0,.45); backdrop-filter: blur(2px); }
.modal .modal-panel{
  position: relative;
  max-width: 760px;
  width: calc(100% - 24px);
  margin: 72px auto 24px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  overflow: hidden;
}
.modal .modal-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:18px 18px 10px; }
.modal .modal-title{ font-size:20px; line-height:1.2; margin:0; font-weight:800; }
.modal .modal-sub{ margin-top:6px; font-size:13px; opacity:.7; }
.modal .modal-x{
  width:40px; height:40px;
  border:1px solid rgba(17,24,39,.12);
  border-radius:12px;
  background:#fff;
  cursor:pointer;
  flex:0 0 auto;
}
.modal .modal-body{ padding:14px 18px 18px; }

.lk-card{ background:transparent; box-shadow:none; padding:0; border-radius:0; }
.lk-card form#authForm{ display:grid; grid-template-columns:1fr 1fr; gap:12px 16px; align-items:start; }
.lk-label{ display:block; font-size:13px; font-weight:800; margin:0 0 6px; color:rgba(17,24,39,.92); }
.lk-input{
  width:100%;
  height:46px;
  padding:10px 12px;
  border:1px solid rgba(17,24,39,.18);
  border-radius:12px;
  font-size:15px;
  outline:none;
  background:#fff;
}
.lk-input:focus{ border-color: rgba(17,24,39,.35); box-shadow: 0 0 0 3px rgba(17,24,39,.10); }

.lk-field{ display:block; }
.lk-field--full{ grid-column: 1 / -1; }

.lk-turnstile{ grid-column: 1 / -1; display:flex; justify-content:flex-start; }
.lk-turnstile .cf-turnstile{ transform-origin:0 0; margin-top:6px; }

.lk-policy{
  grid-column: 1 / -1;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:10px 12px;
  border:1px solid rgba(17,24,39,.10);
  border-radius:12px;
  background: rgba(17,24,39,.02);
  cursor:pointer;
  user-select:none;
  line-height:1.35;
  font-size:13px;
}
.lk-policy input[type="checkbox"]{
  width:22px;
  height:22px;
  margin:2px 0 0;
  flex:0 0 22px;
  accent-color:#16a34a;
}

.lk-btns{ grid-column: 1 / -1; display:flex; gap:10px; flex-wrap:wrap; margin-top:2px; }
.lk-btn{
  height:48px;
  padding:0 18px;
  border-radius:12px;
  font-weight:800;
  border:0;
  cursor:pointer;
  background:#fff;
  border:1px solid rgba(17,24,39,.14);
}
.lk-btn-primary{
  background: linear-gradient(180deg, #22c55e, #16a34a);
  color:#fff;
  border-color: transparent;
  min-width:240px;
}
.lk-btn-primary:disabled{ opacity:.55; filter:grayscale(.2); cursor:not-allowed; }

.lk-error{
  grid-column: 1 / -1;
  background: rgba(239,68,68,.10);
  border: 1px solid rgba(239,68,68,.22);
  color: rgba(127,29,29,.95);
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
}
.lk-hint, .lk-note{ grid-column: 1 / -1; font-size:13px; opacity:.8; }

.lk-reset-box{
  grid-column: 1 / -1;
  padding: 12px;
  border: 1px solid rgba(17,24,39,.16);
  border-radius: 12px;
  background: rgba(17,24,39,.02);
}

@media (max-width:680px){
  .modal .modal-panel{ margin:16px auto 16px; border-radius:16px; }
  .modal .modal-title{ font-size:18px; }
  .lk-card form#authForm{ grid-template-columns:1fr; }
  .lk-btn-primary{ width:100%; min-width:0; }
  .lk-turnstile .cf-turnstile{ transform: scale(.95); }
}

/* dropdown categories for "Торты на заказ" (no JS) */
.cat-group{ margin-bottom:10px; }
.cat-group summary{ list-style:none; cursor:pointer; }
.cat-group summary::-webkit-details-marker{ display:none; }
.cat-group-body{ margin-top:8px; }

.brand-title-image{
  display:flex;
  align-items:center;
justify-content:right;
  flex:1 1 auto;
  min-width:280px;
  max-width:400px;
  margin:0 10px 0 6px;
}

.brand-title-image img{
  display:block;
  width:100%;
  max-width:100%;
  max-height:110px;
  object-fit:contain;
}

/* mobile: скрываем картинку названия */
@media (max-width:980px){
  .brand-title-image{
    display:none !important;
    
  }
  .brand-url{
            display:none !important; 
  }
}
:root {
  --safe-area-top: env(safe-area-inset-top);
  --safe-area-right: env(safe-area-inset-right);
  --safe-area-bottom: env(safe-area-inset-bottom);
  --safe-area-left: env(safe-area-inset-left);
}

body.app-ready {
  --app-safe-top: var(--safe-area-top, 0px);
  --app-safe-right: var(--safe-area-right, 0px);
  --app-safe-bottom: var(--safe-area-bottom, 0px);
  --app-safe-left: var(--safe-area-left, 0px);
    --app-bottom-nav-height: 0px;
}
body.app-ready .site-header {
  padding-top: var(--app-safe-top, 0px);
}
body.app-ready main.app-page {
  padding-bottom: calc(var(--app-safe-bottom, 0px) + var(--app-bottom-nav-height, 0px));
}
body.app-ready .app-bottom-nav {
  display: none;
}