/* CoffeStory.ru — minimal modern dark coffee theme */
:root{
  --bg:#0b0b0c;
  --panel:#101114;
  --panel2:#0e0f12;
  --text:#f2f3f5;
  --muted:#a8adba;
  --line:rgba(255,255,255,.08);
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --brand:#f39b26;
  --brand2:#ff6a2a;
  --ok:#35d07f;
  --bad:#ff4d4d;
  --radius:18px;
  --radius2:26px;
  --container:1180px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color:var(--text);
  background: var(--bg);
}
html.is-modal-open, body.is-modal-open{overflow:hidden}
a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
button, input, textarea, select{font:inherit; color:inherit}

.container{max-width:var(--container); margin:0 auto; padding:0 18px}

/* Header */
.topbar{
  position:sticky;
  top:0;
  z-index:20;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,10,12,.85), rgba(10,10,12,.55));
  border-bottom:1px solid var(--line);
}
.topbar__inner{
  display:flex;
  align-items:center;
  gap:18px;
  height:74px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:240px;
}
.brand__logo{
  width:168px;
  height:auto;
  background: transparent;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.45));
}
.nav{
  display:flex;
  align-items:center;
  gap:18px;
  flex:1;
  justify-content:right;
}
.nav a{
  padding:10px 10px;
  color:rgba(242,243,245,.85);
  font-weight:600;
  letter-spacing:.2px;
  border-radius:999px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover{background:rgba(255,255,255,.06); color:var(--text)}
.nav a.is-active{
  color: #8b8b8b;
  /* background:rgba(243,155,38,.12); */
  /* color:var(--text); */
  /* box-shadow: inset 0 0 0 1px rgba(243,155,38,.25); */
}
.actions{
  display:flex;
  align-items:center;
  gap:10px;
}
.iconbtn.navtoggle{display:none}
.iconbtn{
  width:42px;
  height:42px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.iconbtn:hover{
  transform: translateY(-1px);
  background:rgba(255,255,255,.06);
  border-color:rgba(255,255,255,.14);
}
.badge{
  position:absolute;
  transform: translate(12px,-12px);
  min-width:18px;
  height:18px;
  padding:0 5px;
  border-radius:999px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color:#121316;
  font-size:12px;
  font-weight:800;
  display:grid;
  place-items:center;
  border:1px solid rgba(0,0,0,.35);
}
.rel{position:relative}

/* Hero */
.hero{
  padding:44px 0 22px;
}
.is-home .hero{
  padding: 0;
  position: relative;
  z-index: 1;
}
.is-home .section{
  padding: 0 0 44px;
  margin-top: -20px;
  position: relative;
  z-index: 5;
}
.is-home main{
  margin-top: -200px;
}
.is-home .hero__card{
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.is-home .hero__content{
  border-radius: 0;
  margin-top: 147px;
  min-height: 460px;
  padding-bottom: 65px;
}
.is-home .hero__card::after{
  display: none;
}
.hero__grid{
  display:grid;
  grid-template-columns: 1fr;
  gap:18px;
  align-items:stretch;
}
.hero__card{
  border-radius:var(--radius2);
  border:1px solid var(--line);
  background:
    radial-gradient(820px 420px at 70% 20%, rgba(243,155,38,.22), transparent 60%),
    radial-gradient(700px 520px at 5% 95%, rgba(255,106,42,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero__card::after{
  content:"";
  position:absolute;
  inset:-2px;
  background:
    linear-gradient(135deg, rgba(243,155,38,.10), transparent 40%),
    linear-gradient(225deg, rgba(255,106,42,.08), transparent 35%);
  pointer-events:none;
}
.hero__content{
  position:relative;
  padding:34px 34px 30px;
  min-height: 420px;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  isolation:isolate;
}

.hero__content::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:url("./assets/hero-content.png");
  background-size:cover;
  background-position:right center;
  transform: scale(1.06);
  filter: blur(var(--hero-bg-blur, 0px));
  z-index:-2;
}

.hero__content::after{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.28) 55%, rgba(0,0,0,.06)),
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.52));
  z-index:-1;
  pointer-events:none;
}
.kicker{
  color:rgba(243,155,38,.95);
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-size:12px;
}
h1{
  margin:14px 0 12px;
  line-height:1.02;
  font-size:56px;
  letter-spacing:-.02em;
}
.lead{
  margin:0;
  color:rgba(242,243,245,.84);
  font-size:16px;
  line-height:1.55;
  max-width:58ch;
}
.cta{
  margin-top:22px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.btn{
  border:none;
  cursor:pointer;
  border-radius:14px;
  padding:12px 16px;
  font-weight:800;
  letter-spacing:.2px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  transition: transform .12s ease, filter .12s ease, background .12s ease, border-color .12s ease;
}
.btn:active{transform: translateY(1px)}
.btn--primary{
  width: 100%;
  color:#141518;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  box-shadow: 0 16px 40px rgba(243,155,38,.18);
}
.btn--ghost{
  color:var(--text);
  border:1px solid rgba(243,155,38,.25);
  background: rgba(243,155,38,.06);
}
.btn--ghost:hover{background: rgba(243,155,38,.10)}
.btn--soft{
  color:var(--text);
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
}
.btn--soft:hover{background: rgba(255,255,255,.06)}

.hero__right{
  border-radius:var(--radius2);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  overflow:hidden;
  position:relative;
  display:grid;
  place-items:center;
  min-height:320px;
}
.hero__img{
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:.92;
  filter: saturate(.95) contrast(1.05);
}
.hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(380px 220px at 70% 30%, rgba(243,155,38,.18), transparent 60%),
    linear-gradient(90deg, rgba(0,0,0,.85), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.55), transparent 30%, rgba(0,0,0,.65));
}
.hero__right__text{
  position:absolute;
  left:22px;
  bottom:18px;
  right:22px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(242,243,245,.9);
}
.pill{
  font-size:12px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.35);
}

/* Sections */
.section{padding:16px 0 44px}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  margin:18px 0 14px;
}
.h2{
  margin:0;
  font-size:26px;
  letter-spacing:-.01em;
}
.sub{
  margin:0;
  color:rgba(242,243,245,.68);
  line-height:1.45;
}
.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}
.home-tiles{
  gap:10px;
}
.home-tile{
  position:relative;
  display:block;
  min-height:200px;
  padding:23px 18px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:
    linear-gradient(90deg, rgba(0,0,0,.78), rgba(0,0,0,.45) 55%, rgba(0,0,0,.18)),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.45);
}
.home-tile::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: var(--tile-img);
  background-size: cover;
  background-position: right center;
  opacity:.92;
  transform: scale(1.03);
  z-index:0;
}
.home-tile::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
}
.home-tile__text{
  position:relative;
  z-index:2;
  max-width: 55%;
}
.home-tile__title{
  margin:0;
  font-size:16px;
  font-weight:950;
  letter-spacing:.04em;
}
.home-tile__sub{
  margin:8px 0 0;
  color:rgba(242,243,245,.72);
  font-size:12px;
  line-height:1.35;
}
.home-tile__go{
  position:absolute;
  right:14px;
  bottom:14px;
  width:34px;
  height:34px;
  border-radius:999px;
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:2;
  color:rgba(243,155,38,.95);
  border:1px solid rgba(243,155,38,.35);
  background: rgba(0,0,0,.35);
  font-size:0;
  line-height:0;
}
.home-tile__go::before{
  content:"›";
  font-size:21px;
  line-height:1;
  color:inherit;
  display:block;
  transform: translateY(-3px);
}
.home-tile:hover .home-tile__go{
  background: rgba(243,155,38,.08);
  border-color: rgba(243,155,38,.55);
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:14px;
}
.card{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 14px 40px rgba(0,0,0,.40);
  overflow:hidden;
}
.card__pad{padding:16px}
.card__title{
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:-.01em;
}
.card__text{
  margin:0;
  color:rgba(242,243,245,.74);
  line-height:1.5;
  font-size:14px;
}
body.is-contacts .card__text{
  font-size: clamp(15px, 0.78rem + 0.65vw, 20px);
  line-height: 1.55;
}

/* Пользовательское соглашение (отдельная страница) */
.terms-intro{margin-top:14px}
.terms-intro__text{
  margin:0;
  color:rgba(242,243,245,.78);
  font-size: clamp(15px, 0.78rem + 0.55vw, 17px);
  line-height:1.55;
}
.terms-accordion{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:18px;
}
.terms-accordion__item{
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  overflow:hidden;
}
.terms-accordion__trigger{
  width:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 16px;
  border:0;
  margin:0;
  cursor:pointer;
  text-align:left;
  font:inherit;
  font-weight:850;
  font-size:15px;
  letter-spacing:.01em;
  color:var(--text);
  background: rgba(255,255,255,.03);
  transition: background .15s ease;
}
.terms-accordion__trigger:hover{background: rgba(255,255,255,.06)}
.terms-accordion__title{flex:1; min-width:0}
.terms-accordion__chev{
  flex-shrink:0;
  width:22px;
  height:22px;
  display:grid;
  place-items:center;
}
.terms-accordion__chev::before{
  content:"";
  width:9px;
  height:9px;
  border-right:2px solid rgba(243,155,38,.92);
  border-bottom:2px solid rgba(243,155,38,.92);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s ease;
}
.terms-accordion__item.is-open .terms-accordion__chev::before{
  transform: translateY(2px) rotate(-135deg);
}
.terms-accordion__panel{
  border-top:1px solid var(--line);
  background: rgba(0,0,0,.12);
}
.terms-accordion__body{
  padding:14px 16px 18px;
  font-size:15px;
  line-height:1.55;
  color:rgba(242,243,245,.76);
}
.terms-accordion__body p{margin:0 0 12px}
.terms-accordion__body p:last-child{margin-bottom:0}
.terms-accordion__body ul{margin:10px 0; padding-left:22px}
.terms-accordion__body li{margin:8px 0}
.terms-accordion__body b{font-weight:800; color:rgba(242,243,245,.92)}
.policy-pd-intro p{
  margin:0;
  color:rgba(242,243,245,.78);
  font-size: clamp(15px, 0.78rem + 0.55vw, 17px);
  line-height:1.55;
}
.policy-pd-body{
  overflow-x:auto;
}
.policy-pd-body table{
  width:100%;
  min-width:520px;
  border-collapse:collapse;
  font-size:14px;
  line-height:1.45;
}
.policy-pd-body th,
.policy-pd-body td{
  border:1px solid rgba(255,255,255,.12);
  padding:10px 12px;
  vertical-align:top;
  color:rgba(242,243,245,.78);
}
.policy-pd-body thead th{
  color:rgba(242,243,245,.9);
  font-weight:800;
  background: rgba(255,255,255,.04);
}
.policy-pd-body p.uHFlRY,
.policy-pd-body p._typography_5vy1f_47{
  white-space:pre-line;
}
.policy-pd-body li p{margin-bottom:0}
.mini{
  display:flex;
  align-items:center;
  gap:10px;
}
.mini__icon{
  width:42px; height:42px;
  border-radius:14px;
  background: rgba(243,155,38,.10);
  border:1px solid rgba(243,155,38,.18);
  display:grid;
  place-items:center;
  color:rgba(243,155,38,.95);
}

/* Home: benefits bar (4 items) */
.benefits{
  border-radius:16px;
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(520px 180px at 15% 0%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(16,17,20,.95), rgba(16,17,20,.92));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  overflow:hidden;
}
.benefits__item{
  position:relative;
  padding:16px 18px;
  display:flex;
  align-items:center;
  gap:12px;
}
.benefits__item + .benefits__item::before{
  content:"";
  position:absolute;
  left:0;
  top:12px;
  bottom:12px;
  width:1px;
  background: rgba(255,255,255,.10);
}
.benefits__icon{
  width:60px;
  height:60px;
  display:grid;
  place-items:center;
  color: rgba(242,243,245,.92);
  flex:0 0 auto;
}
.benefits__icon svg,
.benefits__icon img{
  display:block;
  width:60px;
  height:60px;
}
.benefits__icon img{object-fit:contain}
.benefits__text .card__title{
  margin:0 0 2px;
  font-size:13px;
  font-weight:950;
  letter-spacing:.01em;
}
.benefits__text .card__text{
  margin:0;
  font-size:12px;
  line-height:1.35;
  color: rgba(242,243,245,.70);
}

/* Product cards */
.toolbar{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  margin:10px 0 14px;
}
.filters{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  align-items:center;
}
.chip{
  padding:9px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  font-weight:800;
  color:rgba(242,243,245,.86);
}
.chip.is-active{
  border-color:rgba(243,155,38,.28);
  background: rgba(243,155,38,.10);
}
.search{
  flex:1;
  min-width:240px;
  max-width:380px;
  display:flex;
  align-items:center;
  gap:10px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(0,0,0,.25);
  padding:10px 12px;
}
.search input{
  width:100%;
  border:none;
  outline:none;
  background:transparent;
  color:rgba(242,243,245,.92);
}
.products{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.product{
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(480px 220px at 70% 20%, rgba(243,155,38,.14), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  overflow:hidden;
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
  display:flex;
  flex-direction:column;
}
.product__media{
  height:160px;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.0));
  border-bottom:1px solid rgba(255,255,255,.06);
  display:grid;
  place-items:center;
}
.product__media img{
  width:120px;
  height:120px;
  object-fit:contain;
  filter: drop-shadow(0 18px 26px rgba(0,0,0,.45));
}
.product__body{padding:14px 14px 12px}
.product__name{
  margin:0 0 6px;
  font-weight:900;
  letter-spacing:-.01em;
}
.product__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  color:rgba(242,243,245,.70);
  font-size:13px;
}
.tag{
  padding:6px 8px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}
.product__foot{
  margin-top:auto;
  padding:12px 14px 14px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.price{
  font-weight:950;
  letter-spacing:-.02em;
  font-size:18px;
}
/* Product detail page */
.breadcrumb{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
  margin:0 0 18px;
  font-size:13px;
  color:rgba(242,243,245,.62);
}
.breadcrumb a{
  color:rgba(243,155,38,.92);
  font-weight:750;
}
.breadcrumb a:hover{text-decoration:underline}
.product-page__layout{
  display:grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap:28px;
  align-items:start;
}
.pgallery{
  position:sticky;
  top:96px;
}
.pgallery__stage{
  position:relative;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:
    radial-gradient(480px 220px at 70% 20%, rgba(243,155,38,.10), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow: 0 14px 40px rgba(0,0,0,.42);
  overflow:hidden;
  aspect-ratio: 1 / 1;
}
.pgallery__main{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
  border-radius:0;
}
.pgallery__nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:40px;
  height:40px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(0,0,0,.45);
  color:rgba(242,243,245,.95);
  display:grid;
  place-items:center;
  cursor:pointer;
  transition: background .15s ease, border-color .15s ease;
}
.pgallery__nav:hover{
  background:rgba(243,155,38,.12);
  border-color:rgba(243,155,38,.35);
}
.pgallery__nav--prev{left:12px}
.pgallery__nav--next{right:12px}
.pgallery__thumbs{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}
.pgallery__thumb{
  width:68px;
  height:68px;
  padding:0;
  border-radius:12px;
  border:2px solid transparent;
  background:rgba(0,0,0,.25);
  overflow:hidden;
  cursor:pointer;
  flex-shrink:0;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.pgallery__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.pgallery__thumb.is-active,
.pgallery__thumb:hover{
  border-color:rgba(243,155,38,.55);
  box-shadow: 0 0 0 1px rgba(243,155,38,.18);
}
.product-page__meta{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.product-page__title{
  margin:0 0 16px;
  font-size: clamp(22px, 2.2vw, 30px);
  font-weight:950;
  letter-spacing:-.02em;
  line-height:1.2;
}
.product-page__buy{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
  padding:14px 16px;
  margin-bottom:22px;
  border-radius:14px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.product-page__cart{
  display:flex;
  align-items:center;
  gap:10px;
}
.product-page__qty{
  justify-content:flex-start;
}
.product-page__qty[hidden],
.product-page__cart [data-product-add][hidden],
.product-card__qty[hidden],
.product__cart [data-product-add][hidden]{
  display:none !important;
}
.product__cart{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}
.product-card__qty{
  justify-content:center;
  width:100%;
}
.product-page__desc.prose{
  color:rgba(242,243,245,.78);
  font-size:15px;
  line-height:1.6;
}
.product-page__desc.prose p{margin:0 0 14px}
.product-page__desc.prose p:last-child{margin-bottom:0}
.product-page__h2{
  margin:22px 0 10px;
  font-size:18px;
  font-weight:900;
  letter-spacing:-.01em;
}
.product-specs{
  list-style:none;
  margin:18px 0;
  padding:0;
  border-radius:14px;
  border:1px solid var(--line);
  overflow:hidden;
}
.product-specs li{
  display:grid;
  grid-template-columns: minmax(120px, 34%) 1fr;
  gap:12px;
  padding:12px 14px;
  border-top:1px solid rgba(255,255,255,.06);
  font-size:14px;
  line-height:1.45;
}
.product-specs li:first-child{border-top:none}
.product-specs span{color:rgba(242,243,245,.58)}
.product-specs strong{font-weight:750; color:rgba(242,243,245,.92)}
.product-steps{
  margin:0 0 14px;
  padding-left:1.2em;
}
.product-steps li{margin-bottom:8px}
.product-page__back{margin-top:24px}
/* Catalog card with photo + detail page */
.product--rich{
  background:
    radial-gradient(520px 240px at 50% 0%, rgba(243,155,38,.12), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.product--rich .product__media--photo{
  display:block;
  height:auto;
  aspect-ratio: 1 / 1;
  min-height:0;
  padding:0;
  overflow:hidden;
  text-decoration:none;
  background: rgb(255 255 255);
}
.product--rich .product__media--photo img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  filter:none;
  transition: transform .28s ease;
}
.product--rich:hover .product__media--photo img{
  transform: scale(1.04);
}
.product--rich .product__body{
  padding:16px 16px 10px;
  flex:1;
  display:flex;
  flex-direction:column;
  gap:0;
}
.product--rich .product__name{
  font-size:14px;
  line-height:1.32;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product--rich .product__short{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.4;
  color:rgba(242,243,245,.68);
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.product--rich .product__foot{
  flex-direction:column;
  align-items:stretch;
  gap:10px;
  padding:0 16px 16px;
}
.product--rich .product__foot .price{
  font-size:20px;
}
.product--rich .product__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.product--rich .product__actions .btn{
  justify-content:center;
  padding:11px 10px;
  font-size:13px;
  min-width:0;
}
.product__name a{
  color:inherit;
  text-decoration:none;
}
.product__name a:hover{
  color:rgba(243,155,38,.95);
}

.price small{
  font-size:12px;
  color:rgba(242,243,245,.68);
  font-weight:800;
}

/* Cart */
.cart{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:14px;
  align-items:start;
}
.cart__list{padding:6px}
.row{
  display:grid;
  grid-template-columns: 74px 1fr auto;
  gap:12px;
  align-items:center;
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.06);
  background: rgba(0,0,0,.18);
  margin:10px;
}
.row__thumb{
  width:74px;
  height:74px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  display:grid;
  place-items:center;
  overflow:hidden;
  color:inherit;
  text-decoration:none;
  transition: border-color .15s ease, background .15s ease;
}
a.row__thumb:hover{
  border-color: rgba(243,155,38,.35);
  background: rgba(255,255,255,.05);
}
.row__thumb img{width:56px; height:56px; object-fit:contain}
.row__name{font-weight:900; margin:0 0 4px}
.row__name-link{
  color:inherit;
  text-decoration:none;
}
.row__name-link:hover{
  color:rgba(243,155,38,.95);
}
.row__sub{margin:0; color:rgba(242,243,245,.72); font-size:13px}
.qty{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.qty button{
  width:34px; height:34px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  cursor:pointer;
  font-weight:950;
}
.qty button:hover{background: rgba(255,255,255,.06)}
.qty input{
  width:48px;
  text-align:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  padding:7px 6px;
  outline:none;
}
.summary{
  position:sticky;
  top:92px;
}
.sumline{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:rgba(242,243,245,.80);
  margin:10px 0;
}
.sumline strong{color:var(--text)}
.hr{
  height:1px;
  background:rgba(255,255,255,.08);
  margin:12px 0;
}
.formgrid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}
.field label{
  display:block;
  font-size:12px;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:rgba(242,243,245,.62);
  font-weight:900;
  margin:10px 0 6px;
}
.field input,.field textarea,.field select{
  width:100%;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
  padding:11px 12px;
  outline:none;
}
.field-phone{
  position:relative;
}
.field-phone__prefix{
  position:absolute;
  left:12px;
  top:50%;
  z-index:1;
  transform:translateY(-50%);
  font-weight:800;
  letter-spacing:.02em;
  color:rgba(242,243,245,.35);
  pointer-events:none;
  transition:color .15s ease;
}
.field-phone.is-empty .field-phone__prefix{
  color:rgba(242,243,245,.96);
}
.field-phone.is-empty .field-phone__input{
  padding-left:38px;
}
.field-phone.is-empty .field-phone__input::placeholder{
  color:rgba(242,243,245,.42);
}
.field-phone:not(.is-empty) .field-phone__prefix{
  display:none;
}
.field-phone__input{
  width:100%;
}
.field textarea{min-height:92px; resize:vertical}
.field-required{
  color:rgba(243,155,38,.95);
  font-weight:900;
}
.form-required-note{
  margin:0 0 10px;
  font-size:11px;
  line-height:1.4;
  color:rgba(242,243,245,.55);
}
.note{
  font-size:13px;
  line-height:1.45;
  color:rgba(242,243,245,.70);
}
.cart-order-consent{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin:14px 0 12px;
}
.cart-order-consent input[type="checkbox"]{
  width:18px;
  height:18px;
  min-width:18px;
  min-height:18px;
  margin-top:2px;
  flex-shrink:0;
  accent-color:rgba(243,155,38,.95);
  cursor:pointer;
}
.cart-order-consent__label{
  font-size:13px;
  line-height:1.45;
  color:rgba(242,243,245,.78);
  cursor:pointer;
}
.cart-order-consent__link{
  color:rgba(243,155,38,.95);
  text-decoration:underline;
  text-underline-offset:2px;
}
.cart-order-consent__link:hover{
  color:rgba(255,180,90,.98);
}

/* Service */
.master{
  display:flex;
  gap:12px;
  align-items:center;
}
.master img{
  width:88px;
  height:88px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}
.master__name{margin:0 0 4px; font-weight:950}
.master__role{margin:0; color:rgba(242,243,245,.72); font-size:13px}

/* Footer */
footer{
  border-top:1px solid var(--line);
  padding:22px 0 34px;
  color:rgba(242,243,245,.70);
}
.foot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  justify-content:flex-start;
}
.foot__links{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
}
.foot__link{
  border:0;
  background:transparent;
  padding:6px 8px;
  border-radius:10px;
  cursor:pointer;
  color:rgba(242,243,245,.70);
  font-weight:700;
  display:inline-block;
  transition: background .18s ease, color .18s ease;
}
.foot__link:hover{
  background:rgba(255,255,255,.06);
  color:rgba(242,243,245,.90);
}
.foot__link.is-current{
  opacity:.95;
  cursor:default;
}
.foot__link.is-current:hover{
  background:transparent;
  color:rgba(242,243,245,.70);
}
.foot__legal{
  width: 100%;
  margin: 0;
  padding: 0;
  max-width: 100%;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(242,243,245,.68);
  text-align: center;
}
.foot__copy{
  width: 100%;
  margin: 10px 0 0;
  padding: 0;
  text-align: center;
  font-size: 13px;
  line-height: 1.4;
  color: rgba(242,243,245,.62);
}
.foot__legal-link{
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: rgba(243, 155, 38, 0.95);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a.foot__legal-link{
  text-decoration: underline;
}
.foot__legal-link:hover{
  color: rgba(253, 190, 110, 0.98);
}

/* Modals */
.modal{
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
}
.modal.is-open{display:block}
.modal__backdrop{
  position:absolute;
  inset:0;
  background:rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal__dialog{
  position:relative;
  width:min(920px, calc(100vw - 24px));
  max-height:min(78vh, 760px);
  overflow:auto;
  margin: min(10vh, 100px) auto 0;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(820px 420px at 70% 0%, rgba(243,155,38,.18), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
}
.modal__head{
  position:sticky;
  top:0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:16px 16px 12px;
  border-bottom:1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(14,15,18,.92), rgba(14,15,18,.70));
  backdrop-filter: blur(10px);
  z-index:2;
}
.modal__title{
  margin:0;
  font-size:18px;
  font-weight:950;
  letter-spacing:-.01em;
}
.modal__x{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
}
.modal__body{
  padding:14px 16px 18px;
}

/* Cookie banner */
.cookiebar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:95;
  padding:12px 12px 14px;
}
.cookiebar__inner{
  max-width:var(--container);
  margin:0 auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(620px 220px at 80% 0%, rgba(243, 155, 38, .16), transparent 60%), linear-gradient(180deg, rgb(16 17 20), rgb(16 17 20));
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  padding:12px 12px;
}
.cookiebar__text{
  color:rgba(242,243,245,.78);
  font-size:13px;
  line-height:1.45;
  flex:1;
}
.cookiebar__btn{
  white-space:nowrap;
}
.cookiebar__link{
  border:0;
  background:transparent;
  padding:0 0 0 6px;
  cursor:pointer;
  font-weight:900;
  color:rgba(243,155,38,.95);
}
.cookiebar__link:hover{color:#ffb35c}

/* Cart added toast */
.cart-toast{
  position:fixed;
  top:88px;
  right:18px;
  z-index:58;
  max-width:min(420px, calc(100vw - 36px));
  opacity:0;
  transform:translateY(-10px);
  pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
}
.cart-toast.is-visible{
  opacity:1;
  transform:translateY(0);
  pointer-events:auto;
}
.cart-toast__inner{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 12px 12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background:
    radial-gradient(520px 200px at 0% 0%, rgba(53,208,127,.14), transparent 55%),
    linear-gradient(180deg, rgb(16 17 20), rgb(14 15 18));
  box-shadow:var(--shadow);
}
.cart-toast__icon{
  width:42px;
  height:42px;
  border-radius:14px;
  border:1px solid rgba(53,208,127,.28);
  background:rgba(53,208,127,.10);
  color:var(--ok);
  display:grid;
  place-items:center;
  flex:0 0 auto;
}
.cart-toast__text{min-width:0; flex:1}
.cart-toast__title{
  margin:0;
  font-weight:800;
  font-size:14px;
  letter-spacing:.01em;
}
.cart-toast__sub{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  line-height:1.35;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cart-toast__link{
  flex:0 0 auto;
  white-space:nowrap;
  padding:10px 12px;
  font-size:13px;
}
.cart-toast__close{
  display: none;
  width:36px;
  height:36px;
  flex:0 0 auto;
}
@media (prefers-reduced-motion: reduce){
  .cart-toast{transition:none}
}

/* Responsive */
@media (max-width: 980px){
  .hero__grid{grid-template-columns:1fr}
  .nav{
    position:fixed;
    left:12px;
    right:12px;
    top:84px;
    z-index:80;
    flex-direction:column;
    align-items:stretch;
    justify-content:flex-start;
    gap:6px;
    padding:10px;
    border-radius:16px;
    border:1px solid rgba(255,255,255,.12);
    background: rgb(16, 17, 20);
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
    backdrop-filter: none;
    display:flex;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transform: translateY(-8px);
    transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  }
  .iconbtn.navtoggle{display:grid}
  .brand{min-width:auto}
  h1{font-size:44px}
  .grid4{grid-template-columns:repeat(2,1fr)}
  .grid2{grid-template-columns:1fr}
  .home-tile__text{max-width: 48%}
  .products{grid-template-columns:repeat(2,1fr)}
  .product-page__layout{grid-template-columns:1fr}
  .pgallery{position:static}
  .cart{grid-template-columns:1fr}
  .summary{position:static}
  .home-tile{min-height: 40vw;}
  .master{align-items:flex-start}
  .benefits{grid-template-columns:repeat(2, 1fr)}
  .benefits__item:nth-child(3)::before{display:none}

  body.is-nav-open .nav{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
    transform: translateY(0);
    color: var(--text);
  }
  body.is-nav-open .nav a{
    padding:12px 12px;
    border-radius:14px;
    background: rgba(255,255,255,.06);
    border:1px solid rgba(255,255,255,.10);
    color: rgba(242,243,245,.95);
    font-weight:800;
  }
  body.is-nav-open .nav a:hover{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.16);
  }
}
@media (max-width: 950px){
  .hero__content{
    /* 0px at 950px → up to ~18px at ~500px */
    --hero-bg-blur: clamp(0px, calc((950px - 100vw) / 25), 18px);
  }
}
@media (max-width: 700px){
  [data-hide-sm]{display:none !important;}
}
@media (max-width: 560px){
  h1{font-size:36px}
  .grid4{grid-template-columns:1fr}
  .home-tile{min-height:65vw}
  .home-tile__text{max-width: 52%}
  .products{grid-template-columns:1fr}
  .product--rich .product__actions{grid-template-columns:1fr}
  .formgrid{grid-template-columns:1fr}
  .topbar__inner{height:auto; padding:12px 0}
  .cookiebar__inner{flex-direction:column; align-items:stretch}
  .cookiebar__btn{width:100%; justify-content:center}
  body.is-nav-open .nav{top:96px}
  .benefits{grid-template-columns:1fr}
  .benefits__item + .benefits__item::before{display:none}
  .cart-toast{
    top:auto;
    bottom:calc(76px + env(safe-area-inset-bottom));
    left:12px;
    right:12px;
    max-width:none;
  }
  .cart-toast__inner{flex-wrap:wrap}
  .cart-toast__link{width:30%; justify-content:center}
}

.navbackdrop{
  position:fixed;
  inset:0;
  /* Must stay below the sticky header + mobile nav */
  z-index:15;
  background:rgba(0,0,0,.28);
  backdrop-filter: none;
}

/* Ensure mobile nav is above the backdrop (header is a stacking context) */
body.is-nav-open .topbar{z-index:90}

/* Bottom mobile line (cart + menu) */
.mobilebar{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:95;
  display:none;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(11,11,12,0), rgba(11,11,12,.65) 22%, rgba(11,11,12,.92));
}
.mobilebar__inner{
  max-width:var(--container);
  margin:0 auto;
  padding:0 18px;
  display:flex;
  gap:20%;
  justify-content:center;
  align-items:center;
}
.mobilebar__btn{
  width:64px;
  height:64px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04);
  box-shadow: 0 18px 50px rgba(0,0,0,.60);
  display:grid;
  place-items:center;
  color:rgba(242,243,245,.92);
  cursor:pointer;
  position:relative;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.mobilebar__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.20);
}
.mobilebar__btn:active{transform: translateY(1px)}
.mobilebar__btn .badge{
  transform: translate(16px,-16px);
}

@media (max-width: 980px){
  .actions{display:none}
  .mobilebar{display:block}
  .foot{margin-bottom: 100px;}
  body{padding-bottom: 110px;}
}

/* Service page tweaks */
.service-hero{margin-top:6px}
.service-hero__title{
  margin:12px 0 10px;
  line-height:1.05;
  font-size:46px;
  letter-spacing:-.02em;
}
@media (max-width: 980px){
  .service-hero__title{font-size:40px}
}
@media (max-width: 560px){
  .product-btn-cart{
    grid-column: 1 / -1;
    justify-content: end;
  }
  .master_foto{margin-left: 40%}
  .service-hero__title{font-size:32px}
  .master{flex-direction:column}
  .master img{width:74px; height:74px; border-radius:18px}
}

/* 404 */
.is-404 main.error404{
  min-height:calc(100vh - 74px);
  display:flex;
  align-items:center;
  padding:32px 0 56px;
  background:
    radial-gradient(900px 420px at 15% 0%, rgba(243,155,38,.14), transparent 58%),
    radial-gradient(700px 360px at 90% 100%, rgba(255,106,42,.08), transparent 55%),
    var(--bg);
}
.error404__card{
  position:relative;
  display:grid;
  grid-template-columns:minmax(220px, 1fr) minmax(0, 1.2fr);
  gap:36px;
  align-items:center;
  padding:36px 32px;
  border-radius:var(--radius2);
  border:1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(520px 240px at 0% 0%, rgba(243,155,38,.10), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:var(--shadow);
  overflow:hidden;
}
.error404__card::after{
  content:"";
  position:absolute;
  inset:auto -80px -120px auto;
  width:280px;
  height:280px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(243,155,38,.12), transparent 68%);
  pointer-events:none;
}
.error404__visual{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:220px;
}
.error404__code-wrap{
  position:relative;
  display:grid;
  place-items:center;
  isolation:isolate;
  filter:drop-shadow(0 14px 32px rgba(243,155,38,.22));
}
.error404__glow{
  position:absolute;
  left:50%;
  top:58%;
  z-index:0;
  width:92%;
  height:72%;
  border-radius:50%;
  transform:translate(-50%, -50%);
  background:radial-gradient(ellipse at center, rgba(243,155,38,.42) 0%, rgba(255,106,42,.16) 48%, transparent 72%);
  filter:blur(14px);
  pointer-events:none;
}
.error404__cup{
  position:relative;
  z-index:1;
  flex-shrink:0;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,.45));
}
.error404__steam{
  transform-origin:center bottom;
  animation:error404-steam 3.2s ease-in-out infinite;
}
.error404__steam--2{animation-delay:.45s}
.error404__steam--3{animation-delay:.9s}
@keyframes error404-steam{
  0%, 100%{opacity:.35; transform:translateY(0)}
  50%{opacity:1; transform:translateY(-6px)}
}
.error404__code{
  position:relative;
  z-index:1;
  margin:0;
  font-size:clamp(72px, 12vw, 112px);
  font-weight:900;
  line-height:1;
  letter-spacing:-.05em;
  background:linear-gradient(135deg, rgba(243,155,38,.95), rgba(255,106,42,.72));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  user-select:none;
}
.error404__content{
  position:relative;
  z-index:1;
}
.error404__title{
  margin:10px 0 12px;
  font-size:clamp(28px, 4vw, 40px);
  line-height:1.08;
  letter-spacing:-.02em;
}
.error404__lead{
  margin:0;
  max-width:46ch;
  color:rgba(242,243,245,.78);
  font-size:16px;
  line-height:1.55;
}
.error404__links{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:10px;
  margin-top:22px;
  font-size:14px;
  font-weight:700;
}
.error404__links a{
  color:rgba(243,155,38,.95);
  text-decoration:underline;
  text-underline-offset:3px;
}
.error404__links a:hover{color:rgba(255,180,90,.98)}
.error404__dot{
  width:4px;
  height:4px;
  border-radius:50%;
  background:rgba(242,243,245,.28);
}
@media (max-width: 860px){
  .error404__card{
    grid-template-columns:1fr;
    gap:24px;
    padding:28px 22px;
    text-align:center;
  }
  .error404__content .cta,
  .error404__links{justify-content:center}
  .error404__lead{margin-inline:auto}
}
@media (max-width: 560px){
  .is-404 main.error404{padding:20px 0 40px}
  .error404__visual{min-height:180px}
}
